public enum TransactionType extends Enum<TransactionType>
| Enum Constant and Description | 
|---|
EJB
EJB - Means the transaction it's controlled by JEE container-managed or bean-managed transaction demarcation 
 | 
GLOBAL
JTA - Global transaction, delimit JTA transactions using UserTransaction interface, can span multiple databases and processes 
 | 
LOCAL
JDBC - Local transaction, delimit JDBC transactions using connection interface, are native to a single database, use non-XA data sources, and are restricted within a single process. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static TransactionType | 
get(String s)  | 
static TransactionType | 
valueOf(String name)
Returns the enum constant of this type with the specified name. 
 | 
static TransactionType[] | 
values()
Returns an array containing the constants of this enum type, in
the order they are declared. 
 | 
public static final TransactionType GLOBAL
public static final TransactionType LOCAL
public static final TransactionType EJB
public static TransactionType[] values()
for (TransactionType c : TransactionType.values()) System.out.println(c);
public static TransactionType 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 nullpublic static TransactionType get(String s)
Copyright © 2012–2020 jkniv, copyleft code. All rights reserved.