Jdbc Differences Between The Current Ibm Data Server Driver For Jdbc And Sqlj And Earlier Db2 Jdbc Drivers - IBM DB2 Manual

Table of Contents

Advertisement

getDB2XmlBytes
getDB2XmlCharacterStream
getDB2XmlString
isDB2XmlClosed
JDBC differences between the current IBM Data Server Driver for
JDBC and SQLJ and earlier DB2 JDBC drivers
Before you can upgrade your JDBC applications from older drivers to the IBM
Data Server Driver for JDBC and SQLJ, you need to understand the differences
between those drivers.
Important: The JDBC/SQLJ Driver for OS/390
This information is provided only to help you diagnose problems in your
applications after you upgrade to the IBM Data Server Driver for JDBC and SQLJ.
370
Application Programming Guide and Reference for Java
Format:
public byte[] getDB2XmlBytes(String targetEncoding)
throws SQLExceptionn
Retrieves data from a DB2Xml object as a byte array, converts the data to
targetEncoding, and imbeds an XML declaration with an encoding specification
for targetEncoding in the returned data.
Parameter:
targetEncoding
A valid encoding name that is listed in the IANA Charset Registry. The
encoding names that are supported by the DB2 server are listed in
"Mappings of CCSIDs to encoding names for serialized XML output data".
Format:
public java.io.Reader getDB2XmlCharacterStream()
throws SQLExceptionn
Retrieves data from a DB2Xml object as a java.io.Reader object, converts the
data to ISO-10646-UCS-2 encoding, and imbeds an XML declaration with an
encoding specification for ISO-10646-UCS-2 in the returned data.
Format:
public String getDB2XmlString()
throws SQLExceptionn
Retrieves data from a DB2Xml object as a String object, converts the data to
ISO-10646-UCS-2 encoding, and imbeds an XML declaration with an encoding
specification for ISO-10646-UCS-2 in the returned data.
Format:
public boolean isDB2XmlClosed()
throws SQLException
Indicates whether a com.ibm.jcc.DB2Xml object has been closed.
Related concepts
"XML column updates in SQLJ applications" on page 146
"XML column updates in JDBC applications" on page 65
"XML data retrieval in JDBC applications" on page 67
"XML data retrieval in SQLJ applications" on page 148
®
and z/OS is no longer supported.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents