1 package cmpdb; 2 3 import javax.ejb.*; 4 5 8 public abstract class OfficeTblBean implements javax.ejb.EntityBean , cmpdb.OfficeTblLocalBusiness { 9 private javax.ejb.EntityContext context; 10 11 17 public void setEntityContext(javax.ejb.EntityContext aContext) { 18 context = aContext; 19 } 20 21 24 public void ejbActivate() { 25 26 } 27 28 31 public void ejbPassivate() { 32 33 } 34 35 38 public void ejbRemove() { 39 40 } 41 42 45 public void unsetEntityContext() { 46 context = null; 47 } 48 49 52 public void ejbLoad() { 53 54 } 55 56 59 public void ejbStore() { 60 61 } 62 64 65 public abstract java.lang.Integer getOfficeNum(); 66 public abstract void setOfficeNum(java.lang.Integer officeNum); 67 68 public abstract java.lang.String getCity(); 69 public abstract void setCity(java.lang.String city); 70 71 public abstract java.lang.String getRegion(); 72 public abstract void setRegion(java.lang.String region); 73 74 public abstract java.lang.Integer getTargetSales(); 75 public abstract void setTargetSales(java.lang.Integer targetSales); 76 77 public abstract java.sql.Date getOpenDate(); 78 public abstract void setOpenDate(java.sql.Date openDate); 79 80 public abstract java.sql.Date getCloseDate(); 81 public abstract void setCloseDate(java.sql.Date closeDate); 82 83 public abstract cmpdb.OfficeTypeCodeTblLocal getTypeCode(); 84 public abstract void setTypeCode(cmpdb.OfficeTypeCodeTblLocal typeCode); 85 86 public abstract java.util.Collection getSalesRepTblBean(); 87 public abstract void setSalesRepTblBean(java.util.Collection salesRepTblBean); 88 89 90 public java.lang.Integer ejbCreate(java.lang.Integer officeNum, java.lang.String city, java.lang.String region, java.lang.Integer targetSales, java.sql.Date openDate, java.sql.Date closeDate, cmpdb.OfficeTypeCodeTblLocal typeCode) throws javax.ejb.CreateException { 91 if (officeNum == null) { 92 throw new javax.ejb.CreateException ("The field \"officeNum\" must not be null"); 93 } 94 if (typeCode == null) { 95 throw new javax.ejb.CreateException ("The field \"typeCode\" must not be null"); 96 } 97 98 setOfficeNum(officeNum); 100 setCity(city); 101 setRegion(region); 102 setTargetSales(targetSales); 103 setOpenDate(openDate); 104 setCloseDate(closeDate); 105 106 return null; 107 } 108 109 public void ejbPostCreate(java.lang.Integer officeNum, java.lang.String city, java.lang.String region, java.lang.Integer targetSales, java.sql.Date openDate, java.sql.Date closeDate, cmpdb.OfficeTypeCodeTblLocal typeCode) { 110 setTypeCode(typeCode); 112 113 } 114 } 115
| Popular Tags
|