com.metamatrix.query.resolver.command
Class InsertResolver

java.lang.Object
  extended by com.metamatrix.query.resolver.ProcedureContainerResolver
      extended by com.metamatrix.query.resolver.command.InsertResolver
All Implemented Interfaces:
CommandResolver, VariableResolver

public class InsertResolver
extends ProcedureContainerResolver
implements VariableResolver

This class knows how to expand and resolve INSERT commands.


Constructor Summary
InsertResolver()
           
 
Method Summary
protected  java.lang.String getPlan(QueryMetadataInterface metadata, GroupSymbol group)
          For a given resolver, this returns the unparsed command.
 java.util.Map getVariableValues(Command command, QueryMetadataInterface metadata)
           
protected  void resolveGroup(TempMetadataAdapter metadata, ProcedureContainer procCommand)
           
 void resolveProceduralCommand(Command command, boolean useMetadataCommands, TempMetadataAdapter metadata, AnalysisRecord analysis)
          Resolve an INSERT.
 void resolveTypes(Insert insert)
           
 
Methods inherited from class com.metamatrix.query.resolver.ProcedureContainerResolver
addScalarGroup, expandCommand, findChildCommandMetadata, resolveCommand
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InsertResolver

public InsertResolver()
Method Detail

resolveProceduralCommand

public void resolveProceduralCommand(Command command,
                                     boolean useMetadataCommands,
                                     TempMetadataAdapter metadata,
                                     AnalysisRecord analysis)
                              throws QueryMetadataException,
                                     QueryResolverException,
                                     MetaMatrixComponentException
Resolve an INSERT. Need to resolve elements, constants, types, etc.

Specified by:
resolveProceduralCommand in class ProcedureContainerResolver
Throws:
QueryMetadataException
QueryResolverException
MetaMatrixComponentException
See Also:
ProcedureContainerResolver.resolveProceduralCommand(com.metamatrix.query.sql.lang.Command, boolean, com.metamatrix.query.metadata.TempMetadataAdapter, com.metamatrix.query.analysis.AnalysisRecord)

resolveTypes

public void resolveTypes(Insert insert)
                  throws QueryResolverException
Parameters:
insert -
Throws:
QueryResolverException

getPlan

protected java.lang.String getPlan(QueryMetadataInterface metadata,
                                   GroupSymbol group)
                            throws MetaMatrixComponentException,
                                   QueryMetadataException
Description copied from class: ProcedureContainerResolver
For a given resolver, this returns the unparsed command.

Specified by:
getPlan in class ProcedureContainerResolver
Parameters:
metadata -
group -
Returns:
Throws:
MetaMatrixComponentException
QueryMetadataException

resolveGroup

protected void resolveGroup(TempMetadataAdapter metadata,
                            ProcedureContainer procCommand)
                     throws MetaMatrixComponentException,
                            QueryResolverException
Overrides:
resolveGroup in class ProcedureContainerResolver
Throws:
MetaMatrixComponentException
QueryResolverException
See Also:
ProcedureContainerResolver.resolveGroup(com.metamatrix.query.metadata.TempMetadataAdapter, com.metamatrix.query.sql.lang.ProcedureContainer)

getVariableValues

public java.util.Map getVariableValues(Command command,
                                       QueryMetadataInterface metadata)
                                throws QueryMetadataException,
                                       QueryResolverException,
                                       MetaMatrixComponentException
Specified by:
getVariableValues in interface VariableResolver
Throws:
MetaMatrixComponentException
QueryResolverException
QueryMetadataException
See Also:
com.metamatrix.query.resolver.CommandResolver#getVariableValues(com.metamatrix.query.sql.lang.Command, com.metamatrix.query.metadata.QueryMetadataInterface)


Copyright © 2009. All Rights Reserved.