1 22 package org.jboss.test.cmp2.cmrtree.ejb; 23 24 import org.jboss.logging.Logger; 25 26 import javax.ejb.EntityBean ; 27 import javax.ejb.EntityContext ; 28 import javax.ejb.RemoveException ; 29 import javax.ejb.CreateException ; 30 import java.util.Collection ; 31 32 33 52 public abstract class BBean 53 implements EntityBean 54 { 55 Logger log = Logger.getLogger(BBean.class); 57 private EntityContext ctx; 58 59 65 public abstract int getMajorId(); 66 67 public abstract void setMajorId(int id); 68 69 74 public abstract String getMinorId(); 75 76 public abstract void setMinorId(String id); 77 78 82 public abstract String getName(); 83 84 87 public abstract void setName(String id); 88 89 93 public abstract String getAMinorId(); 94 97 public abstract void setAMinorId(String aid); 98 99 103 public abstract String getParentBMinorId(); 104 107 public abstract void setParentBMinorId(String bid); 108 109 114 public abstract Collection getChildren(); 115 116 119 public abstract void setChildren(Collection c); 120 121 136 public abstract BLocal getParent(); 137 140 public abstract void setParent(BLocal a); 141 142 157 public abstract ALocal getA(); 158 161 public abstract void setA(ALocal a); 162 163 167 public BPK ejbCreate(int majorId, String minorId, String name) 168 throws CreateException 169 { 170 setMajorId(majorId); 171 setMinorId(minorId); 172 setName(name); 173 return null; 174 } 175 176 public void ejbPostCreate(int majorId, String minorId, String name) 177 { 178 } 179 180 183 public void setEntityContext(EntityContext ctx) 184 { 185 this.ctx = ctx; 186 } 187 188 191 public void unsetEntityContext() 192 { 193 this.ctx = null; 194 } 195 196 public void ejbActivate() 197 { 198 } 199 200 public void ejbLoad() 201 { 202 } 203 204 public void ejbPassivate() 205 { 206 } 207 208 public void ejbRemove() throws RemoveException 209 { 210 } 211 212 public void ejbStore() 213 { 214 } 215 } 216 | Popular Tags |