setString(String) - Advanced SQL Engine - Teradata Database

SQL External Routine Programming

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Published
July 2021
Language
English (United States)
Last Update
2021-07-27
dita:mapPath
rin1593638965306.ditamap
dita:ditavalPath
rin1593638965306.ditaval
dita:id
B035-1147
lifecycle
previous
Product Category
Teradata Vantage™

Sets the XML value designated by this SQLXML instance to the given String representation.

Syntax

void setString(String  value)
                throws SQLException

Syntax Elements

value
The string representation of the XML value.
The format of this String is defined by org.xml.sax.InputSource, where the characters in the stream represent the Unicode code points for XML according to the XML 1.0 specification.
Although an encoding declaration other than Unicode may be present, the encoding of the String is Unicode.

Usage Notes

The behavior of this method is the same as ResultSet.updateString() when the designated column of the ResultSet has a type java.sql.Types of SQLXML.

The SQL XML object becomes not writeable when this method is called and may also become unreadable depending on the implementation.

Exceptions

Throws SQLException if there is an error processing the XML value. The getCause() method of the exception may provide a more detailed exception, such as if the stream does not contain valid characters.

An exception is thrown if the state is not writable. A database specific code “9752 (ERRUDFJAVAXML) <Error processing XML value in setString>” is returned.