org.teiid.query.resolver.command
Class ExecResolver
java.lang.Object
org.teiid.query.resolver.ProcedureContainerResolver
org.teiid.query.resolver.command.ExecResolver
- All Implemented Interfaces:
- CommandResolver, VariableResolver
public class ExecResolver
- extends ProcedureContainerResolver
- implements VariableResolver
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExecResolver
public ExecResolver()
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
getVariableValues
public java.util.Map getVariableValues(Command command,
QueryMetadataInterface metadata)
- Collect input expressions from a procedure and map them to the parameters they came from
- Specified by:
getVariableValues in interface VariableResolver
- Parameters:
command - Procedure to collect input expressions from
- Returns:
- Map of param name (full upper case) to Expression
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.