bitronix.tm.resource.jdbc.lrc
Class LrcConnectionHandle
java.lang.Object
bitronix.tm.resource.jdbc.BaseProxyHandlerClass
bitronix.tm.resource.jdbc.lrc.LrcConnectionHandle
- All Implemented Interfaces:
- java.lang.reflect.InvocationHandler
public class LrcConnectionHandle
- extends BaseProxyHandlerClass
Connection handle implementation for a non-XA JDBC resource emulating XA with Last Resource Commit.
- Author:
- lorban, brettw
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
LrcConnectionHandle
public LrcConnectionHandle(LrcXAResource xaResource,
java.sql.Connection delegate)
getConnection
public java.sql.Connection getConnection()
close
public void close()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
isClosed
public boolean isClosed()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
setAutoCommit
public void setAutoCommit(boolean autoCommit)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
commit
public void commit()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
rollback
public void rollback()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
rollback
public void rollback(java.sql.Savepoint savepoint)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
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.