java.lang.Object | |
↳ | org.springframework.jdbc.core.simple.AbstractJdbcCall |
Known Direct Subclasses |
Abstract class to provide base functionality for easy stored procedure calls
based on configuration options and database metadata.
This class provides the base SPI for SimpleJdbcCall
.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
logger | Logger available to subclasses |
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructor to be used when initializing using a
DataSource . | |||||||||||
Constructor to be used when initializing using a
JdbcTemplate . |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Add a declared parameter to the list of parameters for the call.
| |||||||||||
This method is deprecated.
in favor of
addDeclaredRowMapper(String, org.springframework.jdbc.core.RowMapper)
| |||||||||||
Add a
RowMapper for the specified parameter or column. | |||||||||||
Compile this JdbcCall using provided parameters and meta data plus other settings.
| |||||||||||
Get the call string that should be used based on parameters and meta data
| |||||||||||
Get the catalog name used.
| |||||||||||
Get the names of in parameters to be used.
| |||||||||||
Get the configured
JdbcTemplate
| |||||||||||
Get the name of the stored procedure.
| |||||||||||
Get the schema name used.
| |||||||||||
Is this operation "compiled"?
| |||||||||||
Is this call a function call?
| |||||||||||
Does the call require a return value?
| |||||||||||
Specify whether the parameter metadata for the call should be used.
| |||||||||||
Set the catalog name to use.
| |||||||||||
Specify whether this call is a function call.
| |||||||||||
Set the names of in parameters to be used.
| |||||||||||
Set the name of the stored procedure.
| |||||||||||
Specify whether the call requires a rerurn value.
| |||||||||||
Set the schema name to use,
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Check whether this operation has been compiled already;
lazily compile it if not already compiled.
| |||||||||||
Method to perform the actual compilation.
| |||||||||||
Method that provides execution of the call using the passed in
SqlParameterSource | |||||||||||
Method that provides execution of the call using the passed in array of parameters
| |||||||||||
Method that provides execution of the call using the passed in Map of parameters
| |||||||||||
Get a List of all the call parameters to be used for call.
| |||||||||||
Get the
CallableStatementCreatorFactory being used
| |||||||||||
Get the name of a single out parameter or return value.
| |||||||||||
Match the provided in parameter values with registered parameters and
parameters defined via metadata processing.
| |||||||||||
Match the provided in parameter values with registered parameters and
parameters defined via metadata processing.
| |||||||||||
Hook method that subclasses may override to react to compilation.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Logger available to subclasses
Constructor to be used when initializing using a DataSource
.
dataSource | the DataSource to be used |
---|
Constructor to be used when initializing using a JdbcTemplate
.
jdbcTemplate | the JdbcTemplate to use |
---|
Add a declared parameter to the list of parameters for the call.
Only parameters declared as 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
.
parameter | the SqlParameter to add
|
---|
This method is deprecated.
in favor of addDeclaredRowMapper(String, org.springframework.jdbc.core.RowMapper)
Add a RowMapper
for the specified parameter or column.
Add a RowMapper
for the specified parameter or column.
parameterName | name of parameter or column |
---|---|
rowMapper | the RowMapper implementation to use |
Compile this JdbcCall using provided parameters and meta data plus other settings. This finalizes the configuration for this object and subsequent attempts to compile are ignored. This will be implicitly called the first time an un-compiled call is executed.
InvalidDataAccessApiUsageException | if the object hasn't been correctly initialized, for example if no DataSource has been provided |
---|
Get the call string that should be used based on parameters and meta data
Is this operation "compiled"?
Is this call a function call?
Does the call require a return value?
Specify whether the parameter metadata for the call should be used. The default is true.
Specify whether this call is a function call.
Set the names of in parameters to be used.
Specify whether the call requires a rerurn value.
Check whether this operation has been compiled already; lazily compile it if not already compiled.
Automatically called by doExecute
.
Method to perform the actual compilation. Subclasses can override this template method to perform their own compilation. Invoked after this base class's compilation is complete.
Method that provides execution of the call using the passed in SqlParameterSource
parameterSource | parameter names and values to be used in call |
---|
Method that provides execution of the call using the passed in array of parameters
args | array of parameter values; order must match the order declared for the stored procedure |
---|
Method that provides execution of the call using the passed in Map of parameters
args | Map of parameter name and values |
---|
Get a List of all the call parameters to be used for call. This includes any parameters added based on meta data processing.
Get the CallableStatementCreatorFactory
being used
Get the name of a single out parameter or return value. Used for functions or procedures with one out parameter.
Match the provided in parameter values with registered parameters and parameters defined via metadata processing.
args | the parameter values provided in a Map |
---|
Match the provided in parameter values with registered parameters and parameters defined via metadata processing.
parameterSource | the parameter vakues provided as a SqlParameterSource |
---|
Hook method that subclasses may override to react to compilation. This implementation does nothing.