1 22 package org.jboss.test.cmp2.keygen.ejb; 23 24 import javax.ejb.CreateException ; 25 import javax.ejb.EntityBean ; 26 import javax.ejb.EntityContext ; 27 import javax.ejb.RemoveException ; 28 29 34 public abstract class IntegerPKBean implements EntityBean 35 { 36 public Integer ejbCreate(String value) throws CreateException 37 { 38 setValue(value); 39 return null; 40 } 41 public void ejbPostCreate(String value) 42 { 43 } 44 45 public abstract Integer getKey(); 46 public abstract void setKey(Integer key); 47 public abstract String getValue(); 48 public abstract void setValue(String value); 49 50 public void setEntityContext(EntityContext ctx) 51 { 52 } 53 54 public void ejbActivate() 55 { 56 } 57 58 public void ejbLoad() 59 { 60 } 61 62 public void ejbStore() 63 { 64 } 65 66 public void ejbPassivate() 67 { 68 } 69 70 public void ejbRemove() throws RemoveException 71 { 72 } 73 74 public void unsetEntityContext() 75 { 76 } 77 } 78 | Popular Tags |