SQL/MX Programming Manual for Java
SQLJ Runtime Package
HP NonStop SQL/MX Programming Manual for Java—523726-003
B-3
ConnectionContext Method Details
See Also
•
KEEP_CONNECTION on page B-3
•
close(boolean) on page B-4
KEEP_CONNECTION
Specifies that the underlying JDBC Connection object remain open. For example,
close(KEEP_CONNECTION) keeps the underlying JDBC Connection object open
when it releases all resources for a specified connection context object.
See Also
•
CLOSE_CONNECTION on page B-2
•
close(boolean) on page B-4
ConnectionContext Method Details
close()
Releases all resources for the specified connection context object and closes the
underlying JDBC Connection object. The close() method achieves the same result
as the close(CLOSE_CONNECTION) method.
Throws
•
SQLException (if unable to close the connection context object)
See Also
•
close(boolean) on page B-4
public static final boolean KEEP_CONNECTION
public abstract void close()
throws SQLException
Caution. Multiple connection context objects might share the same underlying JDBC
Connection object. Therefore, be careful when using the close() method, which closes the
underlying JDBC Connection object.