1 22 package org.jboss.test.cmp2.perf.ejb; 23 24 import java.util.Collection ; 25 import javax.ejb.EJBException ; 26 import javax.ejb.EJBLocalHome ; 27 import javax.ejb.EJBLocalObject ; 28 import javax.ejb.EntityBean ; 29 import javax.ejb.EntityContext ; 30 import javax.ejb.RemoveException ; 31 import javax.ejb.CreateException ; 32 33 37 public abstract class CheckBookBean implements EntityBean 38 { 39 public CheckBookBean() 40 { 41 } 42 43 public void ejbActivate() throws EJBException 44 { 45 } 46 47 public void ejbLoad() throws EJBException 48 { 49 } 50 51 public void ejbPassivate() throws EJBException 52 { 53 } 54 55 public void ejbRemove() throws RemoveException , EJBException 56 { 57 } 58 59 public void ejbStore() throws EJBException 60 { 61 } 62 63 public void setEntityContext(EntityContext ctx) throws EJBException 64 { 65 } 66 67 public void unsetEntityContext() throws EJBException 68 { 69 } 70 71 public void remove() 72 throws RemoveException , EJBException 73 { 74 } 75 76 public String ejbCreate(String account, double balance) throws CreateException 77 { 78 this.setAccount(account); 79 this.setBalance(balance); 80 return null; 81 } 82 public void ejbPostCreate(String account, double balance) throws CreateException 83 { 84 85 } 86 87 public abstract Collection getCheckBookEntries(); 88 public abstract void setCheckBookEntries(Collection entries); 89 90 public abstract String getAccount(); 91 public abstract void setAccount(String account); 92 public abstract double getBalance(); 93 public abstract void setBalance(double balance); 94 } 95 | Popular Tags |