Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Overview

The Unit Of Work pattern is a common pattern in enterprise application architectures.

...

  • TX SUPPORTS
  • TX MANDATORY
  • TX NEVER
    (TX REQUIRES and TX REQUIRES NEW is not yet fully implemented)

...

UnitOfWorkListener

The user can implement listeners that allows him to trigger additional behaviour on specific events, such as begin, commit, rollback, dispose etc.

...

We also provide a convenience abstract adapter class that you can use if you are only interested in implementing a couple of methods and don't want to have empty method definitions. Just extend the org.codehaus.aware.unitofwork.UnitOfWorkAdapter class.h2:

Definition

The listeners are added to the Unit Of Work in the initialize method:

...