Examples of Customer


Examples of com.chandana.dev.domain.Customer

  public ActionForward execute(ActionMapping mapping, ActionForm form,
      HttpServletRequest request, HttpServletResponse response)
      throws Exception {   
    CustomerManager customerBo = (CustomerManager) getWebApplicationContext()  .getBean("customerBo");
    CustomerForm customerForm = (CustomerForm) form;
    Customer customer = new Customer();
    BeanUtils.copyProperties(customer, customerForm);
    customerBo.addCustomer(customer);
    return mapping.findForward("success");

  }
View Full Code Here

Examples of com.cloudburo.entity.Customer

     
    HttpServletRequest request = mock(HttpServletRequest.class);
    HttpServletResponse response = mock(HttpServletResponse.class);
     
      // A customer object test entry
      Customer customerIn = new Customer();
      customerIn.name = "Felix";
      customerIn.address = "Kuestahler";
      customerIn.date = new Date();
      customerIn.date1 = new LocalDateTime();
      String customerInJSON = (new GsonWrapper()).getGson().toJson(customerIn);
     
      logger.log(Level.INFO, "Going to persist {0}", customerInJSON);
      StringWriter stringWriter = new StringWriter();
     
      // TEST: Check the persistence operations "POST"
      when(request.getReader()).thenReturn(new BufferedReader(new StringReader(customerInJSON)));
      when(response.getWriter()).thenReturn(new PrintWriter(stringWriter));
     
      customerServlet.doPost(request, response);

      Customer customerOut =  (new GsonWrapper()).getGson().fromJson(stringWriter.toString(), Customer.class);
      assertEquals("Checking name", customerOut.name, customerIn.name);
      assertEquals("Checking id", customerOut._id > 0,true);
     
      // TEST: Check the retrieval of the collections "GET"
      stringWriter = new StringWriter();
View Full Code Here

Examples of com.devsniper.desktop.customers.model.Customer

        new CustomerForm(this, customer).showDialog();
    }

    @Override
    public void onAddNew() {
        Customer customer = new Customer();
        customer.setActive(true);
        openFormView(customer);
    }
View Full Code Here

Examples of com.dtrules.samples.bookpreview.datamodel.Customer

        return book;
    }
   
    public DataObj generate() throws Exception {
        request = new Request();
        request.setCustomer(new Customer());
        request.setBook(newBook());
        request.setAccess("turn_page");
        request.setCurrent_date(sdf.parse("01/02/2011"));
        request.setPage_number(randint(request.getBook().getPages())+1);
       
        Customer customer = request.getCustomer();
        int num_openbooks = randint(5)+1;
        for(int i=0; i<num_openbooks; i++){
            Open_Book ob = new Open_Book();
            ob.setBook(newBook());
            customer.getOpen_books().add(ob);
            ob.setBegin_date(getDate(randint(400)));
        }
        int index = randint(customer.getOpen_books().size());
        customer.getOpen_books().get(index).setBook(request.getBook()); // Make one of the open books match
                                                                        //   the request.
       
        for(int i=0; i<num_openbooks; i++){
            Open_Book  ob          = customer.getOpen_books().get(i);
            Book       b           = ob.getBook();
            int        pages_read  = randint(60);
            int        this_page   = randint(5)+1;
            Chapter    c           = b.getChapters().get(0);
           
View Full Code Here

Examples of com.eastidea.qaforum.model.Customer

  public ArrayList<SelectItem> getCustomerDictionary(){
    ArrayList<SelectItem> dictionary  = new ArrayList<SelectItem>();
   
    List<Customer> list = getAllCustomer();
   
    Customer customer;
    Iterator i = list.iterator();
        while( i.hasNext() )
        {
          customer = (Customer)i.next();
          dictionary.add( new SelectItem( customer.getCustomerid().toString(),
              customer.getName()));
        }
        return dictionary;
  }
View Full Code Here

Examples of com.eatle.persistent.pojo.customer.Customer

  }

  @Override
  public Customer findById(long id)
  {
    Customer c = customerMapper.selectByPrimaryKey(id);

    // 可用状态
    c.setIsEnabledStr(customerEnabledHtml.get(c.getIsEnabled().toString()));
    // 顾客类型
    c.setCustomerTypeStr(customerTypeHtml.get(c.getCustomerType().toString()));
    // 注册时间
    c.setRegisterTimeStr(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(c.getRegisterTime()));
    // 最后登录时间
    c.setLastLoginTimeStr(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(c.getLastLoginTime()));
    // 所属社区
    c.setCommunityName(communityMapper.selectByPrimaryKey(c.getCommunityId()).getName());
    // 所属学校
    c.setSchoolName(schoolMapper.selectByPrimaryKey(c.getSchoolId()).getName());
   
    return c;
  }
View Full Code Here

Examples of com.emc.plants.persistence.Customer

      Inventory inv = em.find(Inventory.class, si.getID());
      OrderItem oi = new OrderItem(inv);
      oi.setQuantity(si.getQuantity());
      orderitems.add(oi);
    }
    Customer c = em.find(Customer.class, customerID);
    order = new Order(c, billName, billAddr1, billAddr2, billCity, billState, billZip, billPhone,
        shipName, shipAddr1, shipAddr2, shipCity, shipState, shipZip, shipPhone, creditCard,
        ccNum, ccExpireMonth, ccExpireYear, cardHolder, shippingMethod, orderitems)
   
    //em.getTransaction().begin();
View Full Code Here

Examples of com.example.customer.Customer

      HelperContext hc = HelperProvider.getDefaultContext();
      CustomerFactory.INSTANCE.register(hc);   
     
      Type customerType = hc.getTypeHelper().getType(Customer.class);  
      DataGraph dataGraph = SDOUtil.createDataGraph();
      Customer customer = (Customer) dataGraph.createRootObject(customerType);
   
      Account account = CustomerFactory.INSTANCE.createAccount();
      customer.setAccount(account);
      customer.setFirstName("John");
      customer.getAccount().setAccountNum(1234);
       
      ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
      SDOUtil.saveDataGraph(dataGraph, outputStream, null);
      DataGraph loadDataGraph = SDOUtil.loadDataGraph(new ByteArrayInputStream(outputStream.toByteArray()), null);
     
      loadDataGraph.getChangeSummary().beginLogging();
     
      customer = (Customer) loadDataGraph.getRootObject();
      customer.getAccount().setAccountNum(987);  
     
      loadDataGraph.getChangeSummary().endLogging();
     
      List changedDataObjects = loadDataGraph.getChangeSummary().getChangedDataObjects();  
        assertEquals("in fact 1 Object was changed in the code", 1, changedDataObjects.size());    
View Full Code Here

Examples of com.example.customerservice.Customer

        }
       
        // The implementation of updateCustomer is set to sleep for some seconds.
        // Still this method should return instantly as the method is declared
        // as a one way method in the WSDL
        Customer customer = new Customer();
        customer.setName("Smith");
        customerService.updateCustomer(customer);
       
        System.out.println("All calls were succesful");
    }
View Full Code Here

Examples of com.example.customerservice.multipart.Customer

                BeanInvocation beanInvocation = new BeanInvocation();
             
                beanInvocation.setMethod(MultiPartCustomerService.class.getMethod("saveCustomer",
                        SaveCustomer.class, Product.class, Holder.class));
               
                Customer customer = new Customer();
                customer.setName("TestCustomer");
                customer.setRevenue(50000);
                SaveCustomer saveCustomer = new SaveCustomer();
                saveCustomer.setCustomer(customer);
               
                Product product = new Product();
                product.setName("Multiuse Product");
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.