bitronix.tm.resource.jdbc.lrc
Class LrcXAConnection

java.lang.Object
  extended by bitronix.tm.resource.jdbc.BaseProxyHandlerClass
      extended by bitronix.tm.resource.jdbc.lrc.LrcXAConnection
All Implemented Interfaces:
java.lang.reflect.InvocationHandler

public class LrcXAConnection
extends BaseProxyHandlerClass

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

Author:
lorban, brettw

Constructor Summary
LrcXAConnection(java.sql.Connection connection)
           
 
Method Summary
 void addConnectionEventListener(javax.sql.ConnectionEventListener listener)
           
 void close()
           
 boolean equals(java.lang.Object obj)
           
 java.sql.Connection getConnection()
           
 java.lang.Object getProxiedDelegate()
          Must be implemented by the sub-class of this class.
 javax.transaction.xa.XAResource getXAResource()
           
 int hashCode()
           
 void removeConnectionEventListener(javax.sql.ConnectionEventListener listener)
           
 java.lang.String toString()
           
 
Methods inherited from class bitronix.tm.resource.jdbc.BaseProxyHandlerClass
invoke
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, 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
Throws:
java.sql.SQLException

close

public void close()
           throws java.sql.SQLException
Throws:
java.sql.SQLException

getConnection

public java.sql.Connection getConnection()
                                  throws java.sql.SQLException
Throws:
java.sql.SQLException

addConnectionEventListener

public void addConnectionEventListener(javax.sql.ConnectionEventListener listener)

removeConnectionEventListener

public void removeConnectionEventListener(javax.sql.ConnectionEventListener listener)

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

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

getProxiedDelegate

public java.lang.Object getProxiedDelegate()
                                    throws java.lang.Exception
Description copied from class: BaseProxyHandlerClass
Must be implemented by the sub-class of this class. This method should return the "true" object to be delegated to in the case that the method is not overridden by the sub-class.

Specified by:
getProxiedDelegate in class BaseProxyHandlerClass
Returns:
the true delegate object
Throws:
java.lang.Exception - can throw any exception if desired


Copyright © 2006-2018 Bitronix Software. All Rights Reserved.