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()
CacheKeyCalculatorIgetKeyAttributeName in interface CacheKeyCalculatorIpublic java.lang.Object calculateKey(java.lang.Object value)
CacheKeyCalculatorIcalculateKey in interface CacheKeyCalculatorIpublic java.lang.Class getCachedClass()
CacheKeyCalculatorIgetCachedClass in interface CacheKeyCalculatorIpublic boolean canHandle(java.lang.Class c)
CacheKeyCalculatorIcanHandle in interface CacheKeyCalculatorIcanHandle in interface ServerSideEventInformationCalculatorIpublic java.lang.Object calculate(java.lang.Object value)
CacheKeyCalculatorIcalculate in interface CacheKeyCalculatorIcalculate in interface ServerSideEventInformationCalculatorIpublic java.lang.String getDescription()
ServerSideEventInformationCalculatorIgetDescription in interface ServerSideEventInformationCalculatorICopyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.