KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > interfaces > AllTypesEntityData


1 /*
2  * Generated by XDoclet - Do not edit!
3  */

4 package test.interfaces;
5
6 /**
7  * Data object for AllTypesEntity.
8  * @xdoclet-generated at 16-04-05
9  * @copyright The XDoclet Team
10  * @author XDoclet
11  * @version 1.2.3
12  */

13 public class AllTypesEntityData
14    extends java.lang.Object JavaDoc
15    implements java.io.Serializable JavaDoc
16 {
17    private int[] IVOwnerHdl;
18    private java.lang.String JavaDoc id;
19    private boolean ABoolean;
20    private byte AByte;
21    private short AShort;
22    private char AChar;
23    private int anInt;
24    private long ALong;
25    private float AFloat;
26    private double ADouble;
27    private java.lang.Object JavaDoc anObject;
28    private java.lang.Object JavaDoc[] anObjectArray;
29    private boolean[] ABooleanArray;
30    private byte[] AByteArray;
31    private char[] ACharArray;
32    private short[] AShortArray;
33    private int[] anIntArray;
34    private long[] ALongArray;
35    private float[] AFloatArray;
36    private double[] ADoubleArray;
37    private java.util.Date JavaDoc creationDate;
38
39   /* begin value object */
40
41   /* end value object */
42
43    public AllTypesEntityData()
44    {
45    }
46
47    public AllTypesEntityData( int[] IVOwnerHdl,java.lang.String JavaDoc id,boolean ABoolean,byte AByte,short AShort,char AChar,int anInt,long ALong,float AFloat,double ADouble,java.lang.Object JavaDoc anObject,java.lang.Object JavaDoc[] anObjectArray,boolean[] ABooleanArray,byte[] AByteArray,char[] ACharArray,short[] AShortArray,int[] anIntArray,long[] ALongArray,float[] AFloatArray,double[] ADoubleArray,java.util.Date JavaDoc creationDate )
48    {
49       this.IVOwnerHdl = IVOwnerHdl;
50       setId(id);
51       setABoolean(ABoolean);
52       setAByte(AByte);
53       setAShort(AShort);
54       setAChar(AChar);
55       setAnInt(anInt);
56       setALong(ALong);
57       setAFloat(AFloat);
58       setADouble(ADouble);
59       setAnObject(anObject);
60       setAnObjectArray(anObjectArray);
61       setABooleanArray(ABooleanArray);
62       setAByteArray(AByteArray);
63       setACharArray(ACharArray);
64       setAShortArray(AShortArray);
65       setAnIntArray(anIntArray);
66       setALongArray(ALongArray);
67       setAFloatArray(AFloatArray);
68       setADoubleArray(ADoubleArray);
69       setCreationDate(creationDate);
70    }
71
72    public AllTypesEntityData( AllTypesEntityData otherData )
73    {
74       this.IVOwnerHdl = otherData.IVOwnerHdl;
75       setId(otherData.getId());
76       setABoolean(otherData.getABoolean());
77       setAByte(otherData.getAByte());
78       setAShort(otherData.getAShort());
79       setAChar(otherData.getAChar());
80       setAnInt(otherData.getAnInt());
81       setALong(otherData.getALong());
82       setAFloat(otherData.getAFloat());
83       setADouble(otherData.getADouble());
84       setAnObject(otherData.getAnObject());
85       setAnObjectArray(otherData.getAnObjectArray());
86       setABooleanArray(otherData.getABooleanArray());
87       setAByteArray(otherData.getAByteArray());
88       setACharArray(otherData.getACharArray());
89       setAShortArray(otherData.getAShortArray());
90       setAnIntArray(otherData.getAnIntArray());
91       setALongArray(otherData.getALongArray());
92       setAFloatArray(otherData.getAFloatArray());
93       setADoubleArray(otherData.getADoubleArray());
94       setCreationDate(otherData.getCreationDate());
95
96    }
97
98    public test.interfaces.AllTypesEntityPK getPrimaryKey() {
99      test.interfaces.AllTypesEntityPK pk = new test.interfaces.AllTypesEntityPK(this.getIVOwnerHdl(),this.getId());
100      return pk;
101    }
102
103    public int[] getIVOwnerHdl()
104    {
105       return this.IVOwnerHdl;
106    }
107    public void setIVOwnerHdl( int[] IVOwnerHdl )
108    {
109       this.IVOwnerHdl = IVOwnerHdl;
110    }
111
112    public java.lang.String JavaDoc getId()
113    {
114       return this.id;
115    }
116    public void setId( java.lang.String JavaDoc id )
117    {
118       this.id = id;
119    }
120
121    public boolean getABoolean()
122    {
123       return this.ABoolean;
124    }
125    public void setABoolean( boolean ABoolean )
126    {
127       this.ABoolean = ABoolean;
128    }
129
130    public byte getAByte()
131    {
132       return this.AByte;
133    }
134    public void setAByte( byte AByte )
135    {
136       this.AByte = AByte;
137    }
138
139    public short getAShort()
140    {
141       return this.AShort;
142    }
143    public void setAShort( short AShort )
144    {
145       this.AShort = AShort;
146    }
147
148    public char getAChar()
149    {
150       return this.AChar;
151    }
152    public void setAChar( char AChar )
153    {
154       this.AChar = AChar;
155    }
156
157    public int getAnInt()
158    {
159       return this.anInt;
160    }
161    public void setAnInt( int anInt )
162    {
163       this.anInt = anInt;
164    }
165
166    public long getALong()
167    {
168       return this.ALong;
169    }
170    public void setALong( long ALong )
171    {
172       this.ALong = ALong;
173    }
174
175    public float getAFloat()
176    {
177       return this.AFloat;
178    }
179    public void setAFloat( float AFloat )
180    {
181       this.AFloat = AFloat;
182    }
183
184    public double getADouble()
185    {
186       return this.ADouble;
187    }
188    public void setADouble( double ADouble )
189    {
190       this.ADouble = ADouble;
191    }
192
193    public java.lang.Object JavaDoc getAnObject()
194    {
195       return this.anObject;
196    }
197    public void setAnObject( java.lang.Object JavaDoc anObject )
198    {
199       this.anObject = anObject;
200    }
201
202    public java.lang.Object JavaDoc[] getAnObjectArray()
203    {
204       return this.anObjectArray;
205    }
206    public void setAnObjectArray( java.lang.Object JavaDoc[] anObjectArray )
207    {
208       this.anObjectArray = anObjectArray;
209    }
210
211    public boolean[] getABooleanArray()
212    {
213       return this.ABooleanArray;
214    }
215    public void setABooleanArray( boolean[] ABooleanArray )
216    {
217       this.ABooleanArray = ABooleanArray;
218    }
219
220    public byte[] getAByteArray()
221    {
222       return this.AByteArray;
223    }
224    public void setAByteArray( byte[] AByteArray )
225    {
226       this.AByteArray = AByteArray;
227    }
228
229    public char[] getACharArray()
230    {
231       return this.ACharArray;
232    }
233    public void setACharArray( char[] ACharArray )
234    {
235       this.ACharArray = ACharArray;
236    }
237
238    public short[] getAShortArray()
239    {
240       return this.AShortArray;
241    }
242    public void setAShortArray( short[] AShortArray )
243    {
244       this.AShortArray = AShortArray;
245    }
246
247    public int[] getAnIntArray()
248    {
249       return this.anIntArray;
250    }
251    public void setAnIntArray( int[] anIntArray )
252    {
253       this.anIntArray = anIntArray;
254    }
255
256    public long[] getALongArray()
257    {
258       return this.ALongArray;
259    }
260    public void setALongArray( long[] ALongArray )
261    {
262       this.ALongArray = ALongArray;
263    }
264
265    public float[] getAFloatArray()
266    {
267       return this.AFloatArray;
268    }
269    public void setAFloatArray( float[] AFloatArray )
270    {
271       this.AFloatArray = AFloatArray;
272    }
273
274    public double[] getADoubleArray()
275    {
276       return this.ADoubleArray;
277    }
278    public void setADoubleArray( double[] ADoubleArray )
279    {
280       this.ADoubleArray = ADoubleArray;
281    }
282
283    public java.util.Date JavaDoc getCreationDate()
284    {
285       return this.creationDate;
286    }
287    public void setCreationDate( java.util.Date JavaDoc creationDate )
288    {
289       this.creationDate = creationDate;
290    }
291
292    public String JavaDoc toString()
293    {
294       StringBuffer JavaDoc str = new StringBuffer JavaDoc("{");
295
296       str.append("IVOwnerHdl=" + getIVOwnerHdl() + " " + "id=" + getId() + " " + "ABoolean=" + getABoolean() + " " + "AByte=" + getAByte() + " " + "AShort=" + getAShort() + " " + "AChar=" + getAChar() + " " + "anInt=" + getAnInt() + " " + "ALong=" + getALong() + " " + "AFloat=" + getAFloat() + " " + "ADouble=" + getADouble() + " " + "anObject=" + getAnObject() + " " + "anObjectArray=" + getAnObjectArray() + " " + "ABooleanArray=" + getABooleanArray() + " " + "AByteArray=" + getAByteArray() + " " + "ACharArray=" + getACharArray() + " " + "AShortArray=" + getAShortArray() + " " + "anIntArray=" + getAnIntArray() + " " + "ALongArray=" + getALongArray() + " " + "AFloatArray=" + getAFloatArray() + " " + "ADoubleArray=" + getADoubleArray() + " " + "creationDate=" + getCreationDate());
297       str.append('}');
298
299       return(str.toString());
300    }
301
302    public boolean equals( Object JavaDoc pOther )
303    {
304       if( pOther instanceof AllTypesEntityData )
305       {
306          AllTypesEntityData lTest = (AllTypesEntityData) pOther;
307          boolean lEquals = true;
308
309          lEquals = lEquals && this.IVOwnerHdl == lTest.IVOwnerHdl;
310          if( this.id == null )
311          {
312             lEquals = lEquals && ( lTest.id == null );
313          }
314          else
315          {
316             lEquals = lEquals && this.id.equals( lTest.id );
317          }
318          lEquals = lEquals && this.ABoolean == lTest.ABoolean;
319          lEquals = lEquals && this.AByte == lTest.AByte;
320          lEquals = lEquals && this.AShort == lTest.AShort;
321          lEquals = lEquals && this.AChar == lTest.AChar;
322          lEquals = lEquals && this.anInt == lTest.anInt;
323          lEquals = lEquals && this.ALong == lTest.ALong;
324          lEquals = lEquals && this.AFloat == lTest.AFloat;
325          lEquals = lEquals && this.ADouble == lTest.ADouble;
326          if( this.anObject == null )
327          {
328             lEquals = lEquals && ( lTest.anObject == null );
329          }
330          else
331          {
332             lEquals = lEquals && this.anObject.equals( lTest.anObject );
333          }
334          if( this.anObjectArray == null )
335          {
336             lEquals = lEquals && ( lTest.anObjectArray == null );
337          }
338          else
339          {
340             lEquals = lEquals && this.anObjectArray.equals( lTest.anObjectArray );
341          }
342          lEquals = lEquals && this.ABooleanArray == lTest.ABooleanArray;
343          lEquals = lEquals && this.AByteArray == lTest.AByteArray;
344          lEquals = lEquals && this.ACharArray == lTest.ACharArray;
345          lEquals = lEquals && this.AShortArray == lTest.AShortArray;
346          lEquals = lEquals && this.anIntArray == lTest.anIntArray;
347          lEquals = lEquals && this.ALongArray == lTest.ALongArray;
348          lEquals = lEquals && this.AFloatArray == lTest.AFloatArray;
349          lEquals = lEquals && this.ADoubleArray == lTest.ADoubleArray;
350          if( this.creationDate == null )
351          {
352             lEquals = lEquals && ( lTest.creationDate == null );
353          }
354          else
355          {
356             lEquals = lEquals && this.creationDate.equals( lTest.creationDate );
357          }
358
359          return lEquals;
360       }
361       else
362       {
363          return false;
364       }
365    }
366
367    public int hashCode()
368    {
369       int result = 17;
370
371       if (IVOwnerHdl != null) {
372         for (int i=0; i<IVOwnerHdl.length; i++)
373         {
374           result = 37*result + (int) IVOwnerHdl[i];
375         }
376       }
377
378       result = 37*result + ((this.id != null) ? this.id.hashCode() : 0);
379
380       result = 37*result + (ABoolean ? 0 : 1);
381
382       {
383          long l = AByte;
384          result = 37*result + (int)(l^(l>>>32));
385       }
386
387       result = 37*result + (int) AShort;
388
389       result = 37*result + (int) AChar;
390
391       result = 37*result + (int) anInt;
392
393       result = 37*result + (int)(ALong^(ALong>>>32));
394
395       result = 37*result + Float.floatToIntBits(AFloat);
396
397       {
398          long l = Double.doubleToLongBits(ADouble);
399          result = 37*result + (int)(l^(l>>>32));
400       }
401
402       result = 37*result + ((this.anObject != null) ? this.anObject.hashCode() : 0);
403
404       result = 37*result + ((this.anObjectArray != null) ? this.anObjectArray.hashCode() : 0);
405
406       if (ABooleanArray != null) {
407         for (int i=0; i<ABooleanArray.length; i++)
408         {
409           result = 37*result + (ABooleanArray[i] ? 0 : 1);
410         }
411       }
412
413       if (AByteArray != null) {
414         for (int i=0; i<AByteArray.length; i++)
415         {
416           long l = AByteArray[i];
417           result = 37*result + (int)(l^(l>>>32));
418         }
419       }
420
421       if (ACharArray != null) {
422         for (int i=0; i<ACharArray.length; i++)
423         {
424           result = 37*result + (int) ACharArray[i];
425         }
426       }
427
428       if (AShortArray != null) {
429         for (int i=0; i<AShortArray.length; i++)
430         {
431           result = 37*result + (int) AShortArray[i];
432         }
433       }
434
435       if (anIntArray != null) {
436         for (int i=0; i<anIntArray.length; i++)
437         {
438           result = 37*result + (int) anIntArray[i];
439         }
440       }
441
442       if (ALongArray != null) {
443         for (int i=0; i<ALongArray.length; i++)
444         {
445           result = 37*result + (int)(ALongArray[i]^(ALongArray[i]>>>32));
446         }
447       }
448
449       if (AFloatArray != null) {
450         for (int i=0; i<AFloatArray.length; i++)
451         {
452           result = 37*result + Float.floatToIntBits(AFloatArray[i]);
453         }
454       }
455
456       if (ADoubleArray != null) {
457         for (int i=0; i<ADoubleArray.length; i++)
458         {
459           long l = Double.doubleToLongBits(ADoubleArray[i]);
460           result = 37*result + (int)(l^(l>>>32));
461         }
462       }
463
464       result = 37*result + ((this.creationDate != null) ? this.creationDate.hashCode() : 0);
465
466       return result;
467    }
468
469 }
470
Popular Tags