|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.ddtek.jdbc.jxtr.XMLType
The XMLType object represents an XML value that is retrieved from a JDBC ResultSet using the getObject method.
It provides methods to instantiate the XML in different formats.
It is important to realize that all these methods, except
generateSAX and writeXML, require complete
instantiation of the XML value. Depending on the size of the XML value
this can cause performance or scalability problems.
| Constructor Summary | |
XMLType(JXTRDriverConfig jxtrDriverConfig,
JXTRColInfo col)
Internal constructor. |
|
| Method Summary | |
void |
generateSAX(org.xml.sax.XMLReader xmlReader)
Generates a SAX2 event stream corresponding to the retrieved XML value. |
java.sql.Clob |
getClob()
Returns the retrieved XML value as a CLOB object. |
org.w3c.dom.Document |
getDOM()
Returns the retrieved XML value as a DOM document. |
void |
getDOM(org.w3c.dom.Node node)
Returns the retrieved XML value as a child DOM node of the specified DOM node. |
org.jdom.Document |
getJDOM()
Returns the retrieved XML value as a JDOM document. |
void |
getJDOM(org.jdom.Element jdomElement)
Returns the retrieved XML value as a child JDOM node of the specified JDOM node. |
java.lang.String |
getString()
Returns the XML value as a String. |
void |
writeXML(java.io.Writer writer,
java.lang.String encoding)
Writes the retrieved XML value out to a Writer object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XMLType(JXTRDriverConfig jxtrDriverConfig,
JXTRColInfo col)
| Method Detail |
public java.lang.String getString()
throws java.sql.SQLException
java.sql.SQLException - If a database error occurs
public void writeXML(java.io.Writer writer,
java.lang.String encoding)
throws java.sql.SQLException
writer - Writer object in which the XML value is written.encoding - Character encoding the Writer is using
java.sql.SQLException - If a database error occurs
public void generateSAX(org.xml.sax.XMLReader xmlReader)
throws java.sql.SQLException
xmlReader - SAX2 event handler
java.sql.SQLException - If a database error occurs
public org.w3c.dom.Document getDOM()
throws java.sql.SQLException
java.sql.SQLException - If a database error occurs.
public void getDOM(org.w3c.dom.Node node)
throws java.sql.SQLException
node - DOM node under which the XML value will be created.
java.sql.SQLException - If a database error occurs.
public org.jdom.Document getJDOM()
throws java.sql.SQLException
java.sql.SQLException - If a database error occurs.
public void getJDOM(org.jdom.Element jdomElement)
throws java.sql.SQLException
jdomElement - JDOM node under which the XML value will
be created.
java.sql.SQLException - If a database error occurs.
public java.sql.Clob getClob()
throws java.sql.SQLException
java.sql.SQLException - If a database error occurs.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||