1 package hero.entity; 2 3 import hero.interfaces.BnAgentEdgePK; 4 import hero.interfaces.BnAgentEdgeValue; 5 import hero.interfaces.BnAgentLocal; 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.util.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 67 68 public abstract class BnAgentEdgeBean 69 implements EntityBean 70 { 71 72 76 public EntityContext mContext; 77 78 82 95 public abstract String getId(); 96 97 103 public abstract void setId( String pId ); 104 105 115 public abstract String getName(); 116 117 123 public abstract void setName( String pName ); 124 125 134 public abstract BnProjectLocal getBnProject(); 135 136 143 public abstract void setBnProject(BnProjectLocal pProject); 144 145 152 public abstract int getState(); 153 154 161 public abstract void setState(int state); 162 163 175 public abstract BnAgentLocal getInBnAgent(); 176 177 184 public abstract void setInBnAgent(BnAgentLocal pAgent); 185 186 199 public abstract BnNodeLocal getOutBnNode(); 200 201 208 public abstract void setOutBnNode(BnNodeLocal pNode); 209 210 217 218 public abstract Date getCreationDate(); 219 220 226 public abstract void setCreationDate(Date pDate); 227 228 232 public abstract BnAgentEdgeValue getBnAgentEdgeValue(); 233 234 238 public abstract void setBnAgentEdgeValue(BnAgentEdgeValue v); 239 240 241 245 260 public BnAgentEdgePK ejbCreate() 261 throws 262 InvalidValueException, 263 EJBException , 264 CreateException 265 { 266 this.setName("BnAgentEdge"+this.getId()); 267 this.setId(hero.interfaces.BnAgentEdgeUtil.generateGUID(this)); 268 return null; 269 } 270 271 286 public BnAgentEdgePK ejbCreate(BnAgentEdgeValue pAgentEdge) 287 throws 288 CreateException 289 { 290 this.setBnAgentEdgeValue(pAgentEdge); 291 return null; 292 } 293 294 295 public void ejbPostCreate( ) 296 { 297 } 298 299 public void setEntityContext( EntityContext lContext ) 300 { 301 mContext = lContext; 302 } 303 304 public void unsetEntityContext() 305 { 306 mContext = null; 307 } 308 309 public void ejbActivate() 310 { 311 } 312 313 public void ejbPassivate() 314 { 315 } 316 317 public void ejbLoad() 318 { 319 } 320 321 public void ejbStore() 322 { 323 } 324 325 public void ejbRemove() 326 throws 327 RemoveException 328 { 329 } 330 331 } 332 | Popular Tags |