|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SimpleJdbcCallOperations
Interface specifying the API for a Simple JDBC Call implemented by SimpleJdbcCall
.
This interface is not often used directly, but provides the
option to enhance testability, as it can easily be mocked or stubbed.
Method Summary | ||
---|---|---|
SimpleJdbcCallOperations |
declareParameters(SqlParameter... sqlParameters)
Specify one or more parameters if desired. |
|
Map<String,Object> |
execute(Map<String,?> args)
Execute the stored procedure and return a map of output params, keyed by name as in parameter declarations.. |
|
Map<String,Object> |
execute(Object... args)
Execute the stored procedure and return a map of output params, keyed by name as in parameter declarations. |
|
Map<String,Object> |
execute(SqlParameterSource args)
Execute the stored procedure and return a map of output params, keyed by name as in parameter declarations.. |
|
|
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(Class<T> returnType,
Object... args)
Execute the stored function and return the results obtained as an Object of the specified return type. |
|
|
executeFunction(Class<T> returnType,
SqlParameterSource args)
Execute the stored function and return the results obtained as an Object of the specified return type. |
|
|
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. |
|
|
executeObject(Class<T> returnType,
Object... args)
Execute the stored procedure and return the single out parameter as an Object of the specified return type. |
|
|
executeObject(Class<T> returnType,
SqlParameterSource args)
Execute the stored procedure and return the single out parameter as an Object of the specified return type. |
|
SimpleJdbcCallOperations |
returningResultSet(String parameterName,
ParameterizedRowMapper rowMapper)
Deprecated. in favor of returningResultSet(String, org.springframework.jdbc.core.RowMapper) |
|
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 RowMapper. |
|
SimpleJdbcCallOperations |
useInParameterNames(String... inParameterNames)
Not used yet |
|
SimpleJdbcCallOperations |
withCatalogName(String catalogName)
Optionally, specify the name of the catalog that contins the stored procedure. |
|
SimpleJdbcCallOperations |
withFunctionName(String functionName)
Specify the procedure name to be used - this implies that we will be calling a stored function. |
|
SimpleJdbcCallOperations |
withoutProcedureColumnMetaDataAccess()
Turn off any processing of parameter meta data information obtained via JDBC. |
|
SimpleJdbcCallOperations |
withProcedureName(String procedureName)
Specify the procedure name to be used - this implies that we will be calling a stored procedure. |
|
SimpleJdbcCallOperations |
withReturnValue()
Indicates the procedure's return value should be included in the results returned. |
|
SimpleJdbcCallOperations |
withSchemaName(String schemaName)
Optionally, specify the name of the schema that contins the stored procedure. |
Method Detail |
---|
SimpleJdbcCallOperations withProcedureName(String procedureName)
procedureName
- the name of the stored procedure
SimpleJdbcCallOperations withFunctionName(String functionName)
functionName
- the name of the stored function
SimpleJdbcCallOperations withSchemaName(String schemaName)
schemaName
- the name of the schema
SimpleJdbcCallOperations withCatalogName(String catalogName)
catalogName
- the catalog or package name
SimpleJdbcCallOperations withReturnValue()
SimpleJdbcCallOperations declareParameters(SqlParameter... sqlParameters)
SqlParameter
and SqlInOutParameter
will be used to provide input values. This is different from the StoredProcedure
class
which for backwards compatibility reasons allows input values to be provided for parameters declared
as SqlOutParameter
.
sqlParameters
- the parameters to use
SimpleJdbcCallOperations useInParameterNames(String... inParameterNames)
SimpleJdbcCallOperations returningResultSet(String parameterName, RowMapper rowMapper)
parameterName
- the name of the returned results and/or the name of the ref cursor parameterrowMapper
- the RowMapper implementation that will map the data returned for each row@Deprecated SimpleJdbcCallOperations returningResultSet(String parameterName, ParameterizedRowMapper rowMapper)
returningResultSet(String, org.springframework.jdbc.core.RowMapper)
SimpleJdbcCallOperations withoutProcedureColumnMetaDataAccess()
<T> T executeFunction(Class<T> returnType, Object... args)
returnType
- the type of the value to returnargs
- 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.<T> T executeFunction(Class<T> returnType, Map<String,?> args)
returnType
- the type of the value to returnargs
- Map containing the parameter values to be used in the call.<T> T executeFunction(Class<T> returnType, SqlParameterSource args)
returnType
- the type of the value to returnargs
- MapSqlParameterSource containing the parameter values to be used in the call.<T> T executeObject(Class<T> returnType, Object... args)
returnType
- the type of the value to returnargs
- 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.<T> T executeObject(Class<T> returnType, Map<String,?> args)
returnType
- the type of the value to returnargs
- Map containing the parameter values to be used in the call.<T> T executeObject(Class<T> returnType, SqlParameterSource args)
returnType
- the type of the value to returnargs
- MapSqlParameterSource containing the parameter values to be used in the call.Map<String,Object> execute(Object... args)
args
- 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.
Map<String,Object> execute(Map<String,?> args)
args
- Map containing the parameter values to be used in the call.
Map<String,Object> execute(SqlParameterSource args)
args
- SqlParameterSource containing the parameter values to be used in the call.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |