1 package ent; 2 3 import java.util.Collection ; 4 import javax.ejb.*; 5 6 11 public abstract class ManufactureBean implements EntityBean, ManufactureLocalBusiness { 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 Integer getManufactureId(); 69 public abstract void setManufactureId(Integer manufactureId); 70 71 public abstract String getName(); 72 public abstract void setName(String name); 73 74 public abstract String getAddressline1(); 75 public abstract void setAddressline1(String addressline1); 76 77 public abstract String getAddressline2(); 78 public abstract void setAddressline2(String addressline2); 79 80 public abstract String getCity(); 81 public abstract void setCity(String city); 82 83 public abstract String getState(); 84 public abstract void setState(String state); 85 86 public abstract String getZip(); 87 public abstract void setZip(String zip); 88 89 public abstract String getPhone(); 90 public abstract void setPhone(String phone); 91 92 public abstract String getFax(); 93 public abstract void setFax(String fax); 94 95 public abstract String getEmail(); 96 public abstract void setEmail(String email); 97 98 public abstract String getRep(); 99 public abstract void setRep(String rep); 100 101 public abstract Collection getProductBean(); 102 public abstract void setProductBean(Collection productBean); 103 104 105 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 { 106 if (manufactureId == null) { 107 throw new CreateException("The field \"manufactureId\" must not be null"); 108 } 109 110 setManufactureId(manufactureId); 112 setName(name); 113 setAddressline1(addressline1); 114 setAddressline2(addressline2); 115 setCity(city); 116 setState(state); 117 setZip(zip); 118 setPhone(phone); 119 setFax(fax); 120 setEmail(email); 121 setRep(rep); 122 123 return null; 124 } 125 126 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) { 127 129 } 130 } 131 | Popular Tags |