public interface Cache
| Modifier and Type | Method and Description | 
|---|---|
| boolean | containsCollection(String role,
                  Serializable ownerIdentifier)Determine whether the cache contains data for the given collection. | 
| boolean | containsEntity(Class entityClass,
              Serializable identifier)Determine whether the cache contains data for the given entity "instance". | 
| boolean | containsEntity(String entityName,
              Serializable identifier)Determine whether the cache contains data for the given entity "instance". | 
| boolean | containsQuery(String regionName)Determine whether the cache contains data for the given query. | 
| void | evictAllRegions()Evict all data from the cache. | 
| void | evictCollection(String role,
               Serializable ownerIdentifier)Evicts the cache data for the given identified collection instance. | 
| void | evictCollectionRegion(String role)Evicts all entity data from the given region (i.e. | 
| void | evictCollectionRegions()Evict data from all collection regions. | 
| void | evictDefaultQueryRegion()Evicts all cached query results from the default region. | 
| void | evictEntity(Class entityClass,
           Serializable identifier)Evicts the entity data for a particular entity "instance". | 
| void | evictEntity(String entityName,
           Serializable identifier)Evicts the entity data for a particular entity "instance". | 
| void | evictEntityRegion(Class entityClass)Evicts all entity data from the given region (i.e. | 
| void | evictEntityRegion(String entityName)Evicts all entity data from the given region (i.e. | 
| void | evictEntityRegions()Evict data from all entity regions. | 
| void | evictNaturalIdRegion(Class naturalIdClass)Evicts all naturalId data from the given region (i.e. | 
| void | evictNaturalIdRegion(String naturalIdName)Evicts all naturalId data from the given region (i.e. | 
| void | evictNaturalIdRegions()Evict data from all naturalId regions. | 
| void | evictQueryRegion(String regionName)Evicts all cached query results under the given name. | 
| void | evictQueryRegions()Evict data from all query regions. | 
boolean containsEntity(Class entityClass, Serializable identifier)
entityClass - The entity class.identifier - The entity identifierboolean containsEntity(String entityName, Serializable identifier)
entityName - The entity name.identifier - The entity identifiervoid evictEntity(Class entityClass, Serializable identifier)
entityClass - The entity class.identifier - The entity identifiervoid evictEntity(String entityName, Serializable identifier)
entityName - The entity name.identifier - The entity identifiervoid evictEntityRegion(Class entityClass)
entityClass - The entity class.void evictEntityRegion(String entityName)
entityName - The entity name.void evictEntityRegions()
void evictNaturalIdRegion(Class naturalIdClass)
naturalIdClass - The naturalId class.void evictNaturalIdRegion(String naturalIdName)
naturalIdName - The naturalId name.void evictNaturalIdRegions()
boolean containsCollection(String role, Serializable ownerIdentifier)
role - The name of the collection role (in form
 [owner-entity-name].[collection-property-name]) whose regions should be
 evicted.ownerIdentifier - The identifier of the owning entityvoid evictCollection(String role, Serializable ownerIdentifier)
role - The "collection role" (in form [owner-entity-name].[collection-property-name]).ownerIdentifier - The identifier of the owning entityvoid evictCollectionRegion(String role)
role - The "collection role" (in form [owner-entity-name].[collection-property-name]).void evictCollectionRegions()
boolean containsQuery(String regionName)
regionName - The cache name given to the query.void evictDefaultQueryRegion()
void evictQueryRegion(String regionName)
regionName - The cache name associated to the queries being cached.void evictQueryRegions()
void evictAllRegions()
Copyright © 2018 JBoss by Red Hat. All rights reserved.