Top Description Interfaces Classes Enums
[default module]

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 org.hibernate.cache.spi.support.StorageAccess and org.hibernate.cache.spi.support.DomainDataStorageAccess.

A typical integration would provide:

  1. a custom StorageAccess or DomainDataStorageAccess, along with
  2. a custom org.hibernate.cache.spi.support.RegionFactoryTemplate.

The preferred way to register these implementations to Hibernate is via a custom org.hibernate.boot.registry.selector.StrategyRegistrationProvider.

Examples of using this support package to implement a caching provider include:

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
CollectionReadWriteAccess

Standard support for CollectionDataAccess using the AccessType#READ_WRITE access type.

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
EntityReadWriteAccess

Standard support for EntityDataAccess using the AccessType#READ_WRITE access type.

public class
public class
public class
public class
NaturalIdReadWriteAccess

Standard support for NaturalIdDataAccess using the AccessType#READ_WRITE access type.

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