1 27 28 package org.objectweb.jonas.jtests.beans.secured; 29 30 import javax.ejb.CreateException ; 31 import javax.ejb.EJBException ; 32 import javax.ejb.EntityBean ; 33 import javax.ejb.EntityContext ; 34 import javax.ejb.RemoveException ; 35 36 39 public abstract class Entity1Bean implements EntityBean { 40 public Entity1Bean() { 41 } 42 43 public void setEntityContext(EntityContext entityContext) throws EJBException { 44 } 45 46 public void unsetEntityContext() throws EJBException { 47 } 48 49 public void ejbRemove() throws RemoveException , EJBException { 50 } 51 52 public void ejbActivate() throws EJBException { 53 } 54 55 public void ejbPassivate() throws EJBException { 56 } 57 58 public void ejbLoad() throws EJBException { 59 } 60 61 public void ejbStore() throws EJBException { 62 } 63 64 public Integer ejbCreate(int i, String s) throws CreateException { 65 setId(new Integer (i)); 66 setValue(s); 67 return getId(); 68 } 69 70 public void ejbPostCreate(int i, String s) throws CreateException { 71 } 72 73 public abstract Integer getId(); 74 75 public abstract void setId(Integer id); 76 77 public abstract String getValue(); 78 79 public abstract void setValue(String value); 80 } 81 | Popular Tags |