public static enum TransactionalEventListener.TransactionPhase extends java.lang.Enum<TransactionalEventListener.TransactionPhase>
| Enum Constant and Description | 
|---|
| AFTER_COMMITFire the event after the commit has completed successfully. | 
| AFTER_COMPLETIONFire the event after the transaction has completed. | 
| AFTER_ROLLBACKFire the event if the transaction has rolled back. | 
| BEFORE_COMMITFire the event before transaction commit. | 
| Modifier and Type | Method and Description | 
|---|---|
| static TransactionalEventListener.TransactionPhase | valueOf(java.lang.String name)Returns the enum constant of this type with the specified name. | 
| static TransactionalEventListener.TransactionPhase[] | values()Returns an array containing the constants of this enum type, in
the order they are declared. | 
public static final TransactionalEventListener.TransactionPhase BEFORE_COMMIT
public static final TransactionalEventListener.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 TransactionalEventListener.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 TransactionalEventListener.TransactionPhase AFTER_COMPLETION
For more fine-grained events, use AFTER_COMMIT or
 AFTER_ROLLBACK to intercept transaction commit
 or rollback, respectively.
public static TransactionalEventListener.TransactionPhase[] values()
for (TransactionalEventListener.TransactionPhase c : TransactionalEventListener.TransactionPhase.values()) System.out.println(c);
public static TransactionalEventListener.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