01: package com.titan.customer;
02:
03: import com.titan.address.*;
04:
05: import javax.ejb.CreateException;
06: import javax.naming.NamingException;
07: import java.util.Date;
08: import java.util.Vector;
09: import java.util.Collection;
10:
11: public interface CustomerLocal extends javax.ejb.EJBLocalObject {
12:
13: public Name getName();
14:
15: public void setName(Name name);
16:
17: public boolean getHasGoodCredit();
18:
19: public void setHasGoodCredit(boolean flag);
20:
21: public void addPhoneNumber(String number, byte type)
22: throws NamingException, CreateException;
23:
24: public void removePhoneNumber(byte typeToRemove);
25:
26: public void updatePhoneNumber(String number, byte typeToUpdate);
27:
28: public Vector getPhoneList();
29:
30: public AddressLocal getHomeAddress();
31:
32: public void setHomeAddress(AddressLocal address);
33:
34: public CreditCardLocal getCreditCard();
35:
36: public void setCreditCard(CreditCardLocal card);
37:
38: public Collection getPhoneNumbers();
39:
40: public void setPhoneNumbers(Collection phones);
41:
42: }
|