Interface DataChange
-
- All Known Implementing Classes:
PersistenceUpdateDataChange
,RowDeleteDataChange
,RowInsertDataChange
,TemporaryUpdateDataChange
,UpdateDataChange
public interface DataChange
Interface that specifies a data change that is tracked by theDataChangeLayer
.- Since:
- 1.6
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
discard(DataChangeLayer layer)
Discard the change.Object
getKey()
void
save(DataChangeLayer layer)
Save the change.void
updateKey(Object key)
Update the locally stored key.
-
-
-
Method Detail
-
discard
void discard(DataChangeLayer layer)
Discard the change.- Parameters:
layer
- TheDataChangeLayer
used to perform index-position transformations and to trigger the necessary commands to save.
-
save
void save(DataChangeLayer layer)
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
void updateKey(Object key)
Update the locally stored key. Used in case the key changed because of structural changes.- Parameters:
key
- The updated key.
-
-