Db2Sqlca Class - IBM DB2 Manual

Table of Contents

Advertisement

A DB2BaseDataSource object does not support connection pooling or distributed
transactions. It contains all of the properties and methods that the
DB2BaseDataSource class contains. In addition, DB2SimpleDataSource contains the
following IBM Data Server Driver for JDBC and SQLJ-only properties.
DB2SimpleDataSource implements the java.sql.Wrapper interface.
DB2SimpleDataSource properties
The following property is defined only for the IBM Data Server Driver for JDBC
and SQLJ. See "Properties for the IBM Data Server Driver for JDBC and SQLJ" for
an explanation of this property.
String com.ibm.db2.jcc.DB2SimpleDataSource.password
DB2SimpleDataSource methods
The following method is defined only for the IBM Data Server Driver for JDBC
and SQLJ.
setPassword
Format:
public void setPassword(String password)
Sets the password for the DB2SimpleDataSource object. There is no
corresponding getPassword method. Therefore, the password cannot be
encrypted because there is no way to retrieve the password so that you can
decrypt it.
Related tasks
"Connecting to a data source using the DataSource interface" on page 15
"Creating and deploying DataSource objects" on page 19

DB2Sqlca class

The com.ibm.db2.jcc.DB2Sqlca class is an encapsulation of the SQLCA.
DB2Sqlca methods
The following methods are defined only for the IBM Data Server Driver for JDBC
and SQLJ.
getMessage
Format:
public abstract String getMessage()
Returns error message text.
getSqlCode
Format:
public abstract int getSqlCode()
Returns an SQL error code value.
getSqlErrd
Format:
public abstract int[] getSqlErrd()
Returns an array, each element of which contains an SQLCA SQLERRD.
Chapter 7. JDBC and SQLJ reference information
353

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents