当前位置: 首页>>代码示例>>Java>>正文


Java HibernateDaoSupport类代码示例

本文整理汇总了Java中org.springframework.orm.hibernate3.support.HibernateDaoSupport的典型用法代码示例。如果您正苦于以下问题:Java HibernateDaoSupport类的具体用法?Java HibernateDaoSupport怎么用?Java HibernateDaoSupport使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


HibernateDaoSupport类属于org.springframework.orm.hibernate3.support包,在下文中一共展示了HibernateDaoSupport类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: findDocumentWithPageByUnitIdentifyIdAndTime

import org.springframework.orm.hibernate3.support.HibernateDaoSupport; //导入依赖的package包/类
private PageBean findDocumentWithPageByUnitIdentifyIdAndTime(UnitDocument document,String type,int pageSize,
		int page,HibernateDaoSupport dao){
	
	String hql=createHqlWithTime(createHqlWithUnitId(createBasisHql(document,type),document),document);
	//maybe wrong
	return createPageBeanFromThisHql(document, pageSize, page, dao, hql);
}
 
开发者ID:wallellen,项目名称:wl,代码行数:8,代码来源:UnitDocumentManager.java

示例2: createPageBeanFromThisHql

import org.springframework.orm.hibernate3.support.HibernateDaoSupport; //导入依赖的package包/类
private PageBean createPageBeanFromThisHql(UnitDocument document,
		int pageSize, int page, HibernateDaoSupport dao, String hql) {
	List<Object>list=dao.getHibernateTemplate().findByExample(document);
	int totalRow=list.size();
	PageHandler ph=new PageHandler();
	PageBean pb=ph.queryForPage(dao, hql, totalRow, pageSize, page);
	return pb;
}
 
开发者ID:wallellen,项目名称:wl,代码行数:9,代码来源:UnitDocumentManager.java

示例3: findDocumentWithPageBySocialInsuranceNumberAndTime

import org.springframework.orm.hibernate3.support.HibernateDaoSupport; //导入依赖的package包/类
private PageBean findDocumentWithPageBySocialInsuranceNumberAndTime(PersonalDocument document,String type,int pageSize,
		int page,HibernateDaoSupport dao){
	
	String hql=createHqlWithIdentifyCardId(
			createHqlWithTime(createHqlWithSocialInsuranceNumber(createBasisHql(document,type),document),document),document);
	//maybe wrong
	return createPageBeanFromThisHql(document, pageSize, page, dao, hql);
}
 
开发者ID:wallellen,项目名称:wl,代码行数:9,代码来源:PersonalDocumentManager.java

示例4: createPageBeanFromThisHql

import org.springframework.orm.hibernate3.support.HibernateDaoSupport; //导入依赖的package包/类
private PageBean createPageBeanFromThisHql(PersonalDocument document,
		int pageSize, int page, HibernateDaoSupport dao, String hql) {
	List<Object>list=dao.getHibernateTemplate().findByExample(document);
	int totalRow=list.size();
	PageHandler ph=new PageHandler();
	PageBean pb=ph.queryForPage(dao, hql, totalRow, pageSize, page);
	return pb;
}
 
开发者ID:wallellen,项目名称:wl,代码行数:9,代码来源:PersonalDocumentManager.java

示例5: setUp

import org.springframework.orm.hibernate3.support.HibernateDaoSupport; //导入依赖的package包/类
@Before
public void setUp() throws Exception {
    configHelper.usingCruiseConfigDao(goConfigDao);
    configHelper.onSetUp();
    dbHelper.onSetUp();
    goCache.clear();
    hibernateDaoSupport = new HibernateDaoSupport() {
    };
    hibernateDaoSupport.setSessionFactory(sessionFactory);
    assertionUtil = new TransactionCacheAssertionUtil(goCache, transactionTemplate);
}
 
开发者ID:gocd,项目名称:gocd,代码行数:12,代码来源:TransactionCacheInterceptorTest.java

示例6: getSessionFactory

import org.springframework.orm.hibernate3.support.HibernateDaoSupport; //导入依赖的package包/类
public static SessionFactory getSessionFactory(ApplicationContext applicationContext) {
return ((HibernateDaoSupport) applicationContext.getBean("daoService")).getSessionFactory();
   }
 
开发者ID:EsupPortail,项目名称:esup-smsu,代码行数:4,代码来源:HibernateUtils.java


注:本文中的org.springframework.orm.hibernate3.support.HibernateDaoSupport类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。