1 package hero.entity; 2 3 import hero.interfaces.BnProjectInterHookPK; 4 import hero.interfaces.BnProjectInterHookValue; 5 import hero.interfaces.BnProjectLocal; 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 70 public abstract class BnProjectInterHookBean 71 implements EntityBean 72 { 73 74 78 public EntityContext mContext; 79 80 84 85 89 103 public abstract String getId(); 104 105 111 public abstract void setId( String pId ); 112 113 122 public abstract BnProjectLocal getBnProject(); 123 124 131 public abstract void setBnProject( BnProjectLocal project ); 132 133 134 145 public abstract String getName(); 146 147 153 public abstract void setName( String hookName ); 154 155 166 public abstract String getEvent(); 167 168 174 public abstract void setEvent( String hookEvent ); 175 176 177 188 public abstract int getType(); 189 190 196 public abstract void setType( int hookType ); 197 198 199 211 public abstract String getScript(); 212 213 219 public abstract void setScript( String script ); 220 221 222 226 public abstract BnProjectInterHookValue getBnProjectInterHookValue(); 227 228 232 public abstract void setBnProjectInterHookValue(BnProjectInterHookValue v); 233 234 235 236 240 255 public BnProjectInterHookPK ejbCreate(BnProjectInterHookValue prp ) 256 throws 257 InvalidValueException, 258 EJBException , 259 CreateException 260 { 261 setBnProjectInterHookValue(prp); 262 this.setId(hero.interfaces.BnProjectInterHookUtil.generateGUID(this)); 263 return null; 265 } 266 267 282 public BnProjectInterHookPK ejbCreate(String hookName, String hookEvent, int hookType, String script ) 283 throws 284 InvalidValueException, 285 EJBException , 286 CreateException 287 { 288 this.setName(hookName); 289 this.setEvent(hookEvent); 290 this.setType(hookType); 291 this.setScript(script); 292 this.setId(hero.interfaces.BnProjectInterHookUtil.generateGUID(this)); 293 return null; 295 } 296 297 public void setEntityContext( EntityContext lContext ) 298 { 299 mContext = lContext; 300 } 301 302 public void unsetEntityContext() 303 { 304 mContext = null; 305 } 306 307 public void ejbActivate() 308 { 309 } 310 311 public void ejbPassivate() 312 { 313 } 314 315 public void ejbLoad() 316 { 317 } 318 319 public void ejbStore() 320 { 321 } 322 323 public void ejbRemove() 324 throws 325 RemoveException 326 { 327 } 328 329 } 330 | Popular Tags |