Deprecated
as a consequence of CacheImplementor being deprecated. See corresponding docs for further information.
| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private final QueryResultsCache | defaultQueryResultsCache
Deprecated
as a consequence of
QueryResultsCache being deprecated.
|
| private final Map | |
| private final Map | |
| private final Set | |
| private static final CoreMessageLogger | |
| private final Map | |
| private final Map | |
| private final Map | |
| private final RegionFactory | |
| private final Map | |
| private final SessionFactoryImplementor | sessionFactory
Deprecated
as a consequence of
SessionFactoryImplementor being deprecated.
|
| private final TimestampsCache | timestampsCache
Deprecated
as a consequence of
TimestampsCache being deprecated.
|
| Access | Constructor and Description |
|---|---|
| public | EnabledCaching(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. |
| private void | |
| private void | |
| 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. |
| protected void | |
| private void | |
| 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. |
| private void | |
| public void | evictNaturalIdData()
Implements org. |
| private void | |
| public void | evictQueryRegion(String
The cache name associated to the queries being cached. regionName)Implements org. |
| public void | evictQueryRegions()
Implements org. |
| private void | evictQueryResultRegion(QueryResultsCache cache)
Deprecated
as a consequence of
QueryResultsCache being deprecated.
|
| 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 CacheKeysFactory | getEnforcedCacheKeysFactory()
Implements org. |
| 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 regionName)
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 for which a Region is
being built.
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.
|
| protected QueryResultsRegion | |
| protected QueryResultsCache | makeQueryResultsRegionAccess(String regionName)
Deprecated
as a consequence of
QueryResultsCache 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. |
| collectionAccessMap | back to summary |
|---|---|
| private final Map<NavigableRole, CollectionDataAccess> collectionAccessMap | |
| defaultQueryResultsCache | back to summary |
|---|---|
| private final QueryResultsCache defaultQueryResultsCache
Deprecated as a consequence of | |
| entityAccessMap | back to summary |
|---|---|
| private final Map<NavigableRole, EntityDataAccess> entityAccessMap | |
| legacyNaturalIdAccessesForRegion | back to summary |
|---|---|
| private final Map<String, Set<NaturalIdDataAccess>> legacyNaturalIdAccessesForRegion | |
| legacySecondLevelCacheNames | back to summary |
|---|---|
| private final Set<String> legacySecondLevelCacheNames | |
| LOG | back to summary |
|---|---|
| private static final CoreMessageLogger LOG | |
| namedQueryResultsCacheMap | back to summary |
|---|---|
| private final Map<String, QueryResultsCache> namedQueryResultsCacheMap | |
| naturalIdAccessMap | back to summary |
|---|---|
| private final Map<NavigableRole, NaturalIdDataAccess> naturalIdAccessMap | |
| queryResultsRegionsByDuplicateName | back to summary |
|---|---|
| private final Map<String, QueryResultsRegion> queryResultsRegionsByDuplicateName | |
| regionFactory | back to summary |
|---|---|
| private final RegionFactory regionFactory | |
| regionsByName | back to summary |
|---|---|
| private final Map<String, Region> regionsByName | |
| sessionFactory | back to summary |
|---|---|
| private final SessionFactoryImplementor sessionFactory
Deprecated as a consequence of | |
| timestampsCache | back to summary |
|---|---|
| private final TimestampsCache timestampsCache
Deprecated as a consequence of | |
| EnabledCaching | back to summary |
|---|---|
| public EnabledCaching(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 |
|---|---|
| private void evictCollectionData(CollectionPersister collectionDescriptor) | |
| evictCollectionData | back to summary |
|---|---|
| private void evictCollectionData(NavigableRole navigableRole, CollectionDataAccess cacheAccess) | |
| 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 |
|---|---|
| protected void evictEntityData(EntityPersister entityDescriptor) | |
| evictEntityData | back to summary |
|---|---|
| private void evictEntityData(NavigableRole navigableRole, EntityDataAccess cacheAccess) | |
| 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 |
|---|---|
| private void evictNaturalIdData(EntityPersister rootEntityDescriptor) | |
| evictNaturalIdData | back to summary |
|---|---|
| public void evictNaturalIdData() Implements org. Doc from org. Evict cached data for all natural-ids (for all entities)
| |
| evictNaturalIdData | back to summary |
|---|---|
| private void evictNaturalIdData(NavigableRole rootEntityRole, NaturalIdDataAccess cacheAccess) | |
| 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.
| |
| evictQueryResultRegion | back to summary |
|---|---|
| private void evictQueryResultRegion(QueryResultsCache cache)
Deprecated as a consequence of | |
| 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
| |
| getEnforcedCacheKeysFactory | back to summary |
|---|---|
| public CacheKeysFactory getEnforcedCacheKeysFactory() Implements org. Doc from org. The CacheKeyFactory explicitly specified as part of the bootstrap by the user, by some "container", etc. If this method returns a non-null value, it is expected that RegionFactory implementors will use to be its CacheKeyFactory and return it when asked later.
| |
| 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) throws HibernateException 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 regionName) 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 for which a Region is being built.
| |
| 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
| |
| makeQueryResultsRegion | back to summary |
|---|---|
| protected QueryResultsRegion makeQueryResultsRegion(String regionName) | |
| makeQueryResultsRegionAccess | back to summary |
|---|---|
| protected QueryResultsCache makeQueryResultsRegionAccess(String regionName)
Deprecated as a consequence of | |
| 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.
| |