|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.ddtek.jxtr.JXTRColInfo
JXTRColInfo implements methods that allow you to work with XML values in a result set returned from a jXTransformer query.
Different options are available to manage the resulting XML, depending on whether the generated XML needs to be retrieved as String, DOM, JDOM, SAX, or needs to be written to a java.io.Writer object.
| Method Summary | |
void |
dump(java.lang.String indent,
java.io.Writer dumpTo)
Dump internal structure. |
void |
generateSAX(org.xml.sax.XMLReader xmlReader)
Generates XML SAX events that correspond to this column's XML value. |
java.sql.Clob |
getClob()
Returns XML for this column as a CLOB object. |
org.w3c.dom.Document |
getDOM()
Returns XML for this column as DOM document (default root element is added). |
void |
getDOM(org.w3c.dom.Node node)
Returns XML for this column as a child DOM node of the specified DOM node. |
org.jdom.Document |
getJDOM()
Returns XML for this column as JDOM document (default root element is added). |
void |
getJDOM(org.jdom.Element jdomElement)
Returns XML for this column as a child JDOM node of the specified JDOM element node. |
java.lang.String |
getString()
Returns XML for this column as a String. |
java.lang.String |
toString()
Returns XML for this column as a String. |
void |
writeXML(java.io.Writer writer,
java.lang.String encoding)
Write XML for this column to the specified Writer using the requested encoding. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
public void writeXML(java.io.Writer writer,
java.lang.String encoding)
throws JXTRException
writer - writer object to which to write XMLencoding - encoding to use
JXTRException
public java.sql.Clob getClob()
throws JXTRException
Note that the jXTransformer API implements this feature by retrieving the complete XML document or fragment and caching it on the client side. This works for small- or medium-sized XML documents or fragments, but can result in scalability or performance problems with larger XML documents or fragments.
JXTRExceptionpublic java.lang.String toString()
toString in class java.lang.ObjectJXTRException
public java.lang.String getString()
throws JXTRException
JXTRException
public org.w3c.dom.Document getDOM()
throws JXTRException
JXTRException
public void getDOM(org.w3c.dom.Node node)
throws JXTRException
node - DOM node under which the XML column value will be created.
JXTRException
public org.jdom.Document getJDOM()
throws JXTRException
JXTRException
public void getJDOM(org.jdom.Element jdomElement)
throws JXTRException
JXTRException
public void generateSAX(org.xml.sax.XMLReader xmlReader)
throws JXTRException
JXTRException
public void dump(java.lang.String indent,
java.io.Writer dumpTo)
throws JXTRException
JXTRException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||