IBM DB2 Manual page 356

Table of Contents

Advertisement

|
|
|
|
|
|
|
|
|
|
|
|
|
|
340
Application Programming Guide and Reference for Java
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

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents