Top Description Fields Constructors Methods
org.hibernate.cache.impl.bridge

public abstract Class BaseTransactionalDataRegionAdapter

extends BaseRegionAdapter
implements TransactionalDataRegion
Class Inheritance
All Implemented Interfaces
org.hibernate.cache.TransactionalDataRegion, org.hibernate.cache.Region
Known Direct Subclasses
org.hibernate.cache.impl.bridge.CollectionRegionAdapter, org.hibernate.cache.impl.bridge.EntityRegionAdapter
Imports
org.hibernate.cache.TransactionalDataRegion, .Cache, .CacheDataDescription, org.hibernate.cfg.Settings

Defines contract for regions which hold transactionally-managed data.

The data is not transactionally managed within the region; merely it is transactionally-managed in relation to its association with a particular org.hibernate.Session.

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
protected final CacheDataDescription
Inherited from org.hibernate.cache.impl.bridge.BaseRegionAdapter:
settingsunderlyingCache

Constructor Summary

AccessConstructor and Description
protected
BaseTransactionalDataRegionAdapter(Cache underlyingCache, Settings settings, CacheDataDescription metadata)

Deprecated as a consequence of Cache being deprecated.

Method Summary

Modifier and TypeMethod and Description
public CacheDataDescription
public boolean
isTransactionAware()

Implements org.hibernate.cache.TransactionalDataRegion.isTransactionAware.

Is the underlying cache implementation aware of (and "participating in") ongoing JTA transactions?
Inherited from org.hibernate.cache.impl.bridge.BaseRegionAdapter:
clearcontainsdestroygetElementCountInMemorygetElementCountOnDiskgetNamegetSizeInMemorygetTimeoutnextTimestamptoMap

Field Detail

metadataback to summary
protected final CacheDataDescription metadata

Constructor Detail

BaseTransactionalDataRegionAdapterback to summary
protected BaseTransactionalDataRegionAdapter(Cache underlyingCache, Settings settings, CacheDataDescription metadata)

Deprecated

as a consequence of Cache being deprecated. See corresponding docs for further information.

Method Detail

getCacheDataDescriptionback to summary
public CacheDataDescription getCacheDataDescription()

Implements org.hibernate.cache.TransactionalDataRegion.getCacheDataDescription.

isTransactionAwareback to summary
public boolean isTransactionAware()

Implements org.hibernate.cache.TransactionalDataRegion.isTransactionAware.

Doc from org.hibernate.cache.TransactionalDataRegion.isTransactionAware.

Is the underlying cache implementation aware of (and "participating in") ongoing JTA transactions?

Regions which report that they are transaction-aware are considered "synchronous", in that we assume we can immediately (i.e. synchronously) write the changes to the cache and that the cache will properly manage application of the written changes within the bounds of ongoing JTA transactions. Conversely, regions reporting false are considered "asynchronous", where it is assumed that changes must be manually delayed by Hibernate until we are certain that the current transaction is successful (i.e. maintaining READ_COMMITTED isolation).

Returns:boolean

True if transaction aware; false otherwise.