org.activiti.engine.impl.variable
接口 VariableType

所有已知实现类:
BooleanType, ByteArrayType, CustomObjectType, DateType, DoubleType, HistoricJPAEntityVariableType, IntegerType, JPAEntityVariableType, LongType, NullType, SerializableType, ShortType, StringType, UUIDType

public interface VariableType

作者:
Tom Baeyens

方法摘要
 String getTypeName()
          name of variable type (limited to 100 characters length)
 Object getValue(ValueFields valueFields)
           
 boolean isAbleToStore(Object value)
           
 boolean isCachable()
          Indicates if this variable type supports caching.
 void setValue(Object value, ValueFields valueFields)
          Stores the specified value in the supplied ValueFields.
 

方法详细信息

getTypeName

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).

返回:
whether variables of this type are cacheable.

isAbleToStore

boolean isAbleToStore(Object value)
返回:
whether this variable type can store the specified value.

setValue

void setValue(Object value,
              ValueFields valueFields)
Stores the specified value in the supplied ValueFields.


getValue

Object getValue(ValueFields valueFields)
返回:
the value of a variable based on the specified ValueFields.


Copyright © 2013 Alfresco. All rights reserved.