org.teiid.query.resolver.command
Class ExecResolver

java.lang.Object
  extended by org.teiid.query.resolver.ProcedureContainerResolver
      extended by org.teiid.query.resolver.command.ExecResolver
All Implemented Interfaces:
CommandResolver

public class ExecResolver
extends ProcedureContainerResolver


Constructor Summary
ExecResolver()
           
 
Method Summary
 GroupContext findChildCommandMetadata(ProcedureContainer container, TempMetadataStore discoveredMetadata, 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.
protected  void resolveGroup(TempMetadataAdapter metadata, ProcedureContainer procCommand)
           
 void resolveProceduralCommand(Command command, TempMetadataAdapter metadata, AnalysisRecord analysis)
           
 
Methods inherited from class org.teiid.query.resolver.ProcedureContainerResolver
addScalarGroup, expandCommand, resolveCommand
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecResolver

public ExecResolver()
Method Detail

findChildCommandMetadata

public GroupContext findChildCommandMetadata(ProcedureContainer container,
                                             TempMetadataStore discoveredMetadata,
                                             QueryMetadataInterface metadata)
                                      throws QueryMetadataException,
                                             QueryResolverException,
                                             TeiidComponentException
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
metadata - Metadata access
Throws:
QueryMetadataException - If there is a metadata problem
QueryResolverException - If the query cannot be resolved
TeiidComponentException - If there is an internal error

resolveProceduralCommand

public void resolveProceduralCommand(Command command,
                                     TempMetadataAdapter metadata,
                                     AnalysisRecord analysis)
                              throws QueryMetadataException,
                                     QueryResolverException,
                                     TeiidComponentException
Specified by:
resolveProceduralCommand in class ProcedureContainerResolver
Throws:
QueryMetadataException
QueryResolverException
TeiidComponentException
See Also:
ProcedureContainerResolver.resolveProceduralCommand(org.teiid.query.sql.lang.Command, org.teiid.query.metadata.TempMetadataAdapter, org.teiid.query.analysis.AnalysisRecord)

resolveGroup

protected void resolveGroup(TempMetadataAdapter metadata,
                            ProcedureContainer procCommand)
                     throws TeiidComponentException,
                            QueryResolverException
Overrides:
resolveGroup in class ProcedureContainerResolver
Throws:
TeiidComponentException
QueryResolverException

getPlan

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

Specified by:
getPlan in class ProcedureContainerResolver
Returns:
Throws:
TeiidComponentException
QueryMetadataException
See Also:
ProcedureContainerResolver.getPlan(org.teiid.query.metadata.QueryMetadataInterface, org.teiid.query.sql.symbol.GroupSymbol)


Copyright © 2010. All Rights Reserved.