org.apache.derby.iapi.jdbc
Interface ConnectionContext

All Known Implementing Classes:
EmbedConnectionContext

public interface ConnectionContext

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


Field Summary
static java.lang.String CONTEXT_ID
           
 
Method Summary
 java.sql.Connection getNestedConnection(boolean internal)
          Get a new connection object equivalent to the call DriverManager.getConnection("jdbc:default:connection");
 java.sql.ResultSet getResultSet(ResultSet executionResultSet)
          Get a jdbc ResultSet based on the execution ResultSet.
 boolean processInaccessibleDynamicResult(java.sql.ResultSet resultSet)
          Process the resultSet as a dynamic result for closure.
 

Field Detail

CONTEXT_ID

static final java.lang.String CONTEXT_ID
See Also:
Constant Field Values
Method Detail

getNestedConnection

java.sql.Connection getNestedConnection(boolean internal)
                                        throws java.sql.SQLException
Get a new connection object equivalent to the call
                DriverManager.getConnection("jdbc:default:connection");
                

Throws:
java.sql.SQLException - Parent connection has been closed.

getResultSet

java.sql.ResultSet getResultSet(ResultSet executionResultSet)
                                throws java.sql.SQLException
Get a jdbc ResultSet based on the execution ResultSet.

Parameters:
executionResultSet - a result set as gotten from execution
Throws:
java.sql.SQLException - on error

processInaccessibleDynamicResult

boolean processInaccessibleDynamicResult(java.sql.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:

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

Parameters:
resultSet - ResultSet to process.
Returns:
True if this ResultSet was created by this connection and the result set is open. False otherwise.

Built on Thu 2012-03-29 21:53:33+0000, from revision ???

Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.