EasyManuals Logo

IBM DB2 User Manual

IBM DB2
585 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #368 background imageLoading...
Page #368 background image
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the IBM DB2 and is the answer not in the manual?

IBM DB2 Specifications

General IconGeneral
DeveloperIBM
Initial Release1983
LicenseProprietary
Written inC, C++
CategoryDatabase Management System (RDBMS)
Operating SystemLinux, Windows
Programming LanguagesC, C++
Data ModelsRelational
EditionsCommunity, Standard, Advanced
Key Featureshigh availability, scalability