1 25 26 28 package org.objectweb.jonas.jtests.beans.annuaire; 29 30 import javax.ejb.EntityBean ; 31 32 import org.objectweb.util.monolog.api.BasicLevel; 33 34 40 public class PersonneEC extends PersonneEC2 implements EntityBean { 41 42 boolean dirty = false; 43 boolean isModifiedCalled = false; 44 boolean ejbStoreCalled = false; 45 46 public String nom; 51 public String numero; 52 public int timerIdent; 53 public int timerCount; 54 55 59 62 public String getNumero() { 63 logger.log(BasicLevel.DEBUG, ""); 64 return numero; 65 } 66 67 70 public void setNumero(String s) { 71 logger.log(BasicLevel.DEBUG, ""); 72 numero = s; 73 dirty = true; 74 } 75 76 79 public void setNumeroNTX(String s) { 80 logger.log(BasicLevel.DEBUG, ""); 81 super.setNumeroNTX(s); 82 dirty = true; 83 } 84 85 88 public void setNom(String s) { 89 logger.log(BasicLevel.DEBUG, ""); 90 nom = s; 91 dirty = true; 92 } 93 94 97 public String getNom() { 98 logger.log(BasicLevel.DEBUG, ""); 99 return nom; 100 } 101 102 public int getTimerIdent() { 103 logger.log(BasicLevel.DEBUG, ""); 104 return timerIdent; 105 } 106 107 public void setTimerIdent(int id) { 108 logger.log(BasicLevel.DEBUG, ""); 109 dirty = true; 110 timerIdent = id; 111 } 112 113 public int getTimerCount() { 114 logger.log(BasicLevel.DEBUG, ""); 115 return timerCount; 116 } 117 118 public void setTimerCount(int cnt) { 119 logger.log(BasicLevel.DEBUG, ""); 120 dirty = true; 121 timerCount = cnt; 122 } 123 124 125 public boolean isModified() { 129 isModifiedCalled = true; 130 return dirty; 131 } 132 133 137 public void ejbLoad() { 138 logger.log(BasicLevel.DEBUG, ""); 139 super.ejbLoad(); 140 dirty = false; 141 } 142 143 public void ejbStore() { 144 logger.log(BasicLevel.DEBUG, ""); 145 ejbStoreCalled = true; 146 super.ejbStore(); 147 dirty = false; 148 } 149 150 154 public boolean isDirty() { 155 logger.log(BasicLevel.DEBUG, "PersonneEC "+nom+" isDirty ="+dirty+" "+numero); 156 return dirty; 157 } 158 159 public void reset() { 160 logger.log(BasicLevel.DEBUG, "PersonneEC "+nom+" reset "+numero); 161 isModifiedCalled = false; 162 ejbStoreCalled = false; 163 } 164 165 public boolean isModifiedCalled() { 166 logger.log(BasicLevel.DEBUG, "PersonneEC "+nom+" isModifiedCalled ="+isModifiedCalled+" "+numero); 167 return isModifiedCalled; 168 } 169 170 public boolean ejbStoreCalled() { 171 logger.log(BasicLevel.DEBUG, "PersonneEC "+nom+" ejbStoreCalled ="+ejbStoreCalled+" "+numero); 172 return ejbStoreCalled; 173 } 174 175 } 176 | Popular Tags |