Class VertexStates

    • Method Detail

      • findVertexState

        public static DFResultSet.VertexState findVertexState​(DFResultSet.VertexState vs,
                                                              DFField field)
        Finds VertexState corresponding to the given field. I.e. field.getEntity() and foundVertexState.getVertex().getEntity() represents the same entity.
        Parameters:
        vs - VertexState from the same data tree as the VertexState associated with the entity owning the given field.
        field - the field of interest
        Returns:
        found VertexState or null
      • getIDForFirstSelectedRow

        public static com.google.common.base.Optional<java.lang.Comparable<?>> getIDForFirstSelectedRow​(DFResultSet.VertexState vs,
                                                                                                        boolean useSubSelection)
        Returns ID for the first select row in a given VertexState.
        Parameters:
        vs - the VertexState of interest
        useSubSelection - whether first index of selection or sub-selection shall be used
        Returns:
        the ID or none if there are no rows in VertexState