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