Class HibernateDaoSupport
2011-10-11 17:11
239 查看
java.lang.Object org.springframework.dao.support.DaoSupport org.springframework.orm.hibernate3.support.HibernateDaoSupport
Requires a
SessionFactoryto be set, providing a
HibernateTemplatebased on it to subclasses through the
getHibernateTemplate()method. Can alternatively be initialized directly with a HibernateTemplate, in order to reuse the latter's settings such as the SessionFactory, exception translator, flush mode, etc.
[/code]
getHibernateTemplate()
Return the HibernateTemplate for this DAO, pre-initialized with the SessionFactory or set explicitly.[/code]
getSession()
Obtain a Hibernate Session, either from the current transaction or a new one.[/code]
getSessionFactory()
Return the Hibernate SessionFactory used by this DAO.[/code]
setSessionFactory(SessionFactory sessionFactory)
Set the Hibernate SessionFactory to be used by this DAO.[/code]
相关文章推荐
- Class<T>泛型对象的获取及通过继承了HibernateDaoSupport的注入sessionFacoty的简单方式
- 继承HibernateDaoSupport引发的错误总结,spring对hibernate的集成
- Junit+spring+hibernate HibernateDaoSupport测试问题
- hibernateDaoSupport的使用步骤
- 【转】hibernateTemplate和hibernateDaoSupport的注意问题
- 继承HibernateDaoSupport后,获得session 并使用session操作sql的方法
- hibernatedaosupport的使用
- spring的HibernateDaoSupport以及HibernateTemplate和jdbcTemplate的选择问题
- HibernateDaoSupport
- Spring中使用HibernateDaoSupport来进行数据库的操作
- 继承 HibernateDaoSupport 的getSession 问题
- 对HibernateDaoSupport进行二次封装:hibernate增删改查组件
- Spring整合Hibernate,不用HibernateDaoSupport与HibernateTemplate而用Hibernate自己的api分析说明
- .HibernateDaoSupport详解
- HibernateDaoSupport详解
- spring-framework-3.2.4与hibernate-release-4.3.5下使用HibernateDaoSupport抛出异常
- Spring与Hibernate整合的HibernateDaoSupport应用中的“内存泄露”问题(学习心得)
- Spring 整合HibernateDaoSupport(业务Dao继承CommonDaoImpl)
- Java程序员从笨鸟到菜鸟之(八十一)细谈Spring(十)深入源码分析Spring之HibernateTemplate 和HibernateDaoSupport
- Spring 3 Annotations - HibernateDaoSupport - Repository Requires Session Factory