类 DirectAccessRegionTemplate
- java.lang.Object
-
- org.hibernate.cache.spi.support.AbstractRegion
-
- org.hibernate.cache.spi.support.DirectAccessRegionTemplate
-
- 所有已实现的接口:
DirectAccessRegion,Region
public abstract class DirectAccessRegionTemplate extends AbstractRegion implements DirectAccessRegion
Bridge between DirectAccessRegion and StorageAccess- 作者:
- Steve Ebersole
-
-
构造器概要
构造器 构造器 说明 DirectAccessRegionTemplate(String name, RegionFactory regionFactory, StorageAccess storageAccess)Constructs aDirectAccessRegionTemplate.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidclear()Clear all data cached in the regionvoiddestroy()The "end state" contract of the region's lifecycle.ObjectgetFromCache(Object key, SharedSessionContractImplementor session)Get value by keyStorageAccessgetStorageAccess()voidputIntoCache(Object key, Object value, SharedSessionContractImplementor session)Put a value by key-
从类继承的方法 org.hibernate.cache.spi.support.AbstractRegion
getName, getRegionFactory
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 org.hibernate.cache.spi.Region
getName, getRegionFactory
-
-
-
-
构造器详细资料
-
DirectAccessRegionTemplate
public DirectAccessRegionTemplate(String name, RegionFactory regionFactory, StorageAccess storageAccess)
Constructs aDirectAccessRegionTemplate.- 参数:
name- - the unqualified region nameregionFactory- - the region factorystorageAccess- - the cache storage access strategy
-
-
方法详细资料
-
getStorageAccess
public StorageAccess getStorageAccess()
-
getFromCache
public Object getFromCache(Object key, SharedSessionContractImplementor session)
从接口复制的说明:DirectAccessRegionGet value by key- 指定者:
getFromCache在接口中DirectAccessRegion
-
putIntoCache
public void putIntoCache(Object key, Object value, SharedSessionContractImplementor session)
从接口复制的说明:DirectAccessRegionPut a value by key- 指定者:
putIntoCache在接口中DirectAccessRegion
-
clear
public void clear()
从接口复制的说明:RegionClear all data cached in the region
-
destroy
public void destroy()
从接口复制的说明:RegionThe "end state" contract of the region's lifecycle. Called duringSessionFactory.close()to give the region a chance to cleanup.
-
-