Top Description Methods
org.hibernate.cache.spi

public Interface CacheKeysFactory

Known Direct Implementers
org.hibernate.cache.internal.DefaultCacheKeysFactory, org.hibernate.cache.internal.SimpleCacheKeysFactory
Imports
org.hibernate.engine.spi.SessionFactoryImplementor, .SharedSessionContractImplementor, org.hibernate.persister.collection.CollectionPersister, org.hibernate.persister.entity.EntityPersister

A factory for keys into the second-level cache.
Author
Radim Vansa <[email protected]>

Method Summary

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

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

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
public Object
public Object
public Object
getEntityId(Object cacheKey)

public Object

Method Detail

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

Deprecated

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

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

Deprecated

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

createNaturalIdKeyback to summary
public Object createNaturalIdKey(Object naturalIdValues, EntityPersister persister, SharedSessionContractImplementor session)
getCollectionIdback to summary
public Object getCollectionId(Object cacheKey)
getEntityIdback to summary
public Object getEntityId(Object cacheKey)
getNaturalIdValuesback to summary
public Object getNaturalIdValues(Object cacheKey)