SQL/MX Programming Manual for Java

SQLJ Runtime Package
HP NonStop SQL/MX Programming Manual for Java523726-003
B-4
ConnectionContext Method Details
close(boolean)
Releases all resources for the specified connection context object and either closes the
underlying JDBC Connection object or keeps the underlying JDBC Connection
object open.
Parameters
closeConnection (either the KEEP_CONNECTION constant, which keeps the
underlying JDBC Connection object open, or the CLOSE_CONNECTION constant,
which closes the underlying JDBC Connection object)
The close(CLOSE_CONNECTION) method achieves the same result as the
close() method.
Throws
SQLException (if unable to close the connection context object)
See Also
CLOSE_CONNECTION on page B-2
KEEP_CONNECTION on page B-3
close() on page B-3
getConnection()
Returns the underlying JDBC Connection object associated with the specified
connection context object.
Returns
The underlying JDBC Connection object
public abstract void close(boolean closeConnection)
throws SQLException
Caution. Multiple connection context objects might share the same underlying JDBC
Connection object. Therefore, be careful when using the close(CLOSE_CONNECTION)
method, which closes the underlying JDBC Connection object.
public abstract Connection getConnection()