RegionFactory is the main integration contract
that defines how Hibernate interacts with the provider. Its main contract is
the generation of
Region references with some
requested intent (what will be stored there).
A provider will integrate with Hibernate by implementing either:
- the contracts in
- the contracts in
- a mix of the above.
DomainDataStorageAccess, which are
basic read/write abstractions of the underlying cache. That is to say,
org.hibernate.cache.spi.support comes with a nearly complete
implementation, except for these "storage access" objects.
Alternatively, providers may integrate with Hibernate via Hibernate's support
for JCache, which is defined by the
hibernate-jcache module. No custom
code is necessary, just an implementation of JCache, properly registered via
the JCache spec.
Interface Summary Interface Description CacheImplementor CacheKeysFactoryA factory for keys into the second-level cache. CacheTransactionSynchronizationDefines a context object that a
RegionFactoryis asked to create (
RegionFactory.createTransactionContext(org.hibernate.engine.spi.SharedSessionContractImplementor)}) when a Hibernate Session is created.
Regionwhose data is accessed directly, without the need for key/item wrapping.
DomainDataRegionA second-level cache region that holds cacheable domain data: the destructured state of entity instances and collections, and mappings from natural id to primary key. ExtendedStatisticsSupportOptional contract for a
Regiondefining support for extra statistic information.
QueryKey.ParameterBindingsMementotodo (6.0) : integrate work from original 6.0 branch QueryResultsCacheResponsible for managing query result list caching in a specific query cache region. QueryResultsRegionDefines the contract for a cache region that stores query results. RegionContract for a named cache "region". RegionFactory SecondLevelCacheLogger TimestampsCacheTracks invalidation of "query spaces" (tables) for the purpose of determining if a cached query result set is stale. TimestampsCacheFactoryResponsible for building the
TimestampsCacheto use for managing query results with respect to staleness of the underlying tables (sometimes called "query spaces" or "table spaces").
TimestampsRegionDefines the contract for a cache region that stores timestamps.
Class Summary Class Description AbstractCacheTransactionSynchronization AbstractRegionFactory FilterKey Deprecated.this class is no longer used QueryKeyA key that identifies a particular query with bound parameter values. QuerySpacesHelper Deprecated.This helper class is no longer used StandardCacheTransactionSynchronization