public class CacheKey
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
CacheKey(java.io.Serializable id,
Type type,
java.lang.String entityOrRoleName,
EntityMode entityMode,
SessionFactoryImplementor factory)
Construct a new key for a collection or entity instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other) |
java.lang.String |
getEntityOrRoleName() |
java.io.Serializable |
getKey() |
int |
hashCode() |
java.lang.String |
toString() |
public CacheKey(java.io.Serializable id,
Type type,
java.lang.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 java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.io.Serializable getKey()
public java.lang.String getEntityOrRoleName()
Copyright © 2013. All Rights Reserved.