Package com.im.df.api.dml
Interface DFDataTreeDataProvider
-
public interface DFDataTreeDataProviderTemporary interface, the logic will be moved toDFSchemaDataProvider. Performs inserts and updates in aDFDataTree.Path, creates new relational data.- Since:
- 15.7.27
- Author:
- Peter Szepe
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classDFDataTreeDataProvider.IdPathPairData structure which can uniquely identify the data to update.static classDFDataTreeDataProvider.PathUpdateDescriptionStructure containing the path update description.static classDFDataTreeDataProvider.VertexUpdateResultThe result of the data tree data edit.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DFDataTreegetDataTree()Gets the data tree which this DFDataTreeDataProvider belongs to.com.im.commons.progress.DFLockablegetLockable()Gets the lock provider only for this DFDataTreeDataProvider.DFSchemaDataProvidergetSchemaDataProvider()Gets parent DFSchemaDataProvider.com.google.common.collect.ImmutableMap<DFDataTreeDataProvider.IdPathPair,com.google.common.collect.ImmutableList<DFDataTreeDataProvider.VertexUpdateResult>>updateData(DFDataTreeDataProvider.PathUpdateDescription updateDescription, com.im.commons.progress.DFEnvironmentRW env)Updates relation data in the data tree.com.google.common.collect.ImmutableMap<DFDataTreeDataProvider.IdPathPair,com.google.common.collect.ImmutableList<java.lang.String>>validate(DFDataTreeDataProvider.PathUpdateDescription updateDescription)ValidatesupdateDescription.
-
-
-
Method Detail
-
getLockable
com.im.commons.progress.DFLockable getLockable()
Gets the lock provider only for this DFDataTreeDataProvider. You must lock the DFDataTreeDataProvider before calling data modification methods.- Returns:
- lockable for this DFDataTreeDataProvider.
-
getSchemaDataProvider
DFSchemaDataProvider getSchemaDataProvider()
Gets parent DFSchemaDataProvider.- Returns:
- schema data provider.
-
getDataTree
DFDataTree getDataTree()
Gets the data tree which this DFDataTreeDataProvider belongs to.- Returns:
- data tree which this DFDataTreeDataProvider belongs to
-
updateData
com.google.common.collect.ImmutableMap<DFDataTreeDataProvider.IdPathPair,com.google.common.collect.ImmutableList<DFDataTreeDataProvider.VertexUpdateResult>> updateData(DFDataTreeDataProvider.PathUpdateDescription updateDescription, com.im.commons.progress.DFEnvironmentRW env)
Updates relation data in the data tree.- Parameters:
updateDescription- The update description.env- The environment, should be locked forDFDataTreeDataProvider.- Returns:
- Returns a list errors for all modified
DFDataTreeDataProvider.IdPathPair
-
validate
com.google.common.collect.ImmutableMap<DFDataTreeDataProvider.IdPathPair,com.google.common.collect.ImmutableList<java.lang.String>> validate(DFDataTreeDataProvider.PathUpdateDescription updateDescription)
ValidatesupdateDescription.- Parameters:
updateDescription- The update description.- Returns:
- Map containing not editable
DFDataTreeDataProvider.IdPathPairs as keys and a list of reasons why the path is not editable.
-
-