Interface DataChange

All Known Implementing Classes:
PersistenceUpdateDataChange, RowDeleteDataChange, RowInsertDataChange, TemporaryUpdateDataChange, UpdateDataChange

public interface DataChange
Interface that specifies a data change that is tracked by the DataChangeLayer.
Since:
1.6
  • Method Details

    • discard

      void discard(DataChangeLayer layer)
      Discard the change.
      Parameters:
      layer - The DataChangeLayer used to perform index-position transformations and to trigger the necessary commands to save.
    • save

      void save(DataChangeLayer layer)
      Save the change.
      Parameters:
      layer - The DataChangeLayer used to perform index-position transformations and to trigger the necessary commands to save.
    • getKey

      Object getKey()
      Returns:
      The key used to identify the change in the backing data.
    • updateKey

      void updateKey(Object key)
      Update the locally stored key. Used in case the key changed because of structural changes.
      Parameters:
      key - The updated key.