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 35 public abstract class AutoNumberEJB2 36 implements EntityBean 37 { 38 public abstract Integer getValue(); 39 40 public abstract void setValue(Integer value); 41 42 public abstract String getName(); 43 44 public abstract void setName(String name); 45 46 public String ejbCreate(String name) throws CreateException 47 { 48 setName(name); 49 setValue(new Integer (0)); 50 51 return null; 52 } 53 54 public void ejbPostCreate(String name) {} 55 56 public void ejbActivate() {} 57 58 public void ejbPassivate() {} 59 60 public void ejbLoad() {} 61 62 public void ejbStore() {} 63 64 public void ejbRemove() {} 65 66 public void setEntityContext(javax.ejb.EntityContext unused) {} 67 68 public void unsetEntityContext() {} 69 70 } 71 | Popular Tags |