Home

xl2.odb
Class XL2TransactionMgr

java.lang.Object
  |
  +--xl2.odb.XL2TransactionMgr

public class XL2TransactionMgr
extends java.lang.Object

Static access to a thread's XL2Transaction.


Field Summary
static int READ
          Lock type.
static int WRITE
          Lock type.
 
Constructor Summary
XL2TransactionMgr()
           
 
Method Summary
static void abort()
          Calls the corresponding method on the XL2Transaction of the calling thread.
static void begin()
          Calls the corresponding method on the XL2Transaction of the calling thread.
static void commit()
          Calls the corresponding method on the XL2Transaction of the calling thread.
static XL2Transaction currentTransaction()
          The XL2Transaction of the calling thread.
static XL2Transaction getGlobal()
          The default XL2Transaction for any thread not explicitly joined to one.
static void lock(java.lang.Object obj, int mode)
          Calls the corresponding method on the XL2Transaction of the calling thread.
static void readLock(java.lang.Object obj)
          Convenience function that calls lock(Object,int).
static void setGlobal(XL2Transaction transaction)
          The default XL2Transaction for any thread not explicitly joined to one.
static void writeLock(java.lang.Object obj)
          Convenience function that calls lock(Object,int).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

READ

public static int READ
Lock type.

WRITE

public static int WRITE
Lock type.
Constructor Detail

XL2TransactionMgr

public XL2TransactionMgr()
Method Detail

abort

public static void abort()
Calls the corresponding method on the XL2Transaction of the calling thread.

begin

public static void begin()
Calls the corresponding method on the XL2Transaction of the calling thread.

commit

public static void commit()
Calls the corresponding method on the XL2Transaction of the calling thread.

currentTransaction

public static XL2Transaction currentTransaction()
The XL2Transaction of the calling thread.
See Also:
AbstractTransaction.join()

getGlobal

public static XL2Transaction getGlobal()
The default XL2Transaction for any thread not explicitly joined to one.

lock

public static void lock(java.lang.Object obj,
                        int mode)
Calls the corresponding method on the XL2Transaction of the calling thread.

readLock

public static void readLock(java.lang.Object obj)
Convenience function that calls lock(Object,int).

setGlobal

public static void setGlobal(XL2Transaction transaction)
The default XL2Transaction for any thread not explicitly joined to one.

writeLock

public static void writeLock(java.lang.Object obj)
Convenience function that calls lock(Object,int).

Home