Class DFDataTree.Path

  • Enclosing interface:
    DFDataTree

    public static final class DFDataTree.Path
    extends java.lang.Object
    Defines a path in DFDataTree. The path contains a sequence of DFDataTree.Edges, a DFDataTree.Vertex which is the furthermost known Vertex from the root Vertex and the row ID in that Vertex.
    Since:
    15.7.27
    • Method Detail

      • create

        public static DFDataTree.Path create​(DFDataTree dataTree,
                                             DFDataTree.Vertex vertex)
        Creates a new data tree path without edges. This will be translated to basic update in one DFEntity.
        Parameters:
        dataTree - The data tree
        vertex - The vertex to update.
        Returns:
        New data tree path.
      • create

        public static DFDataTree.Path create​(DFDataTree dataTree,
                                             java.util.List<DFDataTree.Edge> edges)
        Creates a new data tree path containing a sequence of DFEntitys which should be updated. This will be translated to sequence of inserts and updates in the entities.
        Parameters:
        dataTree - The data tree
        edges - The edges on the path.
        Returns:
        New data tree path.
      • getVertex

        public DFDataTree.Vertex getVertex()
        Returns the last vertex on the path.
        Returns:
        Last vertex on the path.
      • getEdges

        public com.google.common.collect.ImmutableList<DFDataTree.Edge> getEdges()
        Returns the edges in the data tree path.
        Returns:
        The edges.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object