Top Description Fields Constructors Methods
org.springframework.jdbc.core.namedparam

public Class NamedParameterJdbcDaoSupport

extends JdbcDaoSupport
Class Inheritance
Imports
org.springframework.jdbc.core.JdbcTemplate, org.springframework.jdbc.core.support.JdbcDaoSupport, org.springframework.lang.Nullable

Extension of JdbcDaoSupport that exposes a NamedParameterJdbcTemplate as well.
Authors
Thomas Risberg, Juergen Hoeller
Since
2.0
See Also
NamedParameterJdbcTemplate

Field Summary

Modifier and TypeField and Description
private NamedParameterJdbcTemplate

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public NamedParameterJdbcTemplate
getNamedParameterJdbcTemplate()

Return a NamedParameterJdbcTemplate wrapping the configured JdbcTemplate.

protected void
initTemplateConfig()

Overrides org.springframework.jdbc.core.support.JdbcDaoSupport.initTemplateConfig.

Create a NamedParameterJdbcTemplate based on the configured JdbcTemplate.

Inherited from org.springframework.jdbc.core.support.JdbcDaoSupport:
checkDaoConfigcreateJdbcTemplategetConnectiongetDataSourcegetExceptionTranslatorgetJdbcTemplatereleaseConnectionsetDataSourcesetJdbcTemplate

Field Detail

namedParameterJdbcTemplateback to summary
private NamedParameterJdbcTemplate namedParameterJdbcTemplate
Annotations
@Nullable

Constructor Detail

NamedParameterJdbcDaoSupportback to summary
public NamedParameterJdbcDaoSupport()

Method Detail

getNamedParameterJdbcTemplateback to summary
public NamedParameterJdbcTemplate getNamedParameterJdbcTemplate()

Return a NamedParameterJdbcTemplate wrapping the configured JdbcTemplate.

Annotations
@Nullable
initTemplateConfigback to summary
protected void initTemplateConfig()

Overrides org.springframework.jdbc.core.support.JdbcDaoSupport.initTemplateConfig.

Create a NamedParameterJdbcTemplate based on the configured JdbcTemplate.

Annotations
@Override