# Package org.springframework.jdbc.core

@NonNullApi @NonNullFields package org.springframework.jdbc.core
Provides the core JDBC framework, based on JdbcTemplate and its associated callback interfaces and helper objects.

Related Packages
Package
Description
org.springframework.jdbc
The classes in this package make JDBC easier to use and reduce the likelihood of common errors.
org.springframework.jdbc.core.metadata
Context metadata abstraction for the configuration and execution of table inserts and stored procedure calls.
org.springframework.jdbc.core.namedparam
JdbcTemplate variant with named parameter support.
org.springframework.jdbc.core.simple
Simplification layer for common JDBC interactions.
org.springframework.jdbc.core.support
Classes supporting the `org.springframework.jdbc.core` package.
org.springframework.jdbc.config
Defines the Spring JDBC configuration namespace.
org.springframework.jdbc.datasource
Provides a utility class for easy DataSource access, a PlatformTransactionManager for a single DataSource, and various simple DataSource implementations.
org.springframework.jdbc.object
The classes in this package represent RDBMS queries, updates, and stored procedures as threadsafe, reusable objects.
org.springframework.jdbc.support
Support classes for the JDBC framework, used by the classes in the jdbc.core and jdbc.object packages.
Class
Description
AggregatedBatchUpdateException
A `BatchUpdateException` that provides additional information about batches that were successful prior to one failing.
ArgumentPreparedStatementSetter
Simple adapter for `PreparedStatementSetter` that applies a given array of arguments.
ArgumentTypePreparedStatementSetter
Simple adapter for `PreparedStatementSetter` that applies the given arrays of arguments and JDBC argument types.
BatchPreparedStatementSetter
Batch update callback interface used by the `JdbcTemplate` class.
BeanPropertyRowMapper<T>
`RowMapper` implementation that converts a row into a new instance of the specified mapped target 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.
CallableStatementCreatorFactory
Helper class that efficiently creates multiple `CallableStatementCreator` objects with different parameters based on an SQL statement and a single set of parameter declarations.
ColumnMapRowMapper
`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.
ConnectionCallback<T>
Generic callback interface for code that operates on a JDBC Connection.
DataClassRowMapper<T>
`RowMapper` implementation that converts a row into a new instance of the specified mapped target class.
DisposableSqlTypeValue
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
Extension of the `BatchPreparedStatementSetter` interface, adding a batch exhaustion check.
JdbcOperations
Interface specifying a basic set of JDBC operations.
JdbcTemplate
This is the central delegate in the JDBC core package. It can be used directly for many data access purposes, supporting any kind of JDBC operation.
ParameterDisposer
Interface to be implemented by objects that can close resources allocated by parameters like `SqlLobValue` objects.
ParameterizedPreparedStatementSetter<T>
Parameterized callback interface used by the `JdbcTemplate` 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.
PreparedStatementCreatorFactory
Helper class that efficiently creates multiple `PreparedStatementCreator` objects with different parameters based on an SQL statement and a single set of parameter declarations.
PreparedStatementSetter
General callback interface used by the `JdbcTemplate` class.
ResultSetExtractor<T>
Callback interface used by `JdbcTemplate`'s query methods.
ResultSetSupportingSqlParameter
Common base class for ResultSet-supporting SqlParameters like `SqlOutParameter` and `SqlReturnResultSet`.
RowCallbackHandler
An interface used by `JdbcTemplate` and `NamedParameterJdbcTemplate` for processing rows of a `ResultSet` on a per-row basis.
RowCountCallbackHandler
Implementation of RowCallbackHandler.
RowMapper<T>
An interface used by `JdbcTemplate` for mapping rows of a `ResultSet` on a per-row basis.
RowMapperResultSetExtractor<T>
Adapter implementation of the ResultSetExtractor interface that delegates to a RowMapper which is supposed to create an object for each row.
SimplePropertyRowMapper<T>
`RowMapper` implementation that converts a row into a new instance of the specified mapped target class.
SingleColumnRowMapper<T>
`RowMapper` implementation that converts a single column into a single result value per row.
SqlInOutParameter
Subclass of `SqlOutParameter` to represent an INOUT parameter.
SqlOutParameter
Subclass of `SqlParameter` to 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.
SqlProvider
Interface to be implemented by objects that can provide SQL strings.
SqlReturnResultSet
Represents a returned `ResultSet` from a stored procedure call.
SqlReturnType
Interface to be implemented for retrieving values for more complex database-specific types not supported by the standard `CallableStatement.getObject` method.
SqlReturnUpdateCount
Represents a returned update count from a stored procedure call.
SqlRowSetResultSetExtractor
`ResultSetExtractor` implementation that returns a Spring `SqlRowSet` representation for each given `ResultSet`.
SqlTypeValue
Interface to be implemented for setting values for more complex database-specific types not supported by the standard `setObject` method.
StatementCallback<T>
Generic callback interface for code that operates on a JDBC Statement.
StatementCreatorUtils
Utility methods for PreparedStatementSetter/Creator and CallableStatementCreator implementations, providing sophisticated parameter management (including support for LOB values).