public class PersistenceUpdateDataChange extends UpdateDataChange
DataChange implementation that tracks data updates. Contains an
UpdateDataCommand that is created as result of a DataUpdateEvent and
can be used to revert the data update.| Constructor and Description |
|---|
PersistenceUpdateDataChange(Object key,
Object oldValue,
CellKeyHandler<?> keyHandler)
Create an
PersistenceUpdateDataChange that is able to revert the
performed data update. |
| Modifier and Type | Method and Description |
|---|---|
void |
discard(DataChangeLayer layer)
Discard the change.
|
void |
save(DataChangeLayer layer)
Save the change.
|
getKey, getUpdateDataCommand, getValue, updateKeypublic PersistenceUpdateDataChange(Object key, Object oldValue, CellKeyHandler<?> keyHandler)
PersistenceUpdateDataChange that is able to revert the
performed data update.key - The key under which the cell can be found that should be
updated.oldValue - The old value that should be re-applied on discard.keyHandler - The CellKeyHandler used to get indexes out of the key.public void discard(DataChangeLayer layer)
DataChangelayer - The DataChangeLayer used to perform index-position
transformations and to trigger the necessary commands to save.public void save(DataChangeLayer layer)
DataChangelayer - The DataChangeLayer used to perform index-position
transformations and to trigger the necessary commands to save.Copyright © 2019. All rights reserved.