Package org.h2.mvstore.tx
Interface TransactionStore.RollbackListener
- All Known Implementing Classes:
SessionLocal
- Enclosing class:
TransactionStore
public static interface TransactionStore.RollbackListener
This listener can be registered with the transaction to be notified of
every compensating change during transaction rollback.
Normally this is not required, if no external resources were modified,
because state of all transactional maps will be restored automatically.
Only state of external resources, possibly modified by triggers
need to be restored.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onRollback
(MVMap<Object, VersionedValue<Object>> map, Object key, VersionedValue<Object> existingValue, VersionedValue<Object> restoredValue) Notified of a single map change (add/update/remove)
-
Method Details
-
onRollback
void onRollback(MVMap<Object, VersionedValue<Object>> map, Object key, VersionedValue<Object> existingValue, VersionedValue<Object> restoredValue) Notified of a single map change (add/update/remove)- Parameters:
map
- modifiedkey
- of the modified entryexistingValue
- value in the map (null if delete is rolled back)restoredValue
- value to be restored (null if add is rolled back)
-