CAUTION: None of these methods respect any isolation or transactional semantics associated with the underlying caches. Specifically, evictions perform an immediate "hard" removal outside any transactions and/or locking scheme(s).
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: True if the underlying cache contains corresponding data; false otherwise.The name of the collection role (in form
[owner-entity-name].[collection-property-name]) whose regions should be
evicted. role, Serializable The identifier of the owning entity ownerIdentifier)Determine whether the cache contains data for the given collection. |
| public boolean | Returns: True if the underlying cache contains corresponding data; false otherwise.The entity class. entityClass, Serializable The entity identifier identifier)Determine whether the cache contains data for the given entity "instance". |
| public boolean | Returns: True if the underlying cache contains corresponding data; false otherwise.The entity name. entityName, Serializable The entity identifier identifier)Determine whether the cache contains data for the given entity "instance". |
| public boolean | Returns: True if the underlying cache contains corresponding data; false otherwise.The cache name given to the query. regionName)Determine whether the cache contains data for the given query. |
| public void | evictCollection(String
The "collection role" (in form [owner-entity-name].[collection-property-name]). role, Serializable The identifier of the owning entity ownerIdentifier)Evicts the cache data for the given identified collection instance. |
| public void | evictCollectionRegion(String
The "collection role" (in form [owner-entity-name].[collection-property-name]). role)Evicts all entity data from the given region (i.e. evicts cached data for all of the specified c9ollection role). |
| public void | |
| public void | |
| public void | evictEntity(Class<T>
The entity class. entityClass, Serializable The entity identifier identifier)Evicts the entity data for a particular entity "instance". |
| public void | evictEntity(String
The entity name. entityName, Serializable The entity identifier identifier)Evicts the entity data for a particular entity "instance". |
| public void | evictEntityRegion(Class<T>
The entity class. entityClass)Evicts all entity data from the given region (i.e. for all entities of type). |
| public void | evictEntityRegion(String
The entity name. entityName)Evicts all entity data from the given region (i.e. for all entities of type). |
| public void | |
| public void | evictQueryRegion(String
The cache name associated to the queries being cached. regionName)Evicts all cached query results under the given name. |
| public void |
| containsCollection | back to summary |
|---|---|
| public boolean containsCollection(String role, Serializable ownerIdentifier) Determine whether the cache contains data for the given collection. The semantic here is whether the cache contains data visible for the current call context.
| |
| containsEntity | back to summary |
|---|---|
| public boolean containsEntity(Class<T> entityClass, Serializable identifier) Determine whether the cache contains data for the given entity "instance". The semantic here is whether the cache contains data visible for the current call context.
| |
| containsEntity | back to summary |
|---|---|
| public boolean containsEntity(String entityName, Serializable identifier) Determine whether the cache contains data for the given entity "instance". The semantic here is whether the cache contains data visible for the current call context.
| |
| containsQuery | back to summary |
|---|---|
| public boolean containsQuery(String regionName) Determine whether the cache contains data for the given query. The semantic here is whether the cache contains any data for the given region name since query result caches are not transactionally isolated.
| |
| evictCollection | back to summary |
|---|---|
| public void evictCollection(String role, Serializable ownerIdentifier) Evicts the cache data for the given identified collection instance.
| |
| evictCollectionRegion | back to summary |
|---|---|
| public void evictCollectionRegion(String role) Evicts all entity data from the given region (i.e. evicts cached data for all of the specified c9ollection role).
| |
| evictCollectionRegions | back to summary |
|---|---|
| public void evictCollectionRegions() Evict data from all collection regions. | |
| evictDefaultQueryRegion | back to summary |
|---|---|
| public void evictDefaultQueryRegion() Evicts all cached query results from the default region. | |
| evictEntity | back to summary |
|---|---|
| public void evictEntity(Class<T> entityClass, Serializable identifier) Evicts the entity data for a particular entity "instance".
| |
| evictEntity | back to summary |
|---|---|
| public void evictEntity(String entityName, Serializable identifier) Evicts the entity data for a particular entity "instance".
| |
| evictEntityRegion | back to summary |
|---|---|
| public void evictEntityRegion(Class<T> entityClass) Evicts all entity data from the given region (i.e. for all entities of type).
| |
| evictEntityRegion | back to summary |
|---|---|
| public void evictEntityRegion(String entityName) Evicts all entity data from the given region (i.e. for all entities of type).
| |
| evictEntityRegions | back to summary |
|---|---|
| public void evictEntityRegions() Evict data from all entity regions. | |
| evictQueryRegion | back to summary |
|---|---|
| public void evictQueryRegion(String regionName) Evicts all cached query results under the given name.
| |
| evictQueryRegions | back to summary |
|---|---|
| public void evictQueryRegions() Evict data from all query regions. | |