|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
TransactionalEvent reflects an event in a simple transaction.
The lifecycle of a transaction (and therefore the sequence of related
transactional events) is as follows:
Notes:
BEFORE_COMPLETION
if (commit() is requested) {
BEFORE_COMMIT
COMMIT
AFTER_COMMIT
}
if (abort() is requested) {
BEFORE_ABORT
ABORT
AFTER_ABORT
}
AFTER_COMPLETION
TransactionalEvent event types is allowed.
| Field Summary | |
static int |
TYPE_ABORT
Abort event. |
static int |
TYPE_AFTER_ABORT
After-abort event. |
static int |
TYPE_AFTER_COMMIT
After-commt event. |
static int |
TYPE_AFTER_COMPLETION
After-completion event. |
static int |
TYPE_BEFORE_ABORT
Before-abort event. |
static int |
TYPE_BEFORE_COMMIT
Before-commit event. |
static int |
TYPE_BEFORE_COMPLETION
Before-completion event. |
static int |
TYPE_COMMIT
Commit event. |
| Method Summary | |
BasicTransaction |
getTransaction()
Get corresponding transaction. |
int |
getType()
Get transactional event type. |
| Field Detail |
public static final int TYPE_BEFORE_COMPLETION
public static final int TYPE_COMMIT
public static final int TYPE_ABORT
public static final int TYPE_AFTER_COMPLETION
public static final int TYPE_BEFORE_COMMIT
public static final int TYPE_AFTER_COMMIT
public static final int TYPE_BEFORE_ABORT
public static final int TYPE_AFTER_ABORT
| Method Detail |
public BasicTransaction getTransaction()
TransactionalEvent.
- Returns:
- transaction that is the source of this transactional event
public int getType()
TransactionalEvent.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||