Top Description Interfaces Classes Enums
[default module]

Package org.hibernate.cache.spi.support


Package intended for simplifying the worked needed to implement a caching provider. Centers around the concept of org.hibernate.cache.spi.support.StorageAccess and org.hibernate.cache.spi.support.DomainDataStorageAccess too implement most of the "grunt work" associated with the implementation. Most integrations would just: 1. implement a custom StorageAccess/DomainDataStorageAccess 2. implement a custom RegionFactoryTemplate, implementing specifically: a. `RegionFactoryTemplate#createDomainDataStorageAccess` b. `RegionFactoryTemplate#createQueryResultsRegionStorageAccess` c. `RegionFactoryTemplate#createTimestampsRegionStorageAccess` Voila.. functioning cache provider The preferred approach to "provide a integration" is through a custom org.hibernate.boot.registry.selector.StrategyRegistrationProvider Both `hibernate-testing` (`org.hibernate.testing.cache.CachingRegionFactory`) and `hibernate-jcache` (`org.hibernate.cache.jcache.internal.JCacheRegionFactory`) provide examples of using this support package to implement a caching provider.

Interface Summary

Modifier and TypeInterface and Description
public interface
DomainDataStorageAccess

Specialization of StorageAccess for domain data regions

public interface
StorageAccess

A general read/write abstraction over the specific "cache" object from the caching provider.

Class Summary

Modifier and TypeClass and Description
public abstract class
public abstract class
public abstract class
public abstract class
public abstract class
public abstract class
public abstract class
public class
public class
public class
public class
public class
public abstract class
DirectAccessRegionTemplate

Bridge between DirectAccessRegion and StorageAccess

public class
public class
DomainDataRegionTemplate

Abstract implementation of org.hibernate.cache.spi.DomainDataRegion based on implementations just needing to provide a DomainDataStorageAccess reference for basic caching support - DomainDataStorageAccess acts as a simple wrapper around some generalized cache actions such as put or get.

public class
public class
public class
public class
public class
public class
public class
public class
public class
public abstract class
public class
public class
SimpleTimestamper

Generates increasing identifiers (in a single VM only).

public class

Enum Summary

Modifier and TypeEnum and Description
public enum