Package com.sun.ebank.util

Examples of com.sun.ebank.util.AccountDetails


      frame.messlab.setText(returned + " " + messages.getString("NotFoundException"));
    }
  }

  protected void createActInf(int currentFunction, String returned) {
    AccountDetails details = null;
    //View Account Information
    if((currentFunction == 4) && (returned.length() > 0)) {
      try {
        details = account.getDetails(returned);
        boolean readonly = true;
        frame.setDescription(details.getDescription());
        ArrayList alist = new ArrayList();
        alist = details.getCustomerIds();
        frame.createActFields(readonly, details.getType(),
                details.getBalance(), details.getCreditLine(),
                details.getBeginBalance(), alist,
    details.getBeginBalanceTimeStamp());
      } catch (AccountNotFoundException ex) {
        frame.resetPanelTwo();
        frame.messlab3.setText(messages.getString("AccountException") + " " +
                returned + " " + messages.getString("NotFoundException"));
      } catch (RemoteException ex) {
View Full Code Here


        } catch (Exception ex) {
             throw new EJBException("loadCustomerIds:  " +
                ex.getMessage());
        }

        return new AccountDetails(accountId, type, description, balance,
            creditLine, beginBalance, beginBalanceTimeStamp,
            customerIds);
    }
View Full Code Here

        Iterator i = accountIds.iterator();

        while (i.hasNext()) {
            Account account = (Account)i.next();
            AccountDetails accountDetails = account.getDetails();
            accountList.add(accountDetails);
        }

        return accountList;
View Full Code Here

      frame.messlab.setText("InvalidParameterException");
    }
  }

  protected void createActInf(int currentFunction, String returned) {
    AccountDetails details = null;
    //View Account Information
    if((currentFunction == 4) && (returned.length() > 0)) {
      try {
        details = account.getDetails(returned);
        boolean readonly = true;
        frame.setDescription(details.getDescription());
        ArrayList alist = new ArrayList();
        alist = details.getCustomerIds();
        frame.createActFields(readonly, details.getType(),
                details.getBalance(), details.getCreditLine(),
                details.getBeginBalance(), alist,
    details.getBeginBalanceTimeStamp());
      } catch (AccountNotFoundException ex) {
        frame.resetPanelTwo();
        frame.messlab3.setText(messages.getString("AccountException") + " " +
                returned + " " + messages.getString("NotFoundException"));
      } catch (RemoteException ex) {
View Full Code Here

        }

        Debug.print(accountId);
        Debug.print(description);

        return new AccountDetails(accountId, type, description, balance,
            creditLine, beginBalance, beginBalanceTimeStamp,
            customerIds);
    }
View Full Code Here

        ArrayList accountList = new ArrayList();

        Iterator i = accountIds.iterator();
        while (i.hasNext()) {
            Account account = (Account)i.next();
            AccountDetails accountDetails = account.getDetails();
            accountList.add(accountDetails);
        }

        return accountList;
View Full Code Here

        // returns the AccountDetails for the specified account

        Debug.print("AccountControllerBean getDetails");

        AccountDetails result;

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

        if (accountExists(accountId) == false)
            throw new AccountNotFoundException(accountId);


        result = account.getDetails();
        Debug.print(result.getAccountId());
        return result;

    } // getDetails
View Full Code Here

TOP

Related Classes of com.sun.ebank.util.AccountDetails

Copyright © 2018 www.massapicom. 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.