|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.query.resolver.command.XMLQueryResolver
public class XMLQueryResolver
Constructor Summary | |
---|---|
XMLQueryResolver()
|
Method Summary | |
---|---|
static java.util.Collection |
collectValidCriteriaElements(GroupSymbol group,
QueryMetadataInterface metadata)
Collect all fully-qualified valid elements. |
void |
resolveCommand(Command command,
boolean useMetadataCommands,
TempMetadataAdapter metadata,
AnalysisRecord analysis,
boolean resolveNullLiterals)
Resolve the command using the metadata. |
static void |
resolveXMLCriteria(Criteria criteria,
GroupContext externalGroups,
java.util.Collection validElements,
QueryMetadataInterface metadata)
Resolve the criteria specified on the XML query. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLQueryResolver()
Method Detail |
---|
public void resolveCommand(Command command, boolean useMetadataCommands, TempMetadataAdapter metadata, AnalysisRecord analysis, boolean resolveNullLiterals) throws QueryMetadataException, QueryResolverException, MetaMatrixComponentException
CommandResolver
resolveCommand
in interface CommandResolver
command
- The command to resolveuseMetadataCommands
- true if the resolver should use metadata commands to completely resolvemetadata
- MetadataresolveNullLiterals
- true if the resolver should consider replacing null literals with more appropriate types
QueryMetadataException
- If there is a metadata problem
QueryResolverException
- If the query cannot be resolved
MetaMatrixComponentException
- If there is an internal errorcom.metamatrix.query.resolver.CommandResolver#resolveCommand(com.metamatrix.query.sql.lang.Command, java.util.Collection, TempMetadataAdapter, AnalysisRecord, boolean)
public static java.util.Collection collectValidCriteriaElements(GroupSymbol group, QueryMetadataInterface metadata) throws QueryMetadataException, MetaMatrixComponentException, QueryResolverException
group
- Document groupmetadata
- Metadata interface
QueryMetadataException
MetaMatrixComponentException
QueryResolverException
public static void resolveXMLCriteria(Criteria criteria, GroupContext externalGroups, java.util.Collection validElements, QueryMetadataInterface metadata) throws QueryMetadataException, MetaMatrixComponentException, QueryResolverException
Resolve the criteria specified on the XML query. The elements specified on the criteria should be present on one of the mapping node objects passed to this method, or else be an element on a temporary table at the root of the document model (if a temp table exists there).
A QueryResolverException will be thrown under the following circumstances:
If an element is supplied in the criteria and is ambiguous (multiple document nodes and/or root temp table elements of that name exist)
criteria
- The criteria object that should be resolvedgroup
- The group on the query.metadata
- QueryMetadataInterface the metadata(for resolving criteria on temp groups)
QueryResolverException
- if any of the above fail conditions are met
QueryMetadataException
MetaMatrixComponentException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |