Class DataObjectInstanceVariableContainerImpl
java.lang.Object
com.flowable.dataobject.engine.impl.runtime.DataObjectInstanceVariableContainerImpl
- All Implemented Interfaces:
DataObjectInstanceVariableContainer
,VariableContainer
- Direct Known Subclasses:
DataObjectDataDictionaryTypedInstance
public class DataObjectInstanceVariableContainerImpl
extends Object
implements DataObjectInstanceVariableContainer
- Author:
- Filip Hrisafov
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDataObjectInstanceVariableContainerImpl
(Map<String, Object> data, Object lookupIdValue, String tenantId, DataObjectDefinition dataObjectDefinition, ServiceRegistryDataObjectModel objectModel) DataObjectInstanceVariableContainerImpl
(Map<String, Object> data, Object lookupIdValue, String definitionId, String tenantId, String definitionKey, ServiceRegistryDataObjectModel objectModel) -
Method Summary
Modifier and TypeMethodDescriptiongetData()
Returns the id of the master data definition this instance belongs to.Returns the key of the master data definition this instance belongs to.getId()
Returns the lookup id of this data object instance, which needs to be unique only within the same data object definition and source.The tenant id of the definition<T> T
Get a value for the givenproperty
with the givevalueType
boolean
Check whether the data object instance has the given propertyboolean
boolean
boolean
An iterable of all the names of the properties for this data object instance.<T> T
removeValue
(String property, Class<T> propertyClass) void
setDefinitionId
(String definitionId) void
setDeleted
(boolean isDeleted) void
void
setInserted
(boolean isInserted) void
setOriginalPersistentState
(Object persistentState) void
setTransientVariable
(String variableName, Object variableValue) void
setUpdated
(boolean isUpdated) <T> void
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.flowable.dataobject.api.runtime.DataObjectInstanceVariableContainer
getBoolean, getDate, getDouble, getInteger, getLocalDate, getLong, getString, getVariable, hasVariable, removeValue, setVariable
-
Field Details
-
id
-
data
-
lookupIdValue
-
definitionId
-
tenantId
-
definitionKey
-
definedFields
-
isInserted
protected boolean isInserted -
isUpdated
protected boolean isUpdated -
isDeleted
protected boolean isDeleted -
originalPersistentState
-
-
Constructor Details
-
DataObjectInstanceVariableContainerImpl
public DataObjectInstanceVariableContainerImpl(Map<String, Object> data, Object lookupIdValue, String tenantId, DataObjectDefinition dataObjectDefinition, ServiceRegistryDataObjectModel objectModel) -
DataObjectInstanceVariableContainerImpl
-
-
Method Details
-
getId
- Specified by:
getId
in interfaceDataObjectInstanceVariableContainer
-
setId
- Specified by:
setId
in interfaceDataObjectInstanceVariableContainer
-
isInserted
public boolean isInserted() -
setInserted
public void setInserted(boolean isInserted) -
isUpdated
public boolean isUpdated() -
setUpdated
public void setUpdated(boolean isUpdated) -
isDeleted
public boolean isDeleted() -
setDeleted
public void setDeleted(boolean isDeleted) -
getOriginalPersistentState
-
setOriginalPersistentState
-
getLookupId
Description copied from interface:DataObjectInstanceVariableContainer
Returns the lookup id of this data object instance, which needs to be unique only within the same data object definition and source.- Specified by:
getLookupId
in interfaceDataObjectInstanceVariableContainer
- Returns:
- the lookup id of this data object, as given and used by the data source managing this data object instance
-
getDefinitionId
Description copied from interface:DataObjectInstanceVariableContainer
Returns the id of the master data definition this instance belongs to.- Specified by:
getDefinitionId
in interfaceDataObjectInstanceVariableContainer
- Returns:
- the id of the master data definition
-
setDefinitionId
-
getDefinitionKey
Description copied from interface:DataObjectInstanceVariableContainer
Returns the key of the master data definition this instance belongs to.- Specified by:
getDefinitionKey
in interfaceDataObjectInstanceVariableContainer
- Returns:
- the key of the master data definition
-
getValue
Description copied from interface:DataObjectInstanceVariableContainer
Get a value for the givenproperty
with the givevalueType
- Specified by:
getValue
in interfaceDataObjectInstanceVariableContainer
- Type Parameters:
T
- the type of the value- Parameters:
property
- the name of the propertyvalueType
- the type of the value- Returns:
- the value for the given property
-
hasValue
Description copied from interface:DataObjectInstanceVariableContainer
Check whether the data object instance has the given property- Specified by:
hasValue
in interfaceDataObjectInstanceVariableContainer
- Parameters:
property
- the name of the property- Returns:
true
if this data object instance has a property with given name,false
otherwise
-
setValue
- Specified by:
setValue
in interfaceDataObjectInstanceVariableContainer
-
removeValue
- Specified by:
removeValue
in interfaceDataObjectInstanceVariableContainer
-
propertyNames
Description copied from interface:DataObjectInstanceVariableContainer
An iterable of all the names of the properties for this data object instance.- Specified by:
propertyNames
in interfaceDataObjectInstanceVariableContainer
- Returns:
- iterator of the properties
-
setTransientVariable
- Specified by:
setTransientVariable
in interfaceVariableContainer
-
getTenantId
Description copied from interface:DataObjectInstanceVariableContainer
The tenant id of the definition- Specified by:
getTenantId
in interfaceDataObjectInstanceVariableContainer
- Specified by:
getTenantId
in interfaceVariableContainer
- Returns:
- the tenant id of the definition
-
getData
- Specified by:
getData
in interfaceDataObjectInstanceVariableContainer
-
getPersistentState
-
toString
-