IBM DB2 Manual page 311

Table of Contents

Advertisement

Constructors
The following constructors are defined in a concrete implementation of the
ConnectionContext interface that results from translation of the statement #sql
context Ctx;:
Ctx(String, boolean)
Format:
public Ctx(String url, boolean autocommit)
throws SQLException
Parameters:
url The representation of a data source, as specified in the JDBC getConnection
method.
autocommit
Whether autocommit is enabled for the connection. A value of true means
that autocommit is enabled. A value of false means that autocommit is
disabled.
Ctx(String, String, String, boolean)
Format:
public Ctx(String url, String user, String password,
boolean autocommit)
throws SQLException
Parameters:
url The representation of a data source, as specified in the JDBC getConnection
method.
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.
autocommit
Whether autocommit is enabled for the connection. A value of true means
that autocommit is enabled. A value of false means that autocommit is
disabled.
Ctx(String, Properties, boolean)
Format:
public Ctx(String url, Properties info, boolean autocommit)
throws SQLException
Parameters:
url The representation of a data source, as specified in the JDBC getConnection
method.
info
An object that contains a set of driver properties for the connection. Any of
the IBM Data Server Driver for JDBC and SQLJ properties can be specified.
autocommit
Whether autocommit is enabled for the connection. A value of true means
that autocommit is enabled. A value of false means that autocommit is
disabled.
Chapter 7. JDBC and SQLJ reference information
295

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents