Examples of Lead


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

        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

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

    /**
     * @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

Examples of org.springframework.batch.admin.sample.lead.Lead

import org.springframework.batch.item.file.transform.FieldSet;

public class LeadFieldSetMapper implements FieldSetMapper<Lead> {

  public Lead mapFieldSet(FieldSet fieldSet) {
    Lead lead = new Lead(fieldSet.readLong("id"), new Client(fieldSet.readString("client.name"), fieldSet
        .readString("client.country")), new Product(fieldSet.readString("product.name")));
    lead.setAmount(fieldSet.readDouble("amount"));
    lead.setQuery(fieldSet.readString("query"));
    return lead;
  }
View Full Code Here

Examples of org.springframework.batch.admin.sample.lead.Lead

  public Lead read() throws Exception, UnexpectedInputException, ParseException {
    if (count>=maxCount) {
      return null;
    }
    ++count;
    return new Lead(123L+count, new Client("Client"+count, "UK"), new Product("Foo"));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.