| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
Method Summary | |
final void | afterPropertiesSet() |
final DataSource | getDataSource() Return the JDBC DataSource used by this DAO. |
final SqlMapClient | getSqlMapClient() Return the iBATIS Database Layer SqlMapClient that this template works with. |
final SqlMapClientTemplate | getSqlMapClientTemplate() Return the SqlMapClientTemplate for this DAO, pre-initialized with the SqlMapClient or set explicitly. |
final void | setDataSource(DataSource dataSource) Set the JDBC DataSource to be used by this DAO. |
final void | setSqlMapClient(SqlMapClient sqlMapClient) Set the iBATIS Database Layer SqlMapClient to work with. |
final void | setSqlMapClientTemplate(SqlMapClientTemplate sqlMapClientTemplate) Set the SqlMapClientTemplate for this DAO explicitly, as an alternative to specifying a SqlMapClient. |
Method Detail |
public final void afterPropertiesSet()
throws java.lang.Exception
public final DataSource getDataSource()
public final SqlMapClient getSqlMapClient()
public final SqlMapClientTemplate getSqlMapClientTemplate()
public final void setDataSource(DataSource dataSource)
public final void setSqlMapClient(SqlMapClient sqlMapClient)
public final void setSqlMapClientTemplate(SqlMapClientTemplate sqlMapClientTemplate)
Association Links |
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |