|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This statement interface is used for executing constant XQuery or XPath statements
and obtaining the results produced (update statements are not supported yet).
| Method Summary | |
void |
close()
Releases the statement XMLDBC resources immediately instead of waiting for this to happen when it is automatically closed. |
boolean |
execute(java.lang.String query)
Deprecated. Not useful since updates are not available. |
boolean |
execute(java.lang.String query,
int queryType)
Deprecated. Not useful since updates are not available. |
XMLDocumentSet |
executeDocumentQuery(java.lang.String query)
Executes a query statement of the type specified when this object was built with the createStatement method (see XMLConnection interface) that returns complete XML documents. |
XMLResultSet |
executeQuery(java.lang.String query)
Executes a query statement of the type specified when this object was built with the createStatement method (see XMLConnection interface) that returns results. |
XMLResultSet |
executeQuery(java.lang.String query,
int queryType)
Deprecated. Distinction is no relevant anymore because XPath is now a subset of XQuery. |
java.lang.String |
getBaseURI()
gets the base URI for documents. |
XMLConnection |
getConnection()
Returns the connection object that produced this statement. |
XMLDocumentSet |
getDocumentSet()
Returns the current statement results as an XMLDocumentSet object. |
XMLResultSet |
getResultSet()
Returns the current statement results as an XMLResultSet object. |
void |
setBaseURI(java.lang.String baseURI)
Sets the base URI for documents. |
| Method Detail |
public boolean execute(java.lang.String query)
throws XMLDBCException
query - the query string.
XMLDBCException - if a data source access error occurs.
public boolean execute(java.lang.String query,
int queryType)
throws XMLDBCException
query - the query string.queryType - the type of query for this statement (see constants in XMLConnection interface).
XMLDBCException - if a data source access error occurs.
public XMLResultSet executeQuery(java.lang.String query)
throws XMLDBCException
query - the query string
XMLDBCException - if a data source access error occurs.
public XMLResultSet executeQuery(java.lang.String query,
int queryType)
throws XMLDBCException
query - the query string.queryType - the type of query for this statement (see constants in XMLConnection interface).
XMLDBCException - if a data source access error occurs.
public XMLDocumentSet executeDocumentQuery(java.lang.String query)
throws XMLDBCException
query - a static and read-only query in the specified type.
XMLDBCException - if a data source access error occurs, or if the returned
results are not complete XML documents.
public XMLResultSet getResultSet()
throws XMLDBCException
XMLDBCException - if a data source access error occurs.
public XMLDocumentSet getDocumentSet()
throws XMLDBCException
XMLDBCException - if a data source access error occurs, or if the returned
results are not complete XML documents.public XMLConnection getConnection()
public void close()
throws XMLDBCException
XMLDBCException - if a data source access error occurs.public void setBaseURI(java.lang.String baseURI)
public java.lang.String getBaseURI()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||