Interface TransactionManager


  • public interface TransactionManager
    Transaction provides framework to keep consistent model after model modification. All model modifications during transaction is recorded and later these modifications are verified to check if they do not breaks model integrity.

    Model verification and fixing must be implemented outside, and hooks must be passed to transaction.

    Transaction can be read only - during such transaction no model modifications are allowed and any of model modification throws ReadOnlyModelException

    Transaction managers offers three ways to attach the listeners.
    1. One way is only for synchronizing of model changes. Listener will not be called during undo/redo. Will be called only on first command execution in the command history.
    2. Second way is for "pseudo" synchronizing. Will not be called only during undo/redo, but will be called even if command is not started. 3. Third way is regular transaction commit - called always on commit.