Interface VariableType
-
- All Known Implementing Classes:
BooleanType,ByteArrayType,CustomObjectType,DateType,DoubleType,HistoricJPAEntityListVariableType,HistoricJPAEntityVariableType,IntegerType,JodaDateTimeType,JodaDateType,JPAEntityListVariableType,JPAEntityVariableType,JsonType,LongJsonType,LongStringType,LongType,NullType,SerializableType,ShortType,StringType,UUIDType
@Internal public interface VariableType
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetTypeName()name of variable type (limited to 100 characters length)java.lang.ObjectgetValue(ValueFields valueFields)booleanisAbleToStore(java.lang.Object value)booleanisCachable()Indicates if this variable type supports caching.voidsetValue(java.lang.Object value, ValueFields valueFields)Stores the specified value in the suppliedValueFields.
-
-
-
Method Detail
-
getTypeName
java.lang.String getTypeName()
name of variable type (limited to 100 characters length)
-
isCachable
boolean isCachable()
Indicates if this variable type supports caching.
If caching is supported, the result of
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
getValue(ValueFields).- Returns:
- whether variables of this type are cacheable.
-
isAbleToStore
boolean isAbleToStore(java.lang.Object value)
- Returns:
- whether this variable type can store the specified value.
-
setValue
void setValue(java.lang.Object value, ValueFields valueFields)Stores the specified value in the suppliedValueFields.
-
getValue
java.lang.Object getValue(ValueFields valueFields)
- Returns:
- the value of a variable based on the specified
ValueFields.
-
-