package org.mockejb.test.entity;
import javax.ejb.*;
public abstract class AddressBean implements EntityBean {
private EntityContext context = null;
public abstract long getId();
public abstract void setId( long id );
public abstract String getStreet();
public abstract void setStreet(String street);
public abstract String getCity();
public abstract void setCity(String city);
public abstract String getState();
public abstract void setState(String state);
public abstract String getZipCode();
public abstract void setZipCode(String zipCode);
public abstract String getCountry();
public abstract void setCountry(String country);
public abstract Person getPerson();
public abstract void setPerson( Person person);
public Object ejbCreate(String street, String city,
String state, String zipCode, String country, Person person) throws CreateException {
setStreet(street);
setCity(city);
setState(state);
setZipCode(zipCode);
setCountry(country);
return null;
}
public void ejbPostCreate( String street, String city,
String state, String zipCode, String country, Person person ) throws CreateException {
setPerson( person );
}
public Object ejbCreate() throws CreateException {
return null;
}
public void ejbPostCreate() throws CreateException { }
public void setEntityContext(EntityContext c) {
context = c;
}
public void unsetEntityContext() {
context = null;
}
public void ejbRemove() throws RemoveException { }
public void ejbActivate() { }
public void ejbPassivate() { }
public void ejbStore() { }
public void ejbLoad() { }
}