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 #386 background imageLoading...
Page #386 background image
getDB2XmlBytes
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.
getDB2XmlCharacterStream
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.
getDB2XmlString
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.
isDB2XmlClosed
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
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
®
and z/OS is no longer supported.
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

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