Examples of Customer


Examples of com.openbravo.ws.customers.Customer

    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof Customer)) {
            return false;
        }
        Customer other = (Customer) obj;
        if (obj == null) {
            return false;
        }
        if (this == obj) {
            return true;
View Full Code Here

Examples of com.petrituononen.customerdb.jaxb.Customer

      try {
        fis = new FileInputStream(file);
        customers = (Customers) unmarshaller.unmarshal(fis);
        List<Customer> lst = customers.getCustomer();
        for(int i=0; i<lst.size(); i++) {
          Customer c = lst.get(i);
          if(c.getName().equalsIgnoreCase(cust.getName())) {
            customers.getCustomer().remove(c);
            break;
          }
        }
        marshaller.marshal(customers, new FileOutputStream(xmlName)) ;
View Full Code Here

Examples of com.prancingdonkey.model.Customer

    @Override
    protected Object doTransform(Object o, String s) throws TransformerException {
        if (o instanceof Map) {

            Map payload = (Map) o;
            Customer customer = new Customer();
            String[] nameComponents = ((String) payload.get("Name")).split(" ");
            customer.setFirstName(nameComponents[0]);
            customer.setLastName(nameComponents[1]);

            return customer;
        } else {
            throw new TransformerException(this, new ClassCastException());
        }
View Full Code Here

Examples of com.rakaiz.tailorbills.model.Customer

    setColumnsNames(columnsNames);
  }

  @Override
    public Object getValueAt(int rowIndex, int columnIndex) {
  Customer dbObject = (Customer) data.get(rowIndex);
  switch (columnIndex) {
  case 0:
      return dbObject.getId();
  case 1:
      return dbObject.getName();
  case 2:
      return dbObject.getMobileNo();
  case 3:
      return dbObject.getNotes();

  default:
      return null;
  }
    }
View Full Code Here

Examples of com.rakaizsys.eims.model.customer.Customer

    @Override
    public Object getValueAt(int row, int col) {
  if (dbObjects == null || dbObjects.size() == 0)
      return null;
  Customer customer = (Customer) dbObjects.get(row);
  switch (col) {
  case 0:
      return customer.getId();
  case 1:
      return customer.getName();
  case 2:
      return customer.getHomePhoneNo();
  case 3:
      return customer.getMobilePhoneNo();
  case 4:
      return customer.getWorkPhoneNo();
  case 5:
      return customer.getEmail();

  case 6:
      customer.getAddress();
  case 7:
      return customer.getType();
  case 8:
      return customer.getNotes();
  default:
      return null;
  }
    }
View Full Code Here

Examples of com.stripe.model.Customer

    @Override
    public OrderConfirmation processOrder(Order order) throws StripeException {
        Plan plan = planCreator.createPlan(order);

        Customer customer = customerCreator.createCustormer(plan, order);

        String confirmationNumber = confirmationNumberGenerator.generateConfirmationNumber(customer);

        emailSender.sendOrderEmail(confirmationNumber);
View Full Code Here

Examples of com.sun.jersey.samples.moxy.beans.Customer

     */
    @Test
    public void testCustomer() throws Exception {
        WebClient wc = WebClient.create(urlStem);
        wc.path("customer");
        Customer customer = wc.accept(MediaType.APPLICATION_XML).get(Customer.class);
        customer.setName("Tom Dooley");
        wc.type(MediaType.APPLICATION_XML).put(customer);
        Customer updatedCustomer = wc.get(Customer.class);
        Assert.assertEquals(customer, updatedCustomer);
    }
View Full Code Here

Examples of com.supinfo.analytics.entities.Customer

            Product p = new Product();
            p.setName(s.getProduct().getProdName());
            p.setId(s.getProduct().getProdId());

            Customer cu = new Customer();
            cu.setCity(s.getCustomer().getCustCity());
            cu.setFirstName(s.getCustomer().getCustFirstName());
            cu.setGender(s.getCustomer().getCustGender());
            cu.setId(s.getCustomer().getCustId());
            cu.setIncomeLevel(s.getCustomer().getCustIncomeLevel());
            cu.setLastName(s.getCustomer().getCustLastName());
            cu.setMaritalStatus(s.getCustomer().getCustMaritalStatus());

            channelDAO.addChannel(c);
            productDAO.addProduct(p);
            customerDAO.addCustomer(cu);
View Full Code Here

Examples of com.tll.model.Customer

    account.setParent(null);
    account = persist(account);
    pkAccount = account.getId();
    pkCurrency = currency.getId();

    Customer customer = create(Customer.class, true);
    customer.setParent(null);
    customer.setCurrency(currency);
    customer = persist(customer);
    pkCustomer = customer.getId();

    Visitor visitor = create(Visitor.class, true);
    visitor.setAccount(account);
    visitor = persist(visitor);
    pkVisitor = visitor.getId();
View Full Code Here

Examples of com.tuscanyscatours.customer.Customer

    public void destroy() {
        // Save the customers
    }

    public Customer createCustomer(String name, String email, CreditCardDetailsType creditCard) {
        Customer customer = new Customer();
        customer.setId("c-" + idGenerator++);
        customer.setName(name);
        customer.setEmail(email);
        customer.setCreditCard(creditCard);
        customers.put(customer.getId(), customer);
        return customer;
    }
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.