Package org.wildfly.transaction.client
Enum CreationListener.CreatedBy
java.lang.Object
java.lang.Enum<CreationListener.CreatedBy>
org.wildfly.transaction.client.CreationListener.CreatedBy
- All Implemented Interfaces:
Serializable,Comparable<CreationListener.CreatedBy>,java.lang.constant.Constable
- Enclosing interface:
- CreationListener
The enumeration of possible initiators of a transaction.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe transaction was imported by way ofLocalTransactionContext.findOrImportTransaction(Xid, int)orLocalTransactionContext.findOrImportTransaction(Xid, int, boolean).The transaction was merged by way ofLocalTransactionContext.importProviderTransaction().The transaction was created by way ofTransactionManager.begin().The transaction was created by way ofUserTransaction.begin(). -
Method Summary
Modifier and TypeMethodDescriptionstatic CreationListener.CreatedByReturns 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.
-
Enum Constant Details
-
USER_TRANSACTION
The transaction was created by way ofUserTransaction.begin(). -
TRANSACTION_MANAGER
The transaction was created by way ofTransactionManager.begin(). -
IMPORT
The transaction was imported by way ofLocalTransactionContext.findOrImportTransaction(Xid, int)orLocalTransactionContext.findOrImportTransaction(Xid, int, boolean). -
MERGE
The transaction was merged by way ofLocalTransactionContext.importProviderTransaction().
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-