Class JPAEntityVariableType
java.lang.Object
org.activiti.engine.impl.variable.JPAEntityVariableType
- All Implemented Interfaces:
CacheableVariable,VariableType
- Direct Known Subclasses:
HistoricJPAEntityVariableType
Variable type capable of storing reference to JPA-entities. Only JPA-Entities which are configured by annotations are supported. Use of compound primary keys is not supported.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionname of variable type (limited to 100 characters length)getValue(ValueFields valueFields) booleanisAbleToStore(Object value) booleanIndicates if this variable type supports caching.voidsetForceCacheable(boolean forceCachedValue) Force the value to be cacheable.voidsetValue(Object value, ValueFields valueFields) Stores the specified value in the suppliedValueFields.
-
Field Details
-
TYPE_NAME
- See Also:
-
-
Constructor Details
-
JPAEntityVariableType
public JPAEntityVariableType()
-
-
Method Details
-
getTypeName
Description copied from interface:VariableTypename of variable type (limited to 100 characters length)- Specified by:
getTypeNamein interfaceVariableType
-
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- Returns:
- whether variables of this type are cacheable.
-
isAbleToStore
- Specified by:
isAbleToStorein interfaceVariableType- Returns:
- whether this variable type can store the specified value.
-
setValue
Description copied from interface:VariableTypeStores the specified value in the suppliedValueFields.- Specified by:
setValuein interfaceVariableType
-
getValue
- Specified by:
getValuein interfaceVariableType- Returns:
- the value of a variable based on the specified
ValueFields.
-
setForceCacheable
public void setForceCacheable(boolean forceCachedValue) Force the value to be cacheable.- Specified by:
setForceCacheablein interfaceCacheableVariable
-