Package org.hibernate.cache.spi
Interface DirectAccessRegion
- All Superinterfaces:
Region
- All Known Subinterfaces:
QueryResultsRegion,TimestampsRegion
- All Known Implementing Classes:
DirectAccessRegionTemplate,QueryResultsRegionTemplate,TimestampsRegionTemplate
public interfaceDirectAccessRegionextendsRegion
SpecializedRegionwhose data is accessed directly, without the need for key/item wrapping. Does not define a "remove" operation because Hibernate's query and timestamps caches only ever "get" and "put".
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectgetFromCache(Object key,SharedSessionContractImplementor session)Get value by keyvoidputIntoCache(Object key,Object value,SharedSessionContractImplementor session)Put a value by keyMethods inherited from interface org.hibernate.cache.spi.Region
clear,destroy,getName,getRegionFactory
Method Detail
getFromCache
Object getFromCache(Object key,SharedSessionContractImplementor session)
Get value by key
putIntoCache
void putIntoCache(Object key,Object value,SharedSessionContractImplementor session)
Put a value by key