org.hibernate.cache
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.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.io.Serializable getKey()
public java.lang.String getEntityOrRoleName()
Copyright © 2014. All Rights Reserved.