1 22 package org.jboss.varia.autonumber; 23 24 import javax.ejb.EntityBean ; 25 import javax.ejb.CreateException ; 26 import javax.naming.InitialContext ; 27 28 34 public class AutoNumberEJB 35 implements EntityBean 36 { 37 public String name; 38 public Integer value; 39 40 public String ejbCreate(String name) throws CreateException { 41 this.name = name; 42 this.value = new Integer (0); 43 44 return null; 45 } 46 47 public void ejbPostCreate(String name) {} 48 49 public Integer getValue() { 50 return value; 51 } 52 53 public void setValue(Integer value) { 54 this.value = value; 55 } 56 57 public void ejbActivate() {} 58 public void ejbPassivate() {} 59 public void ejbLoad() {} 60 public void ejbStore() {} 61 public void ejbRemove() {} 62 public void setEntityContext(javax.ejb.EntityContext ec) {} 63 public void unsetEntityContext() {} 64 } 65 | Popular Tags |