1 29 30 package hero.entity; 31 32 import hero.interfaces.BnProjectLocal; 33 import hero.interfaces.BnIterationPK; 34 import hero.interfaces.BnIterationValue; 35 import hero.interfaces.BnIterationLightValue; 36 import hero.interfaces.InvalidValueException; 37 import hero.util.BonitaServiceLocator; 38 import hero.util.BonitaServiceException; 39 40 import javax.ejb.CreateException ; 41 import javax.ejb.EJBException ; 42 import javax.ejb.EntityBean ; 43 import javax.ejb.EntityContext ; 44 import javax.ejb.RemoveException ; 45 46 47 109 public abstract class BnIterationBean 110 implements EntityBean 111 { 112 113 117 public EntityContext mContext; 118 119 123 124 128 142 public abstract String getId(); 143 144 150 public abstract void setId( String pId ); 151 152 153 162 public abstract BnProjectLocal getBnProject(); 163 164 171 public abstract void setBnProject( BnProjectLocal pProject ); 172 173 174 185 public abstract String getFromNode(); 186 187 193 public abstract void setFromNode( String from ); 194 195 206 public abstract String getToNode(); 207 208 214 public abstract void setToNode( String to ); 215 216 227 public abstract String getCondition(); 228 229 235 public abstract void setCondition( String condition ); 236 237 241 public abstract BnIterationValue getBnIterationValue(); 242 243 247 public abstract BnIterationLightValue getBnIterationLightValue(); 248 249 250 254 public abstract void setBnIterationValue(BnIterationValue v); 255 256 260 public abstract void setBnIterationLightValue(BnIterationLightValue v); 261 262 263 264 265 269 284 public BnIterationPK ejbCreate(BnIterationLightValue nd ) 285 throws 286 InvalidValueException, 287 EJBException , 288 CreateException 289 { 290 setBnIterationLightValue(nd); 291 this.setId(hero.interfaces.BnIterationUtil.generateGUID(this)); 292 return null; 294 } 295 296 311 public BnIterationPK ejbCreate(String from, String to, String condition) 312 throws 313 InvalidValueException, 314 EJBException , 315 CreateException 316 { 317 this.setFromNode(from); 318 this.setToNode(to); 319 this.setCondition(condition); 320 this.setId(hero.interfaces.BnIterationUtil.generateGUID(this)); 321 322 return null; 324 } 325 326 public void setEntityContext( EntityContext lContext ) 327 { 328 mContext = lContext; 329 } 330 331 public void unsetEntityContext() 332 { 333 mContext = null; 334 } 335 336 public void ejbActivate() 337 { 338 } 339 340 public void ejbPassivate() 341 { 342 } 343 344 public void ejbLoad() 345 { 346 } 347 348 public void ejbStore() 349 { 350 } 351 352 public void ejbRemove() 353 throws 354 RemoveException 355 { 356 } 357 358 } 359 | Popular Tags |