Top Description Fields Constructors Methods
org.hibernate.cache.spi.support

public abstract Class DirectAccessRegionTemplate

extends AbstractRegion
implements DirectAccessRegion
Class Inheritance
All Implemented Interfaces
org.hibernate.cache.spi.DirectAccessRegion, org.hibernate.cache.spi.Region
Known Direct Subclasses
org.hibernate.cache.spi.support.QueryResultsRegionTemplate, org.hibernate.cache.spi.support.TimestampsRegionTemplate
Imports
org.hibernate.cache.spi.DirectAccessRegion, .RegionFactory, org.hibernate.engine.spi.SharedSessionContractImplementor

Bridge between DirectAccessRegion and StorageAccess
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final StorageAccess

Constructor Summary

AccessConstructor and Description
public
DirectAccessRegionTemplate(String
- the unqualified region name
name
,
RegionFactory
- the region factory
regionFactory
,
StorageAccess
- the cache storage access strategy
storageAccess
)

Constructs a DirectAccessRegionTemplate.

Method Summary

Modifier and TypeMethod and Description
public void
clear()

Implements org.hibernate.cache.spi.Region.clear.

Clear all data cached in the region
public void
destroy()

Implements org.hibernate.cache.spi.Region.destroy.

The "end state" contract of the region's lifecycle.
public Object
public StorageAccess
public void
Inherited from org.hibernate.cache.spi.support.AbstractRegion:
getNamegetRegionFactory

Field Detail

storageAccessback to summary
private final StorageAccess storageAccess

Constructor Detail

DirectAccessRegionTemplateback to summary
public DirectAccessRegionTemplate(String name, RegionFactory regionFactory, StorageAccess storageAccess)

Constructs a DirectAccessRegionTemplate.

Parameters
name:String

- the unqualified region name

regionFactory:RegionFactory

- the region factory

storageAccess:StorageAccess

- the cache storage access strategy

Method Detail

clearback to summary
public void clear()

Implements org.hibernate.cache.spi.Region.clear.

Doc from org.hibernate.cache.spi.Region.clear.

Clear all data cached in the region

Annotations
@Override
destroyback to summary
public void destroy()

Implements org.hibernate.cache.spi.Region.destroy.

Doc from org.hibernate.cache.spi.Region.destroy.

The "end state" contract of the region's lifecycle. Called during org.hibernate.SessionFactory#close() to give the region a chance to cleanup.

Annotations
@Override
getFromCacheback to summary
public Object getFromCache(Object key, SharedSessionContractImplementor session)

Implements org.hibernate.cache.spi.DirectAccessRegion.getFromCache.

Doc from org.hibernate.cache.spi.DirectAccessRegion.getFromCache.

Get value by key

Annotations
@Override
getStorageAccessback to summary
public StorageAccess getStorageAccess()
putIntoCacheback to summary
public void putIntoCache(Object key, Object value, SharedSessionContractImplementor session)

Implements org.hibernate.cache.spi.DirectAccessRegion.putIntoCache.

Doc from org.hibernate.cache.spi.DirectAccessRegion.putIntoCache.

Put a value by key

Annotations
@Override