public class CacheKey extends Object implements Serializable
Constructor and Description |
---|
CacheKey(Serializable id,
Type type,
String entityOrRoleName,
String tenantId,
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() |
String |
getTenantId() |
int |
hashCode() |
String |
toString() |
public CacheKey(Serializable id, Type type, String entityOrRoleName, 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 Serializable getKey()
public String getEntityOrRoleName()
public String getTenantId()
Copyright © 2018 JBoss by Red Hat. All rights reserved.