public abstract class SqlMapClientDaoSupport extends Object implements org.springframework.beans.factory.InitializingBean
Instead of a plain SqlMapClient, you can also pass a preconfigured SqlMapClientTemplate instance in. This allows you to share your SqlMapClientTemplate configuration for all your DAOs, for example a custom SQLExceptionTranslator to use.
setSqlMapClient(org.ibatis.client.SqlMapClient),
setSqlMapClientTemplate(org.ibatis.spring.SqlMapClientTemplate),
org.springframework.orm.ibatis.SqlMapClientTemplate,
org.springframework.orm.ibatis.SqlMapClientTemplate#setExceptionTranslator| Constructor and Description |
|---|
SqlMapClientDaoSupport() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
DataSource |
getDataSource()
Return the JDBC DataSource used by this DAO.
|
SqlMapClient |
getSqlMapClient()
Return the iBATIS Database Layer SqlMapClient that this template works with.
|
SqlMapClientTemplate |
getSqlMapClientTemplate()
Return the SqlMapClientTemplate for this DAO, pre-initialized with the SqlMapClient or set explicitly.
|
void |
setDataSource(DataSource dataSource)
Set the JDBC DataSource to be used by this DAO.
|
void |
setSqlMapClient(SqlMapClient sqlMapClient)
Set the iBATIS Database Layer SqlMapClient to work with.
|
void |
setSqlMapClientTemplate(SqlMapClientTemplate sqlMapClientTemplate)
Set the SqlMapClientTemplate for this DAO explicitly, as an alternative to specifying a SqlMapClient.
|
public void setDataSource(DataSource dataSource)
public DataSource getDataSource()
public void setSqlMapClient(SqlMapClient sqlMapClient)
public SqlMapClient getSqlMapClient()
public void setSqlMapClientTemplate(SqlMapClientTemplate sqlMapClientTemplate)
public SqlMapClientTemplate getSqlMapClientTemplate()
public void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanCopyright © 2084–2018 dukeware.com. All rights reserved.