Package com.im.df.api.dml
Class DFDataTreeDataProvider.VertexUpdateResult
- java.lang.Object
-
- com.im.df.api.dml.DFDataTreeDataProvider.VertexUpdateResult
-
- Enclosing interface:
- DFDataTreeDataProvider
public static final class DFDataTreeDataProvider.VertexUpdateResult extends java.lang.Object
The result of the data tree data edit. Contains a sequence of updates and inserts inDFDataTree.Vertex
s.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DFDataTreeDataProvider.VertexUpdateResult.Type
The type of the update.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DFDataTreeDataProvider.VertexUpdateResult
createInsertResult(java.lang.Comparable<?> id, DFDataTree.Vertex vertex, java.util.Map<java.lang.String,java.lang.Object> data)
Creates an insert result.static DFDataTreeDataProvider.VertexUpdateResult
createUpdateResult(java.lang.Comparable<?> id, DFDataTree.Vertex vertex, java.util.Map<java.lang.String,java.lang.Object> data)
Creates an update result.java.util.Map<java.lang.String,java.lang.Object>
getData()
Returns the inserted^changed data.java.lang.Comparable<?>
getId()
Returns the affected ID.DFDataTreeDataProvider.VertexUpdateResult.Type
getType()
Returns the type of the update.DFDataTree.Vertex
getVertex()
Returns the affected Vertex.
-
-
-
Method Detail
-
createInsertResult
public static DFDataTreeDataProvider.VertexUpdateResult createInsertResult(java.lang.Comparable<?> id, DFDataTree.Vertex vertex, java.util.Map<java.lang.String,java.lang.Object> data)
Creates an insert result.- Parameters:
id
- The newly inserted ID.vertex
- The changed vertex.data
- The newly inserted data.- Returns:
- New vertex data update result.
-
createUpdateResult
public static DFDataTreeDataProvider.VertexUpdateResult createUpdateResult(java.lang.Comparable<?> id, DFDataTree.Vertex vertex, java.util.Map<java.lang.String,java.lang.Object> data)
Creates an update result.- Parameters:
id
- The changed IDvertex
- The changed vertex.data
- The modified data.- Returns:
- New vertex data insert result.
-
getType
public DFDataTreeDataProvider.VertexUpdateResult.Type getType()
Returns the type of the update.- Returns:
- The type.
-
getId
public java.lang.Comparable<?> getId()
Returns the affected ID.- Returns:
- The ID.
-
getVertex
public DFDataTree.Vertex getVertex()
Returns the affected Vertex.- Returns:
- The vertex.
-
getData
public java.util.Map<java.lang.String,java.lang.Object> getData()
Returns the inserted^changed data.- Returns:
- The data.
-
-