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

public Interface ConnectionContext

Known Direct Implementers
org.apache.derby.impl.jdbc.EmbedConnectionContext
Imports
org.apache.derby.iapi.sql.ResultSet, java.sql.Connection, .SQLException

Interface-ized from EmbedConnectionContext. Some basic connection attributes that can be obtained from jdbc.

Field Summary

Modifier and TypeField and Description
public static final String

Method Summary

Modifier and TypeMethod and Description
public Connection

Returns:

a nested connection
getNestedConnection
(boolean
True if the connection should be internal
internal
)

Get a new connection object equivalent to the call

		DriverManager.getConnection("jdbc:default:connection");
		
public ResultSet

Returns:

a JDBC ResultSet
getResultSet
(ResultSet
a result set as gotten from execution
executionResultSet
)

Get a jdbc ResultSet based on the execution ResultSet.

public boolean

Returns:

True if this ResultSet was created by this connection and the result set is open. False otherwise.
processInaccessibleDynamicResult
(ResultSet
ResultSet to process.
resultSet
)

Process the resultSet as a dynamic result for closure.

Field Detail

CONTEXT_IDback to summary
public static final String CONTEXT_ID

Method Detail

getNestedConnectionback to summary
public Connection getNestedConnection(boolean internal) throws SQLException

Get a new connection object equivalent to the call

		DriverManager.getConnection("jdbc:default:connection");
		
Parameters
internal:boolean

True if the connection should be internal

Returns:Connection

a nested connection

Exceptions
SQLException:
Parent connection has been closed.
getResultSetback to summary
public ResultSet getResultSet(ResultSet executionResultSet) throws SQLException

Get a jdbc ResultSet based on the execution ResultSet.

Parameters
executionResultSet:ResultSet

a result set as gotten from execution

Returns:ResultSet

a JDBC ResultSet

Exceptions
SQLException:
on error
processInaccessibleDynamicResultback to summary
public boolean processInaccessibleDynamicResult(ResultSet resultSet)

Process the resultSet as a dynamic result for closure. The result set will have been created in a Java procedure. If the ResultSet is a valid dynamic ResultSet for this connection, then it is set up as a dynamic result which includes:

  • breaking its link with the JDBC connection that created it, since there is a good chance that connection was closed explicitly by the Java procedure.
  • marking its activation as single use to ensure the close of the ResultSet will close the activation.

If the result set a valid dynamic result then false will be returned and no action made against it.

Parameters
resultSet:ResultSet

ResultSet to process.

Returns:boolean

True if this ResultSet was created by this connection and the result set is open. False otherwise.