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 #312 background imageLoading...
Page #312 background image
Ctx(Connection)
Format:
public Ctx(java.sql.Connection JDBC-connection-object)
throws SQLException
Parameters:
JDBC-connection-object
A previously created JDBC Connection object.
If the constructor call throws an SQLException, the JDBC Connection object
remains open.
Ctx(ConnectionContext)
Format:
public Ctx(sqlj.runtime.ConnectionContext SQLJ-connection-context-object)
throws SQLException
Parameters:
SQLJ-connection-context-object
A previously created SQLJ ConnectionContext object.
The following constructors are defined in a concrete implementation of the
ConnectionContext interface that results from translation of the statement #sql
context Ctx with (dataSource ="jdbc/TestDS");:
Ctx()
Format:
public Ctx()
throws SQLException
Ctx(String, String)
Format:
public Ctx(String user, String password,
)
throws SQLException
Parameters:
user
The user ID under which the connection to the data source is made.
password
The password for the user ID under which the connection to the data
source is made.
Ctx(Connection)
Format:
public Ctx(java.sql.Connection JDBC-connection-object)
throws SQLException
Parameters:
JDBC-connection-object
A previously created JDBC Connection object.
If the constructor call throws an SQLException, the JDBC Connection object
remains open.
296 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