當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。