EasyManuals Logo

IBM DB2 User Manual

IBM DB2
585 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #310 background imageLoading...
Page #310 background image
v Closes any open ConnectedProfile objects
v Closes the underlying JDBC Connection object
close() is equivalent to close(CLOSE_CONNECTION).
close(boolean)
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.
getConnectedProfile
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.
getConnection
Format:
public abstract Connection getConnection()
Returns the underlying JDBC Connection object for the given connection
context object.
getExecutionContext
Format:
public abstract ExecutionContext getExecutionContect()
Returns the default ExecutionContext object that is associated with the given
connection context object.
isClosed
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.
294 Application Programming Guide and Reference for Java
â„¢

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the IBM DB2 and is the answer not in the manual?

IBM DB2 Specifications

General IconGeneral
DeveloperIBM
Initial Release1983
LicenseProprietary
Written inC, C++
CategoryDatabase Management System (RDBMS)
Operating SystemLinux, Windows
Programming LanguagesC, C++
Data ModelsRelational
EditionsCommunity, Standard, Advanced
Key Featureshigh availability, scalability