com.metamatrix.query.sql.util
Class ElementSymbolOptimizer

java.lang.Object
  extended by com.metamatrix.query.sql.util.ElementSymbolOptimizer

public class ElementSymbolOptimizer
extends java.lang.Object

The ElementSymbolOptimizer can be used to modify the appearance of the elements in a command. The operations will be performed on the command and all embedded subcommands, but not any further than that. This class should only be used on commands that have been resolved, as unresolved commands do not contain enough metadata to determine the proper fully qualified or optimized element form.


Method Summary
static void fullyQualifyElements(Command command)
          This method will convert all elements in a command to their fully qualified name.
static void optimizeElements(Command command, QueryMetadataInterface metadata)
          This method will convert all elements in a command to their shortest possible unambiguous name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

fullyQualifyElements

public static void fullyQualifyElements(Command command)
This method will convert all elements in a command to their fully qualified name.

Parameters:
command - Command to convert

optimizeElements

public static void optimizeElements(Command command,
                                    QueryMetadataInterface metadata)
                             throws QueryMetadataException,
                                    MetaMatrixComponentException
This method will convert all elements in a command to their shortest possible unambiguous name.

Parameters:
command - Command to convert
Throws:
QueryMetadataException
MetaMatrixComponentException


Copyright © 2009. All Rights Reserved.