Top Description Interfaces Classes
[default module]

Package org.springframework.jdbc.core

Annotations
@NonNullApi
@NonNullFields
Imports
org.springframework.lang.NonNullApi, .NonNullFields

Provides the core JDBC framework, based on JdbcTemplate and its associated callback interfaces and helper objects.

Interface Summary

Modifier and TypeInterface and Description
public interface
BatchPreparedStatementSetter

Batch update callback interface used by the JdbcTemplate class.

public interface
CallableStatementCallback<
the result type
T
>

Generic callback interface for code that operates on a CallableStatement.

public interface
CallableStatementCreator

One of the three central callback interfaces used by the JdbcTemplate class.

public interface
ConnectionCallback<
the result type
T
>

Generic callback interface for code that operates on a JDBC Connection.

public interface
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.

public interface
InterruptibleBatchPreparedStatementSetter

Extension of the BatchPreparedStatementSetter interface, adding a batch exhaustion check.

public interface
JdbcOperations

Interface specifying a basic set of JDBC operations.

public interface
ParameterDisposer

Interface to be implemented by objects that can close resources allocated by parameters like SqlLobValue objects.

public interface
ParameterizedPreparedStatementSetter<
the argument type
T
>

Parameterized callback interface used by the JdbcTemplate class for batch updates.

public interface
ParameterMapper

Implement this interface when parameters need to be customized based on the connection.

public interface
PreparedStatementCallback<
the result type
T
>

Generic callback interface for code that operates on a PreparedStatement.

public interface
PreparedStatementCreator

One of the two central callback interfaces used by the JdbcTemplate class.

public interface
PreparedStatementSetter

General callback interface used by the JdbcTemplate class.

public interface
ResultSetExtractor<
the result type
T
>

Callback interface used by JdbcTemplate's query methods.

public interface
RowCallbackHandler

An interface used by JdbcTemplate and NamedParameterJdbcTemplate for processing rows of a java.sql.ResultSet on a per-row basis.

public interface
RowMapper<
the result type
T
>

An interface used by JdbcTemplate for mapping rows of a java.sql.ResultSet on a per-row basis.

public interface
SqlProvider

Interface to be implemented by objects that can provide SQL strings.

public interface
SqlReturnType

Interface to be implemented for retrieving values for more complex database-specific types not supported by the standard CallableStatement.getObject method.

public interface
SqlTypeValue

Interface to be implemented for setting values for more complex database-specific types not supported by the standard setObject method.

public interface
StatementCallback<
the result type
T
>

Generic callback interface for code that operates on a JDBC Statement.

Class Summary

Modifier and TypeClass and Description
public class
ArgumentPreparedStatementSetter

Simple adapter for PreparedStatementSetter that applies a given array of arguments.

public class
ArgumentTypePreparedStatementSetter

Simple adapter for PreparedStatementSetter that applies the given arrays of arguments and JDBC argument types.

public class
BeanPropertyRowMapper<
the result type
T
>

RowMapper implementation that converts a row into a new instance of the specified mapped target class.

public 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.

public class
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.

public class
DataClassRowMapper<
the result type
T
>

RowMapper implementation that converts a row into a new instance of the specified mapped target class.

public class
JdbcTemplate

This is the central delegate in the JDBC core package.

public 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.

public class
ResultSetSupportingSqlParameter

Common base class for ResultSet-supporting SqlParameters like SqlOutParameter and SqlReturnResultSet.

public class
RowCountCallbackHandler

Implementation of RowCallbackHandler.

public class
RowMapperResultSetExtractor<
the result element type
T
>

Adapter implementation of the ResultSetExtractor interface that delegates to a RowMapper which is supposed to create an object for each row.

public class
SimplePropertyRowMapper<
the result type
T
>

RowMapper implementation that converts a row into a new instance of the specified mapped target class.

public class
SingleColumnRowMapper<
the result type
T
>

RowMapper implementation that converts a single column into a single result value per row.

public class
SqlInOutParameter

Subclass of SqlOutParameter to represent an INOUT parameter.

public class
SqlOutParameter

Subclass of SqlParameter to represent an output parameter.

public class
SqlParameter

Object to represent an SQL parameter definition.

public class
SqlParameterValue

Object to represent an SQL parameter value, including parameter meta-data such as the SQL type and the scale for numeric values.

public class
SqlReturnResultSet

Represents a returned java.sql.ResultSet from a stored procedure call.

public class
SqlReturnUpdateCount

Represents a returned update count from a stored procedure call.

public class
SqlRowSetResultSetExtractor

ResultSetExtractor implementation that returns a Spring SqlRowSet representation for each given ResultSet.

public abstract class
StatementCreatorUtils

Utility methods for PreparedStatementSetter/Creator and CallableStatementCreator implementations, providing sophisticated parameter management (including support for LOB values).