public enum TransactionPhase extends java.lang.Enum<TransactionPhase>
TransactionalEventListener| Enum Constant and Description |
|---|
AFTER_COMMIT
Fire the event after the commit has completed successfully.
|
AFTER_COMPLETION
Fire the event after the transaction has completed.
|
AFTER_ROLLBACK
Fire the event if the transaction has rolled back.
|
BEFORE_COMMIT
Fire the event before transaction commit.
|
| Modifier and Type | Method and Description |
|---|---|
static TransactionPhase |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TransactionPhase[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransactionPhase BEFORE_COMMIT
public static final TransactionPhase AFTER_COMMIT
Note: This is a specialization of AFTER_COMPLETION and
therefore executes in the same after-completion sequence of events,
(and not in TransactionSynchronization.afterCommit()).
public static final TransactionPhase AFTER_ROLLBACK
Note: This is a specialization of AFTER_COMPLETION and
therefore executes in the same after-completion sequence of events.
public static final TransactionPhase AFTER_COMPLETION
For more fine-grained events, use AFTER_COMMIT or
AFTER_ROLLBACK to intercept transaction commit
or rollback, respectively.
public static TransactionPhase[] values()
for (TransactionPhase c : TransactionPhase.values()) System.out.println(c);
public static TransactionPhase valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null