1 22 package org.jboss.test.cmp2.jbas3541; 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 abstract Integer getIntField(); 52 53 56 public abstract void setIntField(Integer i); 57 58 62 public Long ejbCreate(Long id, Integer i) 63 throws CreateException 64 { 65 setId(id); 66 setIntField(i); 67 return null; 68 } 69 70 public void ejbPostCreate(Long id, Integer i) 71 { 72 } 73 74 public void setEntityContext(EntityContext ctx) 75 { 76 } 77 78 public void unsetEntityContext() 79 { 80 } 81 82 public void ejbActivate() 83 { 84 } 85 86 public void ejbLoad() 87 { 88 } 89 90 public void ejbPassivate() 91 { 92 } 93 94 public void ejbRemove() throws RemoveException 95 { 96 } 97 98 public void ejbStore() 99 { 100 } 101 } 102 | Popular Tags |