1 package hero.entity; 2 3 import hero.interfaces.BnNodeInterHookPK; 4 import hero.interfaces.BnNodeInterHookValue; 5 import hero.interfaces.BnNodeLocal; 6 import hero.interfaces.InvalidValueException; 7 import hero.util.BonitaServiceLocator; 8 import hero.util.BonitaServiceException; 9 10 import javax.ejb.CreateException ; 11 import javax.ejb.EJBException ; 12 import javax.ejb.EntityBean ; 13 import javax.ejb.EntityContext ; 14 import javax.ejb.RemoveException ; 15 16 72 public abstract class BnNodeInterHookBean 73 implements EntityBean 74 { 75 76 80 public EntityContext mContext; 81 82 86 87 91 105 public abstract String getId(); 106 107 113 public abstract void setId( String pId ); 114 115 124 public abstract BnNodeLocal getBnNode(); 125 126 133 public abstract void setBnNode( BnNodeLocal pNode ); 134 135 136 147 public abstract String getName(); 148 149 155 public abstract void setName( String hookName ); 156 157 168 public abstract String getEvent(); 169 170 176 public abstract void setEvent( String hookEvent ); 177 178 179 190 public abstract int getType(); 191 192 198 public abstract void setType( int hookType ); 199 200 201 213 public abstract String getScript(); 214 215 221 public abstract void setScript( String script ); 222 223 224 228 public abstract BnNodeInterHookValue getBnNodeInterHookValue(); 229 230 234 public abstract void setBnNodeInterHookValue(BnNodeInterHookValue v); 235 236 237 238 242 257 public BnNodeInterHookPK ejbCreate(BnNodeInterHookValue prp ) 258 throws 259 InvalidValueException, 260 EJBException , 261 CreateException 262 { 263 setBnNodeInterHookValue(prp); 264 this.setId(hero.interfaces.BnNodeInterHookUtil.generateGUID(this)); 265 return null; 267 } 268 269 284 public BnNodeInterHookPK ejbCreate(String hookName, String hookEvent, int hookType, String script ) 285 throws 286 InvalidValueException, 287 EJBException , 288 CreateException 289 { 290 this.setName(hookName); 291 this.setEvent(hookEvent); 292 this.setType(hookType); 293 this.setScript(script); 294 this.setId(hero.interfaces.BnNodeInterHookUtil.generateGUID(this)); 295 296 return null; 298 } 299 300 public void setEntityContext( EntityContext lContext ) 301 { 302 mContext = lContext; 303 } 304 305 public void unsetEntityContext() 306 { 307 mContext = null; 308 } 309 310 public void ejbActivate() 311 { 312 } 313 314 public void ejbPassivate() 315 { 316 } 317 318 public void ejbLoad() 319 { 320 } 321 322 public void ejbStore() 323 { 324 } 325 326 public void ejbRemove() 327 throws 328 RemoveException 329 { 330 } 331 332 } 333 | Popular Tags |