org.apache.xindice.core.xupdate
Class XUpdateQueryResolver
java.lang.Object
|
+--org.apache.xindice.util.SimpleConfigurable
|
+--org.apache.xindice.core.xupdate.XUpdateQueryResolver
- All Implemented Interfaces:
- Configurable, QueryResolver
- public final class XUpdateQueryResolver
- extends SimpleConfigurable
- implements QueryResolver
XUpdateQueryResolver
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 |
setConfig(Configuration config)
setConfig sets the configuration information for the Configurable
object instance. |
void |
setQueryEngine(QueryEngine engine)
setQueryEngine hands a reference for the QueryEngine to the
Resolver. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
STYLE_XUPDATE
public static final java.lang.String STYLE_XUPDATE
XUpdateQueryResolver
public XUpdateQueryResolver()
setConfig
public void setConfig(Configuration config)
throws XindiceException
- Description copied from interface:
Configurable
- setConfig sets the configuration information for the Configurable
object instance.
- Specified by:
setConfig
in interface Configurable
- Overrides:
setConfig
in class SimpleConfigurable
- Following copied from interface:
org.apache.xindice.util.Configurable
- Parameters:
config
- The configuration Node
getQueryStyle
public java.lang.String getQueryStyle()
- Description copied from interface:
QueryResolver
- getQueryStyle returns the Query style supported by this Resolver.
- Specified by:
getQueryStyle
in interface QueryResolver
- Following copied from interface:
org.apache.xindice.core.query.QueryResolver
- Returns:
- The query style
setQueryEngine
public void setQueryEngine(QueryEngine engine)
- Description copied from interface:
QueryResolver
- setQueryEngine hands a reference for the QueryEngine to the
Resolver.
- Specified by:
setQueryEngine
in interface QueryResolver
- Following copied from interface:
org.apache.xindice.core.query.QueryResolver
- Parameters:
engine
- The QueryEngine
compileQuery
public Query compileQuery(Collection context,
java.lang.String query,
NamespaceMap nsMap,
Key[] keys)
throws QueryException
- Description copied from interface:
QueryResolver
- 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.
- Specified by:
compileQuery
in interface QueryResolver
- Following copied from interface:
org.apache.xindice.core.query.QueryResolver
- 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
- Description copied from interface:
QueryResolver
- query compiles a Query against the specified Collection context
and returns the query results.
- Specified by:
query
in interface QueryResolver
- Following copied from interface:
org.apache.xindice.core.query.QueryResolver
- 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 Apache Software Foundation