com.ibatis.sqlmap.engine.transaction.jta
Class JtaTransaction

java.lang.Object
  extended bycom.ibatis.sqlmap.engine.transaction.jta.JtaTransaction
All Implemented Interfaces:
Transaction

public class JtaTransaction
extends java.lang.Object
implements Transaction


Field Summary
private  boolean commmitted
           
private  java.sql.Connection connection
           
private static org.apache.commons.logging.Log connectionLog
           
private  javax.sql.DataSource dataSource
           
private  boolean newTransaction
           
private  javax.transaction.UserTransaction userTransaction
           
 
Constructor Summary
JtaTransaction(javax.transaction.UserTransaction utx, javax.sql.DataSource ds)
           
 
Method Summary
 void close()
           
 void commit()
           
 java.sql.Connection getConnection()
           
private  void init()
           
 void rollback()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

connectionLog

private static final org.apache.commons.logging.Log connectionLog

userTransaction

private javax.transaction.UserTransaction userTransaction

dataSource

private javax.sql.DataSource dataSource

connection

private java.sql.Connection connection

commmitted

private boolean commmitted

newTransaction

private boolean newTransaction
Constructor Detail

JtaTransaction

public JtaTransaction(javax.transaction.UserTransaction utx,
                      javax.sql.DataSource ds)
               throws TransactionException
Method Detail

init

private void init()
           throws TransactionException,
                  java.sql.SQLException
Throws:
TransactionException
java.sql.SQLException

commit

public void commit()
            throws java.sql.SQLException,
                   TransactionException
Specified by:
commit in interface Transaction
Throws:
java.sql.SQLException
TransactionException

rollback

public void rollback()
              throws java.sql.SQLException,
                     TransactionException
Specified by:
rollback in interface Transaction
Throws:
java.sql.SQLException
TransactionException

close

public void close()
           throws java.sql.SQLException,
                  TransactionException
Specified by:
close in interface Transaction
Throws:
java.sql.SQLException
TransactionException

getConnection

public java.sql.Connection getConnection()
                                  throws java.sql.SQLException,
                                         TransactionException
Specified by:
getConnection in interface Transaction
Throws:
java.sql.SQLException
TransactionException