1 29 30 package hero.entity; 31 32 import hero.interfaces.BnRoleMapperPK; 33 import hero.interfaces.BnRoleMapperValue; 34 import hero.interfaces.BnRoleLocal; 35 import hero.interfaces.InvalidValueException; 36 import hero.util.BonitaServiceLocator; 37 import hero.util.BonitaServiceException; 38 39 import javax.ejb.CreateException ; 40 import javax.ejb.EJBException ; 41 import javax.ejb.EntityBean ; 42 import javax.ejb.EntityContext ; 43 import javax.ejb.RemoveException ; 44 45 98 public abstract class BnRoleMapperBean 99 implements EntityBean 100 { 101 102 106 public EntityContext mContext; 107 108 112 113 117 130 public abstract String getId(); 131 132 138 public abstract void setId( String pId ); 139 140 141 152 public abstract BnRoleLocal getBnRole(); 153 154 155 162 public abstract void setBnRole( BnRoleLocal pRole ); 163 164 174 public abstract String getName(); 175 176 182 public abstract void setName( String mapperName ); 183 184 185 195 public abstract int getType(); 196 197 203 public abstract void setType( int mapperType ); 204 205 209 public abstract BnRoleMapperValue getBnRoleMapperValue(); 210 211 215 public abstract void setBnRoleMapperValue(BnRoleMapperValue v); 216 217 218 219 223 238 public BnRoleMapperPK ejbCreate(BnRoleMapperValue prp ) 239 throws 240 InvalidValueException, 241 EJBException , 242 CreateException 243 { 244 setBnRoleMapperValue(prp); 245 this.setId(hero.interfaces.BnRoleMapperUtil.generateGUID(this)); 246 return null; 248 } 249 250 265 public BnRoleMapperPK ejbCreate(String mapperName, int mapperType) 266 throws 267 InvalidValueException, 268 EJBException , 269 CreateException 270 { 271 this.setName(mapperName); 272 this.setType(mapperType); 273 this.setId(hero.interfaces.BnRoleMapperUtil.generateGUID(this)); 274 return null; 276 } 277 278 public void setEntityContext( EntityContext lContext ) 279 { 280 mContext = lContext; 281 } 282 283 public void unsetEntityContext() 284 { 285 mContext = null; 286 } 287 288 public void ejbActivate() 289 { 290 } 291 292 public void ejbPassivate() 293 { 294 } 295 296 public void ejbLoad() 297 { 298 } 299 300 public void ejbStore() 301 { 302 } 303 304 public void ejbRemove() 305 throws 306 RemoveException 307 { 308 } 309 } 310 | Popular Tags |