Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.ibatis.dao.engine.transaction.jta
Class JtaDaoTransaction  view JtaDaoTransaction download JtaDaoTransaction.java

java.lang.Object
  extended bycom.ibatis.dao.engine.transaction.jta.JtaDaoTransaction
All Implemented Interfaces:
com.ibatis.dao.engine.transaction.ConnectionDaoTransaction, com.ibatis.dao.client.DaoTransaction

public class JtaDaoTransaction
extends java.lang.Object
implements com.ibatis.dao.engine.transaction.ConnectionDaoTransaction


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
JtaDaoTransaction(javax.transaction.UserTransaction utx, javax.sql.DataSource ds)
           
 
Method Summary
 void close()
           
 void commit()
           
 java.sql.Connection getConnection()
           
 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

JtaDaoTransaction

public JtaDaoTransaction(javax.transaction.UserTransaction utx,
                         javax.sql.DataSource ds)
Method Detail

commit

public void commit()

rollback

public void rollback()

close

public void close()
           throws java.sql.SQLException

getConnection

public java.sql.Connection getConnection()
Specified by:
getConnection in interface com.ibatis.dao.engine.transaction.ConnectionDaoTransaction