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