Class DFInsertDescription.InsertRow

  • Enclosing class:

    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()
        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.
        updateInfo - The update info.
      • getValues

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

        public DFInsertDescription getInsertion()
        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()
        toString in class java.lang.Object
      • isInserted

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