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
StorageAccessorDomainDataStorageAccess, 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.CachingRegionFactoryinhibernate-testing, andorg.hibernate.cache.jcache.internal.JCacheRegionFactoryinhibernate-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
CollectionDataAccessusing theAccessType.NONSTRICT_READ_WRITEaccess type.Standard support forCollectionDataAccessusing theAccessType.READ_ONLYaccess type.Standard support forCollectionDataAccessusing theAccessType.READ_WRITEaccess type.Bridge between DirectAccessRegion and StorageAccessAbstract implementation ofDomainDataRegionbased on implementations just needing to provide aDomainDataStorageAccessreference for basic caching support - DomainDataStorageAccess acts as a simple wrapper around some generalized cache actions such as put or get.Specialization ofStorageAccessfor domain data regions.Standard support forEntityDataAccessusing theAccessType.NONSTRICT_READ_WRITEaccess type.Standard support forEntityDataAccessusing theAccessType.READ_ONLYaccess type.Standard support forEntityDataAccessusing theAccessType.READ_WRITEaccess type.Standard support forNaturalIdDataAccessusing theAccessType.NONSTRICT_READ_WRITEaccess type.Standard support forNaturalIdDataAccessusing theAccessType.READ_ONLYaccess type.Standard support forNaturalIdDataAccessusing theAccessType.READ_WRITEaccess type.Generates increasing identifiers (in a single VM only).A general read/write abstraction over the specific "cache" object from the caching provider.