org.exolab.jms.transaction
Class TransactionManagerType

java.lang.Object
  |
  +--org.exolab.jms.transaction.TransactionManagerType
All Implemented Interfaces:
java.io.Serializable

public final class TransactionManagerType
extends java.lang.Object
implements java.io.Serializable

This class defines all the valid transaction manager types

Version:
$Revision: 1.2 $ $Date: 2003/08/07 13:33:12 $
Author:
Jim Alateras
See Also:
Serialized Form

Field Summary
static TransactionManagerType NULL
          Instatiate instances related to each of the enumerations
static int NULL_TM_ORD
          Oridnal values for each transaction manager type
static java.lang.String NULL_TM_STR
          Strign value for each transaction manager type
static TransactionManagerType TYREX
           
static int TYREX_TM_ORD
           
static java.lang.String TYREX_TM_STR
           
 
Method Summary
 boolean equals(java.lang.Object obj)
          Return true if the two specified object is ofthe same type andthat their ordinal values are the same.
static TransactionManagerType fromInt(int value)
          Return the TransactionManagerType give its ordinal value
 int getOrd()
          Returns the ordinal value for this type
 java.lang.String getType()
          Return the transaction type as a string
 boolean isNullTransactionManager()
          Returns true if it is a Tyrex transaction manager
 boolean isTyrexTransactionManager()
          Returns true if it is a Tyrex transaction manager
 java.lang.String toString()
          Returns the name of this transaction type
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NULL_TM_ORD

public static final int NULL_TM_ORD
Oridnal values for each transaction manager type

TYREX_TM_ORD

public static final int TYREX_TM_ORD

NULL_TM_STR

public static final java.lang.String NULL_TM_STR
Strign value for each transaction manager type

TYREX_TM_STR

public static final java.lang.String TYREX_TM_STR

NULL

public static final TransactionManagerType NULL
Instatiate instances related to each of the enumerations

TYREX

public static final TransactionManagerType TYREX
Method Detail

getOrd

public int getOrd()
Returns the ordinal value for this type
Returns:
int

getType

public java.lang.String getType()
Return the transaction type as a string
Returns:
String

toString

public java.lang.String toString()
Returns the name of this transaction type
Overrides:
toString in class java.lang.Object
Returns:
String

fromInt

public static TransactionManagerType fromInt(int value)
Return the TransactionManagerType give its ordinal value
Parameters:
value - - message ord value
Returns:
TransactionManagerType

equals

public boolean equals(java.lang.Object obj)
Return true if the two specified object is ofthe same type andthat their ordinal values are the same.
Overrides:
equals in class java.lang.Object
Parameters:
obj - object to compare against
Returns:
boolean true if the two objects are equivalent

isTyrexTransactionManager

public boolean isTyrexTransactionManager()
Returns true if it is a Tyrex transaction manager
Returns:
boolean

isNullTransactionManager

public boolean isNullTransactionManager()
Returns true if it is a Tyrex transaction manager
Returns:
boolean


Copyright © 1999-2004 The OpenJMS Group. All Rights Reserved.