SQL/MX Programming Manual for Java
SQLJ Runtime Package
HP NonStop SQL/MX Programming Manual for Java—523726-003
B-2
sqlj.runtime.ConnectionContext Interface
sqlj.runtime.ConnectionContext Interface
The ConnectionContext interface includes a set of methods that manage SQL 
operations during a database session. For more information, see Connection Contexts 
on page 3-8.
ConnectionContext Variable Details
CLOSE_CONNECTION
Specifies that the underlying JDBC Connection object be closed. For example, 
close(CLOSE_CONNECTION) closes the underlying JDBC Connection object when 
it releases all resources for a specified connection context object.
public interface ConnectionContext
Table B-1. ConnectionContext Variables Summary
Variable Description
CLOSE_CONNECTION
Specifies that the underlying JDBC Connection object be 
closed.
KEEP_CONNECTION
Specifies that the underlying JDBC Connection object 
remain open.
Table B-2. ConnectionContext Methods Summary
Method Description
close()
Releases all resources for the specified connection context 
object and closes the underlying JDBC Connection object. 
close(boolean)
Releases all resources for the specified connection context 
object and either closes the underlying JDBC Connection 
object or keeps the JDBC Connection object open. 
getConnection()
Returns the underlying JDBC Connection object 
associated with the specified connection context object.
getExecutionContext()
Returns the default execution context object used by the 
specified connection context object.
isClosed()
Returns true if the specified execution context object has 
been closed or false if the specified execution context object 
remains open.
public static final boolean CLOSE_CONNECTION 










