Examples of CustomerDetails


Examples of com.sun.ebank.util.CustomerDetails

      frame.createActFields(readonly, null, 0.0, 0.0, 0.0, alist, timestamp);
    }
  }

  protected void createCustInf(int currentFunction, String returned) {
    CustomerDetails details = null;
  //View Customer Information
    if((currentFunction == 3) && (returned.length() > 0)) {
      try {
        details = customer.getDetails(returned);
        boolean readonly = true;
        frame.createCustFields(true, details.getFirstName(),
    details.getLastName(), details.getMiddleInitial(),
    details.getStreet(), details.getCity(),
    details.getState(), details.getZip(),
                details.getPhone(), details.getEmail());
      } catch (RemoteException ex) {
        frame.messlab.setText("Remote Exception");
      } catch (CustomerNotFoundException ex) {
        frame.resetPanelTwo();
        frame.messlab2.setText(messages.getString("CustomerException") + " " +
                returned + " " + messages.getString("NotFoundException"));
      }
    }

  //Update Customer Information
    if((currentFunction == 2) && (returned.length() > 0)) {
      try {
        details = customer.getDetails(returned);
        boolean readonly = false;
        frame.createCustFields(false, details.getFirstName(),
    details.getLastName(), details.getMiddleInitial(),
    details.getStreet(), details.getCity(),
    details.getState(), details.getZip(),
                details.getPhone(), details.getEmail());
      } catch (RemoteException ex) {
        frame.messlab.setText("Remote Exception");
      } catch (CustomerNotFoundException ex) {
        frame.resetPanelTwo();
        frame.messlab2.setText(messages.getString("CustomerException") + " " +
View Full Code Here

Examples of com.sun.ebank.util.CustomerDetails

        Iterator i = customerIds.iterator();

        while (i.hasNext()) {
            Customer customer = (Customer)i.next();
            CustomerDetails customerDetail = customer.getDetails();
            customerList.add(customerDetail);
        }

        return customerList;
View Full Code Here

Examples of com.sun.ebank.util.CustomerDetails

        Iterator i = customerIds.iterator();

        while (i.hasNext()) {
            Customer customer = (Customer)i.next();
            CustomerDetails customerDetail = customer.getDetails();
            customerList.add(customerDetail);
        }

        return customerList;
View Full Code Here

Examples of com.sun.ebank.util.CustomerDetails

    public CustomerDetails getDetails() {

        Debug.print("CustomerBean getDetails");

        return new CustomerDetails (customerId, lastName,
            firstName, middleInitial, street, city, state,
            zip, phone, email);
    }
View Full Code Here

Examples of com.sun.ebank.util.CustomerDetails

    public CustomerDetails getDetails() {

        Debug.print("CustomerBean getDetails");

        return new CustomerDetails (customerId, lastName,
            firstName, middleInitial, street, city, state,
            zip, phone, email);
    }
View Full Code Here

Examples of com.sun.ebank.util.CustomerDetails

         alist, timestamp);
    }
  }

  protected void createCustInf(int currentFunction, String returned) {
    CustomerDetails details = null;
  //View Customer Information
    if((currentFunction == 3) && (returned.length() > 0)) {
      try {
        details = customer.getDetails(returned);
        boolean readonly = true;
        frame.createCustFields(true, details.getFirstName(),
    details.getLastName(), details.getMiddleInitial(),
    details.getStreet(), details.getCity(),
    details.getState(), details.getZip(),
                details.getPhone(), details.getEmail());
      } catch (RemoteException ex) {
        frame.messlab.setText("Remote Exception" + ex.getMessage());
      } catch (InvalidParameterException ex) {
        frame.messlab.setText("InvalidParameterException");
      } catch (CustomerNotFoundException ex) {
        frame.resetPanelTwo();
        frame.messlab2.setText(messages.getString("CustomerException") + " " +
                returned + " " + messages.getString("NotFoundException"));
      }
    }

  //Update Customer Information
    if((currentFunction == 2) && (returned.length() > 0)) {
      try {
        details = customer.getDetails(returned);
        boolean readonly = false;
        frame.createCustFields(false, details.getFirstName(),
    details.getLastName(), details.getMiddleInitial(),
    details.getStreet(), details.getCity(),
    details.getState(), details.getZip(),
                details.getPhone(), details.getEmail());
      } catch (RemoteException ex) {
        frame.messlab.setText("Remote Exception" + ex.getMessage());
      } catch (InvalidParameterException ex) {
        frame.messlab.setText("InvalidParameterException");
      } catch (CustomerNotFoundException ex) {
View Full Code Here

Examples of com.sun.ebank.util.CustomerDetails

        ArrayList customerList = new ArrayList();

        Iterator i = customerIds.iterator();
        while (i.hasNext()) {
            Customer customer = (Customer)i.next();
            CustomerDetails customerDetail = customer.getDetails();
            customerList.add(customerDetail);
        }
        return customerList;

    } //  getCustomersOfAccount
View Full Code Here

Examples of com.sun.ebank.util.CustomerDetails

        // returns the CustomerDetails for the specified customer

        Debug.print("CustomerControllerBean getDetails");

        CustomerDetails result;

        if (customerId == null)
            throw new InvalidParameterException("null customerId" );

        if (customerExists(customerId) == false)
View Full Code Here

Examples of com.sun.ebank.util.CustomerDetails

        }

        Iterator i = customerIds.iterator();
        while (i.hasNext()) {
            Customer customer = (Customer)i.next();
            CustomerDetails customerDetail = customer.getDetails();
            customerList.add(customerDetail);
        }

        return customerList;
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.