public interface DataObjectDataSource
Modifier and Type | Method and Description |
---|---|
DataObjectDeletionBuilder |
createDataObjectDeletionBuilder()
Create a new data object deletion builder use to delete existing data objects.
|
DataObjectInstanceVariableContainerBuilder |
createDataObjectInstanceBuilder()
Creates a new data object instance builder object used to create new data object instances and persist them.
|
DataObjectInstanceVariableContainerQuery |
createDataObjectInstanceQuery()
Creates a new data object instance query object that can be used for querying
data object instances.
|
DataObjectModificationBuilder |
createDataObjectModificationBuilder()
Creates a new data object modification builder used to modify an existing data object with strong type support.
|
default DataObjectModificationBuilder |
createDataObjectModificationBuilder(String definitionId)
Creates a new data object modification builder used to modify an existing data object with strong type support.
|
void |
deleteDataObjectInstance(String lookupId,
String definitionId)
Deletes the specified data object given by its lookup id and specified by the data object definition and model.
|
DataObjectInstanceVariableContainer |
findDataObjectByLookupIdAndDefinitionId(String lookupId,
String definitionId)
Lookup a single data object given by its lookup id and definition id.
|
DataObjectInstanceVariableContainer |
findDataObjectByLookupIdAndDefinitionKey(String lookupId,
String definitionKey)
Lookup a single data object given by its lookup id and definition key.
|
String |
getDescription()
Returns the optional description for this data source.
|
String |
getId()
Returns the id of this source which must be unique within the system, so there must only be exactly one data source with that id.
|
String |
getName()
Returns the name of this data source which might be used as a label, but never for referencing it.
|
String getId()
String getName()
String getDescription()
DataObjectInstanceVariableContainer findDataObjectByLookupIdAndDefinitionId(String lookupId, String definitionId)
lookupId
- the lookup id of the data object to be returneddefinitionId
- the data object definition id to load a data object forDataObjectInstanceVariableContainer findDataObjectByLookupIdAndDefinitionKey(String lookupId, String definitionKey)
lookupId
- the lookup id of the data object to be returneddefinitionKey
- the data object definition key to load a data object forDataObjectInstanceVariableContainerBuilder createDataObjectInstanceBuilder()
default DataObjectModificationBuilder createDataObjectModificationBuilder(String definitionId)
definitionId
- the data object definition id to create a new modification builder forDataObjectModificationBuilder createDataObjectModificationBuilder()
DataObjectInstanceVariableContainerQuery createDataObjectInstanceQuery()
DataObjectDeletionBuilder createDataObjectDeletionBuilder()
void deleteDataObjectInstance(String lookupId, String definitionId)
lookupId
- the lookup id of the data object to be deleteddefinitionId
- the data object definition id to delete an object instance for