org.hibernate.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).Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Determine whether the cache contains data for the given collection.
| |||||||||||
Determine whether the cache contains data for the given entity "instance".
| |||||||||||
Determine whether the cache contains data for the given entity "instance".
| |||||||||||
Determine whether the cache contains data for the given query.
| |||||||||||
Evicts the cache data for the given identified collection instance.
| |||||||||||
Evicts all entity data from the given region (i.e.
| |||||||||||
Evict data from all collection regions.
| |||||||||||
Evicts all cached query results from the default region.
| |||||||||||
Evicts the entity data for a particular entity "instance".
| |||||||||||
Evicts the entity data for a particular entity "instance".
| |||||||||||
Evicts all entity data from the given region (i.e.
| |||||||||||
Evicts all entity data from the given region (i.e.
| |||||||||||
Evict data from all entity regions.
| |||||||||||
Evicts all cached query results under the given name.
| |||||||||||
Evict data from all query regions.
|
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.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 |
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.entityName | The entity name. |
---|---|
identifier | The entity 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.entityClass | The entity class. |
---|---|
identifier | The entity identifier |
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.regionName | The cache name given to the query. |
---|
Evicts the cache data for the given identified collection instance.
role | The "collection role" (in form [owner-entity-name].[collection-property-name]). |
---|---|
ownerIdentifier | The identifier of the owning entity |
Evicts all entity data from the given region (i.e. evicts cached data for all of the specified c9ollection role).
role | The "collection role" (in form [owner-entity-name].[collection-property-name]). |
---|
Evict data from all collection regions.
Evicts all cached query results from the default region.
Evicts the entity data for a particular entity "instance".
entityClass | The entity class. |
---|---|
identifier | The entity identifier |
Evicts the entity data for a particular entity "instance".
entityName | The entity name. |
---|---|
identifier | The entity identifier |
Evicts all entity data from the given region (i.e. for all entities of type).
entityName | The entity name. |
---|
Evicts all entity data from the given region (i.e. for all entities of type).
entityClass | The entity class. |
---|
Evict data from all entity regions.
Evicts all cached query results under the given name.
regionName | The cache name associated to the queries being cached. |
---|
Evict data from all query regions.