KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > ojb > broker > ComplexMultiMapped


1 package org.apache.ojb.broker;
2
3 import java.io.Serializable JavaDoc;
4 import java.util.Date JavaDoc;
5
6 /**
7  * Test case helper class.
8  *
9  * @author <a HREF="mailto:armin@codeAuLait.de">Armin Waibel</a>
10  * @version $Id: ComplexMultiMapped.java,v 1.1 2003/08/09 13:23:40 arminw Exp $
11  */

12 public class ComplexMultiMapped
13 {
14     //*******************************************************
15
// Inner class
16
//*******************************************************
17
public static class PersistentA implements Serializable JavaDoc
18     {
19         private int ID = 0;
20         private String JavaDoc value1;
21         private int value2;
22         private Date JavaDoc value3;
23         private String JavaDoc ojbConcreteClass = PersistentA.class.getName();
24
25         public int getID()
26         {
27             return ID;
28         }
29
30         public void setID(int ID)
31         {
32             this.ID = ID;
33         }
34
35         public String JavaDoc getValue1()
36         {
37             return value1;
38         }
39
40         public void setValue1(String JavaDoc value1)
41         {
42             this.value1 = value1;
43         }
44
45         public int getValue2()
46         {
47             return value2;
48         }
49
50         public void setValue2(int value2)
51         {
52             this.value2 = value2;
53         }
54
55         public Date JavaDoc getValue3()
56         {
57             return value3;
58         }
59
60         public void setValue3(Date JavaDoc value3)
61         {
62             this.value3 = value3;
63         }
64
65         public String JavaDoc getOjbConcreteClass()
66         {
67             return ojbConcreteClass;
68         }
69
70         public void setOjbConcreteClass(String JavaDoc ojbConcreteClass)
71         {
72             this.ojbConcreteClass = ojbConcreteClass;
73         }
74     }
75
76
77     //*******************************************************
78
// Inner class
79
//*******************************************************
80
public static class PersistentB implements Serializable JavaDoc
81     {
82         private int ID = 0;
83         private String JavaDoc value4;
84         private int value5;
85         private Date JavaDoc value6;
86         private String JavaDoc ojbConcreteClass = PersistentB.class.getName();
87
88         public int getID()
89         {
90             return ID;
91         }
92
93         public void setID(int ID)
94         {
95             this.ID = ID;
96         }
97
98         public String JavaDoc getValue4()
99         {
100             return value4;
101         }
102
103         public void setValue4(String JavaDoc value4)
104         {
105             this.value4 = value4;
106         }
107
108         public int getValue5()
109         {
110             return value5;
111         }
112
113         public void setValue5(int value5)
114         {
115             this.value5 = value5;
116         }
117
118         public Date JavaDoc getValue6()
119         {
120             return value6;
121         }
122
123         public void setValue6(Date JavaDoc value6)
124         {
125             this.value6 = value6;
126         }
127
128         public String JavaDoc getOjbConcreteClass()
129         {
130             return ojbConcreteClass;
131         }
132
133         public void setOjbConcreteClass(String JavaDoc ojbConcreteClass)
134         {
135             this.ojbConcreteClass = ojbConcreteClass;
136         }
137     }
138
139
140     //*******************************************************
141
// Inner class
142
//*******************************************************
143
public static class PersistentC implements Serializable JavaDoc
144     {
145         private int ID = 0;
146         private String JavaDoc value1;
147         private int value2;
148         private Date JavaDoc value3;
149         private String JavaDoc value4;
150         private int value5;
151         private Date JavaDoc value6;
152         private String JavaDoc value7;
153         private String JavaDoc ojbConcreteClass = PersistentC.class.getName();
154
155         public int getID()
156         {
157             return ID;
158         }
159
160         public void setID(int ID)
161         {
162             this.ID = ID;
163         }
164
165         public String JavaDoc getValue1()
166         {
167             return value1;
168         }
169
170         public void setValue1(String JavaDoc value1)
171         {
172             this.value1 = value1;
173         }
174
175         public int getValue2()
176         {
177             return value2;
178         }
179
180         public void setValue2(int value2)
181         {
182             this.value2 = value2;
183         }
184
185         public Date JavaDoc getValue3()
186         {
187             return value3;
188         }
189
190         public void setValue3(Date JavaDoc value3)
191         {
192             this.value3 = value3;
193         }
194
195         public String JavaDoc getValue4()
196         {
197             return value4;
198         }
199
200         public void setValue4(String JavaDoc value4)
201         {
202             this.value4 = value4;
203         }
204
205         public int getValue5()
206         {
207             return value5;
208         }
209
210         public void setValue5(int value5)
211         {
212             this.value5 = value5;
213         }
214
215         public Date JavaDoc getValue6()
216         {
217             return value6;
218         }
219
220         public void setValue6(Date JavaDoc value6)
221         {
222             this.value6 = value6;
223         }
224
225         public String JavaDoc getValue7()
226         {
227             return value7;
228         }
229
230         public void setValue7(String JavaDoc value7)
231         {
232             this.value7 = value7;
233         }
234
235         public String JavaDoc getOjbConcreteClass()
236         {
237             return ojbConcreteClass;
238         }
239
240         public void setOjbConcreteClass(String JavaDoc ojbConcreteClass)
241         {
242             this.ojbConcreteClass = ojbConcreteClass;
243         }
244     }
245
246     //*******************************************************
247
// Inner class
248
//*******************************************************
249
public static class PersistentD extends PersistentB
250     {
251         private int ID = 0;
252         private String JavaDoc value1;
253         private int value2;
254         private Date JavaDoc value3;
255         private String JavaDoc ojbConcreteClass = PersistentD.class.getName();
256
257         public int getID()
258         {
259             return ID;
260         }
261
262         public void setID(int ID)
263         {
264             this.ID = ID;
265         }
266
267         public String JavaDoc getValue1()
268         {
269             return value1;
270         }
271
272         public void setValue1(String JavaDoc value1)
273         {
274             this.value1 = value1;
275         }
276
277         public int getValue2()
278         {
279             return value2;
280         }
281
282         public void setValue2(int value2)
283         {
284             this.value2 = value2;
285         }
286
287         public Date JavaDoc getValue3()
288         {
289             return value3;
290         }
291
292         public void setValue3(Date JavaDoc value3)
293         {
294             this.value3 = value3;
295         }
296
297         public String JavaDoc getOjbConcreteClass()
298         {
299             return ojbConcreteClass;
300         }
301
302         public void setOjbConcreteClass(String JavaDoc ojbConcreteClass)
303         {
304             this.ojbConcreteClass = ojbConcreteClass;
305         }
306     }
307
308     //*******************************************************
309
// Inner class
310
//*******************************************************
311
public static class PersistentE extends PersistentB
312     {
313         private int ID = 0;
314         private String JavaDoc value1;
315         private int value2;
316         private Date JavaDoc value3;
317         private String JavaDoc ojbConcreteClass =
318                 PersistentE.class.getName();
319
320         public int getID()
321         {
322             return ID;
323         }
324
325         public void setID(int ID)
326         {
327             this.ID = ID;
328         }
329
330         public String JavaDoc getValue1()
331         {
332             return value1;
333         }
334
335         public void setValue1(String JavaDoc value1)
336         {
337             this.value1 = value1;
338         }
339
340         public int getValue2()
341         {
342             return value2;
343         }
344
345         public void setValue2(int value2)
346         {
347             this.value2 = value2;
348         }
349
350         public Date JavaDoc getValue3()
351         {
352             return value3;
353         }
354
355         public void setValue3(Date JavaDoc value3)
356         {
357             this.value3 = value3;
358         }
359
360         public String JavaDoc getOjbConcreteClass()
361         {
362             return ojbConcreteClass;
363         }
364
365         public void setOjbConcreteClass(String JavaDoc ojbConcreteClass)
366         {
367             this.ojbConcreteClass = ojbConcreteClass;
368         }
369     }
370
371
372     //*******************************************************
373
// Inner class
374
//*******************************************************
375
public static class PersistentF extends PersistentE
376     {
377     }
378 }
379
Popular Tags