com.metamatrix.cdk
Class CommandBuilder

java.lang.Object
  extended by com.metamatrix.cdk.CommandBuilder

public class CommandBuilder
extends java.lang.Object

Convert a query string into a SQL language parse tree.


Constructor Summary
CommandBuilder(QueryMetadataInterface metadata)
           
 
Method Summary
protected  void expandAllSymbol(Command command)
          Convert the "*" in "select * from..." to the list of column names for the data source.
 ICommand getCommand(java.lang.String queryString)
           
 ICommand getCommand(java.lang.String queryString, boolean generateAliases, boolean supportsGroupAlias)
           
static ILanguageFactory getLanuageFactory()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandBuilder

public CommandBuilder(QueryMetadataInterface metadata)
Parameters:
metadata - The metadata describing the datasource which the query is for.
Method Detail

getLanuageFactory

public static ILanguageFactory getLanuageFactory()

getCommand

public ICommand getCommand(java.lang.String queryString)

getCommand

public ICommand getCommand(java.lang.String queryString,
                           boolean generateAliases,
                           boolean supportsGroupAlias)

expandAllSymbol

protected void expandAllSymbol(Command command)
Convert the "*" in "select * from..." to the list of column names for the data source.



Copyright © 2009. All Rights Reserved.