org.springframework.jdbc.core.namedparam |
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.
|
Java Source File Name | Type | Comment |
AbstractSqlParameterSource.java | Class | Abstract base class for SqlParameterSource implementations. |
BeanPropertySqlParameterSource.java | Class | SqlParameterSource implementation that obtains parameter values
from bean properties of a given JavaBean object. |
MapSqlParameterSource.java | Class | SqlParameterSource implementation that holds a given Map of parameters.
This class is intended for passing in a simple Map of parameter values
to the methods of the
NamedParameterJdbcTemplate class.
The addValue methods on this class will make adding several
values easier. |
NamedParameterJdbcDaoSupport.java | Class | Extension of JdbcDaoSupport that exposes a NamedParameterJdbcTemplate as well. |
NamedParameterJdbcOperations.java | Interface | Interface specifying a basic set of JDBC operations allowing the use
of named parameters rather than the traditional '?' placeholders.
This is an alternative to the classic
org.springframework.jdbc.core.JdbcOperations interface,
implemented by
NamedParameterJdbcTemplate . |
NamedParameterJdbcTemplate.java | Class | Template class with a basic set of JDBC operations, allowing the use
of named parameters rather than traditional '?' placeholders.
This class delegates to a wrapped
NamedParameterJdbcTemplate.getJdbcOperations() JdbcTemplate once the substitution from named parameters to JDBC style '?' placeholders is
done at execution time. |
NamedParameterUtils.java | Class | Helper methods for named parameter parsing. |
ParsedSql.java | Class | Holds information about a parsed SQL statement. |
SqlParameterSource.java | Interface | Interface that defines common functionality for objects that can
offer parameter values for named SQL parameters, serving as argument
for
NamedParameterJdbcTemplate operations.
This interface allows for the specification of SQL type in addition
to parameter values. |
SqlParameterSourceUtils.java | Class | Class that provides helper methods for the use of
SqlParameterSource with SimpleJdbc classes. |