1 package hero.entity; 2 3 import hero.interfaces.BnAuthRoleData; 4 import hero.interfaces.BnAuthRolePK; 5 import hero.interfaces.BnAuthRoleValue; 6 import hero.util.BonitaServiceLocator; 7 import hero.util.BonitaServiceException; 8 9 import java.util.Collection ; 10 11 import javax.ejb.CreateException ; 12 import javax.ejb.EJBException ; 13 import javax.ejb.EntityBean ; 14 import javax.ejb.EntityContext ; 15 import javax.ejb.RemoveException ; 16 17 67 public abstract class BnAuthRoleBean 68 implements EntityBean 69 { 70 71 75 public EntityContext mContext; 76 77 78 82 97 public abstract String getId(); 98 99 105 public abstract void setId( String pId ); 106 107 116 public abstract String getName(); 117 118 124 public abstract void setName( String pName ); 125 126 127 135 public abstract String getBnRoleGroup(); 136 137 143 public abstract void setBnRoleGroup( String pGroup ); 144 145 146 163 public abstract Collection getBnUsers() ; 164 165 171 public abstract void setBnUsers( Collection pUsers); 172 173 177 public abstract BnAuthRoleValue getBnAuthRoleValue(); 178 179 183 public abstract void setBnAuthRoleValue(BnAuthRoleValue v); 184 185 189 205 public BnAuthRolePK ejbCreate( BnAuthRoleValue pAuthRole ) 206 throws 207 EJBException , 208 CreateException 209 { 210 setBnAuthRoleValue(pAuthRole); 211 this.setId(hero.interfaces.BnAuthRoleUtil.generateGUID(this)); 212 return null; 213 } 214 215 public void ejbPostCreate( BnAuthRoleData pAuthRole ) 216 { 217 } 218 219 public void setEntityContext( EntityContext lContext ) 220 { 221 mContext = lContext; 222 } 223 224 public void unsetEntityContext() 225 { 226 mContext = null; 227 } 228 229 public void ejbActivate() 230 { 231 } 232 233 public void ejbPassivate() 234 { 235 } 236 237 public void ejbLoad() 238 { 239 } 240 241 public void ejbStore() 242 { 243 } 244 245 public void ejbRemove() 246 throws 247 RemoveException 248 { 249 } 250 } 251 | Popular Tags |