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 void
checkReferences(List<Reference> references)
protected void
generatePlan(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 planboolean
isReturingParams()
void
processRequest()
static void
resolveParameterValues(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:
checkReferences
in classRequest
- Throws:
QueryValidatorException
-
generatePlan
protected void generatePlan(boolean addLimit) 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 classRequest
- Throws:
TeiidComponentException
TeiidProcessingException
-
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
-
isReturingParams
public boolean isReturingParams()
- Overrides:
isReturingParams
in classRequest
-
processRequest
public void processRequest() throws TeiidComponentException, TeiidProcessingException
- Overrides:
processRequest
in classRequest
- Throws:
TeiidComponentException
TeiidProcessingException
-
-