Package 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
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetNestedConnection
(boolean internal) Get a new connection object equivalent to the callgetResultSet
(ResultSet executionResultSet) Get a jdbc ResultSet based on the execution ResultSet.boolean
processInaccessibleDynamicResult
(ResultSet resultSet) Process the resultSet as a dynamic result for closure.
-
Field Details
-
CONTEXT_ID
- See Also:
-
-
Method Details
-
getNestedConnection
Get a new connection object equivalent to the callDriverManager.getConnection("jdbc:default:connection");
- Throws:
SQLException
- Parent connection has been closed.
-
getResultSet
Get a jdbc ResultSet based on the execution ResultSet.- Parameters:
executionResultSet
- a result set as gotten from execution- Throws:
SQLException
- on error
-
processInaccessibleDynamicResult
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 to process.- Returns:
- True if this ResultSet was created by this connection and the result set is open. False otherwise.
-