BrokeredStatementControlfinal class XAStatementControl extends java.lang.Object implements BrokeredStatementControl
| Modifier and Type | Field | Description |
|---|---|---|
private BrokeredConnection |
applicationConnection |
|
(package private) BrokeredStatement |
applicationStatement |
|
private java.sql.CallableStatement |
realCallableStatement |
|
private EmbedConnection |
realConnection |
|
private java.sql.PreparedStatement |
realPreparedStatement |
|
private java.sql.Statement |
realStatement |
|
private EmbedXAConnection |
xaConnection |
| Modifier | Constructor | Description |
|---|---|---|
private |
XAStatementControl(EmbedXAConnection xaConnection) |
|
(package private) |
XAStatementControl(EmbedXAConnection xaConnection,
java.sql.CallableStatement realCallableStatement,
java.lang.String sql) |
|
(package private) |
XAStatementControl(EmbedXAConnection xaConnection,
java.sql.PreparedStatement realPreparedStatement,
java.lang.String sql,
java.lang.Object generatedKeys) |
|
(package private) |
XAStatementControl(EmbedXAConnection xaConnection,
java.sql.Statement realStatement) |
| Modifier and Type | Method | Description |
|---|---|---|
int |
checkHoldCursors(int holdability) |
Can cursors be held across commits.
|
void |
closeRealCallableStatement() |
Close the realCallableStatement within this control.
|
void |
closeRealPreparedStatement() |
Close the realPreparedStatement within this control.
|
void |
closeRealStatement() |
Close the realStatement within this control.
|
java.sql.CallableStatement |
getRealCallableStatement() |
Return the real JDBC CallableStatement for the brokered statement
when this is controlling a CallableStatement.
|
java.sql.PreparedStatement |
getRealPreparedStatement() |
Return the real JDBC PreparedStatement for the brokered statement
when this is controlling a PreparedStatement.
|
java.sql.Statement |
getRealStatement() |
Return the real JDBC statement for the brokered statement
when this is controlling a Statement.
|
java.sql.ResultSet |
wrapResultSet(java.sql.Statement s,
java.sql.ResultSet rs) |
Don't need to wrap the ResultSet but do need to update its
application Statement reference to be the one the application
used to create the ResultSet.
|
private final EmbedXAConnection xaConnection
private final BrokeredConnection applicationConnection
BrokeredStatement applicationStatement
private EmbedConnection realConnection
private java.sql.Statement realStatement
private java.sql.PreparedStatement realPreparedStatement
private java.sql.CallableStatement realCallableStatement
private XAStatementControl(EmbedXAConnection xaConnection)
XAStatementControl(EmbedXAConnection xaConnection, java.sql.Statement realStatement) throws java.sql.SQLException
java.sql.SQLExceptionXAStatementControl(EmbedXAConnection xaConnection, java.sql.PreparedStatement realPreparedStatement, java.lang.String sql, java.lang.Object generatedKeys) throws java.sql.SQLException
java.sql.SQLExceptionXAStatementControl(EmbedXAConnection xaConnection, java.sql.CallableStatement realCallableStatement, java.lang.String sql) throws java.sql.SQLException
java.sql.SQLExceptionpublic void closeRealStatement()
throws java.sql.SQLException
closeRealStatement in interface BrokeredStatementControljava.sql.SQLExceptionpublic void closeRealCallableStatement()
throws java.sql.SQLException
closeRealCallableStatement in interface BrokeredStatementControljava.sql.SQLExceptionpublic void closeRealPreparedStatement()
throws java.sql.SQLException
closeRealPreparedStatement in interface BrokeredStatementControljava.sql.SQLExceptionpublic java.sql.Statement getRealStatement()
throws java.sql.SQLException
BrokeredStatementControlgetRealStatement in interface BrokeredStatementControljava.sql.SQLExceptionpublic java.sql.PreparedStatement getRealPreparedStatement()
throws java.sql.SQLException
BrokeredStatementControlgetRealPreparedStatement in interface BrokeredStatementControljava.sql.SQLExceptionpublic java.sql.CallableStatement getRealCallableStatement()
throws java.sql.SQLException
BrokeredStatementControlgetRealCallableStatement in interface BrokeredStatementControljava.sql.SQLExceptionpublic java.sql.ResultSet wrapResultSet(java.sql.Statement s,
java.sql.ResultSet rs)
wrapResultSet in interface BrokeredStatementControls - Statement that created the ResultSet.public int checkHoldCursors(int holdability)
throws java.sql.SQLException
checkHoldCursors in interface BrokeredStatementControljava.sql.SQLExceptionApache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.