本文整理汇总了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();
}