public static enum Transaction.CLOSE_BEHAVIOR extends Enum<Transaction.CLOSE_BEHAVIOR> implements Consumer<Transaction>
Transaction.onClose(java.util.function.Consumer)
.Enum Constant and Description |
---|
COMMIT
Any open transaction will commit on close.
|
MANUAL
Open transactions on close will throw an exception
|
ROLLBACK
Any open transaction will rollback on close.
|
Modifier and Type | Method and Description |
---|---|
static Transaction.CLOSE_BEHAVIOR |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Transaction.CLOSE_BEHAVIOR[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Transaction.CLOSE_BEHAVIOR COMMIT
public static final Transaction.CLOSE_BEHAVIOR ROLLBACK
public static final Transaction.CLOSE_BEHAVIOR MANUAL
public static Transaction.CLOSE_BEHAVIOR[] values()
for (Transaction.CLOSE_BEHAVIOR c : Transaction.CLOSE_BEHAVIOR.values()) System.out.println(c);
public static Transaction.CLOSE_BEHAVIOR 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 nullCopyright © 2013–2015 Apache Software Foundation. All rights reserved.