@Deprecated public abstract class AbstractRegioncacheUnit extends java.lang.Object implements CacheKey, CacheValueLoader
| Modifier and Type | Field and Description |
|---|---|
protected CacheKey |
cacheKey
Deprecated.
|
protected java.lang.Object |
typeCode
Deprecated.
Each key has value and type.
|
| Constructor and Description |
|---|
AbstractRegioncacheUnit()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
addedToCacheBeforeComputation()
Deprecated.
|
static java.lang.Object |
calculateKeyCode(java.lang.Object[] key)
Deprecated.
|
CacheUnitValueType |
getCacheValueType()
Deprecated.
gets value type.
|
CacheKey |
getKey()
Deprecated.
CacheKey interface implementation
|
abstract java.lang.Object[] |
getKeyAsArray()
Deprecated.
AbstractCacheUnit methods
|
CacheValueLoader |
getLoader()
Deprecated.
|
java.lang.String |
getTenantId()
Deprecated.
Gets tenant
|
abstract java.lang.String |
getTenantID()
Deprecated.
|
java.lang.Object |
getTypeCode()
Deprecated.
Gets code from typesystem.
|
java.lang.Object |
load(CacheKey key)
Deprecated.
We do not perform compute not to hit database several times from different threads.
Another reason is to keep lifecycle of hooks in the same order. |
java.lang.String |
toString()
Deprecated.
|
protected java.lang.Object typeCode
protected CacheKey cacheKey
public abstract java.lang.Object[] getKeyAsArray()
public abstract void addedToCacheBeforeComputation()
public abstract java.lang.String getTenantID()
public final java.lang.Object load(CacheKey key) throws CacheValueLoadException
load in interface CacheValueLoaderCacheValueLoadExceptionpublic final CacheValueLoader getLoader()
public final CacheKey getKey()
public final java.lang.String getTenantId()
CacheKeygetTenantId in interface CacheKeypublic java.lang.Object getTypeCode()
getTypeCode in interface CacheKeypublic final CacheUnitValueType getCacheValueType()
CacheKeygetCacheValueType in interface CacheKeypublic java.lang.String toString()
toString in class java.lang.Objectpublic static java.lang.Object calculateKeyCode(java.lang.Object[] key)
Copyright © 2018 SAP SE. All Rights Reserved.