Class DaoSupport

java.lang.Object
org.springframework.dao.support.DaoSupport
All Implemented Interfaces:
InitializingBean
Direct Known Subclasses:
JdbcDaoSupport

@Deprecated(since="7.0", forRemoval=true) public abstract class DaoSupport extends Object implements InitializingBean
Deprecated, for removal: This API element is subject to removal in a future version.
as of 7.0, in favor of direct injection of client dependencies
Generic base class for DAOs, defining template methods for DAO initialization.

Extended by Spring's specific DAO support classes, such as: JdbcDaoSupport, JdoDaoSupport, etc.

Since:
1.2.2
Author:
Juergen Hoeller
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final org.apache.commons.logging.Log
    Deprecated, for removal: This API element is subject to removal in a future version.
    Logger available to subclasses.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Invoked by the containing BeanFactory after it has set all bean properties and satisfied BeanFactoryAware, ApplicationContextAware etc.
    protected abstract void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Abstract subclasses must override this to check their configuration.
    protected void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Concrete subclasses can override this for custom initialization behavior.

    Methods inherited from class java.lang.Object

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

    • logger

      protected final org.apache.commons.logging.Log logger
      Deprecated, for removal: This API element is subject to removal in a future version.
      Logger available to subclasses.
  • Constructor Details

    • DaoSupport

      public DaoSupport()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • afterPropertiesSet

      public final void afterPropertiesSet() throws IllegalArgumentException, BeanInitializationException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: InitializingBean
      Invoked by the containing BeanFactory after it has set all bean properties and satisfied BeanFactoryAware, ApplicationContextAware etc.

      This method allows the bean instance to perform validation of its overall configuration and final initialization when all bean properties have been set.

      Specified by:
      afterPropertiesSet in interface InitializingBean
      Throws:
      IllegalArgumentException
      BeanInitializationException
    • checkDaoConfig

      protected abstract void checkDaoConfig() throws IllegalArgumentException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Abstract subclasses must override this to check their configuration.

      Implementors should be marked as final if concrete subclasses are not supposed to override this template method themselves.

      Throws:
      IllegalArgumentException - in case of illegal configuration
    • initDao

      protected void initDao() throws Exception
      Deprecated, for removal: This API element is subject to removal in a future version.
      Concrete subclasses can override this for custom initialization behavior. Gets called after population of this instance's bean properties.
      Throws:
      Exception - if DAO initialization fails (will be rethrown as a BeanInitializationException)
      See Also: