程序包 org.springframework.jdbc.core
Provides the core JDBC framework, based on JdbcTemplate and its associated callback interfaces and helper objects.
接口概要 接口 说明 BatchPreparedStatementSetter Batch update callback interface used by theJdbcTemplate
class.CallableStatementCallback<T> Generic callback interface for code that operates on a CallableStatement.CallableStatementCreator One of the three central callback interfaces used by the JdbcTemplate class.ConnectionCallback<T> Generic callback interface for code that operates on a JDBC Connection.DisposableSqlTypeValue Subinterface ofSqlTypeValue
that adds a cleanup callback, to be invoked after the value has been set and the corresponding statement has been executed.InterruptibleBatchPreparedStatementSetter Extension of theBatchPreparedStatementSetter
interface, adding a batch exhaustion check.JdbcOperations Interface specifying a basic set of JDBC operations.ParameterDisposer Interface to be implemented by objects that can close resources allocated by parameters likeSqlLobValue
objects.ParameterizedPreparedStatementSetter<T> Parameterized callback interface used by theJdbcTemplate
class for batch updates.ParameterMapper Implement this interface when parameters need to be customized based on the connection.PreparedStatementCallback<T> Generic callback interface for code that operates on a PreparedStatement.PreparedStatementCreator One of the two central callback interfaces used by the JdbcTemplate class.PreparedStatementSetter General callback interface used by theJdbcTemplate
class.ResultSetExtractor<T> Callback interface used byJdbcTemplate
's query methods.RowCallbackHandler An interface used byJdbcTemplate
for processing rows of aResultSet
on a per-row basis.RowMapper<T> An interface used byJdbcTemplate
for mapping rows of aResultSet
on a per-row basis.SqlProvider Interface to be implemented by objects that can provide SQL strings.SqlReturnType Interface to be implemented for retrieving values for more complex database-specific types not supported by the standardCallableStatement.getObject
method.SqlTypeValue Interface to be implemented for setting values for more complex database-specific types not supported by the standardsetObject
method.StatementCallback<T> Generic callback interface for code that operates on a JDBC Statement.类概要 类 说明 ArgumentPreparedStatementSetter Simple adapter forPreparedStatementSetter
that applies a given array of arguments.ArgumentTypePreparedStatementSetter Simple adapter forPreparedStatementSetter
that applies given arrays of arguments and JDBC argument types.BatchUpdateUtils Generic utility methods for working with JDBC batch statements.BeanPropertyRowMapper<T> RowMapper
implementation that converts a row into a new instance of the specified mapped target class.CallableStatementCreatorFactory Helper class that efficiently creates multipleCallableStatementCreator
objects with different parameters based on a SQL statement and a single set of parameter declarations.ColumnMapRowMapper RowMapper
implementation that creates ajava.util.Map
for each row, representing all columns as key-value pairs: one entry for each column, with the column name as key.JdbcTemplate This is the central class in the JDBC core package. It simplifies the use of JDBC and helps to avoid common errors.PreparedStatementCreatorFactory Helper class that efficiently creates multiplePreparedStatementCreator
objects with different parameters based on a SQL statement and a single set of parameter declarations.ResultSetSupportingSqlParameter Common base class for ResultSet-supporting SqlParameters likeSqlOutParameter
andSqlReturnResultSet
.RowCountCallbackHandler Implementation ofRowCallbackHandler
.RowMapperResultSetExtractor<T> Adapter implementation of the ResultSetExtractor interface that delegates to a RowMapper which is supposed to create an object for each row.SingleColumnRowMapper<T> RowMapper
implementation that converts a single column into a single result value per row.SqlInOutParameter Subclass ofSqlOutParameter
to represent an INOUT parameter.SqlOutParameter Subclass ofSqlParameter
to represent an output parameter.SqlParameter Object to represent a SQL parameter definition.SqlParameterValue Object to represent a SQL parameter value, including parameter meta-data such as the SQL type and the scale for numeric values.SqlReturnResultSet Represents a returnedResultSet
from a stored procedure call.SqlReturnUpdateCount Represents a returned update count from a stored procedure call.SqlRowSetResultSetExtractor ResultSetExtractor
implementation that returns a SpringSqlRowSet
representation for each givenResultSet
.StatementCreatorUtils Utility methods for PreparedStatementSetter/Creator and CallableStatementCreator implementations, providing sophisticated parameter management (including support for LOB values).