1 22 package org.jboss.test.cmp2.jbas3717; 23 24 25 import javax.ejb.EntityBean ; 26 import javax.ejb.EntityContext ; 27 import javax.ejb.RemoveException ; 28 import javax.ejb.CreateException ; 29 30 31 35 public abstract class ABean implements EntityBean 36 { 37 43 public abstract Long getId(); 44 45 public abstract void setId(Long id); 46 47 51 public Long ejbCreate(Long id) 52 throws CreateException 53 { 54 setId(id); 55 return null; 56 } 57 58 public void ejbPostCreate(Long id) 59 { 60 } 61 62 public void setEntityContext(EntityContext ctx) 63 { 64 } 65 66 public void unsetEntityContext() 67 { 68 } 69 70 public void ejbActivate() 71 { 72 } 73 74 public void ejbLoad() 75 { 76 } 77 78 public void ejbPassivate() 79 { 80 } 81 82 public void ejbRemove() throws RemoveException 83 { 84 } 85 86 public void ejbStore() 87 { 88 } 89 } 90 | Popular Tags |