Deprecated
as a consequence of CacheImplementor
being deprecated. See corresponding docs for further information.
Modifier and Type | Field and Description |
---|---|
private final RegionFactory | |
private final SessionFactoryImplementor | sessionFactory
Deprecated
as a consequence of
SessionFactoryImplementor being deprecated.
|
Access | Constructor and Description |
---|---|
public | DisabledCaching(SessionFactoryImplementor sessionFactory)
Deprecated
as a consequence of
SessionFactoryImplementor being deprecated.
|
Modifier and Type | Method and Description |
---|---|
public void | close()
Implements org. |
public boolean | contains(Class<T>
entity class cls, Object primary key primaryKey)Implements javax. |
public boolean | containsCollection(String
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)Implements org. |
public boolean | containsEntity(Class<T>
The entity class. entityClass, Serializable The entity identifier identifier)Implements org. |
public boolean | containsEntity(String
The entity name. entityName, Serializable The entity identifier identifier)Implements org. |
public boolean | containsQuery(String
The cache name given to the query. regionName)Implements org. |
public void | evict(Class<T>
entity class cls, Object primary key primaryKey)Implements javax. |
public void | evict(Class<T>
entity class cls)Implements javax. |
public void | evictCollectionData(String
The "collection role" (in form [owner-entity-name].[collection-property-name]). role, Serializable The identifier of the owning entity ownerIdentifier)Implements org. |
public void | evictCollectionData(String
The "collection role" (in form [owner-entity-name].[collection-property-name]). role)Implements org. |
public void | evictCollectionData()
Implements org. |
public void | evictDefaultQueryRegion()
Implements org. |
public void | evictEntityData(Class<T>
The entity class. entityClass, Serializable The entity identifier identifier)Implements org. |
public void | evictEntityData(String
The entity name. entityName, Serializable The entity identifier identifier)Implements org. |
public void | evictEntityData(Class<T>
The entity class. entityClass)Implements org. |
public void | evictEntityData(String
The entity name. entityName)Implements org. |
public void | evictEntityData()
Implements org. |
public void | evictNaturalIdData(Class<T>
The entity class. entityClass)Implements org. |
public void | evictNaturalIdData(String
The entity name. entityName)Implements org. |
public void | evictNaturalIdData()
Implements org. |
public void | evictQueryRegion(String
The cache name associated to the queries being cached. regionName)Implements org. |
public void | evictQueryRegions()
Implements org. |
public void | evictRegion(String regionName)
Implements org. |
public Set | getCacheRegionNames()
Implements org. |
public CollectionDataAccess | getCollectionRegionAccess(NavigableRole collectionRole)
Implements org. |
public QueryResultsCache | getDefaultQueryResultsCache()
Implements org.
Deprecated
as a consequence of
Access to the "default" region used to store query results when caching
was requested but no region was explicitly named.
QueryResultsCache being deprecated.
|
public EntityDataAccess | getEntityRegionAccess(NavigableRole
The NavigableRole representation of the root entity rootEntityName)Implements org. |
public Set | |
public NaturalIdDataAccess | getNaturalIdCacheRegionAccessStrategy(NavigableRole
The NavigableRole representation of the root entity rootEntityName)Implements org. |
public QueryResultsCache | getQueryResultsCache(String regionName)
Implements org.
Deprecated
as a consequence of
Get query cache by region name or create a new one if none exist.
QueryResultsCache being deprecated.
|
public QueryResultsCache | getQueryResultsCacheStrictly(String regionName)
Implements org.
Deprecated
as a consequence of
Get the named QueryResultRegionAccess but not creating one if it
does not already exist.
QueryResultsCache being deprecated.
|
public Region | getRegion(String fullRegionName)
Implements org. |
public RegionFactory | getRegionFactory()
Implements org. |
public String[] | getSecondLevelCacheRegionNames()
Implements org. |
public SessionFactoryImplementor | getSessionFactory()
Implements org.
Deprecated
as a consequence of
Access to the SessionFactory this Cache is bound to.
SessionFactoryImplementor being deprecated.
|
public TimestampsCache | getTimestampsCache()
Implements org.
Deprecated
as a consequence of
Find the cache data access strategy for Hibernate's timestamps cache.
TimestampsCache being deprecated.
|
public void | prime(Set<DomainDataRegionConfig> cacheRegionConfigs)
Implements org. |
public <T> T | unwrap(Class<T>
the class of the object to be returned. This is
normally either the underlying Cache implementation
class or an interface that it implements. cls)Implements javax. |
regionFactory | back to summary |
---|---|
private final RegionFactory regionFactory |
sessionFactory | back to summary |
---|---|
private final SessionFactoryImplementor sessionFactory
Deprecated as a consequence of |
DisabledCaching | back to summary |
---|---|
public DisabledCaching(SessionFactoryImplementor sessionFactory)
Deprecated as a consequence of |
close | back to summary |
---|---|
public void close() Implements org. Doc from org. Close this "cache", releasing all underlying resources.
|
contains | back to summary |
---|---|
public boolean contains(Class<T> cls, Object primaryKey) Implements javax. Doc from javax. Whether the cache contains data for the given entity. |
containsCollection | back to summary |
---|---|
public boolean containsCollection(String role, Serializable ownerIdentifier) Implements org. Doc from org. 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) Implements org. Doc from org. 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) Implements org. Doc from org. 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) Implements org. Doc from org. 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. |
evict | back to summary |
---|---|
public void evict(Class<T> cls, Object primaryKey) Implements javax. Doc from javax. Remove the data for the given entity from the cache. |
evict | back to summary |
---|---|
public void evict(Class<T> cls) Implements javax. Doc from javax. Remove the data for entities of the specified class (and its subclasses) from the cache. |
evictCollectionData | back to summary |
---|---|
public void evictCollectionData(String role, Serializable ownerIdentifier) Implements org. Doc from org. Evicts the cache data for the given identified collection "instance"
|
evictCollectionData | back to summary |
---|---|
public void evictCollectionData(String role) Implements org. Doc from org. Evicts cached data for the given collection role |
evictCollectionData | back to summary |
---|---|
public void evictCollectionData() Implements org. Doc from org. Evict cache data for all collections
|
evictDefaultQueryRegion | back to summary |
---|---|
public void evictDefaultQueryRegion() Implements org. Doc from org. Evicts all cached query results from the default region.
|
evictEntityData | back to summary |
---|---|
public void evictEntityData(Class<T> entityClass, Serializable identifier) Implements org. Doc from org. Evicts the entity data for a particular entity "instance".
|
evictEntityData | back to summary |
---|---|
public void evictEntityData(String entityName, Serializable identifier) Implements org. Doc from org. Evicts the entity data for a particular entity "instance".
|
evictEntityData | back to summary |
---|---|
public void evictEntityData(Class<T> entityClass) Implements org. Doc from org. Evicts all entity data from the given region (i.e. for all entities of type). |
evictEntityData | back to summary |
---|---|
public void evictEntityData(String entityName) Implements org. Doc from org. Evicts all entity data from the given region (i.e. for all entities of type). |
evictEntityData | back to summary |
---|---|
public void evictEntityData() Implements org. Doc from org. Evict data from all entity regions.
|
evictNaturalIdData | back to summary |
---|---|
public void evictNaturalIdData(Class<T> entityClass) Implements org. Doc from org. Evict cached data for the given entity's natural-id |
evictNaturalIdData | back to summary |
---|---|
public void evictNaturalIdData(String entityName) Implements org. Doc from org. Evict cached data for the given entity's natural-id |
evictNaturalIdData | back to summary |
---|---|
public void evictNaturalIdData() Implements org. Doc from org. Evict cached data for all natural-ids (for all entities)
|
evictQueryRegion | back to summary |
---|---|
public void evictQueryRegion(String regionName) Implements org. Doc from org. Evicts all cached query results under the given name. |
evictQueryRegions | back to summary |
---|---|
public void evictQueryRegions() Implements org. Doc from org. Evict data from all query regions.
|
evictRegion | back to summary |
---|---|
public void evictRegion(String regionName) Implements org. Doc from org. Evict all data from the named cache region
|
getCacheRegionNames | back to summary |
---|---|
public Set Implements org. Doc from org. The unqualified name of all regions. Intended for use with
|
getCollectionRegionAccess | back to summary |
---|---|
public CollectionDataAccess getCollectionRegionAccess(NavigableRole collectionRole) Implements org. Doc from org. Find the cache data access strategy for the given collection. Will
return
|
getDefaultQueryResultsCache | back to summary |
---|---|
public QueryResultsCache getDefaultQueryResultsCache() Implements org. Doc from org. Deprecated as a consequence of Access to the "default" region used to store query results when caching
was requested but no region was explicitly named. Will return
|
getEntityRegionAccess | back to summary |
---|---|
public EntityDataAccess getEntityRegionAccess(NavigableRole rootEntityName) Implements org. Doc from org. Find the cache data access strategy for an entity. Will
return
|
getNaturalIdAccessesInRegion | back to summary |
---|---|
public Set Implements org.
|
getNaturalIdCacheRegionAccessStrategy | back to summary |
---|---|
public NaturalIdDataAccess getNaturalIdCacheRegionAccessStrategy(NavigableRole rootEntityName) Implements org. Doc from org. Find the cache data access strategy for the given entity's natural-id cache.
Will return
|
getQueryResultsCache | back to summary |
---|---|
public QueryResultsCache getQueryResultsCache(String regionName) Implements org. Doc from org. Deprecated as a consequence of Get query cache by region name or create a new one if none exist.
If the region name is null, then default query cache region will be returned.
Will return
|
getQueryResultsCacheStrictly | back to summary |
---|---|
public QueryResultsCache getQueryResultsCacheStrictly(String regionName) Implements org. Doc from org. Deprecated as a consequence of Get the named QueryResultRegionAccess but not creating one if it
does not already exist. This is intended for use by statistics.
Will return
|
getRegion | back to summary |
---|---|
public Region getRegion(String fullRegionName) Implements org. Doc from org. Get a cache Region by name. If there is both a
|
getRegionFactory | back to summary |
---|---|
public RegionFactory getRegionFactory() Implements org. Doc from org. The underlying RegionFactory in use.
|
getSecondLevelCacheRegionNames | back to summary |
---|---|
public String[] getSecondLevelCacheRegionNames() Implements org. Doc from org. Get the *qualified* names of all regions caching entity and collection data. |
getSessionFactory | back to summary |
---|---|
public SessionFactoryImplementor getSessionFactory() Implements org. Doc from org. Deprecated as a consequence of Access to the SessionFactory this Cache is bound to.
|
getTimestampsCache | back to summary |
---|---|
public TimestampsCache getTimestampsCache() Implements org. Doc from org. Deprecated as a consequence of Find the cache data access strategy for Hibernate's timestamps cache.
Will return
|
prime | back to summary |
---|---|
public void prime(Set<DomainDataRegionConfig> cacheRegionConfigs) Implements org. Doc from org. An initialization phase allowing the caching provider to prime itself from the passed configs
|
unwrap | back to summary |
---|---|
public <T> T unwrap(Class<T> cls) Implements javax. Doc from javax. Return an object of the specified type to allow access to the provider-specific API. If the provider's Cache implementation does not support the specified class, the PersistenceException is thrown.
|