01: package org.objectweb.jonas.jtests.beans.ejbql;
02:
03: import java.util.Collection;
04: import java.util.Vector;
05:
06: import javax.ejb.CreateException;
07: import javax.naming.NamingException;
08:
09: public interface CustomerLocal extends javax.ejb.EJBLocalObject {
10:
11: public Name getName();
12:
13: public void setName(Name name);
14:
15: public Integer getId();
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: }
|