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 51 public abstract class ABean implements EntityBean 52 { 53 Logger log = Logger.getLogger(ABean.class); 55 private EntityContext ctx; 56 57 63 public abstract int getMajorId(); 64 65 public abstract void setMajorId(int id); 66 67 72 public abstract String getMinorId(); 73 74 public abstract void setMinorId(String id); 75 76 80 public abstract String getName(); 81 82 85 public abstract void setName(String name); 86 87 92 public abstract Collection getB(); 93 94 97 public abstract void setB(Collection c); 98 99 103 public APK ejbCreate(int id, String id2, String name) 104 throws CreateException 105 { 106 setMajorId(id); 107 setMinorId(id2); 108 setName(name); 109 return null; 110 } 111 112 public void ejbPostCreate(int id, String id2, String name) 113 { 114 } 115 116 119 public void setEntityContext(EntityContext ctx) 120 { 121 this.ctx = ctx; 122 } 123 124 127 public void unsetEntityContext() 128 { 129 this.ctx = null; 130 } 131 132 public void ejbActivate() 133 { 134 } 135 136 public void ejbLoad() 137 { 138 } 139 140 public void ejbPassivate() 141 { 142 } 143 144 public void ejbRemove() throws RemoveException 145 { 146 } 147 148 public void ejbStore() 149 { 150 } 151 } 152 | Popular Tags |