public interface DataObjectInstanceBuilder<T extends DataObjectInstanceBuilder,U extends DataObjectInstance>
DataObjectDataSource
implementation.Modifier and Type | Method and Description |
---|---|
U |
create()
Creates and persists the new data object instance.
|
T |
createFromPayload(DataObjectHandlingContext context)
If an instance builder is used to create a new data object given by the payload sent from a form typically, this method is invoked to create the
data object according the given payload data.
|
T |
definitionId(String id)
Set the id of the data object definition the new instance should be based on.
|
T |
definitionKey(String key)
Set the key of the data object definition the new instance should be based on.
|
String |
getDefinitionId() |
String |
getDefinitionKey() |
String |
getLookupId() |
String |
getTenantId() |
T |
lookupId(String lookupId)
Set the lookup id of the data object instance, if already known.
|
T |
tenantId(String tenantId)
Set the tenant id for the new data object.
|
T |
value(String valueName,
Object value)
Generic setter for a data object field value specified by its name and value to be set.
|
T definitionId(String id)
T definitionKey(String key)
T tenantId(String tenantId)
T lookupId(String lookupId)
lookupId
- T createFromPayload(DataObjectHandlingContext context)
context
- the data object context containing the data and full payload and further information for parsing the content into the data objectT value(String valueName, Object value)
valueName
- the name of the data object field to set a valuevalue
- the value to be setU create()
String getDefinitionId()
String getDefinitionKey()
String getTenantId()
String getLookupId()
Copyright © 2019. All rights reserved.