public class IgniteNaturalIdDataAccess extends IgniteCachedDomainDataAccess implements org.hibernate.cache.spi.access.NaturalIdDataAccess
NaturalIdDataAccess
for Hibernate integration.stgy
cache, ignite
Constructor and Description |
---|
IgniteNaturalIdDataAccess(HibernateAccessStrategyAdapter stgy,
org.hibernate.cache.spi.access.AccessType accessType,
org.hibernate.cache.spi.RegionFactory regionFactory,
org.hibernate.cache.spi.DomainDataRegion domainDataRegion,
Ignite ignite,
HibernateCacheProxy cache) |
Modifier and Type | Method and Description |
---|---|
boolean |
afterInsert(org.hibernate.engine.spi.SharedSessionContractImplementor ses,
Object key,
Object val) |
boolean |
afterUpdate(org.hibernate.engine.spi.SharedSessionContractImplementor ses,
Object key,
Object val,
org.hibernate.cache.spi.access.SoftLock lock) |
Object |
generateCacheKey(Object[] naturalIdValues,
org.hibernate.persister.entity.EntityPersister persister,
org.hibernate.engine.spi.SharedSessionContractImplementor ses) |
org.hibernate.cache.spi.access.AccessType |
getAccessType() |
Object[] |
getNaturalIdValues(Object cacheKey) |
boolean |
insert(org.hibernate.engine.spi.SharedSessionContractImplementor ses,
Object key,
Object val) |
boolean |
update(org.hibernate.engine.spi.SharedSessionContractImplementor ses,
Object key,
Object val) |
contains, evict, evictAll, get, getRegion, lockItem, lockRegion, putFromLoad, putFromLoad, remove, removeAll, unlockItem, unlockRegion
clear, destroy, getElementCountInMemory, getElementCountOnDisk, getSizeInMemory
getName, getRegionFactory
public IgniteNaturalIdDataAccess(HibernateAccessStrategyAdapter stgy, org.hibernate.cache.spi.access.AccessType accessType, org.hibernate.cache.spi.RegionFactory regionFactory, org.hibernate.cache.spi.DomainDataRegion domainDataRegion, Ignite ignite, HibernateCacheProxy cache)
public org.hibernate.cache.spi.access.AccessType getAccessType()
getAccessType
in interface org.hibernate.cache.spi.access.CachedDomainDataAccess
public Object generateCacheKey(Object[] naturalIdValues, org.hibernate.persister.entity.EntityPersister persister, org.hibernate.engine.spi.SharedSessionContractImplementor ses)
generateCacheKey
in interface org.hibernate.cache.spi.access.NaturalIdDataAccess
public Object[] getNaturalIdValues(Object cacheKey)
getNaturalIdValues
in interface org.hibernate.cache.spi.access.NaturalIdDataAccess
public boolean insert(org.hibernate.engine.spi.SharedSessionContractImplementor ses, Object key, Object val) throws org.hibernate.cache.CacheException
insert
in interface org.hibernate.cache.spi.access.NaturalIdDataAccess
org.hibernate.cache.CacheException
public boolean afterInsert(org.hibernate.engine.spi.SharedSessionContractImplementor ses, Object key, Object val) throws org.hibernate.cache.CacheException
afterInsert
in interface org.hibernate.cache.spi.access.NaturalIdDataAccess
org.hibernate.cache.CacheException
public boolean update(org.hibernate.engine.spi.SharedSessionContractImplementor ses, Object key, Object val) throws org.hibernate.cache.CacheException
update
in interface org.hibernate.cache.spi.access.NaturalIdDataAccess
org.hibernate.cache.CacheException
public boolean afterUpdate(org.hibernate.engine.spi.SharedSessionContractImplementor ses, Object key, Object val, org.hibernate.cache.spi.access.SoftLock lock) throws org.hibernate.cache.CacheException
afterUpdate
in interface org.hibernate.cache.spi.access.NaturalIdDataAccess
org.hibernate.cache.CacheException
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024