Enum Class TransactionResult
- All Implemented Interfaces:
Serializable, Comparable<TransactionResult>, Constable
Indicates the transaction result reported to post-transaction operations.
- Since:
- 2.0.0
- Author:
- Mark Allen
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCommit completed successfully.Pyranid attempted to commit the transaction, but the commit call failed, so the final database outcome is unknown.Pyranid did not attempt to commit the transaction. -
Method Summary
Modifier and TypeMethodDescriptionstatic TransactionResultReturns the enum constant of this class with the specified name.static TransactionResult[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
COMMITTED
Commit completed successfully. -
ROLLED_BACK
Pyranid did not attempt to commit the transaction.This is the result for transactions that leave the closure through the rollback path before commit.
-
IN_DOUBT
Pyranid attempted to commit the transaction, but the commit call failed, so the final database outcome is unknown.For example, the database may have committed successfully but the client may not have received the acknowledgement.
- Since:
- 4.2.0
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-