Package org.teiid.query.resolver.command
Class SetQueryResolver
- java.lang.Object
-
- org.teiid.query.resolver.command.SetQueryResolver
-
- All Implemented Interfaces:
CommandResolver
public class SetQueryResolver extends Object implements CommandResolver
-
-
Constructor Summary
Constructors Constructor Description SetQueryResolver()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
orderByContainsVariable(OrderBy orderBy, Expression ses, int position)
Checks if a variable is in the ORDER BYvoid
resolveCommand(Command command, TempMetadataAdapter metadata, boolean resolveNullLiterals)
Resolve the command using the metadata.void
resolveSetQuery(TempMetadataAdapter metadata, boolean resolveNullLiterals, SetQuery setQuery, QueryCommand firstCommand, QueryCommand rightCommand)
-
-
-
Method Detail
-
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 interfaceCommandResolver
- 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 problemQueryResolverException
- If the query cannot be resolvedTeiidComponentException
- If there is an internal error- See Also:
CommandResolver.resolveCommand(org.teiid.query.sql.lang.Command, TempMetadataAdapter, boolean)
-
resolveSetQuery
public void resolveSetQuery(TempMetadataAdapter metadata, boolean resolveNullLiterals, SetQuery setQuery, QueryCommand firstCommand, QueryCommand rightCommand) throws QueryResolverException, QueryMetadataException, TeiidComponentException
-
orderByContainsVariable
public static boolean orderByContainsVariable(OrderBy orderBy, Expression 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
-
-