1 package hero.entity; 2 3 import hero.interfaces.BnProjectLocal; 4 import hero.interfaces.BnProjectPropertyPK; 5 import hero.interfaces.BnProjectPropertyValue; 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 76 public abstract class BnProjectPropertyBean 77 implements EntityBean 78 { 79 80 84 public EntityContext mContext; 85 86 90 91 95 109 public abstract String getId(); 110 111 117 public abstract void setId( String pId ); 118 119 120 121 130 public abstract BnProjectLocal getBnProject(); 131 132 139 public abstract void setBnProject( BnProjectLocal pProject ); 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 208 public abstract BnProjectPropertyValue getBnProjectPropertyValue(); 209 210 214 public abstract void setBnProjectPropertyValue(BnProjectPropertyValue v); 215 216 217 218 222 237 public BnProjectPropertyPK ejbCreate(BnProjectPropertyValue prp ) 238 throws 239 InvalidValueException, 240 EJBException , 241 CreateException 242 { 243 setBnProjectPropertyValue(prp); 244 this.setId(hero.interfaces.BnProjectPropertyUtil.generateGUID(this)); 245 return null; 247 } 248 249 264 public BnProjectPropertyPK ejbCreate(String key, String value ) 265 throws 266 InvalidValueException, 267 EJBException , 268 CreateException 269 { 270 this.setTheKey(key); 271 this.setTheValue(value); 272 this.setId(hero.interfaces.BnProjectPropertyUtil.generateGUID(this)); 273 274 return null; 276 } 277 278 293 public BnProjectPropertyPK ejbCreate(String key, Collection values ) 294 throws 295 InvalidValueException, 296 EJBException , 297 CreateException 298 { 299 this.setTheKey(key); 300 this.setPossibleValues(values); 301 this.setId(hero.interfaces.BnProjectPropertyUtil.generateGUID(this)); 302 303 return null; 305 } 306 307 public void setEntityContext( EntityContext lContext ) 308 { 309 mContext = lContext; 310 } 311 312 public void unsetEntityContext() 313 { 314 mContext = null; 315 } 316 317 public void ejbActivate() 318 { 319 } 320 321 public void ejbPassivate() 322 { 323 } 324 325 public void ejbLoad() 326 { 327 } 328 329 public void ejbStore() 330 { 331 } 332 333 public void ejbRemove() 334 throws 335 RemoveException 336 { 337 } 338 339 } 340 | Popular Tags |