1 22 package org.jboss.test.cmp2.batchcascadedelete.ejb; 23 24 25 import java.rmi.RemoteException ; 26 import javax.ejb.CreateException ; 27 import javax.ejb.EJBException ; 28 import javax.ejb.EntityBean ; 29 import javax.ejb.EntityContext ; 30 import javax.ejb.RemoveException ; 31 32 36 public abstract class ParentBean 37 implements EntityBean 38 { 39 40 public Long ejbCreate(String name) throws CreateException 41 { 42 setId(new Long (System.currentTimeMillis())); 43 setName(name); 44 45 return null; 46 } 47 48 public void ejbPostCreate(String name) throws CreateException 49 { 50 } 51 52 public abstract Long getId(); 53 54 public abstract void setId(Long id); 55 56 public abstract String getName(); 57 58 public abstract void setName(String name); 59 60 public ParentBean() 61 { 62 super(); 63 } 64 65 public void setEntityContext(EntityContext arg0) throws EJBException , RemoteException 66 { 67 } 68 69 public void unsetEntityContext() throws EJBException , RemoteException 70 { 71 } 72 73 public void ejbRemove() throws RemoveException , EJBException , RemoteException 74 { 75 } 76 77 public void ejbActivate() throws EJBException , RemoteException 78 { 79 } 80 81 public void ejbPassivate() throws EJBException , RemoteException 82 { 83 } 84 85 public void ejbLoad() throws EJBException , RemoteException 86 { 87 } 88 89 public void ejbStore() throws EJBException , RemoteException 90 { 91 } 92 93 } 94 | Popular Tags |