本文整理匯總了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);
}
示例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;
}
示例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);
}
示例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;
}
示例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);
}
示例6: getSessionFactory
import org.springframework.orm.hibernate3.support.HibernateDaoSupport; //導入依賴的package包/類
public static SessionFactory getSessionFactory(ApplicationContext applicationContext) {
return ((HibernateDaoSupport) applicationContext.getBean("daoService")).getSessionFactory();
}