java.io.Serializable
, java.lang.Comparable<TransactionOutcome>
public enum TransactionOutcome extends java.lang.Enum<TransactionOutcome>
Enum Constant | Description |
---|---|
COMMIT |
The transaction committed successfully.
|
IN_DOUBT |
The outcome of the transaction is in doubt.
|
ROLLBACK |
The transaction rolled back successfully.
|
UNKNOWN |
The outcome of the transaction is unknown.
|
Modifier and Type | Method | Description |
---|---|---|
static TransactionOutcome |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static TransactionOutcome[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransactionOutcome UNKNOWN
public static final TransactionOutcome IN_DOUBT
public static final TransactionOutcome COMMIT
public static final TransactionOutcome ROLLBACK
public static TransactionOutcome[] values()
for (TransactionOutcome c : TransactionOutcome.values()) System.out.println(c);
public static TransactionOutcome valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullReport a bug or suggest an enhancement
For further API reference and developer documentation see the Java SE Documentation, which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples.
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 1993, 2017, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA.
All rights reserved. Use is subject to license terms and the documentation redistribution policy.
DRAFT JDBC 4.4 EA5