Package org.hibernate.cache.spi
Interface CacheKeysFactory
-
- All Known Implementing Classes:
DefaultCacheKeysFactory
,SimpleCacheKeysFactory
public interface CacheKeysFactory
A factory for keys into the second-level cache.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
createCollectionKey(Object id, CollectionPersister persister, SessionFactoryImplementor factory, String tenantIdentifier)
Object
createEntityKey(Object id, EntityPersister persister, SessionFactoryImplementor factory, String tenantIdentifier)
Object
createNaturalIdKey(Object naturalIdValues, EntityPersister persister, SharedSessionContractImplementor session)
Object
getCollectionId(Object cacheKey)
Object
getEntityId(Object cacheKey)
Object
getNaturalIdValues(Object cacheKey)
-
-
-
Method Detail
-
createCollectionKey
Object createCollectionKey(Object id, CollectionPersister persister, SessionFactoryImplementor factory, String tenantIdentifier)
-
createEntityKey
Object createEntityKey(Object id, EntityPersister persister, SessionFactoryImplementor factory, String tenantIdentifier)
-
createNaturalIdKey
Object createNaturalIdKey(Object naturalIdValues, EntityPersister persister, SharedSessionContractImplementor session)
-
-