FileDocCategorySizeDatePackage
CustomerEntity.javaAPI DocExample1405Thu Aug 24 18:53:04 BST 2000com.imaginary.bank

CustomerEntity

public class CustomerEntity extends com.imaginary.lwp.BaseEntity implements Customer

Fields Summary
private ArrayList
accounts
private String
firstName
private String
lastName
private String
socialSecurity
Constructors Summary
public CustomerEntity()


        
        super();
    
Methods Summary
public voidaddAccount(com.imaginary.lwp.Identifier id, AccountFacade acct)

        prepareStore(id);
        accounts.add(acct);
    
public voidcreate(com.imaginary.lwp.Identifier id, java.lang.String fn, java.lang.String ln, java.lang.String ssn)

        prepareCreate(id);
        firstName = fn;
        lastName = ln;
        socialSecurity = ssn;
    
public java.util.CollectiongetAccounts(com.imaginary.lwp.Identifier id)

        prepareRead(id);
        return accounts;
    
public java.lang.StringgetFirstName(com.imaginary.lwp.Identifier id)

        prepareRead(id);
        return firstName;
    
public java.lang.StringgetLastName(com.imaginary.lwp.Identifier id)

        prepareRead(id);
        return lastName;
    
public java.lang.StringgetSocialSecurity(com.imaginary.lwp.Identifier id)

        prepareRead(id);
        return socialSecurity;