org.teiid.query.resolver.command
Class XMLQueryResolver
java.lang.Object
org.teiid.query.resolver.command.XMLQueryResolver
- All Implemented Interfaces:
- CommandResolver
public class XMLQueryResolver
- extends java.lang.Object
- implements CommandResolver
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLQueryResolver
public XMLQueryResolver()
resolveCommand
public void resolveCommand(Command command,
TempMetadataAdapter metadata,
boolean resolveNullLiterals)
throws QueryMetadataException,
QueryResolverException,
TeiidComponentException
- Description copied from interface:
CommandResolver
- Resolve the command using the metadata.
- Specified by:
resolveCommand in interface CommandResolver
- Parameters:
command - The command to resolvemetadata - MetadataresolveNullLiterals - true if the resolver should consider replacing null literals with more appropriate types
- Throws:
QueryMetadataException - If there is a metadata problem
QueryResolverException - If the query cannot be resolved
TeiidComponentException - If there is an internal error- See Also:
CommandResolver.resolveCommand(org.teiid.query.sql.lang.Command, TempMetadataAdapter, boolean)
resolveCommand
public void resolveCommand(Query query,
GroupSymbol docGroup,
TempMetadataAdapter metadata)
throws QueryMetadataException,
QueryResolverException,
TeiidComponentException
- Throws:
QueryMetadataException
QueryResolverException
TeiidComponentException
collectTempElements
public static java.util.Collection<ElementSymbol> collectTempElements(GroupSymbol group,
QueryMetadataInterface metadata)
throws QueryMetadataException,
TeiidComponentException
- Throws:
QueryMetadataException
TeiidComponentException
resolveXMLCriteria
public static void resolveXMLCriteria(LanguageObject criteria,
GroupContext externalGroups,
org.teiid.query.resolver.command.XMLQueryResolver.ResolvingNode validElements,
QueryMetadataInterface metadata)
throws QueryMetadataException,
TeiidComponentException,
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:
- the elements of the XML criteria cannot be resolved
- the "@" attribute prefix is used to specify that the node is an attribute, but
a document node is found that is an element
- an element is supplied in the criteria and is ambiguous (multiple
document nodes and/or root temp table elements exist which have that name)
If an element is supplied in the criteria and is ambiguous (multiple document nodes and/or
root temp table elements of that name exist)
- Parameters:
criteria - The criteria object that should be resolvedgroup - The group on the query.metadata - QueryMetadataInterface the metadata(for resolving criteria on temp groups)
- Throws:
QueryResolverException - if any of the above fail conditions are met
QueryMetadataException
TeiidComponentException
Copyright © 2011. All Rights Reserved.