public class XAConnectionHandler extends Object
Modifier and Type | Field and Description |
---|---|
protected static String |
CLOSED_MESSAGE |
protected Connection |
connection |
protected boolean |
forcedClose |
protected static String |
FORCIBLY_CLOSED_MESSAGE |
protected FBPooledConnection |
owner |
protected Connection |
proxy |
Modifier | Constructor and Description |
---|---|
protected |
XAConnectionHandler(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 Connection |
getProxy() |
protected void |
handleClose(boolean notifyOwner)
Handle
Connection.close() method. |
Object |
invoke(Object proxy,
Method method,
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,
SQLException sqle) |
protected static final String CLOSED_MESSAGE
protected static final String FORCIBLY_CLOSED_MESSAGE
protected final FBPooledConnection owner
protected volatile Connection connection
protected volatile Connection proxy
protected volatile boolean forcedClose
protected XAConnectionHandler(Connection connection, FBXAConnection owner)
protected boolean isRollbackAllowed() throws SQLException
NOTE: This method is not involved in rollback decisions for calls to the proxy.
true
when calling rollback is allowedSQLException
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke
in interface InvocationHandler
Throwable
protected void handleClose(boolean notifyOwner) throws SQLException
Connection.close()
method. This implementation closes the
connection and associated statements.notifyOwner
- true
when connection owner should be notified of
closure.SQLException
- if underlying connection threw an exception.protected Connection getProxy()
protected void close() throws SQLException
SQLException
protected boolean isClosed()
protected void statementErrorOccurred(org.firebirdsql.ds.StatementHandler stmtHandler, SQLException sqle)
protected void forgetStatement(org.firebirdsql.ds.StatementHandler stmtHandler)
protected void closeStatements() throws SQLException
SQLException
Copyright © 2001-2015 Jaybird (Firebird JDBC/JCA) team. All rights reserved.