Package de.xanders.data.customer.dao

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


    /**
     * @see LeadService#getLeadById(java.lang.Long)
     */
    protected LeadVO handleGetLeadById(java.lang.Long leadId)
        throws java.lang.Exception {
      Lead lead = this.getLeadDao().load(leadId);
      LeadVO leadVO = this.getLeadDao().toLeadVO(lead);
      CustAccountService custAccountService = DataServiceLocator.instance().getCustAccountService();
      leadVO.setCustAccountVO(custAccountService.toCustAccountVO(lead.getCustAccount()));
      return leadVO;     
    }
View Full Code Here


        throws java.lang.Exception {
      List list = new ArrayList();
        Collection leadCollection = this.getLeadDao().findByCriteria(leadCriteria);
        Iterator iterator = leadCollection.iterator();
        while (iterator.hasNext()) {
          Lead lead = (Lead) iterator.next();
          LeadVO leadVO = this.getLeadDao().toLeadVO(lead);
          CustAccountService custAccountService = DataServiceLocator.instance().getCustAccountService();
          leadVO.setCustAccountVO(custAccountService.toCustAccountVO(lead.getCustAccount()));
          list.add(leadVO);
        }
        return list;  
    }
View Full Code Here

    /**
     * @see LeadService#saveLead(LeadVO)
     */
    protected LeadVO handleSaveLead(LeadVO leadVO)
        throws java.lang.Exception {
      Lead lead = this.getLeadDao().leadVOToEntity(leadVO);
        if (lead.getLeadId() == null) {
            lead = this.getLeadDao().create(lead);
            leadVO.setLeadId(lead.getLeadId());
        }
        else {
            this.getLeadDao().update(lead);           
        }
        return leadVO;
View Full Code Here

TOP

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

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.