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 Modifier and Type Field Description static java.lang.String
CONTEXT_ID
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.sql.Connection
getNestedConnection(boolean internal)
Get a new connection object equivalent to the calljava.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 callDriverManager.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:- 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.
-
-