org.kasource.spring.transaction
Enum TransactionResult

java.lang.Object
  extended by java.lang.Enum<TransactionResult>
      extended by org.kasource.spring.transaction.TransactionResult
All Implemented Interfaces:
Serializable, Comparable<TransactionResult>

public enum TransactionResult
extends Enum<TransactionResult>

Result of a completed transaction

Author:
rikard

Enum Constant Summary
STATUS_COMMITTED
          Completion status in case of commit
STATUS_ROLLED_BACK
          Completion status in case of roll back
STATUS_UNKNOWN
          Completion status in case of heuristic mixed completion or system errors
 
Method Summary
static TransactionResult valueOf(String name)
          Returns the enum constant of this type with the specified name.
static TransactionResult[] 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

STATUS_COMMITTED

public static final TransactionResult STATUS_COMMITTED
Completion status in case of commit


STATUS_ROLLED_BACK

public static final TransactionResult STATUS_ROLLED_BACK
Completion status in case of roll back


STATUS_UNKNOWN

public static final TransactionResult STATUS_UNKNOWN
Completion status in case of heuristic mixed completion or system errors

Method Detail

values

public static TransactionResult[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (TransactionResult c : TransactionResult.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static TransactionResult valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2011. All Rights Reserved.