org.teiid.query.resolver.command
Class SetQueryResolver

java.lang.Object
  extended by org.teiid.query.resolver.command.SetQueryResolver
All Implemented Interfaces:
CommandResolver

public class SetQueryResolver
extends java.lang.Object
implements CommandResolver


Constructor Summary
SetQueryResolver()
           
 
Method Summary
static boolean orderByContainsVariable(OrderBy orderBy, SingleElementSymbol ses, int position)
          Checks if a variable is in the ORDER BY
 void resolveCommand(Command command, 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

SetQueryResolver

public SetQueryResolver()
Method Detail

resolveCommand

public void resolveCommand(Command command,
                           TempMetadataAdapter metadata,
                           AnalysisRecord analysis,
                           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 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
TeiidComponentException - If there is an internal error
See Also:
CommandResolver.resolveCommand(org.teiid.query.sql.lang.Command, TempMetadataAdapter, AnalysisRecord, boolean)

orderByContainsVariable

public static boolean orderByContainsVariable(OrderBy orderBy,
                                              SingleElementSymbol ses,
                                              int position)
Checks if a variable is in the ORDER BY

Parameters:
position - 0-based index of the variable
Returns:
True if the ORDER BY contains the element


Copyright © 2010. All Rights Reserved.