1 25 26 28 package org.objectweb.jonas.jtests.beans.fannuaire; 29 30 import java.rmi.RemoteException ; 31 import java.sql.Connection ; 32 import java.sql.SQLException ; 33 import java.sql.Statement ; 34 import javax.ejb.CreateException ; 35 import javax.ejb.DuplicateKeyException ; 36 import javax.ejb.EJBException ; 37 import javax.ejb.FinderException ; 38 import javax.ejb.RemoveException ; 39 import javax.ejb.EJBObject ; 40 import javax.ejb.EntityBean ; 41 import javax.ejb.EntityContext ; 42 import javax.naming.Context ; 43 import javax.naming.InitialContext ; 44 import javax.naming.NamingException ; 45 import javax.sql.DataSource ; 46 import javax.transaction.NotSupportedException ; 47 import javax.transaction.Status ; 48 import javax.transaction.SystemException ; 49 import javax.transaction.UserTransaction ; 50 51 52 56 public abstract class PersonneEC2 implements EntityBean { 57 58 EntityContext ejbContext; 60 61 public abstract String getNom(); 65 public abstract void setNom(String n); 66 67 public abstract String getNumero(); public abstract void setNumero(String n); 70 74 84 public void setEntityContext(EntityContext ctx) { 85 ejbContext = ctx; 89 } 90 91 102 public void unsetEntityContext() { 103 ejbContext = null; 105 } 106 107 120 public void ejbRemove() throws RemoveException { 121 } 123 124 132 public void ejbLoad() { 133 } 135 136 144 public void ejbStore() { 145 } 147 148 153 public void ejbPostCreate(String nom, String numero) throws CreateException { 154 } 156 public void ejbPostCreate(String nom, String numero, boolean t) throws CreateException { 157 } 159 160 161 public java.lang.String ejbCreate(String nom, String numero) throws CreateException , DuplicateKeyException { 162 164 setNom(nom); 166 setNumero(numero); 167 168 return null; 170 } 171 172 public java.lang.String ejbCreate(String nom, String numero, boolean t) throws CreateException , DuplicateKeyException { 173 175 setNom(nom); 177 setNumero(numero); 178 179 return null; 181 } 182 183 195 public void ejbPassivate() { 196 } 198 199 208 public void ejbActivate() { 209 } 211 212 216 219 public String getNumeroNTX() { 220 return getNumero(); 222 } 223 224 227 public void setNumeroNTX(String s) { 228 setNumero(s); 230 } 231 232 238 public boolean isModified() { 239 throw new UnsupportedOperationException (); 240 } 241 242 public void reset() { 243 throw new UnsupportedOperationException (); 244 } 245 246 public boolean isModifiedCalled() { 247 throw new UnsupportedOperationException (); 248 } 249 250 public boolean ejbStoreCalled() { 251 throw new UnsupportedOperationException (); 252 } 253 254 public boolean isDirty() { 255 throw new UnsupportedOperationException (); 256 } 257 258 259 } 260 | Popular Tags |