程序包 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 theJdbcTemplateclass.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 ofSqlTypeValuethat adds a cleanup callback, to be invoked after the value has been set and the corresponding statement has been executed.InterruptibleBatchPreparedStatementSetter Extension of theBatchPreparedStatementSetterinterface, 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 likeSqlLobValueobjects.ParameterizedPreparedStatementSetter<T> Parameterized callback interface used by theJdbcTemplateclass 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 theJdbcTemplateclass.ResultSetExtractor<T> Callback interface used byJdbcTemplate's query methods.RowCallbackHandler An interface used byJdbcTemplatefor processing rows of aResultSeton a per-row basis.RowMapper<T> An interface used byJdbcTemplatefor mapping rows of aResultSeton 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.getObjectmethod.SqlTypeValue Interface to be implemented for setting values for more complex database-specific types not supported by the standardsetObjectmethod.StatementCallback<T> Generic callback interface for code that operates on a JDBC Statement.类概要 类 说明 ArgumentPreparedStatementSetter Simple adapter forPreparedStatementSetterthat applies a given array of arguments.ArgumentTypePreparedStatementSetter Simple adapter forPreparedStatementSetterthat applies given arrays of arguments and JDBC argument types.BatchUpdateUtils 已过时。 as of 5.1.3, not used byJdbcTemplateanymoreBeanPropertyRowMapper<T> RowMapperimplementation that converts a row into a new instance of the specified mapped target class.CallableStatementCreatorFactory Helper class that efficiently creates multipleCallableStatementCreatorobjects with different parameters based on an SQL statement and a single set of parameter declarations.ColumnMapRowMapper RowMapperimplementation that creates ajava.util.Mapfor 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 multiplePreparedStatementCreatorobjects with different parameters based on an SQL statement and a single set of parameter declarations.ResultSetSupportingSqlParameter Common base class for ResultSet-supporting SqlParameters likeSqlOutParameterandSqlReturnResultSet.RowCountCallbackHandler Implementation of RowCallbackHandler.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> RowMapperimplementation that converts a single column into a single result value per row.SqlInOutParameter Subclass ofSqlOutParameterto represent an INOUT parameter.SqlOutParameter Subclass ofSqlParameterto represent an output parameter.SqlParameter Object to represent an SQL parameter definition.SqlParameterValue Object to represent an SQL parameter value, including parameter meta-data such as the SQL type and the scale for numeric values.SqlReturnResultSet Represents a returnedResultSetfrom a stored procedure call.SqlReturnUpdateCount Represents a returned update count from a stored procedure call.SqlRowSetResultSetExtractor ResultSetExtractorimplementation that returns a SpringSqlRowSetrepresentation for each givenResultSet.StatementCreatorUtils Utility methods for PreparedStatementSetter/Creator and CallableStatementCreator implementations, providing sophisticated parameter management (including support for LOB values).