org.activiti.engine.impl.variable
类 JPAEntityVariableType

java.lang.Object
  继承者 org.activiti.engine.impl.variable.JPAEntityVariableType
所有已实现的接口:
CacheableVariable, VariableType
直接已知子类:
HistoricJPAEntityVariableType

public class JPAEntityVariableType
extends Object
implements VariableType, CacheableVariable

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.

作者:
Frederik Heremans

字段摘要
static String TYPE_NAME
           
 
构造方法摘要
JPAEntityVariableType()
           
 
方法摘要
 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 setForceCacheable(boolean forceCachedValue)
          Force the value to be cacheable.
 void setValue(Object value, ValueFields valueFields)
          Stores the specified value in the supplied ValueFields.
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

TYPE_NAME

public static final String TYPE_NAME
另请参见:
常量字段值
构造方法详细信息

JPAEntityVariableType

public JPAEntityVariableType()
方法详细信息

getTypeName

public String getTypeName()
从接口 VariableType 复制的描述
name of variable type (limited to 100 characters length)

指定者:
接口 VariableType 中的 getTypeName

isCachable

public boolean isCachable()
从接口 VariableType 复制的描述

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

指定者:
接口 VariableType 中的 isCachable
返回:
whether variables of this type are cacheable.

isAbleToStore

public boolean isAbleToStore(Object value)
指定者:
接口 VariableType 中的 isAbleToStore
返回:
whether this variable type can store the specified value.

setValue

public void setValue(Object value,
                     ValueFields valueFields)
从接口 VariableType 复制的描述
Stores the specified value in the supplied ValueFields.

指定者:
接口 VariableType 中的 setValue

getValue

public Object getValue(ValueFields valueFields)
指定者:
接口 VariableType 中的 getValue
返回:
the value of a variable based on the specified ValueFields.

setForceCacheable

public void setForceCacheable(boolean forceCachedValue)
Force the value to be cacheable.

指定者:
接口 CacheableVariable 中的 setForceCacheable


Copyright © 2013 Alfresco. All rights reserved.