1 22 package org.jboss.test.cmp2.perf.ejb; 23 24 import javax.ejb.EJBException ; 25 import javax.ejb.EntityBean ; 26 import javax.ejb.EntityContext ; 27 import javax.ejb.RemoveException ; 28 import javax.ejb.CreateException ; 29 30 34 public abstract class CheckBookEntryBean implements EntityBean 35 { 36 public CheckBookEntryBean() 37 { 38 } 39 40 public void ejbActivate() throws EJBException 41 { 42 } 43 44 public void ejbLoad() throws EJBException 45 { 46 } 47 48 public void ejbPassivate() throws EJBException 49 { 50 } 51 52 public void ejbRemove() throws RemoveException , EJBException 53 { 54 } 55 56 public void ejbStore() throws EJBException 57 { 58 } 59 60 public void setEntityContext(EntityContext ctx) throws EJBException 61 { 62 } 63 64 public void unsetEntityContext() throws EJBException 65 { 66 } 67 68 public Integer ejbCreate(Integer entryID) throws CreateException 69 { 70 this.setEntryID(entryID); 71 return null; 72 } 73 public void ejbPostCreate(Integer entryID) throws CreateException 74 { 75 } 76 77 public abstract Integer getEntryID(); 78 public abstract void setEntryID(Integer entryID); 79 80 public abstract double getAmount(); 81 public abstract void setAmount(double amount); 82 83 public abstract String getLogger(); 84 public abstract void setLogger(String category); 85 86 public abstract long getTimestamp(); 87 public abstract void setTimestamp(long timestamp); 88 } 89 | Popular Tags |