com.xenonsoft.bridgetown.aop.transaction
Class HeuristicFailureException.HeuristicType

java.lang.Object
  extended byorg.apache.commons.lang.enum.Enum
      extended bycom.xenonsoft.bridgetown.aop.transaction.HeuristicFailureException.HeuristicType
All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable
Enclosing class:
HeuristicFailureException

public static class HeuristicFailureException.HeuristicType
extends org.apache.commons.lang.enum.Enum

Inner enumeration constant for representing heuristic decisions. This class together with the outer class provides a simplification of the JTA heuristic checked exceptions and turns them into one unchecked exception.

Version:
$Id: HeuristicFailureException.java,v 1.3 2005/03/17 02:35:51 peter_pilgrim Exp $
Author:
Peter Pilgrim, 08-Mar-2005 13:06:00
See Also:
Serialized Form

Field Summary
static HeuristicFailureException.HeuristicType COMMIT
          This enumeration constant denotes the rollback operation on a resource to report that a heuristic decision was made and that all relevant updates have been committed.
static HeuristicFailureException.HeuristicType MIXED
          This enumeration constant denotes that a heuristic decision was made and that some relevant updates have been committed and others have been rolled back.
static HeuristicFailureException.HeuristicType ROLLBACK
          This enumeration constant denotes the commit operation to report that a heuristic decision was made and that all relevant updates have been rolled back.
 
Fields inherited from class org.apache.commons.lang.enum.Enum
iToString
 
Method Summary
static java.util.List getEnumList()
          Return a list collection of registered enumerations for this class type
static java.util.Map getEnumMap()
          Return a map collection of registered enumerations for this class type
static java.util.Iterator iterator()
          Return an iterator that can traverse the collection of registered enumerations
 
Methods inherited from class org.apache.commons.lang.enum.Enum
compareTo, equals, getEnum, getEnumClass, getEnumList, getEnumMap, getName, hashCode, iterator, readResolve, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

COMMIT

public static final HeuristicFailureException.HeuristicType COMMIT
This enumeration constant denotes the rollback operation on a resource to report that a heuristic decision was made and that all relevant updates have been committed.

This constant effective turns a checked exception HeuristicCommitException into a simplified unchecked exception.


MIXED

public static final HeuristicFailureException.HeuristicType MIXED
This enumeration constant denotes that a heuristic decision was made and that some relevant updates have been committed and others have been rolled back.

This constant effective turns a checked exception HeuristicMixedException into a simplified unchecked exception.


ROLLBACK

public static final HeuristicFailureException.HeuristicType ROLLBACK
This enumeration constant denotes the commit operation to report that a heuristic decision was made and that all relevant updates have been rolled back.

This constant effective turns a checked exception HeuristicRollbackException into a simplified unchecked exception.

Method Detail

getEnumMap

public static java.util.Map getEnumMap()
Return a map collection of registered enumerations for this class type

Returns:
the map collection

getEnumList

public static java.util.List getEnumList()
Return a list collection of registered enumerations for this class type

Returns:
the list collection

iterator

public static java.util.Iterator iterator()
Return an iterator that can traverse the collection of registered enumerations

Returns:
the iterator


Copyright © 2005 XeNoNSoFT.com. All Rights Reserved.