1 package hero.entity; 2 3 import hero.interfaces.BnNodeLocal; 4 import hero.interfaces.BnNodePropertyPK; 5 import hero.interfaces.BnNodePropertyValue; 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 import java.util.Collection ;; 17 18 74 public abstract class BnNodePropertyBean 75 implements EntityBean 76 { 77 78 82 public EntityContext mContext; 83 84 88 89 93 107 public abstract String getId(); 108 109 115 public abstract void setId( String pId ); 116 117 118 119 128 public abstract BnNodeLocal getBnNode(); 129 130 137 public abstract void setBnNode( BnNodeLocal pNode ); 138 139 140 141 152 public abstract String getTheKey(); 153 154 160 public abstract void setTheKey( String key ); 161 162 173 public abstract String getTheValue(); 174 175 181 public abstract void setTheValue( String value ); 182 183 194 public abstract Collection getPossibleValues(); 195 196 202 public abstract void setPossibleValues( Collection value ); 203 204 215 public abstract boolean getPropagate(); 216 217 223 public abstract void setPropagate(boolean prop ); 224 225 229 public abstract BnNodePropertyValue getBnNodePropertyValue(); 230 231 235 public abstract void setBnNodePropertyValue(BnNodePropertyValue v); 236 237 238 239 243 258 public BnNodePropertyPK ejbCreate(BnNodePropertyValue prp ) 259 throws 260 InvalidValueException, 261 EJBException , 262 CreateException 263 { 264 setBnNodePropertyValue(prp); 265 this.setId(hero.interfaces.BnNodePropertyUtil.generateGUID(this)); 266 return null; 268 } 269 270 285 public BnNodePropertyPK ejbCreate(String key, String value ) 286 throws 287 InvalidValueException, 288 EJBException , 289 CreateException 290 { 291 this.setTheKey(key); 292 this.setTheValue(value); 293 this.setPropagate(true); 294 this.setId(hero.interfaces.BnNodePropertyUtil.generateGUID(this)); 295 296 return null; 298 } 299 300 315 public BnNodePropertyPK ejbCreate(String key, Collection values ) 316 throws 317 InvalidValueException, 318 EJBException , 319 CreateException 320 { 321 this.setTheKey(key); 322 this.setPossibleValues(values); 323 this.setPropagate(true); 324 this.setId(hero.interfaces.BnNodePropertyUtil.generateGUID(this)); 325 326 return null; 328 } 329 330 331 public void setEntityContext( EntityContext lContext ) 332 { 333 mContext = lContext; 334 } 335 336 public void unsetEntityContext() 337 { 338 mContext = null; 339 } 340 341 public void ejbActivate() 342 { 343 } 344 345 public void ejbPassivate() 346 { 347 } 348 349 public void ejbLoad() 350 { 351 } 352 353 public void ejbStore() 354 { 355 } 356 357 public void ejbRemove() 358 throws 359 RemoveException 360 { 361 } 362 363 } 364 | Popular Tags |