1 package hero.entity; 2 3 import hero.interfaces.BnUserLocal; 4 import hero.interfaces.BnUserPropertyPK; 5 import hero.interfaces.BnUserPropertyValue; 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 BnUserPropertyBean 74 implements EntityBean 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 118 127 public abstract BnUserLocal getBnUser(); 128 129 136 public abstract void setBnUser( BnUserLocal pUser ); 137 138 139 140 151 public abstract String getTheKey(); 152 153 159 public abstract void setTheKey( String key ); 160 161 172 public abstract String getTheValue(); 173 174 180 public abstract void setTheValue( String value ); 181 182 186 public abstract BnUserPropertyValue getBnUserPropertyValue(); 187 188 191 public abstract void setBnUserPropertyValue(BnUserPropertyValue v); 192 193 194 195 199 214 public BnUserPropertyPK ejbCreate(BnUserPropertyValue prp ) 215 throws 216 InvalidValueException, 217 EJBException , 218 CreateException 219 { 220 setBnUserPropertyValue(prp); 221 this.setId(hero.interfaces.BnUserPropertyUtil.generateGUID(this)); 222 return null; 224 } 225 226 241 public BnUserPropertyPK ejbCreate(String key, String value ) 242 throws 243 InvalidValueException, 244 EJBException , 245 CreateException 246 { 247 this.setTheKey(key); 248 this.setTheValue(value); 249 this.setId(hero.interfaces.BnUserPropertyUtil.generateGUID(this)); 250 251 return null; 253 } 254 255 public void setEntityContext( EntityContext lContext ) 256 { 257 mContext = lContext; 258 } 259 260 public void unsetEntityContext() 261 { 262 mContext = null; 263 } 264 265 public void ejbActivate() 266 { 267 } 268 269 public void ejbPassivate() 270 { 271 } 272 273 public void ejbLoad() 274 { 275 } 276 277 public void ejbStore() 278 { 279 } 280 281 public void ejbRemove() 282 throws 283 RemoveException 284 { 285 } 286 287 } 288 | Popular Tags |