1 package hero.entity; 2 3 import hero.interfaces.BnProjectLocal; 4 import hero.interfaces.BnRoleData; 5 import hero.interfaces.BnRolePK; 6 import hero.interfaces.BnRoleValue; 7 import hero.interfaces.BnRoleMapperLocal; 8 9 import hero.util.BonitaServiceLocator; 10 import hero.util.BonitaServiceException; 11 12 import java.util.Collection ; 13 14 import javax.ejb.CreateException ; 15 import javax.ejb.EJBException ; 16 import javax.ejb.EntityBean ; 17 import javax.ejb.EntityContext ; 18 import javax.ejb.RemoveException ; 19 20 78 public abstract class BnRoleBean 79 implements EntityBean 80 { 81 82 85 public EntityContext mContext; 86 87 91 105 public abstract String getId(); 106 107 113 public abstract void setId( String pId ); 114 115 125 public abstract String getDescription(); 126 127 133 public abstract void setDescription( String pDescription ); 134 135 145 public abstract String getName(); 146 147 153 public abstract void setName( String pName ); 154 155 156 165 public abstract Collection getBnUsers() ; 166 167 174 public abstract void setBnUsers( Collection pUsers); 175 176 184 public abstract Collection getBnNodes() ; 185 186 192 public abstract void setBnNodes( Collection pNodes); 193 194 202 public abstract BnProjectLocal getBnProject() ; 203 204 211 public abstract void setBnProject( BnProjectLocal pProject); 212 213 225 public abstract BnRoleMapperLocal getBnRoleMapper() ; 226 227 233 public abstract void setBnRoleMapper( BnRoleMapperLocal pMapper); 234 235 236 237 241 public abstract BnRoleValue getBnRoleValue(); 242 243 247 public abstract void setBnRoleValue(BnRoleValue v); 248 249 253 269 public BnRolePK ejbCreate( BnRoleValue pRole ) 270 throws 271 EJBException , 272 CreateException 273 { 274 275 setBnRoleValue(pRole); 276 this.setId(hero.interfaces.BnRoleUtil.generateGUID(this)); 277 return null; 278 } 279 280 public void ejbPostCreate( BnRoleData pRole ) 281 { 282 } 283 284 public void setEntityContext( EntityContext lContext ) 285 { 286 mContext = lContext; 287 } 288 289 public void unsetEntityContext() 290 { 291 mContext = null; 292 } 293 294 public void ejbActivate() 295 { 296 } 297 298 public void ejbPassivate() 299 { 300 } 301 302 public void ejbLoad() 303 { 304 } 305 306 public void ejbStore() 307 { 308 } 309 310 public void ejbRemove() 311 throws 312 RemoveException 313 { 314 } 315 } 316 | Popular Tags |