1 package cmpdb; 2 3 import java.util.Collection ; 4 import javax.ejb.*; 5 6 9 public abstract class ManufactureBean implements EntityBean, ManufactureLocalBusiness { 10 private EntityContext context; 11 12 18 public void setEntityContext(EntityContext aContext) { 19 context = aContext; 20 } 21 22 25 public void ejbActivate() { 26 27 } 28 29 32 public void ejbPassivate() { 33 34 } 35 36 39 public void ejbRemove() { 40 41 } 42 43 46 public void unsetEntityContext() { 47 context = null; 48 } 49 50 53 public void ejbLoad() { 54 55 } 56 57 60 public void ejbStore() { 61 62 } 63 65 66 public abstract Integer getManufactureId(); 67 public abstract void setManufactureId(Integer manufactureId); 68 69 public abstract String getName(); 70 public abstract void setName(String name); 71 72 public abstract String getAddressline1(); 73 public abstract void setAddressline1(String addressline1); 74 75 public abstract String getAddressline2(); 76 public abstract void setAddressline2(String addressline2); 77 78 public abstract String getCity(); 79 public abstract void setCity(String city); 80 81 public abstract String getState(); 82 public abstract void setState(String state); 83 84 public abstract String getZip(); 85 public abstract void setZip(String zip); 86 87 public abstract String getPhone(); 88 public abstract void setPhone(String phone); 89 90 public abstract String getFax(); 91 public abstract void setFax(String fax); 92 93 public abstract String getEmail(); 94 public abstract void setEmail(String email); 95 96 public abstract String getRep(); 97 public abstract void setRep(String rep); 98 99 public abstract Collection getProductBean(); 100 public abstract void setProductBean(Collection productBean); 101 102 103 public Integer ejbCreate(Integer manufactureId, String name, String addressline1, String addressline2, String city, String state, String zip, String phone, String fax, String email, String rep) throws CreateException { 104 if (manufactureId == null) { 105 throw new CreateException("The field \"manufactureId\" must not be null"); 106 } 107 108 setManufactureId(manufactureId); 110 setName(name); 111 setAddressline1(addressline1); 112 setAddressline2(addressline2); 113 setCity(city); 114 setState(state); 115 setZip(zip); 116 setPhone(phone); 117 setFax(fax); 118 setEmail(email); 119 setRep(rep); 120 121 return null; 122 } 123 124 public void ejbPostCreate(Integer manufactureId, String name, String addressline1, String addressline2, String city, String state, String zip, String phone, String fax, String email, String rep) { 125 127 } 128 } 129
| Popular Tags
|