1 package hero.entity; 2 3 import hero.interfaces.BnEdgePK; 4 import hero.interfaces.BnEdgeValue; 5 import hero.interfaces.BnEdgeLightValue; 6 import hero.interfaces.BnNodeLocal; 7 import hero.interfaces.BnProjectLocal; 8 import hero.interfaces.InvalidValueException; 9 import hero.util.BonitaServiceLocator; 10 import hero.util.BonitaServiceException; 11 12 import java.sql.Date ; 13 14 import javax.ejb.CreateException ; 15 import javax.ejb.EJBException ; 16 import javax.ejb.EntityBean ; 17 import javax.ejb.EntityContext ; 18 import javax.ejb.RemoveException ; 19 20 76 public abstract class BnEdgeBean 77 implements EntityBean 78 { 79 80 84 public EntityContext mContext; 85 86 87 91 108 public abstract String getId(); 109 110 116 public abstract void setId( String pId ); 117 118 129 public abstract String getName(); 130 131 137 public abstract void setName( String pName ); 138 139 148 public abstract BnProjectLocal getBnProject(); 149 150 157 public abstract void setBnProject(BnProjectLocal pProject); 158 159 168 public abstract int getState(); 169 170 177 public abstract void setState(int state); 178 179 188 public abstract String getCondition(); 189 190 197 public abstract void setCondition(String condition); 198 199 216 public abstract BnNodeLocal getInBnNode(); 217 218 225 public abstract void setInBnNode(BnNodeLocal pNode); 226 227 239 public abstract BnNodeLocal getOutBnNode(); 240 241 248 public abstract void setOutBnNode(BnNodeLocal pNode); 249 256 257 public abstract Date getCreationDate(); 258 259 265 public abstract void setCreationDate(Date pDate); 266 267 276 public abstract Date getModificationDate(); 277 278 284 public abstract void setModificationDate(Date pDate); 285 286 290 public abstract BnEdgeValue getBnEdgeValue(); 291 292 296 public abstract void setBnEdgeValue(BnEdgeValue v); 297 298 302 public abstract BnEdgeLightValue getBnEdgeLightValue(); 303 304 308 public abstract void setBnEdgeLightValue(BnEdgeLightValue v); 309 310 314 329 public BnEdgePK ejbCreate() 330 throws 331 InvalidValueException, 332 EJBException , 333 CreateException 334 { 335 this.setId(hero.interfaces.BnEdgeUtil.generateGUID(this)); 336 this.setName("edge"+this.getId()); 337 return null; 338 } 339 340 355 public BnEdgePK ejbCreate(BnEdgeValue pEdge) 356 throws 357 CreateException 358 { 359 this.setBnEdgeValue(pEdge); 360 this.setId(hero.interfaces.BnEdgeUtil.generateGUID(this)); 361 362 return null; 363 } 364 365 366 public void ejbPostCreate( ) 367 { 368 } 369 370 public void setEntityContext( EntityContext lContext ) 371 { 372 mContext = lContext; 373 } 374 375 public void unsetEntityContext() 376 { 377 mContext = null; 378 } 379 380 public void ejbActivate() 381 { 382 } 383 384 public void ejbPassivate() 385 { 386 } 387 388 public void ejbLoad() 389 { 390 } 391 392 public void ejbStore() 393 { 394 } 395 396 public void ejbRemove() 397 throws 398 RemoveException 399 { 400 } 401 402 } 403 | Popular Tags |