1 package hero.entity; 2 3 import hero.interfaces.BnNodeHookPK; 4 import hero.interfaces.BnNodeHookValue; 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 73 public abstract class BnNodeHookBean 74 implements EntityBean ![JavaDoc](../../../cmn/javadoc.gif) 75 { 76 77 81 public EntityContext mContext; 82 83 87 88 92 106 public abstract String getId(); 107 108 114 public abstract void setId( String pId ); 115 116 117 126 public abstract BnNodeLocal getBnNode(); 127 128 135 public abstract void setBnNode( BnNodeLocal pNode ); 136 137 138 139 150 public abstract String getName(); 151 152 158 public abstract void setName( String hookName ); 159 160 171 public abstract String getEvent(); 172 173 179 public abstract void setEvent( String hookEvent ); 180 181 182 193 public abstract int getType(); 194 195 201 public abstract void setType( int hookType ); 202 203 207 public abstract BnNodeHookValue getBnNodeHookValue(); 208 209 213 public abstract void setBnNodeHookValue(BnNodeHookValue v); 214 215 216 217 221 236 public BnNodeHookPK ejbCreate(BnNodeHookValue prp ) 237 throws 238 InvalidValueException, 239 EJBException , 240 CreateException ![JavaDoc](../../../cmn/javadoc.gif) 241 { 242 setBnNodeHookValue(prp); 243 this.setId(hero.interfaces.BnNodeHookUtil.generateGUID(this)); 244 return null; 246 } 247 248 263 public BnNodeHookPK ejbCreate(String hookName, String hookEvent, int hookType) 264 throws 265 InvalidValueException, 266 EJBException , 267 CreateException ![JavaDoc](../../../cmn/javadoc.gif) 268 { 269 this.setName(hookName); 270 this.setEvent(hookEvent); 271 this.setType(hookType); 272 this.setId(hero.interfaces.BnNodeHookUtil.generateGUID(this)); 273 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 ![JavaDoc](../../../cmn/javadoc.gif) 307 { 308 } 309 310 311 312 313 } 314 | Popular Tags |