bitronix.tm.resource.jdbc.lrc
Class LrcXAConnection

java.lang.Object
  extended by bitronix.tm.resource.jdbc.lrc.LrcXAConnection
All Implemented Interfaces:
javax.sql.PooledConnection, javax.sql.XAConnection

public class LrcXAConnection
extends java.lang.Object
implements javax.sql.XAConnection

XAConnection implementation for a non-XA JDBC resource emulating XA with Last Resource Commit.

© Bitronix Software

Author:
lorban

Constructor Summary
LrcXAConnection(java.sql.Connection connection)
           
 
Method Summary
 void addConnectionEventListener(javax.sql.ConnectionEventListener listener)
           
 void addStatementEventListener(javax.sql.StatementEventListener sel)
           
 void close()
           
 java.sql.Connection getConnection()
           
 javax.transaction.xa.XAResource getXAResource()
           
 void removeConnectionEventListener(javax.sql.ConnectionEventListener listener)
           
 void removeStatementEventListener(javax.sql.StatementEventListener sel)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LrcXAConnection

public LrcXAConnection(java.sql.Connection connection)
Method Detail

getXAResource

public javax.transaction.xa.XAResource getXAResource()
                                              throws java.sql.SQLException
Specified by:
getXAResource in interface javax.sql.XAConnection
Throws:
java.sql.SQLException

close

public void close()
           throws java.sql.SQLException
Specified by:
close in interface javax.sql.PooledConnection
Throws:
java.sql.SQLException

getConnection

public java.sql.Connection getConnection()
                                  throws java.sql.SQLException
Specified by:
getConnection in interface javax.sql.PooledConnection
Throws:
java.sql.SQLException

addConnectionEventListener

public void addConnectionEventListener(javax.sql.ConnectionEventListener listener)
Specified by:
addConnectionEventListener in interface javax.sql.PooledConnection

removeConnectionEventListener

public void removeConnectionEventListener(javax.sql.ConnectionEventListener listener)
Specified by:
removeConnectionEventListener in interface javax.sql.PooledConnection

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

addStatementEventListener

public void addStatementEventListener(javax.sql.StatementEventListener sel)
Specified by:
addStatementEventListener in interface javax.sql.PooledConnection

removeStatementEventListener

public void removeStatementEventListener(javax.sql.StatementEventListener sel)
Specified by:
removeStatementEventListener in interface javax.sql.PooledConnection