Package org.hibernate.cache.spi.support
package org.hibernate.cache.spi.support
This package provides a framework intended to reduce the work needed to implement
a caching provider. It takes care of most of the "grunt work" associated with the
implementation, leaving the integrator to implement the interfaces
StorageAccess
and
DomainDataStorageAccess
.
A typical integration would provide:
- a custom
StorageAccess
orDomainDataStorageAccess
, along with - a custom
RegionFactoryTemplate
.
The preferred way to register these implementations to Hibernate is via a custom
StrategyRegistrationProvider
.
Examples of using this support package to implement a caching provider include:
org.hibernate.testing.cache.CachingRegionFactory
inhibernate-testing
, andorg.hibernate.cache.jcache.internal.JCacheRegionFactory
inhibernate-jcache
.
-
ClassDescriptionOptional interface caching implementors can implement in their CachedDomainDataAccess impls to automatically have them destroyed when this region is destroyedWrapper type representing unlocked items.Interface type implemented by all wrapper objects in the cache.Wrapper type representing locked items.Standard support for
CollectionDataAccess
using theAccessType.NONSTRICT_READ_WRITE
access type.Standard support forCollectionDataAccess
using theAccessType.READ_ONLY
access type.Standard support forCollectionDataAccess
using theAccessType.READ_WRITE
access type.Bridge between DirectAccessRegion and StorageAccessAbstract implementation ofDomainDataRegion
based on implementations just needing to provide aDomainDataStorageAccess
reference for basic caching support - DomainDataStorageAccess acts as a simple wrapper around some generalized cache actions such as put or get.Specialization ofStorageAccess
for domain data regions.Standard support forEntityDataAccess
using theAccessType.NONSTRICT_READ_WRITE
access type.Standard support forEntityDataAccess
using theAccessType.READ_ONLY
access type.Standard support forEntityDataAccess
using theAccessType.READ_WRITE
access type.Standard support forNaturalIdDataAccess
using theAccessType.NONSTRICT_READ_WRITE
access type.Standard support forNaturalIdDataAccess
using theAccessType.READ_ONLY
access type.Standard support forNaturalIdDataAccess
using theAccessType.READ_WRITE
access type.Generates increasing identifiers (in a single VM only).A general read/write abstraction over the specific "cache" object from the caching provider.