Interface CollectionDataAccess

All Superinterfaces:
CachedDomainDataAccess
All Known Implementing Classes:
AbstractCollectionDataAccess, CollectionNonStrictReadWriteAccess, CollectionReadOnlyAccess, CollectionReadWriteAccess, CollectionTransactionAccess

public interface CollectionDataAccess extends CachedDomainDataAccess
Contract for managing transactional and concurrent access to cached collection data. For cached collection data, all modification actions actually just invalidate the entry(s). The call sequence here is: CachedDomainDataAccess.lockItem(SharedSessionContractImplementor, Object, Object) then CachedDomainDataAccess.remove(SharedSessionContractImplementor, Object) then CachedDomainDataAccess.unlockItem(SharedSessionContractImplementor, Object, SoftLock)

There is another usage pattern that is used to invalidate entries afterQuery performing "bulk" HQL/SQL operations: CachedDomainDataAccess.lockRegion() then CachedDomainDataAccess.removeAll(SharedSessionContractImplementor) then CachedDomainDataAccess.unlockRegion(SoftLock)