org.teiid.query.resolver.command
Class DeleteResolver
java.lang.Object
org.teiid.query.resolver.ProcedureContainerResolver
org.teiid.query.resolver.command.DeleteResolver
- All Implemented Interfaces:
- CommandResolver
public class DeleteResolver
- extends ProcedureContainerResolver
This class knows how to expand and resolve DELETE commands.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DeleteResolver
public DeleteResolver()
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)
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
- Parameters:
metadata - group -
- Returns:
-
- Throws:
TeiidComponentException
QueryMetadataException
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
Copyright © 2010. All Rights Reserved.