|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Cache
Provides an API for querying/managing the second level cache regions.
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).
Method Summary | |
---|---|
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 |
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. |
Method Detail |
---|
boolean containsEntity(Class entityClass, Serializable identifier)
entityClass
- The entity class.identifier
- The entity identifier
boolean containsEntity(String entityName, Serializable identifier)
entityName
- The entity name.identifier
- The entity identifier
void 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 entity
void 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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |