org.multiverse.api.lifecycle
Enum TransactionLifecycleEvent

java.lang.Object
  extended by java.lang.Enum<TransactionLifecycleEvent>
      extended by org.multiverse.api.lifecycle.TransactionLifecycleEvent
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TransactionLifecycleEvent>

public enum TransactionLifecycleEvent
extends java.lang.Enum<TransactionLifecycleEvent>

An enumeration for all possible events for the transaction lifecycle.

Author:
Peter Veentjer.

Enum Constant Summary
PostAbort
          Just after aborting.
PostCommit
          Just after committing.
PostPrepare
          Just after preparing
PostStart
          Just after starting.
PreAbort
          Just before aborting.
PreCommit
          Just before committing.
PrePrepare
          Just before preparing
PreStart
          Just before starting.
 
Method Summary
static TransactionLifecycleEvent valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TransactionLifecycleEvent[] 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

PreStart

public static final TransactionLifecycleEvent PreStart
Just before starting.


PostStart

public static final TransactionLifecycleEvent PostStart
Just after starting.


PrePrepare

public static final TransactionLifecycleEvent PrePrepare
Just before preparing


PostPrepare

public static final TransactionLifecycleEvent PostPrepare
Just after preparing


PreAbort

public static final TransactionLifecycleEvent PreAbort
Just before aborting.


PostAbort

public static final TransactionLifecycleEvent PostAbort
Just after aborting.


PreCommit

public static final TransactionLifecycleEvent PreCommit
Just before committing.


PostCommit

public static final TransactionLifecycleEvent PostCommit
Just after committing.

Method Detail

values

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

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

valueOf

public static TransactionLifecycleEvent valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null


Copyright © 2008-2010 Multiverse. All Rights Reserved.