IBM DB2 Manual page 352

Table of Contents

Advertisement

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
336
Application Programming Guide and Reference for Java
password
The password for the authorization ID that is used to establish the
connection.
gssCredential
If the data source uses Kerberos security, specifies a delegated credential
that is passed from another principal.
properties
Properties for the reused connection. These properties override any
properties that are already defined on the DB2Connection instance.
reuseDB2Connection (untrusted or trusted reuse without reauthentication)
Formats:
public void reuseDB2Connection(java.util.Properties properties)
throws java.sql.SQLException
Reuses an existing Connection instance without reauthentication. This method
is intended for reuse of a Connection instance when the properties do not
change.
Trusted connections are supported for:
IBM Data Server Driver for JDBC and SQLJ type 4 connectivity to DB2
v
Database for Linux, UNIX, and Windows Version 9.5 or later, and DB2 for
z/OS Version 9.1 or later
IBM Data Server Driver for JDBC and SQLJ type 2 connectivity to DB2 for
v
z/OS Version 9.1 or later
This method is for dirty reuse of a connection. This means that the connection
state is not reset when the object is reused from the pool. Special register
settings and property settings remain in effect unless they are overridden by
passed properties. Global temporary tables are not deleted. Properties that are
not specified are not re-initialized. All JDBC standard transient properties, such
as the isolation level, autocommit mode, and read-only mode are reset to their
JDBC defaults. Certain properties, such as user, password, databaseName,
serverName, portNumber, planName, and pkList remain unchanged.
Parameter description:
properties
Properties for the reused connection. These properties override any
properties that are already defined on the DB2Connection instance.
setDB2ClientAccountingInformation
Format:
public void setDB2ClientAccountingInformation(String info)
throws java.sql.SQLException
Specifies accounting information for the connection. This information is for
client accounting purposes. This value can change during a connection.
setDB2ClientAccountingInformation sets the value in the CLIENT ACCTNG
special register.
Parameter description:
info
User-specified accounting information. The maximum length depends on
the server. For a DB2 Database for Linux, UNIX, and Windows server, the
maximum length is 255 bytes. For a DB2 for z/OS server, the maximum

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents