Top Description Fields Constructors Methods
org.hibernate.cache.internal

public Class SimpleCacheKeysFactory

extends Object
implements CacheKeysFactory
Class Inheritance
All Implemented Interfaces
org.hibernate.cache.spi.CacheKeysFactory
Imports
org.hibernate.cache.spi.CacheKeysFactory, org.hibernate.engine.spi.SessionFactoryImplementor, .SharedSessionContractImplementor, org.hibernate.persister.collection.CollectionPersister, org.hibernate.persister.entity.EntityPersister

Factory that does not fill in the entityName or role
Author
Radim Vansa <[email protected]>

Field Summary

Modifier and TypeField and Description
public static CacheKeysFactory
public static final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Object
createCollectionKey(Object id, CollectionPersister persister, SessionFactoryImplementor factory, String tenantIdentifier)

Implements org.hibernate.cache.spi.CacheKeysFactory.createCollectionKey.

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
public Object
createEntityKey(Object id, EntityPersister persister, SessionFactoryImplementor factory, String tenantIdentifier)

Implements org.hibernate.cache.spi.CacheKeysFactory.createEntityKey.

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
public Object
public Object
public Object
public Object[]
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
public static CacheKeysFactory INSTANCE
SHORT_NAMEback to summary
public static final String SHORT_NAME

Constructor Detail

SimpleCacheKeysFactoryback to summary
public SimpleCacheKeysFactory()

Method Detail

createCollectionKeyback to summary
public Object createCollectionKey(Object id, CollectionPersister persister, SessionFactoryImplementor factory, String tenantIdentifier)

Implements org.hibernate.cache.spi.CacheKeysFactory.createCollectionKey.

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

Annotations
@Override
createEntityKeyback to summary
public Object createEntityKey(Object id, EntityPersister persister, SessionFactoryImplementor factory, String tenantIdentifier)

Implements org.hibernate.cache.spi.CacheKeysFactory.createEntityKey.

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

Annotations
@Override
createNaturalIdKeyback to summary
public Object createNaturalIdKey(Object[] naturalIdValues, EntityPersister persister, SharedSessionContractImplementor session)

Implements org.hibernate.cache.spi.CacheKeysFactory.createNaturalIdKey.

Annotations
@Override
getCollectionIdback to summary
public Object getCollectionId(Object cacheKey)

Implements org.hibernate.cache.spi.CacheKeysFactory.getCollectionId.

Annotations
@Override
getEntityIdback to summary
public Object getEntityId(Object cacheKey)

Implements org.hibernate.cache.spi.CacheKeysFactory.getEntityId.

Annotations
@Override
getNaturalIdValuesback to summary
public Object[] getNaturalIdValues(Object cacheKey)

Implements org.hibernate.cache.spi.CacheKeysFactory.getNaturalIdValues.

Annotations
@Override