org.hibernate.cache.impl.bridge

Class RegionFactoryCacheProviderBridge

Implemented Interfaces:
RegionFactory

public class RegionFactoryCacheProviderBridge
extends java.lang.Object
implements RegionFactory

Acts as a bridge between the RegionFactory contract and the older CacheProvider contract.
Author:
Steve Ebersole

Field Summary

static String
DEF_PROVIDER

Constructor Summary

RegionFactoryCacheProviderBridge(Properties properties)

Method Summary

CollectionRegion
buildCollectionRegion(String regionName, Properties properties, CacheDataDescription metadata)
EntityRegion
buildEntityRegion(String regionName, Properties properties, CacheDataDescription metadata)
QueryResultsRegion
buildQueryResultsRegion(String regionName, Properties properties)
TimestampsRegion
buildTimestampsRegion(String regionName, Properties properties)
CacheProvider
getCacheProvider()
boolean
isMinimalPutsEnabledByDefault()
long
nextTimestamp()
void
start(Settings settings, Properties properties)
void
stop()

Field Details

DEF_PROVIDER

public static final String DEF_PROVIDER

Constructor Details

RegionFactoryCacheProviderBridge

public RegionFactoryCacheProviderBridge(Properties properties)

Method Details

buildCollectionRegion

public CollectionRegion buildCollectionRegion(String regionName,
                                              Properties properties,
                                              CacheDataDescription metadata)
            throws CacheException
Specified by:
buildCollectionRegion in interface RegionFactory

buildEntityRegion

public EntityRegion buildEntityRegion(String regionName,
                                      Properties properties,
                                      CacheDataDescription metadata)
            throws CacheException
Specified by:
buildEntityRegion in interface RegionFactory

buildQueryResultsRegion

public QueryResultsRegion buildQueryResultsRegion(String regionName,
                                                  Properties properties)
            throws CacheException
Specified by:
buildQueryResultsRegion in interface RegionFactory

buildTimestampsRegion

public TimestampsRegion buildTimestampsRegion(String regionName,
                                              Properties properties)
            throws CacheException
Specified by:
buildTimestampsRegion in interface RegionFactory

getCacheProvider

public CacheProvider getCacheProvider()

isMinimalPutsEnabledByDefault

public boolean isMinimalPutsEnabledByDefault()
Specified by:
isMinimalPutsEnabledByDefault in interface RegionFactory

nextTimestamp

public long nextTimestamp()
Specified by:
nextTimestamp in interface RegionFactory

start

public void start(Settings settings,
                  Properties properties)
            throws CacheException
Specified by:
start in interface RegionFactory

stop

public void stop()
Specified by:
stop in interface RegionFactory