com.metamatrix.query.resolver.command
Class DeleteResolver

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

public class DeleteResolver
extends ProcedureContainerResolver

This class knows how to expand and resolve DELETE commands.


Constructor Summary
DeleteResolver()
           
 
Method Summary
 GroupContext findChildCommandMetadata(Command command, TempMetadataStore discoveredMetadata, boolean useMetadataCommands, QueryMetadataInterface metadata)
          Find all metadata defined by this command for it's children.
protected  java.lang.String getPlan(QueryMetadataInterface metadata, GroupSymbol group)
          For a given resolver, this returns the unparsed command.
 void resolveProceduralCommand(Command command, boolean useMetadataCommands, TempMetadataAdapter metadata, AnalysisRecord analysis)
           
 
Methods inherited from class com.metamatrix.query.resolver.ProcedureContainerResolver
addScalarGroup, expandCommand, resolveCommand, resolveGroup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeleteResolver

public DeleteResolver()
Method Detail

resolveProceduralCommand

public void resolveProceduralCommand(Command command,
                                     boolean useMetadataCommands,
                                     TempMetadataAdapter metadata,
                                     AnalysisRecord analysis)
                              throws QueryMetadataException,
                                     QueryResolverException,
                                     MetaMatrixComponentException
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)

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

findChildCommandMetadata

public GroupContext findChildCommandMetadata(Command command,
                                             TempMetadataStore discoveredMetadata,
                                             boolean useMetadataCommands,
                                             QueryMetadataInterface metadata)
                                      throws QueryMetadataException,
                                             QueryResolverException,
                                             MetaMatrixComponentException
Description copied from class: ProcedureContainerResolver
Find all metadata defined by this command for it's children. This metadata should be collected in the childMetadata object. Typical uses of this are for stored queries that define parameter variables valid in subcommands. only used for inserts, updates, and deletes

Overrides:
findChildCommandMetadata in class ProcedureContainerResolver
Parameters:
command - The command to find metadata on
useMetadataCommands - True if resolver should use metadata commands to completely resolve
metadata - Metadata access
Throws:
QueryMetadataException - If there is a metadata problem
QueryResolverException - If the query cannot be resolved
MetaMatrixComponentException - If there is an internal error


Copyright © 2009. All Rights Reserved.