1 23 24 package org.objectweb.jorm.runtime.namedef; 25 26 import org.objectweb.jorm.api.PAccessor; 27 import org.objectweb.jorm.api.PException; 28 29 import org.objectweb.jorm.pobject.singlename.ASingleByteIdAccessor; 30 import org.objectweb.jorm.pobject.singlename.ASingleCharIdAccessor; 31 import org.objectweb.jorm.pobject.singlename.ASingleShortIdAccessor; 32 import org.objectweb.jorm.pobject.singlename.ASingleIntIdAccessor; 33 import org.objectweb.jorm.pobject.singlename.ASingleLongIdAccessor; 34 import org.objectweb.jorm.pobject.singlename.ASingleObyteIdAccessor; 35 import org.objectweb.jorm.pobject.singlename.ASingleOcharIdAccessor; 36 import org.objectweb.jorm.pobject.singlename.ASingleOshortIdAccessor; 37 import org.objectweb.jorm.pobject.singlename.ASingleOintIdAccessor; 38 import org.objectweb.jorm.pobject.singlename.ASingleOlongIdAccessor; 39 import org.objectweb.jorm.pobject.singlename.ASingleStringIdAccessor; 40 import org.objectweb.jorm.pobject.singlename.ASingleDateIdAccessor; 41 import org.objectweb.jorm.pobject.singlename.ASingleBytearrayIdAccessor; 42 import org.objectweb.jorm.pobject.singlename.ASingleChararrayIdAccessor; 43 import org.objectweb.jorm.pobject.singlename.ASingleBigDecimalIdAccessor; 44 import org.objectweb.jorm.pobject.singlename.ASingleBigIntegerIdAccessor; 45 import org.objectweb.jorm.pobject.compositename.ACompositeByteIdAccessor; 46 import org.objectweb.jorm.pobject.compositename.ACompositeCharIdAccessor; 47 import org.objectweb.jorm.pobject.compositename.ACompositeShortIdAccessor; 48 import org.objectweb.jorm.pobject.compositename.ACompositeIntIdAccessor; 49 import org.objectweb.jorm.pobject.compositename.ACompositeLongIdAccessor; 50 import org.objectweb.jorm.pobject.compositename.ACompositeObyteIdAccessor; 51 import org.objectweb.jorm.pobject.compositename.ACompositeOcharIdAccessor; 52 import org.objectweb.jorm.pobject.compositename.ACompositeOshortIdAccessor; 53 import org.objectweb.jorm.pobject.compositename.ACompositeOintIdAccessor; 54 import org.objectweb.jorm.pobject.compositename.ACompositeOlongIdAccessor; 55 import org.objectweb.jorm.pobject.compositename.ACompositeStringIdAccessor; 56 import org.objectweb.jorm.pobject.compositename.ACompositeDateIdAccessor; 57 import org.objectweb.jorm.pobject.compositename.ACompositeBigDecimalIdAccessor; 58 import org.objectweb.jorm.pobject.compositename.ACompositeBigIntegerIdAccessor; 59 import org.objectweb.jorm.pobject.compositename.ACompositeBytearrayIdAccessor; 60 import org.objectweb.jorm.pobject.compositename.ACompositeChararrayIdAccessor; 61 import org.objectweb.jorm.naming.api.PName; 62 63 import java.util.Date ; 64 import java.math.BigInteger ; 65 import java.math.BigDecimal ; 66 67 71 public class NameDefAccessor 72 implements 73 ASingleByteIdAccessor, 74 ASingleCharIdAccessor, 75 ASingleShortIdAccessor, 76 ASingleIntIdAccessor, 77 ASingleLongIdAccessor, 78 ASingleObyteIdAccessor, 79 ASingleOcharIdAccessor, 80 ASingleOshortIdAccessor, 81 ASingleOintIdAccessor, 82 ASingleOlongIdAccessor, 83 ASingleStringIdAccessor, 84 ASingleDateIdAccessor, 85 ASingleBigDecimalIdAccessor, 86 ASingleBigIntegerIdAccessor, 87 ASingleBytearrayIdAccessor, 88 ASingleChararrayIdAccessor, 89 ACompositeByteIdAccessor, 90 ACompositeCharIdAccessor, 91 ACompositeShortIdAccessor, 92 ACompositeIntIdAccessor, 93 ACompositeLongIdAccessor, 94 ACompositeObyteIdAccessor, 95 ACompositeOcharIdAccessor, 96 ACompositeOshortIdAccessor, 97 ACompositeOintIdAccessor, 98 ACompositeOlongIdAccessor, 99 ACompositeStringIdAccessor, 100 ACompositeDateIdAccessor, 101 ACompositeBigDecimalIdAccessor, 102 ACompositeBigIntegerIdAccessor, 103 ACompositeBytearrayIdAccessor, 104 ACompositeChararrayIdAccessor, 105 PAccessor { 106 107 public int f1; 108 public Object value; 109 public PName myself1 = null; 110 public PName myself2 = null; 111 112 public NameDefAccessor() { 113 } 114 115 public NameDefAccessor(int f1) { 116 this.f1 = f1; 117 } 118 119 public NameDefAccessor(int f1, PName myself1, PName myself2) { 120 this.f1 = f1; 121 this.myself1 = myself1; 122 this.myself2 = myself2; 123 } 124 125 public NameDefAccessor(int f1, Object value) { 126 this.f1 = f1; 127 this.value = value; 128 } 129 130 public NameDefAccessor(int f1, Object value, PName myself1, PName myself2) { 131 this.f1 = f1; 132 this.value = value; 133 this.myself1 = myself1; 134 this.myself2 = myself2; 135 } 136 137 public void paSetF1(int val) throws PException { 138 f1 = val; 139 } 140 141 public int paGetF1() throws PException { 142 return f1; 143 } 144 145 public void paSetMyself1(PName val, Object connection) throws PException { 147 myself1 = val; 148 } 149 150 public PName paGetMyself1(Object connection) throws PException { 151 return myself1; 152 } 153 154 public void paSetMyself2(PName val, Object connection) throws PException { 156 myself2 = val; 157 } 158 159 public PName paGetMyself2(Object connection) throws PException { 160 return myself2; 161 } 162 163 166 public Object getMemoryInstance() { 167 return null; 168 } 169 170 173 public void paSetNameByte(byte val) throws PException { 174 value = new Byte (val); 175 } 176 177 public byte paGetNameByte() throws PException { 178 return ((Byte ) value).byteValue(); 179 } 180 181 184 public void paSetNameChar(char val) throws PException { 185 value = new Character (val); 186 } 187 188 public char paGetNameChar() throws PException { 189 return ((Character ) value).charValue(); 190 } 191 192 195 public void paSetNameShort(short val) throws PException { 196 value = new Short (val); 197 } 198 199 public short paGetNameShort() throws PException { 200 return ((Short ) value).shortValue(); 201 } 202 203 206 public void paSetNameInt(int val) throws PException { 207 value = new Integer (val); 208 } 209 210 public int paGetNameInt() throws PException { 211 return ((Integer ) value).intValue(); 212 } 213 214 217 public void paSetNameLong(long val) throws PException { 218 value = new Long (val); 219 } 220 221 public long paGetNameLong() throws PException { 222 return ((Long ) value).longValue(); 223 } 224 225 228 public void paSetNameObyte(Byte val) throws PException { 229 value = val; 230 } 231 232 public Byte paGetNameObyte() throws PException { 233 return (Byte ) value; 234 } 235 236 239 public void paSetNameOchar(Character val) throws PException { 240 value = val; 241 } 242 243 public Character paGetNameOchar() throws PException { 244 return (Character ) value; 245 } 246 247 250 public void paSetNameOshort(Short val) throws PException { 251 value = val; 252 } 253 254 public Short paGetNameOshort() throws PException { 255 return (Short ) value; 256 } 257 258 261 public void paSetNameOint(Integer val) throws PException { 262 value = val; 263 } 264 265 public Integer paGetNameOint() throws PException { 266 return (Integer ) value; 267 } 268 269 272 public void paSetNameOlong(Long val) throws PException { 273 value = val; 274 } 275 276 public Long paGetNameOlong() throws PException { 277 return (Long ) value; 278 } 279 280 283 public void paSetNameString(String val) throws PException { 284 value = val; 285 } 286 287 public String paGetNameString() throws PException { 288 return (String ) value; 289 } 290 291 294 public void paSetNameDate(Date val) throws PException { 295 value = val; 296 } 297 298 public Date paGetNameDate() throws PException { 299 return (Date ) value; 300 } 301 302 305 public void paSetNameBigDecimal(BigDecimal val) throws PException { 306 value = val; 307 } 308 309 public BigDecimal paGetNameBigDecimal() throws PException { 310 return (BigDecimal ) value; 311 } 312 313 316 public void paSetNameBigInteger(BigInteger val) throws PException { 317 value = val; 318 } 319 320 public BigInteger paGetNameBigInteger() throws PException { 321 return (BigInteger ) value; 322 } 323 324 327 public void paSetNameBytearray(byte[] val) throws PException { 328 value = val; 329 } 330 331 public byte[] paGetNameBytearray() throws PException { 332 return (byte[]) value; 333 } 334 335 338 public void paSetNameChararray(char[] val) throws PException { 339 value = val; 340 } 341 342 public char[] paGetNameChararray() throws PException { 343 return (char[]) value; 344 } 345 } 346 | Popular Tags |