Class DataObjectDataSourceImpl
java.lang.Object
org.flowable.common.engine.impl.service.CommonServiceImpl<C>
org.flowable.common.engine.impl.service.CommonEngineServiceImpl<DataObjectEngineConfiguration>
com.flowable.dataobject.engine.impl.runtime.datasource.DataObjectDataSourceImpl
- All Implemented Interfaces:
DataObjectDataSource
public class DataObjectDataSourceImpl extends org.flowable.common.engine.impl.service.CommonEngineServiceImpl<DataObjectEngineConfiguration> implements DataObjectDataSource
- Author:
- Filip Hrisafov
-
Field Summary
-
Constructor Summary
Constructors Constructor Description DataObjectDataSourceImpl(DataObjectEngineConfiguration engineConfiguration) -
Method Summary
Modifier and Type Method Description DataObjectInstanceVariableContainercreate(DataObjectInstanceVariableContainerBuilder dataObjectInstanceBuilder)DataObjectInstanceVariableContainerBuildercreateDataObjectInstanceBuilder()Creates a new data object instance builder object used to create new data object instances and persist them.DataObjectModificationBuildercreateDataObjectModificationBuilder(java.lang.String definitionId)Creates a new data object modification builder used to modify an existing data object with strong type support.voiddeleteDataObjectInstance(java.lang.String lookupId, java.lang.String definitionId)Deletes the specified data object given by its lookup id and specified by the data object definition and model.DataObjectInstanceVariableContainerfindDataObjectByLookupIdAndDefinitionId(java.lang.String lookupId, java.lang.String definitionId)Lookup a single data object given by its lookup id and definition id.DataObjectInstanceVariableContainerfindDataObjectByLookupIdAndDefinitionKey(java.lang.String lookupId, java.lang.String definitionKey)Lookup a single data object given by its lookup id and definition key.java.lang.StringgetDescription()Returns the optional description for this data source.java.lang.StringgetId()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.java.lang.StringgetName()Returns the name of this data source which might be used as a label, but never for referencing it.DataObjectInstanceVariableContainermodify(DataObjectModificationBuilder modificationBuilder)Methods inherited from class org.flowable.common.engine.impl.service.CommonEngineServiceImpl
getCommandExecutor, setCommandExecutor
-
Constructor Details
-
Method Details
-
getId
public java.lang.String getId()Description copied from interface:DataObjectDataSourceReturns the id of this source which must be unique within the system, so there must only be exactly one data source with that id.- Specified by:
getIdin interfaceDataObjectDataSource- Returns:
- the id of this data source
-
getName
public java.lang.String getName()Description copied from interface:DataObjectDataSourceReturns the name of this data source which might be used as a label, but never for referencing it.- Specified by:
getNamein interfaceDataObjectDataSource- Returns:
- the name of this data source
-
getDescription
public java.lang.String getDescription()Description copied from interface:DataObjectDataSourceReturns the optional description for this data source.- Specified by:
getDescriptionin interfaceDataObjectDataSource- Returns:
- the description of this data source
-
findDataObjectByLookupIdAndDefinitionId
public DataObjectInstanceVariableContainer findDataObjectByLookupIdAndDefinitionId(java.lang.String lookupId, java.lang.String definitionId)Description copied from interface:DataObjectDataSourceLookup a single data object given by its lookup id and definition id.- Specified by:
findDataObjectByLookupIdAndDefinitionIdin interfaceDataObjectDataSource- Parameters:
lookupId- the lookup id of the data object to be returneddefinitionId- the data object definition id to load a data object for- Returns:
- the data object instance, if found, null otherwise
-
findDataObjectByLookupIdAndDefinitionKey
public DataObjectInstanceVariableContainer findDataObjectByLookupIdAndDefinitionKey(java.lang.String lookupId, java.lang.String definitionKey)Description copied from interface:DataObjectDataSourceLookup a single data object given by its lookup id and definition key.- Specified by:
findDataObjectByLookupIdAndDefinitionKeyin interfaceDataObjectDataSource- Parameters:
lookupId- the lookup id of the data object to be returneddefinitionKey- the data object definition key to load a data object for- Returns:
- the data object instance, if found, null otherwise
-
createDataObjectInstanceBuilder
Description copied from interface:DataObjectDataSourceCreates a new data object instance builder object used to create new data object instances and persist them.- Specified by:
createDataObjectInstanceBuilderin interfaceDataObjectDataSource- Returns:
- the data object instance builder object
-
deleteDataObjectInstance
public void deleteDataObjectInstance(java.lang.String lookupId, java.lang.String definitionId)Description copied from interface:DataObjectDataSourceDeletes the specified data object given by its lookup id and specified by the data object definition and model.- Specified by:
deleteDataObjectInstancein interfaceDataObjectDataSource- Parameters:
lookupId- the lookup id of the data object to be deleteddefinitionId- the data object definition id to delete an object instance for
-
createDataObjectModificationBuilder
public DataObjectModificationBuilder createDataObjectModificationBuilder(java.lang.String definitionId)Description copied from interface:DataObjectDataSourceCreates a new data object modification builder used to modify an existing data object with strong type support. If needed by the data source implementation, the builder might load and hold the current data object first to allow modified data to be applied directly, specially, if partial updates are not supported as the modification builder might only update partial data of the object.- Specified by:
createDataObjectModificationBuilderin interfaceDataObjectDataSource- Parameters:
definitionId- the data object definition id to create a new modification builder for- Returns:
- the data object modification builder
-
create
public DataObjectInstanceVariableContainer create(DataObjectInstanceVariableContainerBuilder dataObjectInstanceBuilder) -
modify
public DataObjectInstanceVariableContainer modify(DataObjectModificationBuilder modificationBuilder)
-