java.lang.Object | ||
↳ | org.springframework.dao.support.DaoSupport | |
↳ | org.springframework.orm.ibatis.support.SqlMapClientDaoSupport |
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.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.dao.support.DaoSupport
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return the JDBC DataSource used by this DAO.
| |||||||||||
Return the iBATIS Database Layer SqlMapClient that this template works with.
| |||||||||||
Return the SqlMapClientTemplate for this DAO,
pre-initialized with the SqlMapClient or set explicitly.
| |||||||||||
Set the JDBC DataSource to be used by this DAO.
| |||||||||||
Set the iBATIS Database Layer SqlMapClient to work with.
| |||||||||||
Set the SqlMapClientTemplate for this DAO explicitly,
as an alternative to specifying a SqlMapClient.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Abstract subclasses must override this to check their configuration.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.dao.support.DaoSupport
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.beans.factory.InitializingBean
|
Return the iBATIS Database Layer SqlMapClient that this template works with.
Return the SqlMapClientTemplate for this DAO, pre-initialized with the SqlMapClient or set explicitly.
Set the JDBC DataSource to be used by this DAO. Not required: The SqlMapClient might carry a shared DataSource.
Set the iBATIS Database Layer SqlMapClient to work with. Either this or a "sqlMapClientTemplate" is required.
Set the SqlMapClientTemplate for this DAO explicitly, as an alternative to specifying a SqlMapClient.
Abstract subclasses must override this to check their configuration.
Implementors should be marked as final