IBM DB2 Manual page 310

Table of Contents

Advertisement

close(boolean)
getConnectedProfile
getConnection
getExecutionContext
isClosed
294
Application Programming Guide and Reference for Java
v Closes any open ConnectedProfile objects
v Closes the underlying JDBC Connection object
close() is equivalent to close(CLOSE_CONNECTION).
Format:
public abstract void close (boolean close-connection)
throws SQLException
Performs the following functions:
v Releases all resources that are used by the given connection context object
v Closes any open ConnectedProfile objects
v Closes the underlying JDBC Connection object, depending on the value of
the close-connection parameter
Parameters:
close-connection
Specifies whether the underlying JDBC Connection object is closed when a
connection context object is closed:
CLOSE_CONNECTION
Closes the underlying JDBC Connection object.
KEEP_CONNECTION
Does not close the underlying JDBC Connection object.
Format:
public abstract ConnectedProfile getConnectedProfile(Object profileKey)
throws SQLException
This method is used by code that is generated by the SQLJ translator. It is not
intended for direct use by application programs.
Format:
public abstract Connection getConnection()
Returns the underlying JDBC Connection object for the given connection
context object.
Format:
public abstract ExecutionContext getExecutionContect()
Returns the default ExecutionContext object that is associated with the given
connection context object.
Format:
public abstract boolean isClosed()
Returns true if the given connection context object has been closed. Returns
false if the connection context object has not been closed.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents