public interface UnitOfWorkCallback
UnitOfWork.addUnitOfWorkCallback(UnitOfWorkCallback).
If Entities implement this interface they will also receive invocations of this callback interface.| Modifier and Type | Interface and Description |
|---|---|
static class |
UnitOfWorkCallback.UnitOfWorkStatus |
| Modifier and Type | Method and Description |
|---|---|
void |
afterCompletion(UnitOfWorkCallback.UnitOfWorkStatus status)
This is called after the completion or discarding
of the UnitOfWork.
|
void |
beforeCompletion()
This is called before the completion of the UnitOfWork.
|
void beforeCompletion()
throws UnitOfWorkCompletionException
UnitOfWorkCompletionException - if there is any reason why the UnitOfWork is not in a valid state to be
completedvoid afterCompletion(UnitOfWorkCallback.UnitOfWorkStatus status)
status - the UnitOfWork status