com.onewebsql.util.transaction
Enum TransactionalDataSource.TransactionStatus

java.lang.Object
  extended by java.lang.Enum<TransactionalDataSource.TransactionStatus>
      extended by com.onewebsql.util.transaction.TransactionalDataSource.TransactionStatus
All Implemented Interfaces:
Serializable, Comparable<TransactionalDataSource.TransactionStatus>
Enclosing class:
TransactionalDataSource

public static enum TransactionalDataSource.TransactionStatus
extends Enum<TransactionalDataSource.TransactionStatus>

Transaction status enumeration. More information about transaction life cycle you will find in "OneWebSQL Transaction Guide".


Enum Constant Summary
ACTIVE
          Transaction is active (started).
COMMITTED
          Transaction was committed.
FAILED_ON_COMMIT
          Transaction failed during commit operation.
FAILED_ON_ROLLBACK
          Transaction failed during rollback operation.
MARKED_FOR_ROLLBACK
          Transaction is still active, but marked for rollback.
NO_TRANSACTION
          Transactional data source is created but transaction is not started.
ROLLEDBACK
          Transaction was rolled back.
 
Method Summary
static TransactionalDataSource.TransactionStatus valueOf(String name)
          Returns the enum constant of this type with the specified name.
static TransactionalDataSource.TransactionStatus[] 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

NO_TRANSACTION

public static final TransactionalDataSource.TransactionStatus NO_TRANSACTION
Transactional data source is created but transaction is not started. You are outside transaction.


ACTIVE

public static final TransactionalDataSource.TransactionStatus ACTIVE
Transaction is active (started). Your operations are within transaction.


MARKED_FOR_ROLLBACK

public static final TransactionalDataSource.TransactionStatus MARKED_FOR_ROLLBACK
Transaction is still active, but marked for rollback.


COMMITTED

public static final TransactionalDataSource.TransactionStatus COMMITTED
Transaction was committed. You are outside transaction.


ROLLEDBACK

public static final TransactionalDataSource.TransactionStatus ROLLEDBACK
Transaction was rolled back. You are outside transaction.


FAILED_ON_COMMIT

public static final TransactionalDataSource.TransactionStatus FAILED_ON_COMMIT
Transaction failed during commit operation. You are outside transaction.


FAILED_ON_ROLLBACK

public static final TransactionalDataSource.TransactionStatus FAILED_ON_ROLLBACK
Transaction failed during rollback operation. You are outside transaction.

Method Detail

values

public static TransactionalDataSource.TransactionStatus[] 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 (TransactionalDataSource.TransactionStatus c : TransactionalDataSource.TransactionStatus.values())
    System.out.println(c);

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

valueOf

public static TransactionalDataSource.TransactionStatus 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-2013 e-point SA. All Rights Reserved.