Before a com.ibm.db2.jcc.DB2ResultSetMetaData method can be used, a
java.sql.ResultSetMetaData object that is returned from a
java.sql.ResultSet.getMetaData call needs to be cast to
com.ibm.db2.jcc.DB2ResultSetMetaData.
DB2ResultSetMetaData methods:
The following methods are defined only for the IBM Data Server Driver for JDBC
and SQLJ.
isDB2ColumnNameDerived
Format:
public boolean isDB2ColumnNameDerived (int column)
throws java.sql.SQLException
Returns true if the name of a ResultSet column is in the SQL SELECT list that
generated the ResultSet.
For example, suppose that a ResultSet is generated from the SQL statement
SELECT EMPNAME, SUM(SALARY) FROM EMP. Column name EMPNAME
is derived from the SQL SELECT list, but the name of the column in the
ResultSet that corresponds to SUM(SALARY) is not derived from the SELECT
list.
Parameter descriptions:
column
The name of a column in the ResultSet.
DB2RowID interface
The com.ibm.db2.jcc.DB2RowID interface is used for declaring Java objects for use
with the SQL ROWID data type.
The com.ibm.db2.jcc.DB2RowID interface does not apply to connection to IBM
Informix Dynamic Server.
DB2RowID methods
The following method is defined only for the IBM Data Server Driver for JDBC
and SQLJ.
getBytes
Format:
public byte[] getBytes()
Converts a com.ibm.jcc.DB2RowID object to bytes.
Related concepts
“ROWIDs in JDBC with the IBM Data Server Driver for JDBC and SQLJ” on
page 55
“ROWIDs in SQLJ with the IBM Data Server Driver for JDBC and SQLJ” on
page 143
DB2SimpleDataSource class
The com.ibm.db2.jcc.DB2SimpleDataSource class extends the DB2BaseDataSource
class.
352 Application Programming Guide and Reference for Java
™
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|