Package org.hibernate.cache.internal
Class SimpleCacheKeysFactory
java.lang.Object
org.hibernate.cache.internal.SimpleCacheKeysFactory
- All Implemented Interfaces:
CacheKeysFactory
Factory that does not fill in the entityName or role
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateCollectionKey
(Object id, CollectionPersister persister, SessionFactoryImplementor factory, String tenantIdentifier) createEntityKey
(Object id, EntityPersister persister, SessionFactoryImplementor factory, String tenantIdentifier) createNaturalIdKey
(Object naturalIdValues, EntityPersister persister, SharedSessionContractImplementor session) getCollectionId
(Object cacheKey) getEntityId
(Object cacheKey) getNaturalIdValues
(Object cacheKey)
-
Field Details
-
SHORT_NAME
- See Also:
-
INSTANCE
-
-
Constructor Details
-
SimpleCacheKeysFactory
public SimpleCacheKeysFactory()
-
-
Method Details
-
createCollectionKey
public Object createCollectionKey(Object id, CollectionPersister persister, SessionFactoryImplementor factory, String tenantIdentifier) - Specified by:
createCollectionKey
in interfaceCacheKeysFactory
-
createEntityKey
public Object createEntityKey(Object id, EntityPersister persister, SessionFactoryImplementor factory, String tenantIdentifier) - Specified by:
createEntityKey
in interfaceCacheKeysFactory
-
getEntityId
- Specified by:
getEntityId
in interfaceCacheKeysFactory
-
getCollectionId
- Specified by:
getCollectionId
in interfaceCacheKeysFactory
-
getNaturalIdValues
- Specified by:
getNaturalIdValues
in interfaceCacheKeysFactory
-