|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<TransactionAttributeType>
org.beanlet.transaction.TransactionAttributeType
public enum TransactionAttributeType
Defines all possible transaction types.
| Enum Constant Summary | |
|---|---|
MANDATORY
The mandatory attribute indicates that the business method must be called in the context of an active transaction. |
|
NEVER
Business methods annotated with this attribute must not be called within the scope of an active transaction. |
|
NOT_SUPPORTED
This attribute indicates that a business method should never be executed in the context of a transaction by the container. |
|
REQUIRED
This attribute indicates that the business method must be invoked in the context of a transaction. |
|
REQUIRES_NEW
This attribute indicates that the business method will always be invoked in the context of a new transaction. |
|
SUPPORTS
This attribute indicates that the container should defer the creation of a transaction to the caller. |
|
| Method Summary | |
|---|---|
static TransactionAttributeType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static TransactionAttributeType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final TransactionAttributeType NEVER
NEVER_SUPPORTED.
public static final TransactionAttributeType NOT_SUPPORTED
public static final TransactionAttributeType MANDATORY
public static final TransactionAttributeType SUPPORTS
public static final TransactionAttributeType REQUIRED
public static final TransactionAttributeType REQUIRES_NEW
| Method Detail |
|---|
public static TransactionAttributeType[] values()
for (TransactionAttributeType c : TransactionAttributeType.values()) System.out.println(c);
public static TransactionAttributeType valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||