Interface InputTableRowSetter

All Known Subinterfaces:
MutableInputTable
All Known Implementing Classes:
InputTable, RemoteMutableInputTable

public interface InputTableRowSetter
  • Method Summary

    Modifier and Type Method Description
    default void addRow​(Map<String,​Object> values)
    Add the specified row to the table.
    default void addRow​(Map<String,​Object> valueArray, boolean allowEdits, InputTableStatusListener listener)
    Add the specified row to the table, optionally overwriting existing keys.
    default void addRows​(Database db, Map<String,​Object>[] valueArray, boolean allowEdits, InputTableStatusListener listener)
    Add the specified rows to the table, optionally overwriting existing keys.
    default void addRows​(Map<String,​Object>[] valueArray)
    Add the specified rows to the table.
    void addRows​(Map<String,​Object>[] valueArray, boolean allowEdits, InputTableStatusListener listener)
    Add the specified rows to the table, optionally overwriting existing keys.
    default void setRow​(Table table, int row, Map<String,​Object> values)
    Set the values of the column specified by the input, filling in missing data using the parameter 'table' as the previous value source.
    default void setRows​(Table table, int[] rowArray, Map<String,​Object>[] valueArray)
    Set the values of the columns specified by the input, filling in missing data using the parameter 'table' as the previous value source.
    void setRows​(Table table, int[] rowArray, Map<String,​Object>[] valueArray, InputTableStatusListener listener)
    Set the values of the columns specified by the input, filling in missing data using the parameter 'table' as the previous value source.
  • Method Details

    • setRow

      default void setRow​(Table table, int row, Map<String,​Object> values)
      Set the values of the column specified by the input, filling in missing data using the parameter 'table' as the previous value source. This method will be invoked asynchronously. Users may use setRows(Table, int[], Map[], InputTableStatusListener) to be notified of asynchronous results.
      Parameters:
      table - The table to use as the previous value source
      row - The row index to set
      values - A map of column name to value to set.
    • setRows

      default void setRows​(Table table, int[] rowArray, Map<String,​Object>[] valueArray)
      Set the values of the columns specified by the input, filling in missing data using the parameter 'table' as the previous value source. This method will be invoked asynchronously. Users may use setRows(Table, int[], Map[], InputTableStatusListener) to be notified of asynchronous results.
      Parameters:
      table - The table to use as the previous value source
      rowArray - The row indices to update.
      valueArray - The new values.
    • setRows

      void setRows​(Table table, int[] rowArray, Map<String,​Object>[] valueArray, InputTableStatusListener listener)
      Set the values of the columns specified by the input, filling in missing data using the parameter 'table' as the previous value source. This method will be invoked asynchronously. The input listener will be notified on success/failure
      Parameters:
      table - The table to use as the previous value source
      rowArray - The row indices to update.
      valueArray - The new values.
      listener - The listener to notify on asynchronous results.
    • addRow

      default void addRow​(Map<String,​Object> values)
      Add the specified row to the table. Duplicate keys will be overwritten. This method will execute asynchronously. Users may use addRow(Map, boolean, InputTableStatusListener) to handle the result of the asynchronous write.
      Parameters:
      values - The values to write.
    • addRows

      default void addRows​(Map<String,​Object>[] valueArray)
      Add the specified rows to the table. Duplicate keys will be overwritten. This method will execute asynchronously. Users may use addRows(Map[], boolean, InputTableStatusListener) to handle the asynchronous result.
      Parameters:
      valueArray - The values to write.
    • addRow

      default void addRow​(Map<String,​Object> valueArray, boolean allowEdits, InputTableStatusListener listener)
      Add the specified row to the table, optionally overwriting existing keys. This method will execute asynchronously, the input listener will be notified on success/failure.
      Parameters:
      valueArray - The value to write.
      allowEdits - Should pre-existing keys be overwritten?
      listener - The listener to report asynchronous result to.
    • addRows

      void addRows​(Map<String,​Object>[] valueArray, boolean allowEdits, InputTableStatusListener listener)
      Add the specified rows to the table, optionally overwriting existing keys. This method will execute asynchronously, the input listener will be notified on success/failure.
      Parameters:
      valueArray - The values to write.
      allowEdits - Should pre-existing keys be overwritten?
      listener - The listener to report asynchronous results to.
    • addRows

      default void addRows​(Database db, Map<String,​Object>[] valueArray, boolean allowEdits, InputTableStatusListener listener)
      Add the specified rows to the table, optionally overwriting existing keys. This method will execute asynchronously, the input listener will be notified on success/failure.
      Parameters:
      valueArray - The values to write.
      allowEdits - Should pre-existing keys be overwritten?
      listener - The listener to report asynchronous results to.
      db - A db instance.