1 4 5 package test.ejb; 6 7 import test.interfaces.AddressValue; 8 import test.interfaces.AddressUtil; 9 10 import javax.ejb.CreateException ; 11 import javax.ejb.EntityBean ; 12 import javax.ejb.FinderException ; 13 14 53 public abstract class AddressBean extends BaseEntityBean implements EntityBean { 54 55 public String ejbCreate(AddressValue v) throws CreateException { 56 setId(AddressUtil.generateGUID(this)); 57 return null; 58 } 59 60 public void ejbPostCreate(AddressValue v) throws CreateException { 61 setAddressValue(v); 63 } 64 65 67 68 public abstract AddressValue getAddressValue(); 69 70 75 public abstract void setAddressValue(AddressValue v); 76 77 79 90 public abstract String getId(); 91 92 100 public abstract void setId(String id); 101 102 112 public abstract String getStreet(); 113 114 124 public abstract String getCity(); 125 126 127 public abstract String ejbSelectMostCrowdedStreet() throws FinderException ; 128 129 136 public abstract int getReadOnly(); 137 } 138 | Popular Tags |