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 Summary
Modifier and TypeMethodDescriptionvoid
discard
(DataChangeLayer layer) Discard the change.getKey()
void
save
(DataChangeLayer layer) Save the change.void
Update the locally stored key.
-
Method Details
-
discard
Discard the change.- Parameters:
layer
- TheDataChangeLayer
used to perform index-position transformations and to trigger the necessary commands to save.
-
save
Save the change.- Parameters:
layer
- TheDataChangeLayer
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
Update the locally stored key. Used in case the key changed because of structural changes.- Parameters:
key
- The updated key.
-