Package org.hibernate.cache.internal
Class SimpleCacheKeysFactory
- java.lang.Object
-
- org.hibernate.cache.internal.SimpleCacheKeysFactory
-
- All Implemented Interfaces:
CacheKeysFactory
public class SimpleCacheKeysFactory extends Object implements CacheKeysFactory
Factory that does not fill in the entityName or role
-
-
Field Summary
Fields Modifier and Type Field Description static CacheKeysFactoryINSTANCEstatic StringSHORT_NAME
-
Constructor Summary
Constructors Constructor Description SimpleCacheKeysFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectcreateCollectionKey(Object id, CollectionPersister persister, SessionFactoryImplementor factory, String tenantIdentifier)ObjectcreateEntityKey(Object id, EntityPersister persister, SessionFactoryImplementor factory, String tenantIdentifier)ObjectcreateNaturalIdKey(Object naturalIdValues, EntityPersister persister, SharedSessionContractImplementor session)ObjectgetCollectionId(Object cacheKey)ObjectgetEntityId(Object cacheKey)ObjectgetNaturalIdValues(Object cacheKey)
-
-
-
Field Detail
-
SHORT_NAME
public static final String SHORT_NAME
- See Also:
- Constant Field Values
-
INSTANCE
public static CacheKeysFactory INSTANCE
-
-
Method Detail
-
createCollectionKey
public Object createCollectionKey(Object id, CollectionPersister persister, SessionFactoryImplementor factory, String tenantIdentifier)
- Specified by:
createCollectionKeyin interfaceCacheKeysFactory
-
createEntityKey
public Object createEntityKey(Object id, EntityPersister persister, SessionFactoryImplementor factory, String tenantIdentifier)
- Specified by:
createEntityKeyin interfaceCacheKeysFactory
-
createNaturalIdKey
public Object createNaturalIdKey(Object naturalIdValues, EntityPersister persister, SharedSessionContractImplementor session)
- Specified by:
createNaturalIdKeyin interfaceCacheKeysFactory
-
getEntityId
public Object getEntityId(Object cacheKey)
- Specified by:
getEntityIdin interfaceCacheKeysFactory
-
getCollectionId
public Object getCollectionId(Object cacheKey)
- Specified by:
getCollectionIdin interfaceCacheKeysFactory
-
getNaturalIdValues
public Object getNaturalIdValues(Object cacheKey)
- Specified by:
getNaturalIdValuesin interfaceCacheKeysFactory
-
-