public static enum CreationListener.CreatedBy extends Enum<CreationListener.CreatedBy>
| Enum Constant and Description |
|---|
IMPORT
The transaction was imported by way of
LocalTransactionContext.findOrImportTransaction(Xid, int) or
LocalTransactionContext.findOrImportTransaction(Xid, int, boolean). |
MERGE
The transaction was merged by way of
LocalTransactionContext.importProviderTransaction(). |
TRANSACTION_MANAGER
The transaction was created by way of
TransactionManager.begin(). |
USER_TRANSACTION
The transaction was created by way of
UserTransaction.begin(). |
| Modifier and Type | Method and Description |
|---|---|
static CreationListener.CreatedBy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CreationListener.CreatedBy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CreationListener.CreatedBy USER_TRANSACTION
UserTransaction.begin().public static final CreationListener.CreatedBy TRANSACTION_MANAGER
TransactionManager.begin().public static final CreationListener.CreatedBy IMPORT
LocalTransactionContext.findOrImportTransaction(Xid, int) or
LocalTransactionContext.findOrImportTransaction(Xid, int, boolean).public static final CreationListener.CreatedBy MERGE
LocalTransactionContext.importProviderTransaction().public static CreationListener.CreatedBy[] values()
for (CreationListener.CreatedBy c : CreationListener.CreatedBy.values()) System.out.println(c);
public static CreationListener.CreatedBy valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2019 JBoss by Red Hat. All rights reserved.