org.springframework.orm.hibernate3
Class LocalRegionFactoryProxy
java.lang.Object
org.springframework.orm.hibernate3.LocalRegionFactoryProxy
- All Implemented Interfaces:
- RegionFactory
public class LocalRegionFactoryProxy
- extends java.lang.Object
- implements RegionFactory
Proxy for a Hibernate RegionFactory, delegating to a Spring-managed
RegionFactory instance, determined by LocalSessionFactoryBean's
"cacheRegionFactory" property.
Compatible with Hibernate 3.3 as well as Hibernate 3.5's version
of the RegionFactory SPI.
- Since:
- 3.0
- Author:
- Juergen Hoeller
- See Also:
LocalSessionFactoryBean.setCacheRegionFactory(java.lang.Object)
Constructor Summary |
LocalRegionFactoryProxy()
Standard constructor. |
LocalRegionFactoryProxy(java.util.Properties properties)
Properties constructor: not used by this class or formally required,
but enforced by Hibernate when reflectively instantiating a RegionFactory. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
regionFactory
private final RegionFactory regionFactory
LocalRegionFactoryProxy
public LocalRegionFactoryProxy()
- Standard constructor.
LocalRegionFactoryProxy
public LocalRegionFactoryProxy(java.util.Properties properties)
- Properties constructor: not used by this class or formally required,
but enforced by Hibernate when reflectively instantiating a RegionFactory.
start
public void start(Settings settings,
java.util.Properties properties)
throws CacheException
- Specified by:
start
in interface RegionFactory
- Throws:
CacheException
stop
public void stop()
- Specified by:
stop
in interface RegionFactory
isMinimalPutsEnabledByDefault
public boolean isMinimalPutsEnabledByDefault()
- Specified by:
isMinimalPutsEnabledByDefault
in interface RegionFactory
getDefaultAccessType
public AccessType getDefaultAccessType()
- Specified by:
getDefaultAccessType
in interface RegionFactory
nextTimestamp
public long nextTimestamp()
- Specified by:
nextTimestamp
in interface RegionFactory
buildEntityRegion
public EntityRegion buildEntityRegion(java.lang.String regionName,
java.util.Properties properties,
CacheDataDescription metadata)
throws CacheException
- Specified by:
buildEntityRegion
in interface RegionFactory
- Throws:
CacheException
buildCollectionRegion
public CollectionRegion buildCollectionRegion(java.lang.String regionName,
java.util.Properties properties,
CacheDataDescription metadata)
throws CacheException
- Specified by:
buildCollectionRegion
in interface RegionFactory
- Throws:
CacheException
buildQueryResultsRegion
public QueryResultsRegion buildQueryResultsRegion(java.lang.String regionName,
java.util.Properties properties)
throws CacheException
- Specified by:
buildQueryResultsRegion
in interface RegionFactory
- Throws:
CacheException
buildTimestampsRegion
public TimestampsRegion buildTimestampsRegion(java.lang.String regionName,
java.util.Properties properties)
throws CacheException
- Specified by:
buildTimestampsRegion
in interface RegionFactory
- Throws:
CacheException