|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.axonframework.unitofwork.CurrentUnitOfWork
public abstract class CurrentUnitOfWork
Default entry point to gain access to the current UnitOfWork. Components managing transactional boundaries can register and clear UnitOfWork instances, which components can use.
| Method Summary | |
|---|---|
static void |
commit()
Commits the current UnitOfWork. |
static UnitOfWork |
get()
Gets the UnitOfWork bound to the current thread. |
static boolean |
isStarted()
Indicates whether a unit of work has already been started. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static boolean isStarted()
public static UnitOfWork get()
IllegalStateException is thrown.
To verify whether a UnitOfWork is already active, use isStarted().
IllegalStateException - if no UnitOfWork is activepublic static void commit()
IllegalStateException is thrown.
IllegalStateException - if no UnitOfWork is currently started.UnitOfWork.commit()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||