Top Description Interfaces Classes
module spring.jdbc

Package org.springframework.jdbc.core.namedparam

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

JdbcTemplate variant with named parameter support.

NamedParameterJdbcTemplate is a wrapper around JdbcTemplate that adds support for named parameter parsing. It does not implement the JdbcOperations interface or extend JdbcTemplate, but implements the dedicated NamedParameterJdbcOperations interface.

If you need the full power of Spring JDBC for less common operations, use the getJdbcOperations() method of NamedParameterJdbcTemplate and work with the returned classic template, or use a JdbcTemplate instance directly.

Interface Summary

Modifier and TypeInterface and Description
public interface
NamedParameterJdbcOperations

Interface specifying a basic set of JDBC operations allowing the use of named parameters rather than the traditional '?' placeholders.

public interface
SqlParameterSource

Interface that defines common functionality for objects that can offer parameter values for named SQL parameters, serving as argument for NamedParameterJdbcTemplate operations.

Class Summary

Modifier and TypeClass and Description
public abstract class
AbstractSqlParameterSource

Abstract base class for SqlParameterSource implementations.

public class
BeanPropertySqlParameterSource

SqlParameterSource implementation that obtains parameter values from bean properties of a given JavaBean object.

public class
EmptySqlParameterSource

A simple empty implementation of the SqlParameterSource interface.

public class
MapSqlParameterSource

SqlParameterSource implementation that holds a given Map of parameters.

public class
NamedParameterJdbcDaoSupport

Extension of JdbcDaoSupport that exposes a NamedParameterJdbcTemplate as well.

public class
NamedParameterJdbcTemplate

Template class with a basic set of JDBC operations, allowing the use of named parameters rather than traditional '?' placeholders.

public abstract class
NamedParameterUtils

Helper methods for named parameter parsing.

public class
ParsedSql

Holds information about a parsed SQL statement.

public class
SimplePropertySqlParameterSource

SqlParameterSource implementation that obtains parameter values from bean properties of a given JavaBean object, from component accessors of a record class, or from raw field access.

public abstract class
SqlParameterSourceUtils

Class that provides helper methods for the use of SqlParameterSource, in particular with NamedParameterJdbcTemplate.