This class provides the processing arrangement for SimpleJdbcCall.
| Modifier and Type | Field and Description |
|---|---|
| private CallableStatementCreatorFactory | callableStatementFactory
A delegate enabling us to create CallableStatementCreators efficiently, based on this class's declared parameters. |
| private final CallMetaDataContext | callMetaDataContext
Context used to retrieve and manage database meta-data. |
| private String | callString
The generated string used for call statement. |
| private volatile boolean | compiled
Has this operation been compiled? |
| private final List | declaredParameters
List of SqlParameter objects. |
| private final Map | declaredRowMappers
List of RefCursor/ResultSet RowMapper objects. |
| private final JdbcTemplate | jdbcTemplate
Lower-level class used to execute SQL. |
| protected final Log | logger
Logger available to subclasses. |
| Access | Constructor and Description |
|---|---|
| protected | AbstractJdbcCall(DataSource
the DataSource to be used dataSource)Constructor to be used when initializing using a |
| protected | AbstractJdbcCall(JdbcTemplate
the JdbcTemplate to use jdbcTemplate)Constructor to be used when initializing using a |
| Modifier and Type | Method and Description |
|---|---|
| public void | addDeclaredParameter(SqlParameter
the parameter)SqlParameter to addAdd a declared parameter to the list of parameters for the call. |
| public void | addDeclaredRowMapper(String
name of parameter or column parameterName, RowMapper<?> the RowMapper implementation to use rowMapper)Add a |
| protected void | checkCompiled()
Check whether this operation has been compiled already; lazily compile it if not already compiled. |
| public final synchronized void | |
| protected void | |
| protected Map | Returns: a Map of out parametersparameter names and values to be used in call parameterSource)Delegate method that executes the call using the passed-in |
| protected Map | |
| protected Map | |
| private Map | |
| protected CallableStatementCreatorFactory | |
| protected List | |
| public String | |
| public String | |
| public Set | |
| public JdbcTemplate | |
| public String | |
| protected String | |
| public String | |
| public boolean | Returns: whether this operation is compiled and ready to useIs this operation "compiled"? |
| public boolean | |
| public boolean | |
| public boolean | |
| protected Map | Returns: a Map with parameter names and valuesthe parameter values provided as a parameterSource)SqlParameterSourceMatch the provided in parameter values with registered parameters and parameters defined via meta-data processing. |
| private Map | Returns: a Map with parameter names and valuesthe parameter values provided as an array args)Match the provided in parameter values with registered parameters and parameters defined via meta-data processing. |
| protected Map | Returns: a Map with parameter names and valuesthe parameter values provided as a Map args)Match the provided in parameter values with registered parameters and parameters defined via meta-data processing. |
| protected void | |
| public void | setAccessCallParameterMetaData(boolean accessCallParameterMetaData)
Specify whether the parameter meta-data for the call should be used. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setReturnValueRequired(boolean returnValueRequired)
Specify whether the call requires a return value. |
| public void |
| callableStatementFactory | back to summary |
|---|---|
| private CallableStatementCreatorFactory callableStatementFactory A delegate enabling us to create CallableStatementCreators efficiently, based on this class's declared parameters. | |
| callMetaDataContext | back to summary |
|---|---|
| private final CallMetaDataContext callMetaDataContext Context used to retrieve and manage database meta-data. | |
| callString | back to summary |
|---|---|
| private String callString The generated string used for call statement. | |
| compiled | back to summary |
|---|---|
| private volatile boolean compiled Has this operation been compiled? Compilation means at least checking that a DataSource or JdbcTemplate has been provided. | |
| declaredParameters | back to summary |
|---|---|
| private final List<SqlParameter> declaredParameters List of SqlParameter objects. | |
| declaredRowMappers | back to summary |
|---|---|
| private final Map<String, RowMapper<?>> declaredRowMappers List of RefCursor/ResultSet RowMapper objects. | |
| jdbcTemplate | back to summary |
|---|---|
| private final JdbcTemplate jdbcTemplate Lower-level class used to execute SQL. | |
| logger | back to summary |
|---|---|
| protected final Log logger Logger available to subclasses. | |
| AbstractJdbcCall | back to summary |
|---|---|
| protected AbstractJdbcCall(DataSource dataSource) Constructor to be used when initializing using a
| |
| AbstractJdbcCall | back to summary |
|---|---|
| protected AbstractJdbcCall(JdbcTemplate jdbcTemplate) Constructor to be used when initializing using a
| |
| addDeclaredParameter | back to summary |
|---|---|
| public void addDeclaredParameter(SqlParameter parameter) Add a declared parameter to the list of parameters for the call. Only parameters declared as
| |
| addDeclaredRowMapper | back to summary |
|---|---|
| public void addDeclaredRowMapper(String parameterName, RowMapper<?> rowMapper) Add a | |
| checkCompiled | back to summary |
|---|---|
| protected void checkCompiled() Check whether this operation has been compiled already; lazily compile it if not already compiled. Automatically called by all | |
| compile | back to summary |
|---|---|
| public final synchronized void compile() throws InvalidDataAccessApiUsageException 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.
| |
| compileInternal | back to summary |
|---|---|
| protected void compileInternal() Delegate 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. | |
| doExecute | back to summary |
|---|---|
| protected Map Delegate method that executes the call using the passed-in
| |
| doExecute | back to summary |
|---|---|
| protected Map Delegate method that executes the call using the passed-in array of parameters. | |
| doExecute | back to summary |
|---|---|
| protected Map Delegate method that executes the call using the passed-in Map of parameters. | |
| executeCallInternal | back to summary |
|---|---|
| private Map Delegate method to perform the actual call processing. | |
| getCallableStatementFactory | back to summary |
|---|---|
| protected CallableStatementCreatorFactory getCallableStatementFactory() Get the | |
| getCallParameters | back to summary |
|---|---|
| protected List Get a List of all the call parameters to be used for call. This includes any parameters added based on meta-data processing. | |
| getCallString | back to summary |
|---|---|
| public String getCallString() Get the call string that should be used based on parameters and meta-data.
| |
| getCatalogName | back to summary |
|---|---|
| public String getCatalogName() Get the catalog name used.
| |
| getInParameterNames | back to summary |
|---|---|
| public Set Get the names of in parameters to be used. | |
| getJdbcTemplate | back to summary |
|---|---|
| public JdbcTemplate getJdbcTemplate() Get the configured | |
| getProcedureName | back to summary |
|---|---|
| public String getProcedureName() Get the name of the stored procedure.
| |
| getScalarOutParameterName | back to summary |
|---|---|
| protected String getScalarOutParameterName() Get the name of a single out parameter or return value. Used for functions or procedures with one out parameter.
| |
| getSchemaName | back to summary |
|---|---|
| public String getSchemaName() Get the schema name used.
| |
| isCompiled | back to summary |
|---|---|
| public boolean isCompiled() Is this operation "compiled"?
| |
| isFunction | back to summary |
|---|---|
| public boolean isFunction() Is this call a function call? | |
| isNamedBinding | back to summary |
|---|---|
| public boolean isNamedBinding() Should parameters be bound by name?
| |
| isReturnValueRequired | back to summary |
|---|---|
| public boolean isReturnValueRequired() Does the call require a return value? | |
| matchInParameterValuesWithCallParameters | back to summary |
|---|---|
| protected Map Match the provided in parameter values with registered parameters and parameters defined via meta-data processing.
| |
| matchInParameterValuesWithCallParameters | back to summary |
|---|---|
| private Map Match the provided in parameter values with registered parameters and parameters defined via meta-data processing. | |
| matchInParameterValuesWithCallParameters | back to summary |
|---|---|
| protected Map Match the provided in parameter values with registered parameters and parameters defined via meta-data processing. | |
| onCompileInternal | back to summary |
|---|---|
| protected void onCompileInternal() Hook method that subclasses may override to react to compilation. This implementation does nothing. | |
| setAccessCallParameterMetaData | back to summary |
|---|---|
| public void setAccessCallParameterMetaData(boolean accessCallParameterMetaData) Specify whether the parameter meta-data for the call should be used.
The default is | |
| setCatalogName | back to summary |
|---|---|
| public void setCatalogName(String catalogName) Set the catalog name to use. | |
| setFunction | back to summary |
|---|---|
| public void setFunction(boolean function) Specify whether this call is a function call.
The default is | |
| setInParameterNames | back to summary |
|---|---|
| public void setInParameterNames(Set<String> inParameterNames) Set the names of in parameters to be used. | |
| setNamedBinding | back to summary |
|---|---|
| public void setNamedBinding(boolean namedBinding) Specify whether parameters should be bound by name.
The default is
| |
| setProcedureName | back to summary |
|---|---|
| public void setProcedureName(String procedureName) Set the name of the stored procedure. | |
| setReturnValueRequired | back to summary |
|---|---|
| public void setReturnValueRequired(boolean returnValueRequired) Specify whether the call requires a return value.
The default is | |
| setSchemaName | back to summary |
|---|---|
| public void setSchemaName(String schemaName) Set the schema name to use. | |