1 package org.jboss.docs.cmp2.crimeportal; 2 3 import java.util.Collection ; 4 import java.util.Set ; 5 import javax.ejb.CreateException ; 6 import javax.ejb.EntityBean ; 7 import javax.ejb.EntityContext ; 8 import javax.ejb.FinderException ; 9 10 public abstract class OrganizationBean implements EntityBean 11 { 12 private EntityContext ctx; 13 14 public String ejbCreate(String name, String description) 15 throws CreateException 16 { 17 setName(name); 18 setDescription(description); 19 return null; 20 } 21 22 public void ejbPostCreate(String name, String description) 23 { 24 } 25 26 public abstract String getName(); 28 public abstract void setName(String param); 29 30 public abstract String getDescription(); 31 public abstract void setDescription(String param); 32 33 public abstract Set getMemberGangsters(); 35 public abstract void setMemberGangsters(Set gangsters); 36 37 public abstract Gangster getTheBoss(); 38 public abstract void setTheBoss(Gangster theBoss); 39 40 public void setEntityContext(EntityContext context) 42 { 43 ctx = context; 44 } 45 46 public void unsetEntityContext() 47 { 48 ctx = null; 49 } 50 51 public void ejbActivate() 52 { 53 } 54 55 public void ejbPassivate() 56 { 57 } 58 59 public void ejbRemove() 60 { 61 } 62 63 public void ejbStore() 64 { 65 } 66 67 public void ejbLoad() 68 { 69 } 70 } 71 | Popular Tags |