public class XAConnectionHandler
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
CLOSED_MESSAGE |
protected java.sql.Connection |
connection |
protected boolean |
forcedClose |
protected static java.lang.String |
FORCIBLY_CLOSED_MESSAGE |
protected FBPooledConnection |
owner |
protected java.sql.Connection |
proxy |
| Modifier | Constructor and Description |
|---|---|
protected |
XAConnectionHandler(java.sql.Connection connection,
FBXAConnection owner) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
close()
Closes this PooledConnectionHandler.
|
protected void |
closeStatements() |
protected void |
forgetStatement(org.firebirdsql.ds.StatementHandler stmtHandler) |
protected java.sql.Connection |
getProxy() |
protected void |
handleClose(boolean notifyOwner)
Handle
Connection.close() method. |
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args) |
protected boolean |
isClosed() |
protected boolean |
isRollbackAllowed()
Method to decide if calling rollback on the physical connection for cleanup (in handleClose()) is allowed.
|
protected void |
statementErrorOccurred(org.firebirdsql.ds.StatementHandler stmtHandler,
java.sql.SQLException sqle) |
protected static final java.lang.String CLOSED_MESSAGE
protected static final java.lang.String FORCIBLY_CLOSED_MESSAGE
protected final FBPooledConnection owner
protected volatile java.sql.Connection connection
protected volatile java.sql.Connection proxy
protected volatile boolean forcedClose
protected XAConnectionHandler(java.sql.Connection connection,
FBXAConnection owner)
protected boolean isRollbackAllowed()
throws java.sql.SQLException
NOTE: This method is not involved in rollback decisions for calls to the proxy.
true when calling rollback is allowedjava.sql.SQLExceptionpublic java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
invoke in interface java.lang.reflect.InvocationHandlerjava.lang.Throwableprotected void handleClose(boolean notifyOwner)
throws java.sql.SQLException
Connection.close() method. This implementation closes the
connection and associated statements.notifyOwner - true when connection owner should be notified of
closure.java.sql.SQLException - if underlying connection threw an exception.protected java.sql.Connection getProxy()
protected void close()
throws java.sql.SQLException
java.sql.SQLExceptionprotected boolean isClosed()
protected void statementErrorOccurred(org.firebirdsql.ds.StatementHandler stmtHandler,
java.sql.SQLException sqle)
protected void forgetStatement(org.firebirdsql.ds.StatementHandler stmtHandler)
protected void closeStatements()
throws java.sql.SQLException
java.sql.SQLExceptionCopyright © 2001-2023 Jaybird (Firebird JDBC) team. All rights reserved.