Package de.xanders.data.customer.dao

Examples of de.xanders.data.customer.dao.Cases


    /**
     * @see CasesService#getCaseById(java.lang.Long)
     */
    protected CasesVO handleGetCaseById(java.lang.Long caseId)
        throws java.lang.Exception {
      Cases cases = this.getCasesDao().load(caseId);
      CasesVO casesVO = this.getCasesDao().toCasesVO(cases);
      CustAccountService custAccountService = DataServiceLocator.instance().getCustAccountService();
      casesVO.setCustAccountVO(custAccountService.toCustAccountVO(cases.getCustAccount()));
      return casesVO;
    }
View Full Code Here


        throws java.lang.Exception {     
      List list = new ArrayList();
        Collection casesCollection =  this.getCasesDao().findByCriteria(casesCriteria);
        Iterator iterator = casesCollection.iterator();
        while (iterator.hasNext()) {
          Cases cases = (Cases) iterator.next();
          CasesVO casesVO = this.getCasesDao().toCasesVO(cases);
          CustAccountService custAccountService = DataServiceLocator.instance().getCustAccountService();
          casesVO.setCustAccountVO(custAccountService.toCustAccountVO(cases.getCustAccount()));
          list.add(casesVO);
        }
        return list;       
    }
View Full Code Here

    /**
     * @see CasesService#saveCase(CasesVO)
     */
    protected CasesVO handleSaveCase(CasesVO casesVO)
        throws java.lang.Exception {
      Cases cases = this.getCasesDao().casesVOToEntity(casesVO);
        if (cases.getCaseId() == null) {
            cases = this.getCasesDao().create(cases);
            casesVO.setCaseId(cases.getCaseId());
        }
        else {
            this.getCasesDao().update(cases);           
        }
        return casesVO;
View Full Code Here

TOP

Related Classes of de.xanders.data.customer.dao.Cases

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.