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,
java.lang.String tenantId,
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() |
java.lang.String |
getTenantId() |
int |
hashCode() |
java.lang.String |
toString() |
public CacheKey(java.io.Serializable id,
Type type,
java.lang.String entityOrRoleName,
java.lang.String tenantId,
SessionFactoryImplementor factory)
id - The identifier associated with the cached datatype - The Hibernate type mappingentityOrRoleName - The entity or collection-role name.tenantId - The tenant identifier associated this data.factory - The session factory for which we are cachingpublic java.io.Serializable getKey()
public java.lang.String getEntityOrRoleName()
public java.lang.String getTenantId()
public boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2001-2013 Red Hat, Inc. All Rights Reserved.