Class SqlMapClientDaoSupport
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.ibatis.support.SqlMapClientDaoSupport
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
@Deprecated
public abstract class SqlMapClientDaoSupport
extends org.springframework.dao.support.DaoSupport
Deprecated.
as of Spring 3.2, in favor of the native Spring support in the Mybatis follow-up project
(https://mybatis.org/)
Convenient super class for iBATIS SqlMapClient data access objects. Requires a SqlMapClient to be set, providing a
SqlMapClientTemplate based on it to subclasses.
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.
- Since:
- 24.02.2004
- Author:
- Juergen Hoeller
- See Also:
-
Field Summary
Fields inherited from class org.springframework.dao.support.DaoSupport
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidDeprecated.final DataSourceDeprecated.Return the JDBC DataSource used by this DAO.final com.ibatis.sqlmap.client.SqlMapClientDeprecated.Return the iBATIS Database Layer SqlMapClient that this template works with.final SqlMapClientTemplateDeprecated.Return the SqlMapClientTemplate for this DAO, pre-initialized with the SqlMapClient or set explicitly.final voidsetDataSource(DataSource dataSource) Deprecated.Set the JDBC DataSource to be used by this DAO.final voidsetSqlMapClient(com.ibatis.sqlmap.client.SqlMapClient sqlMapClient) Deprecated.Set the iBATIS Database Layer SqlMapClient to work with.final voidsetSqlMapClientTemplate(SqlMapClientTemplate sqlMapClientTemplate) Deprecated.Set the SqlMapClientTemplate for this DAO explicitly, as an alternative to specifying a SqlMapClient.Methods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
-
Constructor Details
-
SqlMapClientDaoSupport
public SqlMapClientDaoSupport()Deprecated.
-
-
Method Details
-
setDataSource
Deprecated.Set the JDBC DataSource to be used by this DAO. Not required: The SqlMapClient might carry a shared DataSource.- Parameters:
dataSource- the DataSource to use- See Also:
-
getDataSource
Deprecated.Return the JDBC DataSource used by this DAO.- Returns:
- the DataSource
-
setSqlMapClient
public final void setSqlMapClient(com.ibatis.sqlmap.client.SqlMapClient sqlMapClient) Deprecated.Set the iBATIS Database Layer SqlMapClient to work with. Either this or a "sqlMapClientTemplate" is required.- Parameters:
sqlMapClient- the SqlMapClient to use- See Also:
-
getSqlMapClient
public final com.ibatis.sqlmap.client.SqlMapClient getSqlMapClient()Deprecated.Return the iBATIS Database Layer SqlMapClient that this template works with.- Returns:
- the SqlMapClient
-
setSqlMapClientTemplate
Deprecated.Set the SqlMapClientTemplate for this DAO explicitly, as an alternative to specifying a SqlMapClient.- Parameters:
sqlMapClientTemplate- the SqlMapClientTemplate to use- See Also:
-
getSqlMapClientTemplate
Deprecated.Return the SqlMapClientTemplate for this DAO, pre-initialized with the SqlMapClient or set explicitly.- Returns:
- the SqlMapClientTemplate
-
checkDaoConfig
protected final void checkDaoConfig()Deprecated.- Specified by:
checkDaoConfigin classorg.springframework.dao.support.DaoSupport
-