public interface DataObjectInstanceVariableContainer extends VariableContainer
Modifier and Type | Method and Description |
---|---|
default Boolean |
getBoolean(String property) |
Object |
getData() |
default Date |
getDate(String property) |
String |
getDefinitionId()
Returns the id of the master data definition this instance belongs to.
|
String |
getDefinitionKey()
Returns the key of the master data definition this instance belongs to.
|
default Double |
getDouble(String property) |
Object |
getId() |
default Integer |
getInteger(String property) |
default Long |
getLong(String property) |
Object |
getLookupId()
Returns the lookup id of this data object instance, which needs to be unique only within the same data object definition and source.
|
default String |
getString(String property) |
String |
getTenantId()
The tenant id of the definition
|
<T> T |
getValue(String property,
Class<T> valueType)
Get a value for the given
property with the give valueType |
default Object |
getVariable(String variableName) |
boolean |
hasValue(String property)
Check whether the data object instance has the given property
|
default boolean |
hasVariable(String variableName) |
Iterable<String> |
propertyNames()
An iterable of all the names of the properties for this data object instance.
|
default Object |
removeValue(String property) |
<T> T |
removeValue(String property,
Class<T> propertyClass) |
void |
setId(Object id) |
<T> void |
setValue(String property,
T value) |
default void |
setVariable(String variableName,
Object variableValue) |
setTransientVariable
Object getId()
void setId(Object id)
Object getLookupId()
String getDefinitionId()
String getDefinitionKey()
<T> T getValue(String property, Class<T> valueType)
property
with the give valueType
T
- the type of the valueproperty
- the name of the propertyvalueType
- the type of the valueboolean hasValue(String property)
property
- the name of the propertytrue
if this data object instance has a property with given name, false
otherwisedefault boolean hasVariable(String variableName)
hasVariable
in interface VariableContainer
default Object getVariable(String variableName)
getVariable
in interface VariableContainer
<T> void setValue(String property, T value)
default void setVariable(String variableName, Object variableValue)
setVariable
in interface VariableContainer
String getTenantId()
getTenantId
in interface VariableContainer
Iterable<String> propertyNames()
Object getData()