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>
- Enclosing interface:
- CreationListener
public static enum CreationListener.CreatedBy extends Enum<CreationListener.CreatedBy>
The enumeration of possible initiators of a transaction.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description IMPORTThe transaction was imported by way ofLocalTransactionContext.findOrImportTransaction(Xid, int)orLocalTransactionContext.findOrImportTransaction(Xid, int, boolean).MERGEThe transaction was merged by way ofLocalTransactionContext.importProviderTransaction().TRANSACTION_MANAGERThe transaction was created by way ofTransactionManager.begin().USER_TRANSACTIONThe transaction was created by way ofUserTransaction.begin().
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CreationListener.CreatedByvalueOf(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.
-
-
-
Enum Constant Detail
-
USER_TRANSACTION
public static final CreationListener.CreatedBy USER_TRANSACTION
The transaction was created by way ofUserTransaction.begin().
-
TRANSACTION_MANAGER
public static final CreationListener.CreatedBy TRANSACTION_MANAGER
The transaction was created by way ofTransactionManager.begin().
-
IMPORT
public static final CreationListener.CreatedBy IMPORT
The transaction was imported by way ofLocalTransactionContext.findOrImportTransaction(Xid, int)orLocalTransactionContext.findOrImportTransaction(Xid, int, boolean).
-
MERGE
public static final CreationListener.CreatedBy MERGE
The transaction was merged by way ofLocalTransactionContext.importProviderTransaction().
-
-
Method Detail
-
values
public static CreationListener.CreatedBy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CreationListener.CreatedBy c : CreationListener.CreatedBy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CreationListener.CreatedBy valueOf(String name)
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
-
-