1 25 26 package org.objectweb.jonas.jtests.beans.relation.cascade; 27 28 import java.rmi.RemoteException ; 29 import java.util.Date ; 30 import javax.ejb.CreateException ; 31 import javax.ejb.EJBObject ; 32 import javax.naming.NamingException ; 33 34 public interface CustomerR extends EJBObject { 35 Integer getId() throws RemoteException ; 36 void setAddress(String street, String city, String state, String zip) throws RemoteException , CreateException , NamingException ; 37 void setAddress(AddressDO address) throws RemoteException , CreateException , NamingException ; 38 void addPhoneNumber(String number, byte type) throws NamingException , CreateException , RemoteException ; 39 void addCar(String number, byte type) throws NamingException , CreateException , RemoteException ; 40 void setCreditCard(Date date, String num, String name) throws RemoteException , CreateException , NamingException ; 41 AddressDO getAddress() throws RemoteException ; 42 Name getName() throws RemoteException ; 43 void setName(Name name) throws RemoteException ; 44 void accident(String carnumber, String invoicenumber) throws RemoteException , CreateException , NamingException ; 45 } 46 | Popular Tags |