public class DataObjectInstanceVariableContainerImpl extends Object implements DataObjectInstanceVariableContainer
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Object> |
data |
protected Set<String> |
definedFields |
protected String |
definitionId |
protected String |
definitionKey |
protected Object |
id |
protected boolean |
isDeleted |
protected boolean |
isInserted |
protected boolean |
isUpdated |
protected Object |
lookupIdValue |
protected Object |
originalPersistentState |
protected String |
tenantId |
| Constructor and Description |
|---|
DataObjectInstanceVariableContainerImpl(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) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
getData() |
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.
|
Object |
getId() |
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.
|
Object |
getOriginalPersistentState() |
Object |
getPersistentState() |
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 |
boolean |
hasValue(String property)
Check whether the data object instance has the given property
|
boolean |
isDeleted() |
boolean |
isInserted() |
boolean |
isUpdated() |
Iterable<String> |
propertyNames()
An iterable of all the names of the properties for this data object instance.
|
<T> T |
removeValue(String property,
Class<T> propertyClass) |
void |
setDeleted(boolean isDeleted) |
void |
setId(Object id) |
void |
setInserted(boolean isInserted) |
void |
setOriginalPersistentState(Object persistentState) |
void |
setTransientVariable(String variableName,
Object variableValue) |
void |
setUpdated(boolean isUpdated) |
<T> void |
setValue(String property,
T value) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetBoolean, getDate, getDouble, getInteger, getLong, getString, getVariable, hasVariable, removeValue, setVariableprotected Object id
protected Object lookupIdValue
protected final String definitionId
protected final String tenantId
protected final String definitionKey
protected boolean isInserted
protected boolean isUpdated
protected boolean isDeleted
protected Object originalPersistentState
public DataObjectInstanceVariableContainerImpl(Map<String,Object> data, Object lookupIdValue, String tenantId, DataObjectDefinition dataObjectDefinition, ServiceRegistryDataObjectModel objectModel)
public Object getId()
getId in interface DataObjectInstanceVariableContainerpublic void setId(Object id)
setId in interface DataObjectInstanceVariableContainerpublic boolean isInserted()
public void setInserted(boolean isInserted)
public boolean isUpdated()
public void setUpdated(boolean isUpdated)
public boolean isDeleted()
public void setDeleted(boolean isDeleted)
public Object getOriginalPersistentState()
public void setOriginalPersistentState(Object persistentState)
public Object getLookupId()
DataObjectInstanceVariableContainergetLookupId in interface DataObjectInstanceVariableContainerpublic String getDefinitionId()
DataObjectInstanceVariableContainergetDefinitionId in interface DataObjectInstanceVariableContainerpublic String getDefinitionKey()
DataObjectInstanceVariableContainergetDefinitionKey in interface DataObjectInstanceVariableContainerpublic <T> T getValue(String property, Class<T> valueType)
DataObjectInstanceVariableContainerproperty with the give valueTypegetValue in interface DataObjectInstanceVariableContainerT - the type of the valueproperty - the name of the propertyvalueType - the type of the valuepublic boolean hasValue(String property)
DataObjectInstanceVariableContainerhasValue in interface DataObjectInstanceVariableContainerproperty - the name of the propertytrue if this data object instance has a property with given name, false otherwisepublic <T> void setValue(String property, T value)
setValue in interface DataObjectInstanceVariableContainerpublic <T> T removeValue(String property, Class<T> propertyClass)
removeValue in interface DataObjectInstanceVariableContainerpublic Iterable<String> propertyNames()
DataObjectInstanceVariableContainerpropertyNames in interface DataObjectInstanceVariableContainerpublic void setTransientVariable(String variableName, Object variableValue)
setTransientVariable in interface VariableContainerpublic String getTenantId()
DataObjectInstanceVariableContainergetTenantId in interface DataObjectInstanceVariableContainergetTenantId in interface VariableContainerpublic Map<String,Object> getData()
getData in interface DataObjectInstanceVariableContainerpublic Object getPersistentState()