SimpleJdbcCall.
This interface is not often used directly, but provides the option to enhance testability,
as it can easily be mocked or stubbed.
| Modifier and Type | Method and Description |
|---|---|
| public SimpleJdbcCallOperations | Returns: the instance of this SimpleJdbcCallthe parameters to use sqlParameters)Specify one or more parameters if desired. |
| public Map | Returns: a Map of output paramsoptional array containing the in parameter values to be used in the call.
Parameter values must be provided in the same order as the parameters are defined for
the stored procedure. args)Execute the stored procedure and return a map of output params, keyed by name as in parameter declarations. |
| public Map | |
| public Map | Returns: a Map of output paramsthe SqlParameterSource containing the parameter values to be used in the call args)Execute the stored procedure and return a map of output params, keyed by name as in parameter declarations. |
| public <T> T | executeFunction(Class<T>
the type of the value to return returnType, Object... optional array containing the in parameter values to be used in the call.
Parameter values must be provided in the same order as the parameters are defined
for the stored procedure. args)Execute the stored function and return the results obtained as an Object of the specified return type. |
| public <T> T | executeFunction(Class<T>
the type of the value to return returnType, Map<String, ?> a Map containing the parameter values to be used in the call args)Execute the stored function and return the results obtained as an Object of the specified return type. |
| public <T> T | executeFunction(Class<T>
the type of the value to return returnType, SqlParameterSource the MapSqlParameterSource containing the parameter values to be used in the call args)Execute the stored function and return the results obtained as an Object of the specified return type. |
| public <T> T | executeObject(Class<T>
the type of the value to return returnType, Object... optional array containing the in parameter values to be used in the call.
Parameter values must be provided in the same order as the parameters are defined for
the stored procedure. args)Execute the stored procedure and return the single out parameter as an Object of the specified return type. |
| public <T> T | executeObject(Class<T>
the type of the value to return returnType, Map<String, ?> a Map containing the parameter values to be used in the call args)Execute the stored procedure and return the single out parameter as an Object of the specified return type. |
| public <T> T | executeObject(Class<T>
the type of the value to return returnType, SqlParameterSource the MapSqlParameterSource containing the parameter values to be used in the call args)Execute the stored procedure and return the single out parameter as an Object of the specified return type. |
| public SimpleJdbcCallOperations | returningResultSet(String
the name of the returned results and/or the name of the ref cursor parameter parameterName, RowMapper<?> the RowMapper implementation that will map the data returned for each row rowMapper)Used to specify when a ResultSet is returned by the stored procedure and you want it
mapped by a |
| public SimpleJdbcCallOperations | |
| public SimpleJdbcCallOperations | Returns: the instance of this SimpleJdbcCallthe catalog or package name catalogName)Optionally, specify the name of the catalog that contins the stored procedure. |
| public SimpleJdbcCallOperations | Returns: the instance of this SimpleJdbcCallthe name of the stored function functionName)Specify the procedure name to be used - this implies that we will be calling a stored function. |
| public SimpleJdbcCallOperations | Returns: the instance of this SimpleJdbcCallIndicates that parameters should be bound by name. |
| public SimpleJdbcCallOperations | Returns: the instance of this SimpleJdbcCallTurn off any processing of parameter meta-data information obtained via JDBC. |
| public SimpleJdbcCallOperations | Returns: the instance of this SimpleJdbcCallthe name of the stored procedure procedureName)Specify the procedure name to be used - this implies that we will be calling a stored procedure. |
| public SimpleJdbcCallOperations | Returns: the instance of this SimpleJdbcCallIndicates the procedure's return value should be included in the results returned. |
| public SimpleJdbcCallOperations | Returns: the instance of this SimpleJdbcCallthe name of the schema schemaName)Optionally, specify the name of the schema that contins the stored procedure. |
| declareParameters | back to summary |
|---|---|
| public SimpleJdbcCallOperations declareParameters(SqlParameter... sqlParameters) Specify one or more parameters if desired. These parameters will be supplemented with any parameter information retrieved from the database meta-data. Note that only parameters declared as
| |
| execute | back to summary |
|---|---|
| public Map Execute the stored procedure and return a map of output params, keyed by name as in parameter declarations. | |
| execute | back to summary |
|---|---|
| public Map Execute the stored procedure and return a map of output params, keyed by name as in parameter declarations. | |
| execute | back to summary |
|---|---|
| public Map Execute the stored procedure and return a map of output params, keyed by name as in parameter declarations.
| |
| executeFunction | back to summary |
|---|---|
| public <T> T executeFunction(Class<T> returnType, Object... args) Execute the stored function and return the results obtained as an Object of the specified return type. | |
| executeFunction | back to summary |
|---|---|
| public <T> T executeFunction(Class<T> returnType, Map<String, ?> args) Execute the stored function and return the results obtained as an Object of the specified return type. | |
| executeFunction | back to summary |
|---|---|
| public <T> T executeFunction(Class<T> returnType, SqlParameterSource args) Execute the stored function and return the results obtained as an Object of the specified return type.
| |
| executeObject | back to summary |
|---|---|
| public <T> T executeObject(Class<T> returnType, Object... args) Execute the stored procedure and return the single out parameter as an Object of the specified return type. In the case where there are multiple out parameters, the first one is returned and additional out parameters are ignored. | |
| executeObject | back to summary |
|---|---|
| public <T> T executeObject(Class<T> returnType, Map<String, ?> args) Execute the stored procedure and return the single out parameter as an Object of the specified return type. In the case where there are multiple out parameters, the first one is returned and additional out parameters are ignored. | |
| executeObject | back to summary |
|---|---|
| public <T> T executeObject(Class<T> returnType, SqlParameterSource args) Execute the stored procedure and return the single out parameter as an Object of the specified return type. In the case where there are multiple out parameters, the first one is returned and additional out parameters are ignored.
| |
| returningResultSet | back to summary |
|---|---|
| public SimpleJdbcCallOperations returningResultSet(String parameterName, RowMapper<?> rowMapper) Used to specify when a ResultSet is returned by the stored procedure and you want it
mapped by a If the database you are using uses ref cursors then the name specified must match the name of the parameter declared for the procedure in the database. | |
| useInParameterNames | back to summary |
|---|---|
| public SimpleJdbcCallOperations useInParameterNames(String... inParameterNames) Not used yet. | |
| withCatalogName | back to summary |
|---|---|
| public SimpleJdbcCallOperations withCatalogName(String catalogName) Optionally, specify the name of the catalog that contins the stored procedure. To provide consistency with the Oracle DatabaseMetaData, this is used to specify the package name if the procedure is declared as part of a package.
| |
| withFunctionName | back to summary |
|---|---|
| public SimpleJdbcCallOperations withFunctionName(String functionName) Specify the procedure name to be used - this implies that we will be calling a stored function.
| |
| withNamedBinding | back to summary |
|---|---|
| public SimpleJdbcCallOperations withNamedBinding() Indicates that parameters should be bound by name.
| |
| withoutProcedureColumnMetaDataAccess | back to summary |
|---|---|
| public SimpleJdbcCallOperations withoutProcedureColumnMetaDataAccess() Turn off any processing of parameter meta-data information obtained via JDBC.
| |
| withProcedureName | back to summary |
|---|---|
| public SimpleJdbcCallOperations withProcedureName(String procedureName) Specify the procedure name to be used - this implies that we will be calling a stored procedure.
| |
| withReturnValue | back to summary |
|---|---|
| public SimpleJdbcCallOperations withReturnValue() Indicates the procedure's return value should be included in the results returned.
| |
| withSchemaName | back to summary |
|---|---|
| public SimpleJdbcCallOperations withSchemaName(String schemaName) Optionally, specify the name of the schema that contins the stored procedure.
| |