Main Page | Packages | Class Hierarchy | Class List | Directories | Class Members | Related Pages

org.colimas.db.transaction.TxController Class Reference

List of all members.

Public Member Functions

 TxController (String id)
Connection getConnection (boolean create) throws TxDBException
void commit () throws SQLException
void begin ()

Static Public Member Functions

static TxController get ()

Static Public Attributes

static ThreadLocal myTxController = new ThreadLocal()

Detailed Description

TxController

Function:
controll the trasaction begin, commit and rollback.

Author:
zhao lei
Version:
1.3
Modification History:
 SEQ DATE       ORDER DEVELOPER      DESCRIPTION
 --- ---------- ----- -------------- -----------------------------
 001 2005/09/19       zhao lei       INIT
 002 2005/12/03       zhao lei	   Change the package name
 003 2006/01/02       zhao lei       add log
 004 2006/01/03       zhao lei       modified
 


Constructor & Destructor Documentation

org.colimas.db.transaction.TxController.TxController String  id  ) 
 

Create one TxController instance by given an id.

Parameters:
id-user id unique identified for one connection.


Member Function Documentation

void org.colimas.db.transaction.TxController.begin  ) 
 

transaction begins

void org.colimas.db.transaction.TxController.commit  )  throws SQLException
 

transaction commits

Exceptions:
SQLException 

static TxController org.colimas.db.transaction.TxController.get  )  [static]
 

get one TxController instance.

Returns:
TxController
Since:

Connection org.colimas.db.transaction.TxController.getConnection boolean  create  )  throws TxDBException
 

get Connection by given condition whether create a new one

Parameters:
create true if create a new one.
Returns:
Connection
Exceptions:
TxDBException 
Since:


Member Data Documentation

ThreadLocal org.colimas.db.transaction.TxController.myTxController = new ThreadLocal() [static]
 

ThreadLocal share in thread


The documentation for this class was generated from the following file:
Generated on Sat Jan 14 02:04:27 2006 for Colimas by  doxygen 1.4.4