Examples of Customer


Examples of $applicationProjectName$.domain.Customer

        return LOGGER;
    }
    // }}

    public void install() {
        Customer richard = getCustomerRepository().findByName("Pawson");
        Product foldingTable = getProductRepository().findByCode("820-72721");
        Product foldingChair = getProductRepository().findByCode("820-72725");
        Product waspCatcher = getProductRepository().findByCode("850-18003");
        Product coolbox = getProductRepository().findByCode("845-01020");
       
        setDate(2007, 4, 11); setTime(10, 15);
        richard.placeOrder(foldingTable, 1);
        setDate(2007, 4, 12); setTime(9, 35);
        richard.placeOrder(foldingChair, 6);
        setDate(2007, 4, 13); setTime(14, 20);
        richard.placeOrder(waspCatcher, 1);
        setDate(2007, 4, 14); setTime(11, 10);
        richard.placeOrder(coolbox, 1);
    }
View Full Code Here

Examples of $packageName$.domain.Customer

     * Creates a new (still-transient) customer.
     *
     * @return
     */
    public Customer newCustomer() {
        Customer customer = (Customer)newTransientInstance(Customer.class);
        return customer;
    }
View Full Code Here

Examples of ComplexMappingTest.Customer

        }
        return bindingManager;
    }

    public void setACustomer(Customer aCustomer) {
        Customer oldValue = this.aCustomer;
        this.aCustomer = aCustomer;
        this.qq_Listeners.firePropertyChange("ACustomer", oldValue, this.aCustomer);
    }
View Full Code Here

Examples of ModelLayer.Customer

  public int updateCustomer(String CPR,String firstName, String lastName, String address,int zipcode, String phoneNumber)
  {

    IFDBCustomer dbcustomerObj = new DBCustomer();
    Customer customer = new Customer(CPR);
    IFDBCity dbcityObj=new DBCity();
    City city=new City();
   
    //customer.setCPR(CPR);
    customer.setFirtName(firstName);
    customer.setLastName(lastName);
    customer.setAddress(address);
    city=dbcityObj.findCity(zipcode,false);
    customer.setCity(city);
    customer.setPhoneNumber(phoneNumber);
    return  dbcustomerObj.updateCustomer(customer,CPR);
  }
View Full Code Here

Examples of ReservationSystemPackage.Customer

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetCustomer(Customer newCustomer, NotificationChain msgs) {
    Customer oldCustomer = customer;
    customer = newCustomer;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ReservationSystemPackagePackage.RESERVATION__CUSTOMER, oldCustomer, newCustomer);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here

Examples of StockTradeBusinessClasses.Customer

     * @param pPrice Type: float
     */
    public void decrementHolding(TextData pCustomerName, String pStockName, int pQuantity, float pPrice) {
        // TODO [129,Info]: Copy of parameter pCustomerName has been skipped because this method is on a service class for StockTradeServices.CustomerSO
        try {
            Customer oneCustomer = null;
            Holding custHolding = null;
            float incomeFromStock = pQuantity*pPrice;
   
            oneCustomer = this.getCustomer(pCustomerName);
            //custHolding = self.GetHolding(pCustomer=oneCustomer,
            //        pGetHoldStockName=pStockName);
            custHolding = this.SQLSelectHolding(pCustomerName, pStockName);
   
            if (custHolding.getQuantity() > pQuantity) {
                custHolding.setQuantity(custHolding.getQuantity()-pQuantity);
                oneCustomer.setCashBalance(oneCustomer.getCashBalance()+incomeFromStock);
                this.SQLUpdateHolding(custHolding);
                this.SQLUpdateCashBal(oneCustomer.getCustomerName(), oneCustomer.getCashBalance());
   
            }
            else if (custHolding.getQuantity() == pQuantity) {
                this.SQLDeleteHolding(custHolding);
   
                //oneCustomer.HoldingList.DeleteRow(object=custHolding);
                oneCustomer.setCashBalance(oneCustomer.getCashBalance()+incomeFromStock);
                this.SQLUpdateCashBal(oneCustomer.getCustomerName(), oneCustomer.getCashBalance());
   
            }
            else if (custHolding.getQuantity() < pQuantity) {
                InvalidTradeException badOrder = new InvalidTradeException();
                badOrder.setWithParams(Constants.SP_ER_ERROR, "Customer %1 does not own enough stock to place SELL Order", pCustomerName);
View Full Code Here

Examples of account.Customer

    protected void tearDown() throws Exception {
        node.stop();
    }

    public void testCalculator() throws Exception {
        Customer customer = node.getService(Customer.class, "CustomerComponent");
        // This is one of the customer numbers in bank application running on Geronimo
        String accountNo = "1234567890";
        Double balance = customer.depositAmount(accountNo, new Double(100));
        // System.out.println("Balance amount for account " + accountNo + " is $" + balance);
        assertEquals(1200.0, balance);
    }
View Full Code Here

Examples of au.edu.uts.aip.mandreacchio.jpa.Customer

    return c;
  }

  @Override
  public Customer getCustmoerById(int customerId) {
    @SuppressWarnings("unchecked")
    Customer result = (Customer) em.getReference(Customer.class, customerId);
    return result;
  }
View Full Code Here

Examples of bankqueue.customer.Customer

    private void generateCustomers(int numCustomers) {
        Random r = new Random();
        int now = 0;
        for (int i = 0; i < numCustomers; ++i) {
            Customer customer = CustomerFactory.newCustomer(i, r);
            now += kMinInterval + r.nextInt(kMaxInterval - kMinInterval + 1);
            simulator.addEvent(new CustomerArriveEvent(now, customer, this));
        }
    }
View Full Code Here

Examples of br.com.buyFast.model.Customer

  /**
   * Envia a mensagem de confirmação de pedido.
   * @throws ServiceException
   */
  public void sendConfirmOrder(Order order) throws ServiceException {
      Customer customer = order.getCustomer();
   
      logger.info("Enviando e-mail para " + customer);
     
      SimpleDateFormat df = new SimpleDateFormat("dd/MM/yy - HH:mm:ss");
     
      StringBuilder builder = new StringBuilder();
      NumberFormat format = NumberFormat.getCurrencyInstance();
     
      builder.append("<h2>Confirmação de pedido do site BuyFast:</h2><br />");
      builder.append("<h2>Dados do Pedido:</h2><br />");
      builder.append("<b>Hora:</b> " + df.format(new Date()) + "<br />");
      builder.append("<b>Nome:</b> " + customer.getName() + "<br />");
      builder.append("<b>E-mail:</b> " + customer.getEmail() + "<br />");
      builder.append("<b>Assunto:</b> Pedido Finalizado<br />");
      builder.append("<b>Produtos:</b><br />");
      double total = 0.0d;
      for (ItemsOrder itemsOrder : order.getItemsOrders()) {
        builder.append(itemsOrder.getQuantity());
        builder.append(" - ");
        builder.append(itemsOrder.getProduct().getName());
        builder.append(" - ");
        builder.append(format.format(itemsOrder.getPrice()));
        builder.append("<br />");
        total += itemsOrder.getPrice();
      }
      builder.append("<br /><b>Total:</b>" + format.format(total));
     
      emailService.send(customer.getEmail(), "buyfast@buyfast.com", "Pedido Finalizado no Site BuyFast",
          builder.toString());
   
  }
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.