public enum TransactionAttribute extends Enum<TransactionAttribute>
| Enum Constant and Description |
|---|
MANDATORY |
NEVER |
NOTSUPPORTED |
REQUIRED |
REQUIRESNEW |
SUPPORTS |
| Modifier and Type | Method and Description |
|---|---|
TransactionToken |
begin(TransactionManager man) |
void |
finish(TransactionManager man,
TransactionToken tranToken) |
static TransactionAttribute |
fromValue(TransactionPropagationType type) |
static TransactionAttribute |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TransactionAttribute[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransactionAttribute MANDATORY
public static final TransactionAttribute NEVER
public static final TransactionAttribute NOTSUPPORTED
public static final TransactionAttribute REQUIRED
public static final TransactionAttribute REQUIRESNEW
public static final TransactionAttribute SUPPORTS
public static TransactionAttribute[] values()
for (TransactionAttribute c : TransactionAttribute.values()) System.out.println(c);
public static TransactionAttribute 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 TransactionAttribute fromValue(TransactionPropagationType type)
public TransactionToken begin(TransactionManager man) throws SystemException, NotSupportedException, InvalidTransactionException, IllegalStateException
public void finish(TransactionManager man, TransactionToken tranToken) throws SystemException, InvalidTransactionException, IllegalStateException, SecurityException, RollbackException, HeuristicMixedException, HeuristicRollbackException
Copyright © 2009-2015 The Apache Software Foundation. All Rights Reserved.