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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
String |
getEntityOrRoleName() |
Serializable |
getKey() |
int |
hashCode() |
String |
toString() |
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-2015 Red Hat Middleware, LLC. All Rights Reserved