Package com.im.df.api.dml
Interface DFDataTreeDataProvider
-
public interface DFDataTreeDataProvider
Temporary 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 class
DFDataTreeDataProvider.IdPathPair
Data structure which can uniquely identify the data to update.static class
DFDataTreeDataProvider.PathUpdateDescription
Structure containing the path update description.static class
DFDataTreeDataProvider.VertexUpdateResult
The result of the data tree data edit.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DFDataTree
getDataTree()
Gets the data tree which this DFDataTreeDataProvider belongs to.com.im.commons.progress.DFLockable
getLockable()
Gets the lock provider only for this DFDataTreeDataProvider.DFSchemaDataProvider
getSchemaDataProvider()
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.IdPathPair
s as keys and a list of reasons why the path is not editable.
-
-