org.dbxml.core.query
Interface QueryResolver
- All Superinterfaces:
- org.dbxml.server.Configurable
- All Known Implementing Classes:
- XPathQueryResolver, XUpdateQueryResolver
- public interface QueryResolver
- extends org.dbxml.server.Configurable
QueryResolver is an interface that has to be implemented to actually
perfrom query resolution. dbXML provides an XPathQueryResolver to
handle XPath queries against sets of Documents in a Collection.
Method Summary |
Query |
compileQuery(Collection context,
java.lang.String query,
NamespaceMap nsMap,
Key[] keys)
compileQuery compiles a Query against the specified Collection
context and returns the compiled Query. |
java.lang.String |
getQueryStyle()
getQueryStyle returns the Query style supported by this Resolver. |
NodeSet |
query(Collection context,
java.lang.String query,
NamespaceMap nsMap,
Key[] keys)
query compiles a Query against the specified Collection context
and returns the query results. |
void |
setQueryEngine(QueryEngine engine)
setQueryEngine hands a reference for the QueryEngine to the
Resolver. |
Methods inherited from interface org.dbxml.server.Configurable |
getConfig, setConfig |
setQueryEngine
public void setQueryEngine(QueryEngine engine)
- setQueryEngine hands a reference for the QueryEngine to the
Resolver.
- Parameters:
engine
- The QueryEngine
getQueryStyle
public java.lang.String getQueryStyle()
- getQueryStyle returns the Query style supported by this Resolver.
- Returns:
- The query style
compileQuery
public Query compileQuery(Collection context,
java.lang.String query,
NamespaceMap nsMap,
Key[] keys)
throws QueryException
- compileQuery compiles a Query against the specified Collection
context and returns the compiled Query. This DOES NOT actually
run the query, merely just parses it and primes any possible
Indexers that the query might need.
- Parameters:
context
- The Collection Contextquery
- The QuerynsMap
- The namespace Map (if any)keys
- The initial Key set to use (if any)- Returns:
- The compiled Query
query
public NodeSet query(Collection context,
java.lang.String query,
NamespaceMap nsMap,
Key[] keys)
throws QueryException
- query compiles a Query against the specified Collection context
and returns the query results.
- Parameters:
context
- The Collection Contextquery
- The QuerynsMap
- The namespace Map (if any)keys
- The initial Key set to use (if any)- Returns:
- The resulting NodeSet
Copyright (c) 1999-2001 The dbXML Group, All rights reserved