Class JPAEntityListVariableType
java.lang.Object
org.flowable.variable.service.impl.types.JPAEntityListVariableType
- All Implemented Interfaces:
VariableType,CacheableVariable
- Direct Known Subclasses:
HistoricJPAEntityListVariableType
Variable type capable of storing a list of reference to JPA-entities. Only JPA-Entities which are configured by annotations are supported. Use of compound primary keys is not supported.
The variable value should be of type
The variable value should be of type
List and can only contain objects of the same type.- Author:
- Frederik Heremans
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected JPAEntityMappingsstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String[]deserializeIds(byte[] bytes) getValue(ValueFields valueFields) booleanisAbleToStore(Object value) booleanprotected byte[]serializeIds(List<String> ids) voidsetForceCacheable(boolean forceCachedValue) voidsetValue(Object value, ValueFields valueFields) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.flowable.variable.api.types.VariableType
isReadOnly
-
Field Details
-
TYPE_NAME
- See Also:
-
mappings
-
forceCachedValue
protected boolean forceCachedValue
-
-
Constructor Details
-
JPAEntityListVariableType
public JPAEntityListVariableType()
-
-
Method Details
-
setForceCacheable
public void setForceCacheable(boolean forceCachedValue) - Specified by:
setForceCacheablein interfaceCacheableVariable
-
getTypeName
- Specified by:
getTypeNamein interfaceVariableType
-
isCachable
public boolean isCachable()- Specified by:
isCachablein interfaceVariableType
-
isAbleToStore
- Specified by:
isAbleToStorein interfaceVariableType
-
setValue
- Specified by:
setValuein interfaceVariableType
-
getValue
- Specified by:
getValuein interfaceVariableType
-
serializeIds
- Returns:
- a bytearray containing all ID's in the given string serialized as an array.
-
deserializeIds
-