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.SubscriberLocal; 12 13 26 public abstract class MagazineBean implements EntityBean 27 { 28 private EntityContext context; 29 30 public MagazineBean() 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 64 public abstract SubscriberLocal getBiOne2OneSubscriber(); 65 66 75 public abstract SubscriberLocal getBiOne2ManySubscriber(); 76 77 89 public abstract java.util.Collection getBiMany2ManySubscribers(); 90 91 94 public abstract void setBiMany2ManySubscribers(java.util.Collection biMany2ManySubArray); 95 96 101 public abstract void setBiOne2OneSubscriber(SubscriberLocal biOne2OneSub); 102 103 109 public abstract java.lang.String getTitle(); 110 111 116 public abstract void setTitle(java.lang.String title); 117 118 123 public abstract void setBiOne2ManySubscriber(SubscriberLocal biOne2ManySub); 124 125 131 public abstract String getBoid(); 132 133 136 public abstract void setBoid(String boid); 137 138 141 public EntityContext getEntityContext() { 142 return context; 143 } 144 145 148 public void setEntityContext(EntityContext context) throws EJBException , RemoteException 149 { 150 this.context = context; 151 } 152 153 156 public void unsetEntityContext() throws EJBException , RemoteException 157 { 158 } 159 160 163 public void ejbActivate() throws EJBException , RemoteException 164 { 165 } 166 167 170 public void ejbPassivate() throws EJBException , RemoteException 171 { 172 } 173 174 177 public void ejbRemove() throws RemoveException , EJBException , RemoteException 178 { 179 } 180 181 184 public void ejbLoad() throws EJBException , RemoteException 185 { 186 } 187 188 191 public void ejbStore() throws EJBException , RemoteException 192 { 193 } 194 195 public String toString() { 196 return getClass().getName() + " [boid=" + getBoid() + "]"; 197 } 198 199 } | Popular Tags |