Class DFInsertDescription.InsertRow

  • Enclosing class:
    DFInsertDescription

    public final class DFInsertDescription.InsertRow
    extends java.lang.Object
    Description of the row to be inserted. Contains data of the row and connection(s) to other rows. The connections are established in both directions.

    Other entity's data can be connected either as:

    • existing row, using the row's ID
    • a new data row (one or more), which will be inserted as a part of the whole Insert operation
    • Method Detail

      • setRowID

        public void setRowID​(java.lang.Comparable<?> rowID)
        Sets this insertion's row ID. The method should be called only from the database code, that creates the row in the DB.
      • getUpdateInfo

        public DFUpdateInfo getUpdateInfo()
        Returns:
        UpdateInfo that gives information about this row's insertion
      • setUpdateInfo

        public void setUpdateInfo​(DFUpdateInfo updateInfo)
        Sets the UpdateInfo after the row is inserted. Can be called only once. DO NOT CALL this method from DIF client code.
        Parameters:
        updateInfo - The update info.
      • getValues

        public java.util.Map<java.lang.String,​java.lang.Object> getValues()
      • getInsertion

        public DFInsertDescription getInsertion()
        Returns:
        The owning Insert Description object.
      • getConnectedRows

        public java.util.Map<DFRelationship.Direction,​java.lang.Comparable<?>> getConnectedRows()
        Returns connections to existing entity rows
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • isInserted

        public boolean isInserted()
        Returns:
        True, if the row has been inserted into the database.