com.metamatrix.query.resolver.command
Class XQueryResolver

java.lang.Object
  extended by com.metamatrix.query.resolver.command.XQueryResolver
All Implemented Interfaces:
CommandResolver

public class XQueryResolver
extends java.lang.Object
implements CommandResolver

Resolves XQueries, which in metamatrix currently involves taking the arguments to the doc() functions, adding them as the sub commands of the XQuery, which are then themselves resolved by the Resolver framework. XQuery resolution does not currently involve making sure the XQuery's XPath statements referring to the virtual documents are valid for those documents.


Constructor Summary
XQueryResolver()
           
 
Method Summary
 void resolveCommand(Command command, boolean useMetadataCommands, TempMetadataAdapter metadata, AnalysisRecord analysis, boolean resolveNullLiterals)
          Resolve the command using the metadata.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XQueryResolver

public XQueryResolver()
Method Detail

resolveCommand

public void resolveCommand(Command command,
                           boolean useMetadataCommands,
                           TempMetadataAdapter metadata,
                           AnalysisRecord analysis,
                           boolean resolveNullLiterals)
                    throws QueryMetadataException,
                           QueryResolverException,
                           MetaMatrixComponentException
Description copied from interface: CommandResolver
Resolve the command using the metadata.

Specified by:
resolveCommand in interface CommandResolver
Parameters:
command - The command to resolve
useMetadataCommands - true if the resolver should use metadata commands to completely resolve
metadata - Metadata
resolveNullLiterals - 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
MetaMatrixComponentException - If there is an internal error
See Also:
CommandResolver.resolveCommand(com.metamatrix.query.sql.lang.Command, boolean, com.metamatrix.query.metadata.TempMetadataAdapter, com.metamatrix.query.analysis.AnalysisRecord, boolean)


Copyright © 2009. All Rights Reserved.