bitronix.tm.resource.jdbc.lrc
Class LrcXAConnection
java.lang.Object
bitronix.tm.resource.jdbc.BaseProxyHandlerClass
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
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
LrcXAConnection
public LrcXAConnection(java.sql.Connection connection)
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.