public class StoredProcedureCall extends ParameterizedStatementDefinition<StoredProcedureCall>
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Object> |
inOutParameters
A
Map which keys are the name of a parameter to be set on the JDBC prepared statement which is both input and output. |
inputParameterssql| Constructor and Description |
|---|
StoredProcedureCall()
Creates a new instance of StoredProcedureCall.
|
StoredProcedureCall(String sql,
List<ParameterType> parameterTypes,
Map<String,Object> inputParameters,
Map<String,Object> inOutParameters,
List<OutputParameter> outputParameters,
int queryTimeout,
TimeUnit queryTimeoutUnit,
Integer fetchSize,
Integer maxRows)
Creates a new instance of StoredProcedureCalll with the given arguments.
|
| Modifier and Type | Method and Description |
|---|---|
protected StoredProcedureCall |
copy()
Returns a shallow copy of
this instance. |
Optional<org.mule.runtime.api.util.Reference<Object>> |
getInOutParameter(String name) |
Map<String,Object> |
getInOutParameters() |
Optional<OutputParameter> |
getOutputParameter(String name) |
List<ParameterType> |
getOutputParameters() |
addInputParameter, findParameter, getInputParameter, getInputParametersgetParameterType, getParameterTypes, getSql, setSqlcopyInto, getFetchSize, getMaxRows, getQueryTimeout, getQueryTimeoutUnit@Parameter @Optional @NullSafe @DisplayName(value="Input - Output Parameters") @ParameterDsl(allowReferences=false) protected Map<String,Object> inOutParameters
Map which keys are the name of a parameter to be set on the JDBC prepared statement which is both input and output.
Each parameter should be referenced in the sql text using a semicolon prefix (E.g: where id = :myParamName)).
The map's values will contain the actual assignation for each parameter.
public StoredProcedureCall()
public StoredProcedureCall(String sql, List<ParameterType> parameterTypes, Map<String,Object> inputParameters, Map<String,Object> inOutParameters, List<OutputParameter> outputParameters, int queryTimeout, TimeUnit queryTimeoutUnit, Integer fetchSize, Integer maxRows)
sql - The text of the SQL query to be executedparameterTypes - Allows to optionally specify the type of one or more of the parameters in the query. If provided,
you're not even required to reference all of the parameters, but you cannot reference a parameter not
present in the input valuesinputParameters - A Map which keys are the name of an input parameter to be set on the JDBC prepared statement.
Each parameter should be referenced in the sql text using a semicolon prefix (E.g:
where id = :myParamName)).
The map's values will contain the actual assignation for each parameter.
inOutParameters - * LinkedHashMapMap which keys are the name of a parameter to be set on the JDBC prepared
statement which is both input and output.
Each parameter should be referenced in the sql text using a semicolon prefix (E.g:
where id = :myParamName)).
The map's values will contain the actual assignation for each parameter.
outputParameters - A list of output parameters to be set on the JDBC prepared statement. Each parameter should be
referenced in the sql text using a semicolon prefix (E.g: call multiply(:value, :result))queryTimeout - Indicates the minimum amount of time before the JDBC driver attempts to cancel a running statement.
No timeout is used by default.queryTimeoutUnit - A TimeUnit which qualifies the QuerySettings.queryTimeoutfetchSize - Indicates how many rows to fetch from the database when rows are read from a resultSet. This property
is required when streaming is true;maxRows - Sets the limit for the maximum number of rows that any ResultSet object generated by this message
processor can contain for. If the limit is exceeded, the excess rows are silently dropped.protected StoredProcedureCall copy()
StatementDefinitionthis instance.copy in class ParameterizedStatementDefinition<StoredProcedureCall>public Optional<OutputParameter> getOutputParameter(String name)
public Optional<org.mule.runtime.api.util.Reference<Object>> getInOutParameter(String name)
public List<ParameterType> getOutputParameters()
Copyright © 2024. All rights reserved.