public class SingleAttributeCacheKeyCalculator extends java.lang.Object implements CacheKeyCalculatorI, java.io.Serializable
Constructor and Description |
---|
SingleAttributeCacheKeyCalculator(java.lang.Class<? extends BOI> _cachedClass,
java.lang.String _attributeName)
Constructor for SingleAttributeKeyCalculator
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
calculate(java.lang.Object value)
delegates to calculateKey(Object), is needed for implementing ServerSideEventInformationCalculatorI
|
java.lang.Object |
calculateKey(java.lang.Object value)
calculates a key used for caching the value from the given value
|
boolean |
canHandle(java.lang.Class c)
returns true, if this CacheKeyCalculatorI may calculate a key out of objects of the given class
|
java.lang.Class |
getCachedClass()
returns the class of the cached objects
|
java.lang.String |
getDescription()
Returns a String representation of this ServerSideEventInformationCalculatorI.
|
java.lang.String |
getKeyAttributeName()
Returns the attribute name of the attribute, the value of which is taken as key for caching a value.
|
public SingleAttributeCacheKeyCalculator(java.lang.Class<? extends BOI> _cachedClass, java.lang.String _attributeName)
public java.lang.String getKeyAttributeName()
CacheKeyCalculatorI
getKeyAttributeName
in interface CacheKeyCalculatorI
public java.lang.Object calculateKey(java.lang.Object value)
CacheKeyCalculatorI
calculateKey
in interface CacheKeyCalculatorI
public java.lang.Class getCachedClass()
CacheKeyCalculatorI
getCachedClass
in interface CacheKeyCalculatorI
public boolean canHandle(java.lang.Class c)
CacheKeyCalculatorI
canHandle
in interface CacheKeyCalculatorI
canHandle
in interface ServerSideEventInformationCalculatorI
public java.lang.Object calculate(java.lang.Object value)
CacheKeyCalculatorI
calculate
in interface CacheKeyCalculatorI
calculate
in interface ServerSideEventInformationCalculatorI
public java.lang.String getDescription()
ServerSideEventInformationCalculatorI
getDescription
in interface ServerSideEventInformationCalculatorI
Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.