public interface Cache
contains
, which returns false.Modifier and Type | Method and Description |
---|---|
boolean |
contains(Class cls,
Object primaryKey)
Whether the cache contains data for the given entity.
|
void |
evict(Class cls)
Remove the data for entities of the specified class (and its
subclasses) from the cache.
|
void |
evict(Class cls,
Object primaryKey)
Remove the data for the given entity from the cache.
|
void |
evictAll()
Clear the cache.
|
boolean contains(Class cls, Object primaryKey)
cls
- entity classprimaryKey
- primary keyvoid evict(Class cls, Object primaryKey)
cls
- entity classprimaryKey
- primary keyvoid evict(Class cls)
cls
- entity classvoid evictAll()
Copyright © 2018 JBoss by Red Hat. All rights reserved.