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

public Class CollectionNonStrictReadWriteAccess

extends AbstractCollectionDataAccess
Class Inheritance
Imports
org.hibernate.cache.cfg.spi.CollectionDataCachingConfig, org.hibernate.cache.spi.CacheKeysFactory, .DomainDataRegion, org.hibernate.cache.spi.access.AccessType, .SoftLock, org.hibernate.engine.spi.SharedSessionContractImplementor

Standard support for org.hibernate.cache.spi.access.CollectionDataAccess using the org.hibernate.cache.spi.access.AccessType#NONSTRICT_READ_WRITE access type.
Author
Steve Ebersole

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public AccessType
public void
unlockItem(SharedSessionContractImplementor
Current session.
session
,
Object
The item key
key
,
SoftLock
The lock previously obtained from lockItem
lock
)

Overrides org.hibernate.cache.spi.support.AbstractCollectionDataAccess.unlockItem.

Implements org.hibernate.cache.spi.access.CachedDomainDataAccess.unlockItem.

Called when we have finished the attempted update/delete (which may or may not have been successful), after transaction completion.
Inherited from org.hibernate.cache.spi.support.AbstractCollectionDataAccess:
generateCacheKeygetCacheKeyIdlockItemlockRegionunlockRegion

Constructor Detail

CollectionNonStrictReadWriteAccessback to summary
public CollectionNonStrictReadWriteAccess(DomainDataRegion region, CacheKeysFactory keysFactory, DomainDataStorageAccess storageAccess, CollectionDataCachingConfig config)

Method Detail

getAccessTypeback to summary
public AccessType getAccessType()

Implements org.hibernate.cache.spi.access.CachedDomainDataAccess.getAccessType.

Doc from org.hibernate.cache.spi.access.CachedDomainDataAccess.getAccessType.

The type of access implemented

Annotations
@Override
unlockItemback to summary
public void unlockItem(SharedSessionContractImplementor session, Object key, SoftLock lock)

Overrides org.hibernate.cache.spi.support.AbstractCollectionDataAccess.unlockItem.

Implements org.hibernate.cache.spi.access.CachedDomainDataAccess.unlockItem.

Doc from org.hibernate.cache.spi.access.CachedDomainDataAccess.unlockItem.

Called when we have finished the attempted update/delete (which may or may not have been successful), after transaction completion. This method is used by "asynchronous" concurrency strategies.

Parameters
session:SharedSessionContractImplementor

Current session.

key:Object

The item key

lock:SoftLock

The lock previously obtained from lockItem

Annotations
@Override