h2: Overview
The Unit Of Work pattern is a common pattern in enterprise application architectures. It implements the concept of an "application transaction" that keeps track of "dirty", "new" and "removed" objects.
The user can add listeners that can add additional behaviour when specific events are triggered, such as begin, commit, rollback, dispose etc.
The Unit Of Work will not commit until all listeners have agreed on that. If for example on listener have set the transaction to rollBackOnly then the whole Unit Of Work transaction will rollback.
Labels
