1 22 package org.jboss.test.cmp2.jbas1361; 23 24 25 import javax.ejb.EntityBean ; 26 import javax.ejb.EntityContext ; 27 import javax.ejb.RemoveException ; 28 import javax.ejb.CreateException ; 29 import java.util.Collection ; 30 31 32 48 public abstract class ABean implements EntityBean 49 { 50 56 public abstract Integer getId(); 57 58 public abstract void setId(Integer id); 59 60 64 public abstract String getName(); 65 66 69 public abstract void setName(String name); 70 71 76 public abstract Collection getB(); 77 78 81 public abstract void setB(Collection b); 82 83 87 public Integer ejbCreate(Integer id, String name) 88 throws CreateException 89 { 90 setId(id); 91 setName(name); 92 return null; 93 } 94 95 public void ejbPostCreate(Integer id, String name) 96 { 97 } 98 99 102 public void setEntityContext(EntityContext ctx) 103 { 104 } 105 106 109 public void unsetEntityContext() 110 { 111 } 112 113 public void ejbActivate() 114 { 115 } 116 117 public void ejbLoad() 118 { 119 } 120 121 public void ejbPassivate() 122 { 123 } 124 125 public void ejbRemove() throws RemoveException 126 { 127 } 128 129 public void ejbStore() 130 { 131 } 132 } 133 | Popular Tags |