Package org.springframework.dao.support
Class DaoSupport
java.lang.Object
org.springframework.dao.support.DaoSupport
- All Implemented Interfaces:
- InitializingBean
- Direct Known Subclasses:
- HibernateDaoSupport,- JdbcDaoSupport
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 SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionfinal voidInvoked by the containingBeanFactoryafter it has set all bean properties and satisfiedBeanFactoryAware,ApplicationContextAwareetc.protected abstract voidAbstract subclasses must override this to check their configuration.protected voidinitDao()Concrete subclasses can override this for custom initialization behavior.
- 
Field Details- 
loggerLogger available to subclasses.
 
- 
- 
Constructor Details- 
DaoSupportpublic DaoSupport()
 
- 
- 
Method Details- 
afterPropertiesSetDescription copied from interface:InitializingBeanInvoked by the containingBeanFactoryafter it has set all bean properties and satisfiedBeanFactoryAware,ApplicationContextAwareetc.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:
- afterPropertiesSetin interface- InitializingBean
- Throws:
- IllegalArgumentException
- BeanInitializationException
 
- 
checkDaoConfigAbstract subclasses must override this to check their configuration.Implementors should be marked as finalif concrete subclasses are not supposed to override this template method themselves.- Throws:
- IllegalArgumentException- in case of illegal configuration
 
- 
initDaoConcrete 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:
 
 
-