org.teiid.dqp.internal.process
Class PreparedStatementRequest

java.lang.Object
  extended by org.teiid.dqp.internal.process.Request
      extended by org.teiid.dqp.internal.process.PreparedStatementRequest
All Implemented Interfaces:
SecurityFunctionEvaluator

public class PreparedStatementRequest
extends Request

Specific request for handling prepared statement calls.


Field Summary
 
Fields inherited from class org.teiid.dqp.internal.process.Request
addedLimit, analysisRecord, capabilitiesFinder, connectorManagerRepo, context, idGenerator, metadata, processor, processPlan, requestMsg, returnsUpdateCount, transactionContext, userCommand
 
Fields inherited from interface org.teiid.query.eval.SecurityFunctionEvaluator
DATA_ROLE
 
Constructor Summary
PreparedStatementRequest(SessionAwareCache<PreparedPlan> prepPlanCache)
           
 
Method Summary
protected  void checkReferences(List<Reference> references)
           
protected  void generatePlan()
          state side effects: creates the analysis record creates the command context sets the pre-rewrite command on the request adds a limit clause if the row limit is specified sets the processor plan
protected  void resolveCommand(Command command)
           
static void resolveParameterValues(List<Reference> params, List values, CommandContext context, QueryMetadataInterface metadata)
           
 
Methods inherited from class org.teiid.dqp.internal.process.Request
createCommandContext, createParseInfo, hasRole, initMetadata, processRequest, setAuthorizationValidator, setExecutor, setResultSetCacheEnabled, setUserRequestConcurrency, validateAccess, validateWithVisitor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PreparedStatementRequest

public PreparedStatementRequest(SessionAwareCache<PreparedPlan> prepPlanCache)
Method Detail

checkReferences

protected void checkReferences(List<Reference> references)
                        throws QueryValidatorException
Overrides:
checkReferences in class Request
Throws:
QueryValidatorException

resolveCommand

protected void resolveCommand(Command command)
                       throws QueryResolverException,
                              TeiidComponentException
Overrides:
resolveCommand in class Request
Throws:
QueryResolverException
TeiidComponentException
See Also:
Request.resolveCommand(org.teiid.query.sql.lang.Command)

generatePlan

protected void generatePlan()
                     throws TeiidComponentException,
                            TeiidProcessingException
Description copied from class: Request
state side effects: creates the analysis record creates the command context sets the pre-rewrite command on the request adds a limit clause if the row limit is specified sets the processor plan

Overrides:
generatePlan in class Request
Throws:
TeiidComponentException
TeiidProcessingException
See Also:
Request.generatePlan()

resolveParameterValues

public static void resolveParameterValues(List<Reference> params,
                                          List values,
                                          CommandContext context,
                                          QueryMetadataInterface metadata)
                                   throws QueryResolverException,
                                          TeiidComponentException,
                                          QueryValidatorException
Parameters:
params -
values -
Throws:
QueryResolverException
QueryValidatorException
TeiidComponentException


Copyright © 2011. All Rights Reserved.