1 package test.bea.cmr; 2 3 import java.rmi.RemoteException ; 4 5 import javax.ejb.CreateException ; 6 import javax.ejb.EJBException ; 7 import javax.ejb.EntityBean ; 8 import javax.ejb.EntityContext ; 9 import javax.ejb.RemoveException ; 10 11 import test.bea.cmr.MagazineLocal; 12 13 26 public abstract class SubscriberBean implements EntityBean 27 { 28 private EntityContext context; 29 30 public SubscriberBean() 31 { 32 } 33 34 41 public String ejbCreate(String boid) throws CreateException 42 { 43 if (boid == null) { 44 throw (new CreateException ("ID must not be null!")); 45 } 46 47 setBoid(boid); 48 49 return null; 50 } 51 52 56 public void ejbPostCreate(String boid) { 57 } 58 59 65 public abstract MagazineLocal getUniOne2OneMagazine(); 66 67 73 public abstract MagazineLocal getBiOne2OneMagazine(); 74 75 85 public abstract java.util.Collection getUniOne2ManyMagazines(); 86 87 95 public abstract java.util.Collection getBiOne2ManyMagazines(); 96 97 106 public abstract MagazineLocal getUniMany2OneMagazine(); 107 108 120 public abstract java.util.Collection getBiMany2ManyMagazines(); 121 122 125 public abstract void setBiMany2ManyMagazines(java.util.Collection biMany2ManyMagArray); 126 127 130 public abstract void setUniOne2OneMagazine(MagazineLocal uniOne2OneMag); 131 132 135 public abstract void setBiOne2OneMagazine(MagazineLocal biOne2OneMag); 136 137 140 public abstract void setUniOne2ManyMagazines(java.util.Collection uniOne2ManyMagArray); 141 142 145 public abstract void setBiOne2ManyMagazines(java.util.Collection biOne2ManyMagArray); 146 147 150 public abstract void setUniMany2OneMagazine(MagazineLocal uniMany2OneMag); 151 152 158 public abstract String getBoid(); 159 160 164 public abstract void setBoid(String boid); 165 166 169 public EntityContext getEntityContext() { 170 return context; 171 } 172 173 176 public void setEntityContext(EntityContext context) throws EJBException , RemoteException 177 { 178 this.context = context; 179 } 180 181 184 public void unsetEntityContext() throws EJBException , RemoteException 185 { 186 } 187 188 191 public void ejbActivate() throws EJBException , RemoteException 192 { 193 } 194 195 198 public void ejbPassivate() throws EJBException , RemoteException 199 { 200 } 201 202 205 public void ejbRemove() throws RemoveException , EJBException , RemoteException 206 { 207 } 208 209 212 public void ejbLoad() throws EJBException , RemoteException 213 { 214 } 215 216 219 public void ejbStore() throws EJBException , RemoteException 220 { 221 } 222 223 public String toString() { 224 return getClass().getName() + " [boid=" + getBoid() + "]"; 225 } 226 227 } | Popular Tags |