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 55 61 public class PersonneEC extends PersonneEC2 implements EntityBean { 62 63 boolean dirty = false; 64 boolean isModifiedCalled = false; 65 boolean ejbStoreCalled = false; 66 67 public String nom; 72 public String numero; 73 74 78 81 public String getNumero() { 82 return numero; 84 } 85 86 89 public void setNumero(String s) { 90 numero = s; 92 dirty = true; 93 } 94 95 98 public void setNumeroNTX(String s) { 99 super.setNumeroNTX(s); 101 dirty = true; 102 } 103 104 107 public void setNom(String s) { 108 nom = s; 110 dirty = true; 111 } 112 113 116 public String getNom() { 117 return nom; 119 } 120 121 122 public boolean isModified() { 126 isModifiedCalled = true; 127 return dirty; 128 } 129 130 134 public void ejbLoad() { 135 super.ejbLoad(); 137 dirty = false; 138 } 139 140 public void ejbStore() { 141 ejbStoreCalled = true; 143 super.ejbStore(); 144 dirty = false; 145 } 146 147 151 public boolean isDirty() { 152 return dirty; 154 } 155 156 public void reset() { 157 isModifiedCalled = false; 159 ejbStoreCalled = false; 160 } 161 162 public boolean isModifiedCalled() { 163 return isModifiedCalled; 165 } 166 167 public boolean ejbStoreCalled() { 168 return ejbStoreCalled; 170 } 171 172 } 173 | Popular Tags |