org.datanucleus.transaction
Class TransactionUtils

java.lang.Object
  extended by org.datanucleus.transaction.TransactionUtils

public class TransactionUtils
extends java.lang.Object

Utility methods relating to transactions.


Constructor Summary
TransactionUtils()
           
 
Method Summary
static java.lang.String getNameForTransactionIsolationLevel(int isolation)
          Accessor for a string name of a transaction isolation level.
static int getTransactionIsolationLevelForName(java.lang.String isolationName)
          Convenience method to convert the supplied isolation level name into the associated UserTransaction type number.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionUtils

public TransactionUtils()
Method Detail

getNameForTransactionIsolationLevel

public static java.lang.String getNameForTransactionIsolationLevel(int isolation)
Accessor for a string name of a transaction isolation level.

Parameters:
isolation - The isolation level (as defined by UserTransaction).
Returns:
The name

getTransactionIsolationLevelForName

public static int getTransactionIsolationLevelForName(java.lang.String isolationName)
Convenience method to convert the supplied isolation level name into the associated UserTransaction type number.

Parameters:
isolationName - The name of the isolation level
Returns:
Isolation level type


Copyright © 2009. All Rights Reserved.