DB2Connection interface
The com.ibm.db2.jcc.DB2Connection interface extends the java.sql.Connection
interface.
DB2Connection implements the java.sql.Wrapper interface.
DB2Connection methods
The following methods are defined only for the IBM Data Server Driver for JDBC
and SQLJ.
alternateWasUsedOnConnect
Format:
public boolean alternateWasUsedOnConnect()
throws java.sql.SQLException
Returns true if the driver used alternate server information to obtain the
connection. The alternate server information is available in the transient
clientRerouteServerList information on the DB2BaseDataSource, which the
database server updates as primary and alternate servers change.
changeDB2Password
Format:
public abstract void changeDB2Password(String oldPassword,
String newPassword)
throws java.sql.SQLException
Changes the password for accessing the data source, for the user of the
Connection object.
Parameter descriptions:
oldPassword
The original password for the Connection.
newPassword
The new password for the Connection.
createArrayOf
Format:
Array createArrayOf(String typeName,
Object[] elements)
throws SQLException;
Creates a java.sql.Array object.
Parameter descriptions:
typeName
The SQL data type of the elements of the array map to. typeName can be a
built-in data type or a distinct type.
elements
The elements that populate the Array object.
deregisterDB2XmlObject
Formats:
public void deregisterDB2XmlObject(String sqlIdSchema,
String sqlIdName)
throws SQLException
326 Application Programming Guide and Reference for Java
â„¢
|
|
|
|
|
|
|
|