@Deprecated public abstract class SqlMapClientDaoSupport extends DaoSupport
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.
logger
Constructor and Description |
---|
SqlMapClientDaoSupport()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
checkDaoConfig()
Deprecated.
Abstract subclasses must override this to check their configuration.
|
DataSource |
getDataSource()
Deprecated.
Return the JDBC DataSource used by this DAO.
|
SqlMapClient |
getSqlMapClient()
Deprecated.
Return the iBATIS Database Layer SqlMapClient that this template works with.
|
SqlMapClientTemplate |
getSqlMapClientTemplate()
Deprecated.
Return the SqlMapClientTemplate for this DAO,
pre-initialized with the SqlMapClient or set explicitly.
|
void |
setDataSource(DataSource dataSource)
Deprecated.
Set the JDBC DataSource to be used by this DAO.
|
void |
setSqlMapClient(SqlMapClient sqlMapClient)
Deprecated.
Set the iBATIS Database Layer SqlMapClient to work with.
|
void |
setSqlMapClientTemplate(SqlMapClientTemplate sqlMapClientTemplate)
Deprecated.
Set the SqlMapClientTemplate for this DAO explicitly,
as an alternative to specifying a SqlMapClient.
|
afterPropertiesSet, initDao
public final void setDataSource(DataSource dataSource)
public final DataSource getDataSource()
public final void setSqlMapClient(SqlMapClient sqlMapClient)
public final SqlMapClient getSqlMapClient()
public final void setSqlMapClientTemplate(SqlMapClientTemplate sqlMapClientTemplate)
public final SqlMapClientTemplate getSqlMapClientTemplate()
protected final void checkDaoConfig()
DaoSupport
Implementors should be marked as final
if concrete subclasses
are not supposed to override this template method themselves.
checkDaoConfig
in class DaoSupport