Package org.teiid.dqp.internal.process
Class PreparedStatementRequest
- java.lang.Object
-
- org.teiid.dqp.internal.process.Request
-
- org.teiid.dqp.internal.process.PreparedStatementRequest
-
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, explainCommand, idGenerator, metadata, options, preParser, processor, processPlan, requestMsg, returnsUpdateCount, transactionContext, userCommand
-
-
Constructor Summary
Constructors Constructor Description PreparedStatementRequest(SessionAwareCache<PreparedPlan> prepPlanCache)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckReferences(List<Reference> references)protected voidgeneratePlan(boolean addLimit)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 planbooleanisReturingParams()voidprocessRequest()static voidresolveParameterValues(List<Reference> params, List values, CommandContext context, QueryMetadataInterface metadata)-
Methods inherited from class org.teiid.dqp.internal.process.Request
createCommandContext, createParseInfo, initMetadata, resolveCommand, setAuthorizationValidator, setExecutor, setOptions, setPreParser, setResultSetCacheEnabled, setUserRequestConcurrency, validateAccess, validateWithVisitor
-
-
-
-
Constructor Detail
-
PreparedStatementRequest
public PreparedStatementRequest(SessionAwareCache<PreparedPlan> prepPlanCache)
-
-
Method Detail
-
checkReferences
protected void checkReferences(List<Reference> references) throws QueryValidatorException
- Overrides:
checkReferencesin classRequest- Throws:
QueryValidatorException
-
generatePlan
protected void generatePlan(boolean addLimit) throws TeiidComponentException, TeiidProcessingExceptionDescription copied from class:Requeststate 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:
generatePlanin classRequest- Throws:
TeiidComponentExceptionTeiidProcessingException
-
resolveParameterValues
public static void resolveParameterValues(List<Reference> params, List values, CommandContext context, QueryMetadataInterface metadata) throws QueryResolverException, TeiidComponentException, QueryValidatorException
- Parameters:
params-values-- Throws:
QueryResolverExceptionQueryValidatorExceptionTeiidComponentException
-
isReturingParams
public boolean isReturingParams()
- Overrides:
isReturingParamsin classRequest
-
processRequest
public void processRequest() throws TeiidComponentException, TeiidProcessingException- Overrides:
processRequestin classRequest- Throws:
TeiidComponentExceptionTeiidProcessingException
-
-