public class JPAEntityListVariableType extends Object implements VariableType, CacheableVariable
List
and can only contain objects of the same type.Modifier and Type | Field and Description |
---|---|
protected boolean |
forceCachedValue |
protected JPAEntityMappings |
mappings |
static String |
TYPE_NAME |
Constructor and Description |
---|
JPAEntityListVariableType() |
Modifier and Type | Method and Description |
---|---|
protected String[] |
deserializeIds(byte[] bytes) |
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.
|
protected byte[] |
serializeIds(List<String> ids) |
void |
setForceCacheable(boolean forceCachedValue) |
void |
setValue(Object value,
ValueFields valueFields)
Stores the specified value in the supplied
ValueFields . |
public static final String TYPE_NAME
protected JPAEntityMappings mappings
protected boolean forceCachedValue
public void setForceCacheable(boolean forceCachedValue)
setForceCacheable
in interface CacheableVariable
public String getTypeName()
VariableType
getTypeName
in interface VariableType
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)
.
isCachable
in interface VariableType
public boolean isAbleToStore(Object value)
isAbleToStore
in interface VariableType
public void setValue(Object value, ValueFields valueFields)
VariableType
ValueFields
.setValue
in interface VariableType
public Object getValue(ValueFields valueFields)
getValue
in interface VariableType
ValueFields
.protected byte[] serializeIds(List<String> ids)
protected String[] deserializeIds(byte[] bytes)
Copyright © 2016 Alfresco. All rights reserved.