public class

RegionFactoryCacheProviderBridge

extends Object
implements RegionFactory
java.lang.Object
   ↳ org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge

Class Overview

Acts as a bridge between the RegionFactory contract and the older CacheProvider contract.

Summary

Fields
public static final String DEF_PROVIDER
Public Constructors
RegionFactoryCacheProviderBridge(Properties properties)
Public Methods
CollectionRegion buildCollectionRegion(String regionName, Properties properties, CacheDataDescription metadata)
Build a cache region specialized for storing collection data.
EntityRegion buildEntityRegion(String regionName, Properties properties, CacheDataDescription metadata)
Build a cache region specialized for storing entity data.
QueryResultsRegion buildQueryResultsRegion(String regionName, Properties properties)
Build a cache region specialized for storing query results
TimestampsRegion buildTimestampsRegion(String regionName, Properties properties)
Build a cache region specialized for storing update-timestamps data.
CacheProvider getCacheProvider()
AccessType getDefaultAccessType()
Get the default access type for entity and collection regions.
boolean isMinimalPutsEnabledByDefault()
By default should we perform "minimal puts" when using this second level cache implementation?
long nextTimestamp()
Generate a timestamp.
void start(Settings settings, Properties properties)
Lifecycle callback to perform any necessary initialization of the underlying cache implementation(s).
void stop()
Lifecycle callback to perform any necessary cleanup of the underlying cache implementation(s).
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.hibernate.cache.RegionFactory

Fields

public static final String DEF_PROVIDER

Public Constructors

public RegionFactoryCacheProviderBridge (Properties properties)

Public Methods

public CollectionRegion buildCollectionRegion (String regionName, Properties properties, CacheDataDescription metadata)

Build a cache region specialized for storing collection data.

Parameters
regionName The name of the region.
properties Configuration properties.
metadata Information regarding the type of data to be cached
Returns
  • The built region

public EntityRegion buildEntityRegion (String regionName, Properties properties, CacheDataDescription metadata)

Build a cache region specialized for storing entity data.

Parameters
regionName The name of the region.
properties Configuration properties.
metadata Information regarding the type of data to be cached
Returns
  • The built region

public QueryResultsRegion buildQueryResultsRegion (String regionName, Properties properties)

Build a cache region specialized for storing query results

Parameters
regionName The name of the region.
properties Configuration properties.
Returns
  • The built region

public TimestampsRegion buildTimestampsRegion (String regionName, Properties properties)

Build a cache region specialized for storing update-timestamps data.

Parameters
regionName The name of the region.
properties Configuration properties.
Returns
  • The built region

public CacheProvider getCacheProvider ()

public AccessType getDefaultAccessType ()

Get the default access type for entity and collection regions.

Returns
  • This factory's default access type.

public boolean isMinimalPutsEnabledByDefault ()

By default should we perform "minimal puts" when using this second level cache implementation?

Returns
  • True if "minimal puts" should be performed by default; false otherwise.

public long nextTimestamp ()

Generate a timestamp.

This is generally used for cache content locking/unlocking purposes depending upon the access-strategy being used.

Returns
  • The generated timestamp.

public void start (Settings settings, Properties properties)

Lifecycle callback to perform any necessary initialization of the underlying cache implementation(s). Called exactly once during the construction of a SessionFactoryImpl.

Parameters
settings The settings in effect.
properties The defined cfg properties

public void stop ()

Lifecycle callback to perform any necessary cleanup of the underlying cache implementation(s). Called exactly once during close().