KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jorm > runtime > basictype > AllTypesAcc


1 /**
2  * JORM: an implementation of a generic mapping system for persistent Java
3  * objects. Two mapping are supported: to RDBMS and to binary files.
4  * Copyright (C) 2001-2003 France Telecom R&D - INRIA
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19  *
20  * Contact: jorm-team@objectweb.org
21  *
22  */

23
24 package org.objectweb.jorm.runtime.basictype;
25
26 import org.objectweb.jorm.pobject.basictype.AllTypesAccessor;
27 import org.objectweb.jorm.api.PException;
28
29 import java.util.Date JavaDoc;
30 import java.io.Serializable JavaDoc;
31
32 /**
33  *
34  * @author S.Chassande-Barrioz
35  */

36 public class AllTypesAcc implements AllTypesAccessor {
37
38
39     public boolean booleanValue1 = true;
40     public boolean booleanValue2 = true;
41     public byte byteValue1 = 0;
42     public byte byteValue2 = 0;
43     public char charValue1 = '0';
44     public char charValue2 = '0';
45     public short shortValue1 = 0;
46     public short shortValue2 = 0;
47     public int intValue1 = 0;
48     public int intValue2 = 0;
49     public long longValue1 = 0;
50     public long longValue2 = 0;
51     public float floatValue1 = (float) 0.0;
52     public float floatValue2 = (float) 0.0;
53     public double doubleValue1 = 0.0;
54     public double doubleValue2 = 0.0;
55
56     public Boolean JavaDoc obooleanValue1 = null;
57     public Boolean JavaDoc obooleanValue2 = null;
58     public Byte JavaDoc obyteValue1 = null;
59     public Byte JavaDoc obyteValue2 = null;
60     public Character JavaDoc ocharValue1 = null;
61     public Character JavaDoc ocharValue2 = null;
62     public Short JavaDoc oshortValue1 = null;
63     public Short JavaDoc oshortValue2 = null;
64     public Integer JavaDoc ointValue1 = null;
65     public Integer JavaDoc ointValue2 = null;
66     public Long JavaDoc olongValue1 = null;
67     public Long JavaDoc olongValue2 = null;
68     public Float JavaDoc ofloatValue1 = null;
69     public Float JavaDoc ofloatValue2 = null;
70     public Double JavaDoc odoubleValue1 = null;
71     public Double JavaDoc odoubleValue2 = null;
72
73     public String JavaDoc stringValue1 = null;
74     public String JavaDoc stringValue2 = null;
75     public Date JavaDoc dateValue1 = null;
76     public Date JavaDoc dateValue2 = null;
77     public Serializable JavaDoc serializedValue1 = null;
78     public Serializable JavaDoc serializedValue2 = null;
79     public byte[] bytearrayValue1 = null;
80     public byte[] bytearrayValue2 = null;
81     public char[] chararrayValue1 = null;
82     public char[] chararrayValue2 = null;
83
84     //Accessors to the shortValue2 field
85
public void paSetShortValue2(short val) throws PException {
86         shortValue2 = val;
87     }
88
89     public short paGetShortValue2() throws PException {
90         return shortValue2;
91     }
92
93     //Accessors to the longValue2 field
94
public void paSetLongValue2(long val) throws PException {
95         longValue2 = val;
96     }
97
98     public long paGetLongValue2() throws PException {
99         return longValue2;
100     }
101
102     //Accessors to the shortValue1 field
103
public void paSetShortValue1(short val) throws PException {
104         shortValue1= val;
105     }
106
107     public short paGetShortValue1() throws PException {
108         return shortValue1;
109     }
110
111     //Accessors to the longValue1 field
112
public void paSetLongValue1(long val) throws PException {
113         longValue1 = val;
114     }
115
116     public long paGetLongValue1() throws PException {
117         return longValue1;
118     }
119
120     //Accessors to the obyteValue2 field
121
public void paSetObyteValue2(Byte JavaDoc val) throws PException {
122         obyteValue2 = val;
123     }
124
125     public Byte JavaDoc paGetObyteValue2() throws PException {
126         return obyteValue2;
127     }
128
129     //Accessors to the obyteValue1 field
130
public void paSetObyteValue1(Byte JavaDoc val) throws PException {
131         obyteValue1 = val;
132     }
133
134     public Byte JavaDoc paGetObyteValue1() throws PException {
135         return obyteValue1;
136     }
137
138     //Accessors to the intValue2 field
139
public void paSetIntValue2(int val) throws PException {
140         intValue2 = val;
141     }
142
143     public int paGetIntValue2() throws PException {
144         return intValue2;
145     }
146
147     //Accessors to the intValue1 field
148
public void paSetIntValue1(int val) throws PException {
149         intValue1 = val;
150     }
151
152     public int paGetIntValue1() throws PException {
153         return intValue1;
154     }
155
156     //Accessors to the dateValue2 field
157
public void paSetDateValue2(Date JavaDoc val) throws PException {
158         dateValue2 = val;
159     }
160
161     public Date JavaDoc paGetDateValue2() throws PException {
162         return dateValue2;
163     }
164
165     //Accessors to the oshortValue2 field
166
public void paSetOshortValue2(Short JavaDoc val) throws PException {
167         oshortValue2 = val;
168     }
169
170     public Short JavaDoc paGetOshortValue2() throws PException {
171         return oshortValue2;
172     }
173
174     //Accessors to the dateValue1 field
175
public void paSetDateValue1(Date JavaDoc val) throws PException {
176         dateValue1 = val;
177     }
178
179     public Date JavaDoc paGetDateValue1() throws PException {
180         return dateValue1;
181     }
182
183     //Accessors to the oshortValue1 field
184
public void paSetOshortValue1(Short JavaDoc val) throws PException {
185         oshortValue1 = val;
186     }
187
188     public Short JavaDoc paGetOshortValue1() throws PException {
189         return oshortValue1;
190     }
191
192     //Accessors to the olongValue2 field
193
public void paSetOlongValue2(Long JavaDoc val) throws PException {
194         olongValue2 = val;
195     }
196
197     public Long JavaDoc paGetOlongValue2() throws PException {
198         return olongValue2;
199     }
200
201     //Accessors to the olongValue1 field
202
public void paSetOlongValue1(Long JavaDoc val) throws PException {
203         olongValue1 = val;
204     }
205
206     public Long JavaDoc paGetOlongValue1() throws PException {
207         return olongValue1;
208     }
209
210     //Accessors to the booleanValue2 field
211
public void paSetBooleanValue2(boolean val) throws PException {
212         booleanValue2 = val;
213     }
214
215     public boolean paGetBooleanValue2() throws PException {
216         return booleanValue2;
217     }
218
219     //Accessors to the booleanValue1 field
220
public void paSetBooleanValue1(boolean val) throws PException {
221         booleanValue1 = val;
222     }
223
224     public boolean paGetBooleanValue1() throws PException {
225         return booleanValue1;
226     }
227
228     //Accessors to the ointValue2 field
229
public void paSetOintValue2(Integer JavaDoc val) throws PException {
230         ointValue2 = val;
231     }
232
233     public Integer JavaDoc paGetOintValue2() throws PException {
234         return ointValue2;
235     }
236
237     //Accessors to the ointValue1 field
238
public void paSetOintValue1(Integer JavaDoc val) throws PException {
239         ointValue1 = val;
240     }
241
242     public Integer JavaDoc paGetOintValue1() throws PException {
243         return ointValue1;
244     }
245
246     //Accessors to the floatValue2 field
247
public void paSetFloatValue2(float val) throws PException {
248         floatValue2 = val;
249     }
250
251     public float paGetFloatValue2() throws PException {
252         return floatValue2;
253     }
254
255     //Accessors to the floatValue1 field
256
public void paSetFloatValue1(float val) throws PException {
257         floatValue1 = val;
258     }
259
260     public float paGetFloatValue1() throws PException {
261         return floatValue1;
262     }
263
264     //Accessors to the obooleanValue2 field
265
public void paSetObooleanValue2(Boolean JavaDoc val) throws PException {
266         obooleanValue2 = val;
267     }
268
269     public Boolean JavaDoc paGetObooleanValue2() throws PException {
270         return obooleanValue2;
271     }
272
273     //Accessors to the obooleanValue1 field
274
public void paSetObooleanValue1(Boolean JavaDoc val) throws PException {
275         obooleanValue1 = val;
276     }
277
278     public Boolean JavaDoc paGetObooleanValue1() throws PException {
279         return obooleanValue1;
280     }
281
282     //Accessors to the charValue2 field
283
public void paSetCharValue2(char val) throws PException {
284         charValue2 = val;
285     }
286
287     public char paGetCharValue2() throws PException {
288         return charValue2;
289     }
290
291     //Accessors to the charValue1 field
292
public void paSetCharValue1(char val) throws PException {
293         charValue1 = val;
294     }
295
296     public char paGetCharValue1() throws PException {
297         return charValue1;
298     }
299
300     //Accessors to the stringValue2 field
301
public void paSetStringValue2(String JavaDoc val) throws PException {
302         stringValue2 = val;
303     }
304
305     public String JavaDoc paGetStringValue2() throws PException {
306         return stringValue2;
307     }
308
309     //Accessors to the doubleValue2 field
310
public void paSetDoubleValue2(double val) throws PException {
311         doubleValue2 = val;
312     }
313
314     public double paGetDoubleValue2() throws PException {
315         return doubleValue2;
316     }
317
318     //Accessors to the bytearrayValue2 field
319
public void paSetBytearrayValue2(byte[] val) throws PException {
320         bytearrayValue2 = val;
321     }
322
323     public byte[] paGetBytearrayValue2() throws PException {
324         return bytearrayValue2;
325     }
326
327     //Accessors to the stringValue1 field
328
public void paSetStringValue1(String JavaDoc val) throws PException {
329         stringValue1 = val;
330     }
331
332     public String JavaDoc paGetStringValue1() throws PException {
333         return stringValue1;
334     }
335
336     //Accessors to the doubleValue1 field
337
public void paSetDoubleValue1(double val) throws PException {
338         doubleValue1 = val;
339     }
340
341     public double paGetDoubleValue1() throws PException {
342         return doubleValue1;
343     }
344
345     //Accessors to the bytearrayValue1 field
346
public void paSetBytearrayValue1(byte[] val) throws PException {
347         bytearrayValue1 = val;
348     }
349
350     public byte[] paGetBytearrayValue1() throws PException {
351         return bytearrayValue1;
352     }
353
354     //Accessors to the ofloatValue2 field
355
public void paSetOfloatValue2(Float JavaDoc val) throws PException {
356         ofloatValue2 = val;
357     }
358
359     public Float JavaDoc paGetOfloatValue2() throws PException {
360         return ofloatValue2;
361     }
362
363     //Accessors to the ofloatValue1 field
364
public void paSetOfloatValue1(Float JavaDoc val) throws PException {
365         ofloatValue1 = val;
366     }
367
368     public Float JavaDoc paGetOfloatValue1() throws PException {
369         return ofloatValue1;
370     }
371
372     //Accessors to the byteValue2 field
373
public void paSetByteValue2(byte val) throws PException {
374         byteValue2 = val;
375     }
376
377     public byte paGetByteValue2() throws PException {
378         return byteValue2;
379     }
380
381     //Accessors to the byteValue1 field
382
public void paSetByteValue1(byte val) throws PException {
383         byteValue1 = val;
384     }
385
386     public byte paGetByteValue1() throws PException {
387         return byteValue1;
388     }
389
390     //Accessors to the ocharValue2 field
391
public void paSetOcharValue2(Character JavaDoc val) throws PException {
392         ocharValue2 = val;
393     }
394
395     public Character JavaDoc paGetOcharValue2() throws PException {
396         return ocharValue2;
397     }
398
399     //Accessors to the serializedValue2 field
400
public void paSetSerializedValue2(Serializable JavaDoc val) throws PException {
401         serializedValue2 = val;
402     }
403
404     public Serializable JavaDoc paGetSerializedValue2() throws PException {
405         return serializedValue2;
406     }
407
408     //Accessors to the ocharValue1 field
409
public void paSetOcharValue1(Character JavaDoc val) throws PException {
410         ocharValue1 = val;
411     }
412
413     public Character JavaDoc paGetOcharValue1() throws PException {
414         return ocharValue1;
415     }
416
417     //Accessors to the serializedValue1 field
418
public void paSetSerializedValue1(Serializable JavaDoc val) throws PException {
419         serializedValue1 = val;
420     }
421
422     public Serializable JavaDoc paGetSerializedValue1() throws PException {
423         return serializedValue1;
424     }
425
426     //Accessors to the chararrayValue2 field
427
public void paSetChararrayValue2(char[] val) throws PException {
428         chararrayValue2 = val;
429     }
430
431     public char[] paGetChararrayValue2() throws PException {
432         return chararrayValue2;
433     }
434
435     //Accessors to the chararrayValue1 field
436
public void paSetChararrayValue1(char[] val) throws PException {
437         chararrayValue1 = val;
438     }
439
440     public char[] paGetChararrayValue1() throws PException {
441         return chararrayValue1;
442     }
443
444     //Accessors to the odoubleValue2 field
445
public void paSetOdoubleValue2(Double JavaDoc val) throws PException {
446         odoubleValue2 = val;
447     }
448
449     public Double JavaDoc paGetOdoubleValue2() throws PException {
450         return odoubleValue2;
451     }
452
453     //Accessors to the odoubleValue1 field
454
public void paSetOdoubleValue1(Double JavaDoc val) throws PException {
455         odoubleValue1 = val;
456     }
457
458     public Double JavaDoc paGetOdoubleValue1() throws PException {
459         return odoubleValue1;
460     }
461
462     public Object JavaDoc getMemoryInstance() {
463         return this;
464     }
465
466 }
467
Popular Tags