Class HistoricJPAEntityVariableType
- java.lang.Object
-
- org.activiti.engine.impl.variable.JPAEntityVariableType
-
- org.activiti.engine.impl.variable.HistoricJPAEntityVariableType
-
- All Implemented Interfaces:
CacheableVariable,VariableType
public class HistoricJPAEntityVariableType extends JPAEntityVariableType
Subclass ofJPAEntityVariableTypewhich is cacheable, unlike the super-class. This is used when fetching historic variables
-
-
Field Summary
-
Fields inherited from class org.activiti.engine.impl.variable.JPAEntityVariableType
TYPE_NAME
-
-
Constructor Summary
Constructors Constructor Description HistoricJPAEntityVariableType()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HistoricJPAEntityVariableTypegetSharedInstance()booleanisCachable()Indicates if this variable type supports caching.-
Methods inherited from class org.activiti.engine.impl.variable.JPAEntityVariableType
getTypeName, getValue, isAbleToStore, setForceCacheable, setValue
-
-
-
-
Method Detail
-
isCachable
public boolean isCachable()
Description copied from interface:VariableTypeIndicates if this variable type supports caching.
If caching is supported, the result of
VariableType.getValue(ValueFields)is saved for the duration of the session and used for subsequent reads of the variable's value.If caching is not supported, all reads of a variable's value require a fresh call to
VariableType.getValue(ValueFields).- Specified by:
isCachablein interfaceVariableType- Overrides:
isCachablein classJPAEntityVariableType- Returns:
- whether variables of this type are cacheable.
-
getSharedInstance
public static HistoricJPAEntityVariableType getSharedInstance()
-
-