org.hibernate.cache.internal
Class TenantAwareCacheKey
java.lang.Object
org.hibernate.cache.spi.CacheKey
org.hibernate.cache.internal.TenantAwareCacheKey
- All Implemented Interfaces:
- Serializable
public class TenantAwareCacheKey
- extends CacheKey
Variation of CacheKey to be used when multi-tenancy is applied.
The tenantId field was not simply added to the superclass because of performance considerations:
CacheKey instances are have a very high allocation frequency and this field would enlarge the
size by 50%.
- See Also:
- Serialized Form
TenantAwareCacheKey
public TenantAwareCacheKey(Serializable id,
Type type,
String entityOrRoleName,
SessionFactoryImplementor factory,
String tenantId)
getTenantId
public String getTenantId()
- Overrides:
getTenantId in class CacheKey
Copyright © 2001-2014 Red Hat, Inc. All Rights Reserved.