org.xquark.xml.xdbc
Interface XMLDocumentSet

All Superinterfaces:
XMLResultSet

public interface XMLDocumentSet
extends XMLResultSet

This interface allows the user to access query results as handles to stored XML documents. This is useful for instance to rename or delete documents, based on their contents. It is an error to try to use this interface when the query does not return complete XML documents.


Method Summary
 XMLDocument nextDocument()
          Returns the next result as an XML document and increments by 1 the cursor position.
 
Methods inherited from interface org.xquark.xml.xdbc.XMLResultSet
close, getContentHandler, getErrorHandler, getFragmentsAsDocument, getLexicalHandler, getMetaData, getPosition, getPrefixMap, getPSVInfoSetProvider, getResultCount, getStatement, hasNext, hasRootTag, isBeforeFirst, isDocument, nextAsDocument, nextAsDOM, nextAsDOM, nextAsSAX, nextAsStream, nextAsString, setContentHandler, setErrorHandler, setLexicalHandler
 

Method Detail

nextDocument

public XMLDocument nextDocument()
                         throws XMLDBCException
Returns the next result as an XML document and increments by 1 the cursor position. The cursor is initially positioned before the first result; the first call to the method nextDocument() makes the first result the current result.

Returns:
the next result of the result set or null if there is no more result in the result set.
Throws:
XMLDBCException - if a data source access error occurs.


Copyright © 2004 Université de Versailles Saint-Quentin, XQuark Group. All rights reserved.