public interface DataObjectModificationBuilder<T extends DataObjectModificationBuilder,U extends DataObjectInstance>
DataObjectDataSource
implementation.Modifier and Type | Method and Description |
---|---|
String |
getDefinitionId()
Returns the id of the data object definition this modification builder is based on.
|
String |
getLookupId()
Returns the external id of the data object to be modified.
|
U |
modify()
Persists the modified data object instance.
|
T |
modifyFromPayload(DataObjectHandlingContext context)
If a modification builder is used to modify a data object given by the payload sent from a form typically, this method is invoked to modify the
data object according the given payload data.
|
T |
value(String valueName,
Object value)
Generic setter for a data object field value specified by its name and value to be set.
|
String getDefinitionId()
String getLookupId()
T modifyFromPayload(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 modify()
Copyright © 2019. All rights reserved.