org.sixdml.excelon
Class xlnSixdmlQueryService
java.lang.Object
|
+--org.sixdml.excelon.xlnServiceBase
|
+--org.sixdml.excelon.xlnNamespaceAwareService
|
+--org.sixdml.excelon.xlnSixdmlQueryService
- All Implemented Interfaces:
- org.xmldb.api.base.Configurable, org.xmldb.api.base.Service, org.sixdml.SixdmlConstants, org.sixdml.query.SixdmlQueryService
- public class xlnSixdmlQueryService
- extends xlnNamespaceAwareService
- implements org.sixdml.query.SixdmlQueryService, org.sixdml.SixdmlConstants
xlnSixdmlQueryService.java
Used to perform XPath queries over collections.
Created: Wed Jan 16 03:43:42 2002
| Fields inherited from interface org.sixdml.SixdmlConstants |
SIXDML_NS, SIXDML_VERSION |
|
Method Summary |
org.sixdml.query.SixdmlQueryResultsMap |
executeQuery(java.lang.String query,
org.sixdml.SixdmlCollection collection)
Executes an XPath query against the specified collection. |
org.sixdml.query.SixdmlXpathObject |
executeQuery(java.lang.String query,
org.sixdml.SixdmlResource resource)
Executes an XPath query against the specified collection. |
org.sixdml.query.SixdmlXpathObject |
executeQuery(com.exln.dxe.XPath query,
org.sixdml.SixdmlResource resource)
Executes an XPath query against the specified collection. |
java.lang.String |
getName()
Gets the name of the service. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.sixdml.query.SixdmlQueryService |
addNamespaceMapping, clearNamespaceMappings, executeQuery, executeQuery, getNamespaceMapping, removeNamespaceMapping, setNamespaceMap |
| Methods inherited from interface org.xmldb.api.base.Service |
getVersion, setCollection |
| Methods inherited from interface org.xmldb.api.base.Configurable |
getProperty, setProperty |
getName
public java.lang.String getName()
- Gets the name of the service.
- Specified by:
getName in interface org.xmldb.api.base.Service- Overrides:
getName in class xlnServiceBase
- Returns:
- the name of the service.
executeQuery
public org.sixdml.query.SixdmlQueryResultsMap executeQuery(java.lang.String query,
org.sixdml.SixdmlCollection collection)
throws org.sixdml.exceptions.InvalidQueryException,
org.xmldb.api.base.XMLDBException
- Executes an XPath query against the specified collection.
- Parameters:
query - the XPath query.collection - the collection to execute the query against.- Returns:
- the results of the query as a pairing of SixdmlResources and
SixdmlXpathObjects.
- Throws:
org.sixdml.exceptions.InvalidQueryException - if the query is not valid XPath.org.xmldb.api.base.XMLDBException - if a database error occurs- See Also:
SixdmlXpathObject
executeQuery
public org.sixdml.query.SixdmlXpathObject executeQuery(com.exln.dxe.XPath query,
org.sixdml.SixdmlResource resource)
throws org.xmldb.api.base.XMLDBException
- Executes an XPath query against the specified collection.
- Parameters:
query - the XPath query as an eXcelon DXE XPath object.collection - the collection to execute the query against.- Returns:
- the results of the query as a SixdmlXpathObject.
- Throws:
org.xmldb.api.base.XMLDBException - if a database error occurs
executeQuery
public org.sixdml.query.SixdmlXpathObject executeQuery(java.lang.String query,
org.sixdml.SixdmlResource resource)
throws org.sixdml.exceptions.InvalidQueryException,
org.xmldb.api.base.XMLDBException
- Executes an XPath query against the specified collection.
- Parameters:
query - the XPath query as a string.collection - the collection to execute the query against.- Returns:
- the results of the query as a SixdmlXpathObject.
- Throws:
org.sixdml.exceptions.InvalidQueryException - if the query is not valid XPath.org.xmldb.api.base.XMLDBException - if a database error occurs- See Also:
SixdmlXpathObject,
executeQuery(XPath, SixdmlResource)