Class NamedParameterJdbcDaoSupport
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.jdbc.core.support.JdbcDaoSupport
org.springframework.jdbc.core.namedparam.NamedParameterJdbcDaoSupport
- All Implemented Interfaces:
InitializingBean
Extension of JdbcDaoSupport that exposes a NamedParameterJdbcTemplate as well.
- Since:
- 2.0
- Author:
- Thomas Risberg, Juergen Hoeller
- See Also:
-
Field Summary
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturn a NamedParameterJdbcTemplate wrapping the configured JdbcTemplate.protected void
Create a NamedParameterJdbcTemplate based on the configured JdbcTemplate.Methods inherited from class org.springframework.jdbc.core.support.JdbcDaoSupport
checkDaoConfig, createJdbcTemplate, getConnection, getDataSource, getExceptionTranslator, getJdbcTemplate, releaseConnection, setDataSource, setJdbcTemplate
Methods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
-
Constructor Details
-
NamedParameterJdbcDaoSupport
public NamedParameterJdbcDaoSupport()
-
-
Method Details
-
initTemplateConfig
protected void initTemplateConfig()Create a NamedParameterJdbcTemplate based on the configured JdbcTemplate.- Overrides:
initTemplateConfig
in classJdbcDaoSupport
- See Also:
-
getNamedParameterJdbcTemplate
Return a NamedParameterJdbcTemplate wrapping the configured JdbcTemplate.
-