public class SimpleCacheKeysFactory extends Object implements CacheKeysFactory
Modifier and Type | Field and Description |
---|---|
static CacheKeysFactory |
INSTANCE |
static String |
SHORT_NAME |
Constructor and Description |
---|
SimpleCacheKeysFactory() |
Modifier and Type | Method and 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,
SessionImplementor session) |
Object |
getCollectionId(Object cacheKey) |
Object |
getEntityId(Object cacheKey) |
Object[] |
getNaturalIdValues(Object cacheKey) |
public static final String SHORT_NAME
public static CacheKeysFactory INSTANCE
public Object createCollectionKey(Object id, CollectionPersister persister, SessionFactoryImplementor factory, String tenantIdentifier)
createCollectionKey
in interface CacheKeysFactory
public Object createEntityKey(Object id, EntityPersister persister, SessionFactoryImplementor factory, String tenantIdentifier)
createEntityKey
in interface CacheKeysFactory
public Object createNaturalIdKey(Object[] naturalIdValues, EntityPersister persister, SessionImplementor session)
createNaturalIdKey
in interface CacheKeysFactory
public Object getEntityId(Object cacheKey)
getEntityId
in interface CacheKeysFactory
public Object getCollectionId(Object cacheKey)
getCollectionId
in interface CacheKeysFactory
public Object[] getNaturalIdValues(Object cacheKey)
getNaturalIdValues
in interface CacheKeysFactory
Copyright © 2017 JBoss by Red Hat. All rights reserved.