Top Description Methods
org.apache.derby.iapi.jdbc

public Interface BrokeredStatementControl

Known Direct Implementers
org.apache.derby.impl.jdbc.XAStatementControl
Imports
java.sql.*

Provides control over a BrokeredStatement, BrokeredPreparedStatement or BrokeredCallableStatement

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the actual holdability
checkHoldCursors
(int
The desired holdability
holdability
)

Can cursors be held across commits.

public void
closeRealCallableStatement()

Close the real JDBC CallableStatement when this is controlling a CallableStatement.

public void
closeRealPreparedStatement()

Close the real JDBC CallableStatement when this is controlling a PreparedStatement.

public void
closeRealStatement()

Close the real JDBC Statement when this is controlling a Statement.

public CallableStatement

Returns:

the real callable statement
getRealCallableStatement
()

Return the real JDBC CallableStatement for the brokered statement when this is controlling a CallableStatement.

public PreparedStatement

Returns:

the real prepared statement
getRealPreparedStatement
()

Return the real JDBC PreparedStatement for the brokered statement when this is controlling a PreparedStatement.

public Statement

Returns:

the real statement
getRealStatement
()

Return the real JDBC statement for the brokered statement when this is controlling a Statement.

public ResultSet

Returns:

the wrapper ResultSet
wrapResultSet
(Statement
Statement that created the ResultSet.
s
,
ResultSet
The ResultSet to wrap
rs
)

Optionally wrap a returned ResultSet in another ResultSet.

Method Detail

checkHoldCursorsback to summary
public int checkHoldCursors(int holdability) throws SQLException

Can cursors be held across commits. Returns the holdability that should be used which may be different from the passed in holdabilty.

Parameters
holdability:int

The desired holdability

Returns:int

the actual holdability

Exceptions
SQLException:
on error
closeRealCallableStatementback to summary
public void closeRealCallableStatement() throws SQLException

Close the real JDBC CallableStatement when this is controlling a CallableStatement.

Exceptions
SQLException:
on error
closeRealPreparedStatementback to summary
public void closeRealPreparedStatement() throws SQLException

Close the real JDBC CallableStatement when this is controlling a PreparedStatement.

Exceptions
SQLException:
on error
closeRealStatementback to summary
public void closeRealStatement() throws SQLException

Close the real JDBC Statement when this is controlling a Statement.

Exceptions
SQLException:
on error
getRealCallableStatementback to summary
public CallableStatement getRealCallableStatement() throws SQLException

Return the real JDBC CallableStatement for the brokered statement when this is controlling a CallableStatement.

Returns:CallableStatement

the real callable statement

Exceptions
SQLException:
on error
getRealPreparedStatementback to summary
public PreparedStatement getRealPreparedStatement() throws SQLException

Return the real JDBC PreparedStatement for the brokered statement when this is controlling a PreparedStatement.

Returns:PreparedStatement

the real prepared statement

Exceptions
SQLException:
on error
getRealStatementback to summary
public Statement getRealStatement() throws SQLException

Return the real JDBC statement for the brokered statement when this is controlling a Statement.

Returns:Statement

the real statement

Exceptions
SQLException:
on error
wrapResultSetback to summary
public ResultSet wrapResultSet(Statement s, ResultSet rs)

Optionally wrap a returned ResultSet in another ResultSet.

Parameters
s:Statement

Statement that created the ResultSet.

rs:ResultSet

The ResultSet to wrap

Returns:ResultSet

the wrapper ResultSet