1 package test; 2 3 import java.util.Collection ; 4 import javax.ejb.*; 5 6 11 public abstract class MicroMarketsTblBean implements EntityBean, MicroMarketsTblLocalBusiness { 12 private EntityContext context; 13 14 20 public void setEntityContext(EntityContext aContext) { 21 context = aContext; 22 } 23 24 27 public void ejbActivate() { 28 29 } 30 31 34 public void ejbPassivate() { 35 36 } 37 38 41 public void ejbRemove() { 42 43 } 44 45 48 public void unsetEntityContext() { 49 context = null; 50 } 51 52 55 public void ejbLoad() { 56 57 } 58 59 62 public void ejbStore() { 63 64 } 65 67 68 public abstract String getZipCode(); 69 public abstract void setZipCode(String zipCode); 70 71 public abstract Double getRadius(); 72 public abstract void setRadius(Double radius); 73 74 public abstract Double getAreaLength(); 75 public abstract void setAreaLength(Double areaLength); 76 77 public abstract Double getAreaWidth(); 78 public abstract void setAreaWidth(Double areaWidth); 79 80 public abstract Collection getCustomerTblBean(); 81 public abstract void setCustomerTblBean(Collection customerTblBean); 82 83 84 public String ejbCreate(String zipCode, Double radius, Double areaLength, Double areaWidth) throws CreateException { 85 if (zipCode == null) { 86 throw new CreateException("The field \"zipCode\" must not be null"); 87 } 88 89 setZipCode(zipCode); 91 setRadius(radius); 92 setAreaLength(areaLength); 93 setAreaWidth(areaWidth); 94 95 return null; 96 } 97 98 public void ejbPostCreate(String zipCode, Double radius, Double areaLength, Double areaWidth) { 99 101 } 102 } 103 | Popular Tags |