Class AbstractCoherenceEntityDataAccess
java.lang.Object
com.oracle.coherence.hibernate.cache.v6.access.AbstractCoherenceEntityDataAccess
- Direct Known Subclasses:
CoherenceNonstrictReadWriteCollectionAccess
,CoherenceNonstrictReadWriteEntityAccess
,CoherenceNonstrictReadWriteNaturalIdAccess
,CoherenceReadOnlyCollectionAccess
,CoherenceReadOnlyEntityAccess
,CoherenceReadOnlyNaturalIdAccess
,CoherenceReadWriteCollectionAccess
,CoherenceReadWriteEntityAccess
,CoherenceReadWriteNaturalIdAccess
A AbstractCoherenceEntityDataAccess is an object implementing a strategy for accessing a cache region.
Strategies vary with respect to transaction isolation enforcement.
- Author:
- Randy Stafford, Gunnar Hillert
-
Field Summary
-
Constructor Summary
ConstructorDescriptionAbstractCoherenceEntityDataAccess
(org.hibernate.cache.spi.DomainDataRegion domainDataRegion, org.hibernate.cache.spi.support.DomainDataStorageAccess domainDataStorageAccess, Comparator<?> versionComparator) Complete constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
void
evictAll()
protected org.hibernate.cache.spi.CacheKeysFactory
protected CoherenceRegion
Returns the CoherenceRegion for which this is a AbstractCoherenceEntityDataAccess.protected org.hibernate.cache.spi.support.DomainDataStorageAccess
org.hibernate.cache.spi.DomainDataRegion
getUuid()
Returns the UUID of this AbstractCoherenceEntityDataAccess.protected Comparator<?>
org.hibernate.cache.spi.access.SoftLock
lockItem
(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object key, Object version) org.hibernate.cache.spi.access.SoftLock
newCacheValue
(Object value, Object version) Returns a new cache value with the argument value and version.long
Returns the next sequence number for a SoftLock acquired by this AbstractCoherenceEntityDataAccess.boolean
putFromLoad
(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object key, Object value, Object version) boolean
putFromLoad
(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object key, Object value, Object version, boolean minimalPutOverride) void
void
removeAll
(org.hibernate.engine.spi.SharedSessionContractImplementor session) toString()
}void
unlockItem
(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object key, org.hibernate.cache.spi.access.SoftLock lock) void
unlockRegion
(org.hibernate.cache.spi.access.SoftLock lock)
-
Field Details
-
TRANSACTIONAL_STRATEGY_NOT_SUPPORTED_MESSAGE
The log message indicating lack of support for the transactional cache concurrency strategy.- See Also:
-
WRITE_OPERATIONS_NOT_SUPPORTED_MESSAGE
A message indicating write operations are not supported in the read-only cache concurrency strategy.- See Also:
-
-
Constructor Details
-
AbstractCoherenceEntityDataAccess
public AbstractCoherenceEntityDataAccess(org.hibernate.cache.spi.DomainDataRegion domainDataRegion, org.hibernate.cache.spi.support.DomainDataStorageAccess domainDataStorageAccess, Comparator<?> versionComparator) Complete constructor.- Parameters:
domainDataRegion
- must not be nulldomainDataStorageAccess
- must not be nullversionComparator
- must not be null
-
-
Method Details
-
getCoherenceRegion
Returns the CoherenceRegion for which this is a AbstractCoherenceEntityDataAccess.- Returns:
- the CoherenceRegion for which this is a AbstractCoherenceEntityDataAccess
-
getRegion
public org.hibernate.cache.spi.DomainDataRegion getRegion() -
getDomainDataStorageAccess
protected org.hibernate.cache.spi.support.DomainDataStorageAccess getDomainDataStorageAccess() -
getVersionComparator
-
getCacheKeysFactory
protected org.hibernate.cache.spi.CacheKeysFactory getCacheKeysFactory() -
getUuid
Returns the UUID of this AbstractCoherenceEntityDataAccess.- Returns:
- the UUID of this AbstractCoherenceEntityDataAccess
-
nextSoftLockSequenceNumber
public long nextSoftLockSequenceNumber()Returns the next sequence number for a SoftLock acquired by this AbstractCoherenceEntityDataAccess.- Returns:
- the long that is the next sequence number for a SoftLock acquired by this AbstractCoherenceEntityDataAccess
-
toString
} -
lockRegion
public org.hibernate.cache.spi.access.SoftLock lockRegion() throws org.hibernate.cache.CacheException- Throws:
org.hibernate.cache.CacheException
-
unlockRegion
public void unlockRegion(org.hibernate.cache.spi.access.SoftLock lock) throws org.hibernate.cache.CacheException - Throws:
org.hibernate.cache.CacheException
-
evict
- Throws:
org.hibernate.cache.CacheException
-
evictAll
public void evictAll() throws org.hibernate.cache.CacheException- Throws:
org.hibernate.cache.CacheException
-
newCacheValue
Returns a new cache value with the argument value and version.- Parameters:
value
- the value for the new cache valueversion
- the version for the new cache value- Returns:
- a CoherenceRegion.Value with the argument value
-
contains
-