KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > titan > customer > CustomerLocal


1 package com.titan.customer;
2
3 import com.titan.address.*;
4
5 import javax.ejb.CreateException;
6 import javax.naming.NamingException;
7 import java.util.Date;
8 import java.util.Vector;
9 import java.util.Collection;
10
11 public interface CustomerLocal extends javax.ejb.EJBLocalObject {
12
13     public Name getName();
14     public void setName(Name name);
15
16     public boolean getHasGoodCredit();
17     public void setHasGoodCredit(boolean flag);
18
19     public void addPhoneNumber(String number, byte type)
20         throws NamingException, CreateException;
21     public void removePhoneNumber(byte typeToRemove);
22     public void updatePhoneNumber(String number, byte typeToUpdate);
23
24     public Vector getPhoneList();
25
26     public AddressLocal getHomeAddress();
27     public void setHomeAddress(AddressLocal address);
28
29     public CreditCardLocal getCreditCard();
30     public void setCreditCard(CreditCardLocal card);
31
32     public Collection getPhoneNumbers( );
33     public void setPhoneNumbers(Collection phones);
34
35 }
36
Popular Tags