public abstract class AbstractCacheKey extends Object implements CacheKey
| Modifier and Type | Field and Description |
|---|---|
protected int |
cachedHash |
protected String |
tenantId |
protected Object |
typeCode
Each key has value and type.
|
protected CacheUnitValueType |
valueType
Defines if associated value is SERIALIZABLE or NON_SERIALIZABLE.
|
| Constructor and Description |
|---|
AbstractCacheKey(CacheUnitValueType valueType,
Object typeCode,
String tenantId)
Creates key for supplied type and value type.
|
AbstractCacheKey(Object typeCode,
String tenantId)
Creates NON_SERIALIZABLE key for supplied type.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
CacheUnitValueType |
getCacheValueType()
gets value type.
|
String |
getTenantId()
Gets tenant
|
Object |
getTypeCode()
Gets code from typesystem.
|
int |
hashCode() |
String |
toString() |
protected final CacheUnitValueType valueType
protected final String tenantId
protected int cachedHash
protected final Object typeCode
public AbstractCacheKey(Object typeCode, String tenantId)
public AbstractCacheKey(CacheUnitValueType valueType, Object typeCode, String tenantId)
public CacheUnitValueType getCacheValueType()
getCacheValueType in interface CacheKeypublic Object getTypeCode()
getTypeCode in interface CacheKeypublic String getTenantId()
CacheKeygetTenantId in interface CacheKeyCopyright © 2017 SAP SE. All Rights Reserved.