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
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected final void
    Deprecated.
     
    Deprecated.
    Return the JDBC DataSource used by this DAO.
    final com.ibatis.sqlmap.client.SqlMapClient
    Deprecated.
    Return the iBATIS Database Layer SqlMapClient that this template works with.
    Deprecated.
    Return the SqlMapClientTemplate for this DAO, pre-initialized with the SqlMapClient or set explicitly.
    final void
    Deprecated.
    Set the JDBC DataSource to be used by this DAO.
    final void
    setSqlMapClient(com.ibatis.sqlmap.client.SqlMapClient sqlMapClient)
    Deprecated.
    Set the iBATIS Database Layer SqlMapClient to work with.
    final void
    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

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SqlMapClientDaoSupport

      public SqlMapClientDaoSupport()
      Deprecated.
  • Method Details

    • setDataSource

      public final void setDataSource(DataSource dataSource)
      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

      public final DataSource 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

      public final void setSqlMapClientTemplate(SqlMapClientTemplate sqlMapClientTemplate)
      Deprecated.
      Set the SqlMapClientTemplate for this DAO explicitly, as an alternative to specifying a SqlMapClient.
      Parameters:
      sqlMapClientTemplate - the SqlMapClientTemplate to use
      See Also:
    • getSqlMapClientTemplate

      public final SqlMapClientTemplate 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:
      checkDaoConfig in class org.springframework.dao.support.DaoSupport