384 VisualAge for Java Version 3: Persistence Builder with GUIs, Servlets, and JSPs
}
public String getFname() {
try { return cust.getFname(); }
catch (Exception e) { return ""; }
}
public String getLname() {
try { return cust.getLname(); }
catch (Exception e) { return ""; }
}
Retrieve an Account
For the selected customer we provide a method to retrieve an account from
the list of accounts:
public String getAccount(int i)
throws java.lang.ArrayIndexOutOfBoundsException {
try { account = (Account)accounts.elementAt(i);
return ""; }
catch (Exception e) {
throw new java.lang.ArrayIndexOutOfBoundsException ("....");
}
}
Account Properties
A set of methods provide access to the selected account:
public String getAccid() {
try { return account.getAccid(); }
catch (Excep ...