1 package test.ejb.cmr; 2 3 33 public abstract class CityBean implements javax.ejb.EntityBean { 34 35 38 private javax.ejb.EntityContext _entityContext; 39 40 52 public abstract java.lang.Integer getCityId(); 53 54 59 public abstract void setCityId(java.lang.Integer cityId); 60 61 70 public abstract java.lang.Integer getCountryIdFk(); 71 72 77 public abstract void setCountryIdFk(java.lang.Integer countryIdFk); 78 79 90 public abstract java.lang.String getName(); 91 92 99 public abstract void setName(java.lang.String name); 100 101 119 public abstract java.util.Collection getLanguages(); 120 121 129 public abstract void setLanguages(java.util.Collection languages); 130 131 139 public java.lang.Integer ejbCreate( java.lang.Integer cityId, java.lang.String name ) throws javax.ejb.CreateException { 140 setCityId(cityId); 141 setName(name); 142 return null; 144 } 145 146 152 public void ejbPostCreate( java.lang.Integer cityId, java.lang.String name ) throws javax.ejb.CreateException { 153 } 155 156 158 162 public void setEntityContext(javax.ejb.EntityContext entityContext) { 163 _entityContext = entityContext; 164 } 165 166 170 public void unsetEntityContext() { 171 _entityContext = null; 172 } 173 174 178 public void ejbLoad() { 179 } 180 181 185 public void ejbActivate() { 186 } 187 188 192 public void ejbPassivate() { 193 } 194 195 199 public void ejbRemove() throws javax.ejb.RemoveException { 200 } 201 202 206 public void ejbStore() { 207 } 208 } 209 | Popular Tags |