Interface ModelLookupTablesContextReadWrite.MutableModelLookupTable

All Superinterfaces:
ModelLookupTablesContextReadOnly.ModelLookupTable
Enclosing interface:
ModelLookupTablesContextReadWrite

public static interface ModelLookupTablesContextReadWrite.MutableModelLookupTable extends ModelLookupTablesContextReadOnly.ModelLookupTable
Represents a LookupTable owned by a ModelObject with mutable operations
  • Method Details

    • load

      int load(List<Map<String,Object>> data, boolean truncate)
      Loads some data in this table
      Parameters:
      data - a list of records to add to the table. Each record must associate field names to their value. At least all key fields must be given. Any missing entry is considered as a null value.
      truncate - If the table should be truncated before loading
      Returns:
      the number of affected rows or an error code following the same convention as PublicGroovyAPI.addOrUpdate(String, List).
      Since:
      9.0 Hurricane
    • drop

      void drop()
      Delete this table
      Since:
      9.0 Hurricane
    • truncate

      void truncate()
      Truncate the content of this table
      Since:
      9.0 Hurricane