public class CacheKey extends Object implements Serializable
| Constructor and Description |
|---|
CacheKey(Serializable id,
Type type,
String entityOrRoleName,
EntityMode entityMode,
SessionFactoryImplementor factory)
Construct a new key for a collection or entity instance.
|
public CacheKey(Serializable id, Type type, String entityOrRoleName, EntityMode entityMode, SessionFactoryImplementor factory)
id - The identifier associated with the cached datatype - The Hibernate type mappingentityOrRoleName - The entity or collection-role name.entityMode - The entiyt mode of the originating sessionfactory - The session factory for which we are cachingpublic Serializable getKey()
public String getEntityOrRoleName()
Copyright © 2002-2012 Red Hat Middleware, LLC. All Rights Reserved