|
dbXML API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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. |
ResultSet |
query(Transaction tx,
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 com.dbxml.util.Configurable |
getConfig, setConfig |
Method Detail |
public void setQueryEngine(QueryEngine engine)
engine
- The QueryEnginepublic java.lang.String getQueryStyle()
public Query compileQuery(Collection context, java.lang.String query, NamespaceMap nsMap, Key[] keys) throws QueryException
context
- The Collection Contextquery
- The QuerynsMap
- The namespace Map (if any)keys
- The initial Key set to use (if any)
QueryException
public ResultSet query(Transaction tx, Collection context, java.lang.String query, NamespaceMap nsMap, Key[] keys) throws QueryException
tx
- The controlling Transactioncontext
- The Collection Contextquery
- The QuerynsMap
- The namespace Map (if any)keys
- The initial Key set to use (if any)
QueryException
|
dbXML API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |