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 #356 background imageLoading...
Page #356 background image
Specifies the collection ID for the connection. When you set this value, you
also set the collection ID of the IBM Data Server Driver for JDBC and SQLJ
instance that is used for the connection.
The setDB2CurrentPackageSet method applies only to connections to DB2
database systems.
Parameter description:
packageSet
The collection ID for the connection. The maximum length for the
packageSet value is 18 bytes. You can invoke this method as an alternative
to executing the SQL SET CURRENT PACKAGESET statement in your
program.
setDB2ProgressiveStreaming
Format:
public void setDB2ProgressiveStreaming(int newSetting)
throws java.sql.SQLException
Sets the progressive streaming setting for all ResultSet objects that are created
on the connection.
Parameter descriptions:
newSetting
The new progresssive streaming setting. Possible values are:
DB2BaseDataSource.YES (1)
Enable progressive streaming. If the data source does not support
progressive streaming, this setting has no effect.
DB2BaseDataSource.NO (2)
Disable progressive streaming.
setJccLogWriter
Formats:
public void setJccLogWriter(PrintWriter logWriter)
throws java.sql.SQLException
public void setJccLogWriter(PrintWriter logWriter, int traceLevel)
throws java.sql.SQLException
Enables or disables the IBM Data Server Driver for JDBC and SQLJ trace, or
changes the trace destination during an active connection.
Parameter descriptions:
logWriter
An object of type java.io.PrintWriter to which the IBM Data Server
Driver for JDBC and SQLJ writes trace output. To turn off the trace, set the
value of logWriter to null.
traceLevel
Specifies the types of traces to collect. See the description of the traceLevel
property in Properties for the IBM Data Server Driver for JDBC and SQLJ
for valid values.
Related concepts
Chapter 15, “Problem diagnosis with the IBM Data Server Driver for JDBC and
SQLJ,” on page 483
340 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