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.
|
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()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.