org.springframework.jdbc.core |
Provides the core JDBC framework, based on JdbcTemplate
and its associated callback interfaces and helper objects.
|
Java Source File Name | Type | Comment |
ArgPreparedStatementSetter.java | Class | Simple adapter for PreparedStatementSetter that applies
a given array of arguments. |
ArgTypePreparedStatementSetter.java | Class | Simple adapter for PreparedStatementSetter that applies
given arrays of arguments and JDBC argument types. |
BatchPreparedStatementSetter.java | Interface | Batch update callback interface used by the
JdbcTemplate class.
This interface sets values on a
java.sql.PreparedStatement provided
by the JdbcTemplate class, for each of a number of updates in a batch using the
same SQL. |
CallableStatementCallback.java | Interface | Generic callback interface for code that operates on a CallableStatement.
Allows to execute any number of operations on a single CallableStatement,
for example a single execute call or repeated execute calls with varying
parameters.
Used internally by JdbcTemplate, but also useful for application code.
Note that the passed-in CallableStatement can have been created by the
framework or by a custom CallableStatementCreator. |
CallableStatementCreator.java | Interface | One of the three central callback interfaces used by the JdbcTemplate class.
This interface creates a CallableStatement given a connection, provided
by the JdbcTemplate class. |
CallableStatementCreatorFactory.java | Class | Helper class that can efficiently create multiple CallableStatementCreator
objects with different parameters based on a SQL statement and a single
set of parameter declarations. |
ColumnMapRowMapper.java | Class | RowMapper implementation that creates a java.util.Map
for each row, representing all columns as key-value pairs: one
entry for each column, with the column name as key.
The Map implementation to use and the key to use for each column
in the column Map can be customized through overriding
ColumnMapRowMapper.createColumnMap and
ColumnMapRowMapper.getColumnKey , respectively.
Note: By default, ColumnMapRowMapper will try to build a linked Map
with case-insensitive keys, to preserve column order as well as allow any
casing to be used for column names. |
ConnectionCallback.java | Interface | Generic callback interface for code that operates on a JDBC Connection.
Allows to execute any number of operations on a single Connection,
using any type and number of Statements.
This is particularly useful for delegating to existing data access code
that expects a Connection to work on and throws SQLException. |
DisposableSqlTypeValue.java | Interface | Subinterface of SqlTypeValue that adds a cleanup callback,
to be invoked after the value has been set and the corresponding
statement has been executed. |
InterruptibleBatchPreparedStatementSetter.java | Interface | Extension of the
BatchPreparedStatementSetter interface,
adding a batch exhaustion check.
This interface allows you to signal the end of a batch rather than
having to determine the exact batch size upfront. |
JdbcOperations.java | Interface | Interface specifying a basic set of JDBC operations.
Implemented by
JdbcTemplate . |
JdbcTemplate.java | Class | This is the central class in the JDBC core package.
It simplifies the use of JDBC and helps to avoid common errors.
It executes core JDBC workflow, leaving application code to provide SQL
and extract results. |
ParameterDisposer.java | Interface | Interface to be implemented by objects that can close resources
allocated by parameters like SqlLobValues.
Typically implemented by PreparedStatementCreators and
PreparedStatementSetters that support DisposableSqlTypeValue
objects (e.g. |
ParameterMapper.java | Interface | Implement this interface when parameters need to be customized based
on the connection. |
PreparedStatementCallback.java | Interface | Generic callback interface for code that operates on a PreparedStatement.
Allows to execute any number of operations on a single PreparedStatement,
for example a single executeUpdate call or repeated
executeUpdate calls with varying parameters.
Used internally by JdbcTemplate, but also useful for application code.
Note that the passed-in PreparedStatement can have been created by the
framework or by a custom PreparedStatementCreator. |
PreparedStatementCreator.java | Interface | One of the two central callback interfaces used by the JdbcTemplate class.
This interface creates a PreparedStatement given a connection, provided
by the JdbcTemplate class. |
PreparedStatementCreatorFactory.java | Class | Helper class that efficiently creates multiple
PreparedStatementCreator objects with different parameters based on a SQL statement and a single
set of parameter declarations. |
PreparedStatementSetter.java | Interface | General callback interface used by the
JdbcTemplate class.
This interface sets values on a
java.sql.PreparedStatement provided
by the JdbcTemplate class, for each of a number of updates in a batch using the
same SQL. |
ResultSetExtractor.java | Interface | Callback interface used by
JdbcTemplate 's query methods.
Implementations of this interface perform the actual work of extracting
results from a
java.sql.ResultSet , but don't need to worry
about exception handling. |
ResultSetSupportingSqlParameter.java | Class | Common base class for ResultSet-supporting SqlParameters like
SqlOutParameter and
SqlReturnResultSet . |
RowCallbackHandler.java | Interface | An interface used by
JdbcTemplate for processing rows of a
java.sql.ResultSet on a per-row basis. |
RowCountCallbackHandler.java | Class | Implementation of RowCallbackHandler. |
RowMapper.java | Interface | An interface used by
JdbcTemplate for mapping rows of a
java.sql.ResultSet on a per-row basis. |
RowMapperResultSetExtractor.java | Class | Adapter implementation of the ResultSetExtractor interface that delegates
to a RowMapper which is supposed to create an object for each row. |
SingleColumnRowMapper.java | Class | RowMapper implementation that converts a single column into
a single result value per row. |
SqlInOutParameter.java | Class | Subclass of
SqlOutParameter to represent an INOUT parameter. |
SqlOutParameter.java | Class | Subclass of SqlParameter to represent an output parameter. |
SqlParameter.java | Class | Object to represent a SQL parameter definition. |
SqlParameterValue.java | Class | Object to represent a SQL parameter value, including parameter metadata
such as the SQL type and the scale for numeric values.
Designed for use with
JdbcTemplate 's operations that take an array of
argument values: Each such argument value may be a SqlParameterValue ,
indicating the SQL type (and optionally the scale) instead of letting the
template guess a default type. |
SqlProvider.java | Interface | Interface to be implemented by objects that can provide SQL strings. |
SqlReturnResultSet.java | Class | Represents a returned
java.sql.ResultSet from a stored procedure call. |
SqlReturnType.java | Interface | Interface to be implemented for retrieving values for more complex database-specific
types not supported by the standard CallableStatement.getObject method.
Implementations perform the actual work of getting the actual values. |
SqlRowSetResultSetExtractor.java | Class | ResultSetExtractor implementation that returns a Spring SqlRowSet
representation for each given ResultSet. |
SqlTypeValue.java | Interface | Interface to be implemented for setting values for more complex database specific
types not supported by the standard setObject method.
Implementations perform the actual work of setting the actual values. |
StatementCallback.java | Interface | Generic callback interface for code that operates on a JDBC Statement. |
StatementCreatorUtils.java | Class | Utility methods for PreparedStatementSetter/Creator and CallableStatementCreator
implementations, providing sophisticated parameter management (including support
for LOB values). |