public abstract class BaseCollectionDataAccess extends AbstractCachedDomainDataAccess implements org.hibernate.cache.spi.access.CollectionDataAccess
| Constructor and Description |
|---|
BaseCollectionDataAccess(org.hibernate.cache.spi.support.DomainDataRegionImpl region,
org.hibernate.metamodel.model.domain.spi.PersistentCollectionDescriptor collectionDescriptor) |
| Modifier and Type | Method and Description |
|---|---|
Object |
generateCacheKey(Object id,
org.hibernate.metamodel.model.domain.spi.PersistentCollectionDescriptor persister,
org.hibernate.engine.spi.SessionFactoryImplementor factory,
String tenantIdentifier) |
Object |
getCacheKeyId(Object cacheKey) |
org.hibernate.metamodel.model.domain.spi.PersistentCollectionDescriptor |
getCollectionDescriptor() |
org.hibernate.cache.spi.access.SoftLock |
lockItem(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
Object version) |
org.hibernate.cache.spi.access.SoftLock |
lockRegion() |
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) |
addToCache, clearCache, contains, destroy, evict, evictAll, get, getData, getFromCache, getRegion, putFromLoad, putFromLoad, remove, removeAll, removeFromCachepublic BaseCollectionDataAccess(org.hibernate.cache.spi.support.DomainDataRegionImpl region,
org.hibernate.metamodel.model.domain.spi.PersistentCollectionDescriptor collectionDescriptor)
public org.hibernate.metamodel.model.domain.spi.PersistentCollectionDescriptor getCollectionDescriptor()
public Object generateCacheKey(Object id, org.hibernate.metamodel.model.domain.spi.PersistentCollectionDescriptor persister, org.hibernate.engine.spi.SessionFactoryImplementor factory, String tenantIdentifier)
generateCacheKey in interface org.hibernate.cache.spi.access.CollectionDataAccesspublic Object getCacheKeyId(Object cacheKey)
getCacheKeyId in interface org.hibernate.cache.spi.access.CollectionDataAccesspublic org.hibernate.cache.spi.access.SoftLock lockItem(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
Object version)
lockItem in interface org.hibernate.cache.spi.access.CachedDomainDataAccesspublic void unlockItem(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
org.hibernate.cache.spi.access.SoftLock lock)
unlockItem in interface org.hibernate.cache.spi.access.CachedDomainDataAccesspublic org.hibernate.cache.spi.access.SoftLock lockRegion()
lockRegion in interface org.hibernate.cache.spi.access.CachedDomainDataAccesspublic void unlockRegion(org.hibernate.cache.spi.access.SoftLock lock)
unlockRegion in interface org.hibernate.cache.spi.access.CachedDomainDataAccessCopyright © 2001-2019 Red Hat, Inc. All Rights Reserved.