Databases Reference
In-Depth Information
As you can see, the API provides various convenience methods to retrieve XML
data, so that the application can process it as desired. Here is a list of DB2Xml
methods for the JDBC API and a short description of their usage:
getDB2String():
Retrieves the value of the designated column in the current row of this
ResultSet object as a string.
getDB2XmlString():
Retrieves the value of the designated column in the current row of this
ResultSet object as a string with added XML declaration with encoding tag
ISO-10646-UCS-2 .
getDB2Bytes():
Retrieves the value of the designated column in the current row of this
ResultSet object as UTF-8 encoded bytes.
getDB2XmlBytes(String targetEncoding):
Retrieves the value of the designated column in the current row of this
ResultSet object as a byte array with the XML declaration with encoding tag.
getDB2AsciiStream():
Retrieves the value of the designated column in the current row of this
ResultSet object as a stream of ASCII characters.
getDB2XmlAsciiStream():
Retrieves the value of the designated column in the current row of this
ResultSet object as a stream of ASCII characters with encoding tag.
getDB2CharacterStream():
Retrieves the value of the designated column in the current row of this
ResultSet object as a java.io.Reader object.
getDB2XmlCharacterStream():
Retrieves the value of the designated column in the current row of this
ResultSet object as a java.io.Reader object with XML declaration with
encoding tag ISO-10646-UCS-2 .
getDB2BinaryStream():
Retrieves the value of the designated column in the current row of this
ResultSet object as a UTF-8 encoded binary stream.
getDB2XmlBinaryStream(String targetEncoding):
Retrieves the value of the designated column in the current row of this
ResultSet object as a binary stream. The driver converts the bytes to the
targetEncoding and adds XML declaration with the encoding tag.
Search WWH ::




Custom Search