public abstract class AbstractCacheKey extends java.lang.Object implements CacheKey
| Modifier and Type | Field and Description |
|---|---|
protected int |
cachedHash |
protected java.lang.String |
tenantId |
protected java.lang.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,
java.lang.Object typeCode,
java.lang.String tenantId)
Creates key for supplied type and value type.
|
AbstractCacheKey(java.lang.Object typeCode,
java.lang.String tenantId)
Creates NON_SERIALIZABLE key for supplied type.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
CacheUnitValueType |
getCacheValueType()
gets value type.
|
java.lang.String |
getTenantId()
Gets tenant
|
java.lang.Object |
getTypeCode()
Gets code from typesystem.
|
int |
hashCode() |
java.lang.String |
toString() |
protected final CacheUnitValueType valueType
protected final java.lang.String tenantId
protected int cachedHash
protected final java.lang.Object typeCode
public AbstractCacheKey(java.lang.Object typeCode,
java.lang.String tenantId)
public AbstractCacheKey(CacheUnitValueType valueType, java.lang.Object typeCode, java.lang.String tenantId)
public CacheUnitValueType getCacheValueType()
getCacheValueType in interface CacheKeypublic java.lang.Object getTypeCode()
getTypeCode in interface CacheKeypublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String getTenantId()
CacheKeygetTenantId in interface CacheKeypublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2018 SAP SE. All Rights Reserved.