KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > ojb > broker > sequence > Repository


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

11 public class Repository
12 {
13     public static class SMDatabaseSequence implements Serializable JavaDoc
14     {
15         private Integer JavaDoc seqId;
16         private String JavaDoc name;
17
18         public SMDatabaseSequence(Integer JavaDoc seqId, String JavaDoc name)
19         {
20             this.seqId = seqId;
21             this.name = name;
22         }
23
24         public SMDatabaseSequence()
25         {
26         }
27
28         public Integer JavaDoc getSeqId()
29         {
30             return seqId;
31         }
32
33         public void setSeqId(Integer JavaDoc seqId)
34         {
35             this.seqId = seqId;
36         }
37
38         public String JavaDoc getName()
39         {
40             return name;
41         }
42
43         public void setName(String JavaDoc name)
44         {
45             this.name = name;
46         }
47     }
48
49
50     public static interface SMInterface extends Serializable JavaDoc
51     {
52         public Integer JavaDoc getId();
53         public void setId(Integer JavaDoc id);
54
55         public String JavaDoc getName();
56         public void setName(String JavaDoc name);
57     }
58
59     public static class SMInterfaceExtendA implements SMInterface
60     {
61         private Integer JavaDoc id;
62         private String JavaDoc name;
63
64         public Integer JavaDoc getId()
65         {
66             return id;
67         }
68
69         public void setId(Integer JavaDoc id)
70         {
71             this.id = id;
72         }
73
74         public String JavaDoc getName()
75         {
76             return this.name;
77         }
78
79         public void setName(String JavaDoc name)
80         {
81             this.name = name;
82         }
83     }
84
85     public static class SMInterfaceExtendAA extends SMInterfaceExtendA
86     {
87     }
88
89     public static class SMInterfaceExtendAAA extends SMInterfaceExtendAA
90     {
91     }
92
93     public static class SMInterfaceExtendAB extends SMInterfaceExtendA
94     {
95     }
96
97     public static class SMInterfaceExtendB implements SMInterface
98     {
99         private Integer JavaDoc id;
100         private String JavaDoc name;
101
102         public Integer JavaDoc getId()
103         {
104             return id;
105         }
106
107         public void setId(Integer JavaDoc id)
108         {
109             this.id = id;
110         }
111
112         public String JavaDoc getName()
113         {
114             return this.name;
115         }
116
117         public void setName(String JavaDoc name)
118         {
119             this.name = name;
120         }
121     }
122
123     public static class SMInterfaceExtendBB extends SMInterfaceExtendB
124     {
125     }
126
127
128
129     public static class SMKey implements Serializable JavaDoc
130     {
131         private int intKey;
132         private String JavaDoc name;
133         private String JavaDoc stringKey;
134         private Long JavaDoc longKey;
135         private Integer JavaDoc integerKey;
136
137         public int getIntKey()
138         {
139             return intKey;
140         }
141
142         public void setIntKey(int intKey)
143         {
144             this.intKey = intKey;
145         }
146
147         public String JavaDoc getName()
148         {
149             return name;
150         }
151
152         public void setName(String JavaDoc name)
153         {
154             this.name = name;
155         }
156
157         public String JavaDoc getStringKey()
158         {
159             return stringKey;
160         }
161
162         public void setStringKey(String JavaDoc stringKey)
163         {
164             this.stringKey = stringKey;
165         }
166
167         public Long JavaDoc getLongKey()
168         {
169             return longKey;
170         }
171
172         public void setLongKey(Long JavaDoc longKey)
173         {
174             this.longKey = longKey;
175         }
176
177         public Integer JavaDoc getIntegerKey()
178         {
179             return integerKey;
180         }
181
182         public void setIntegerKey(Integer JavaDoc integerKey)
183         {
184             this.integerKey = integerKey;
185         }
186
187         public String JavaDoc toString()
188         {
189             StringBuffer JavaDoc buf = new StringBuffer JavaDoc(this.getClass().getName());
190             buf.append(": name="+getName());
191             buf.append(", intKey="+getIntKey());
192             buf.append(", longKey="+getLongKey());
193             buf.append(", stringKey="+getStringKey());
194             buf.append(", integerKey="+getIntegerKey());
195             return buf.toString();
196         }
197     }
198
199
200     public static interface SMMax extends Serializable JavaDoc
201     {
202         public Integer JavaDoc getId();
203         public void setId(Integer JavaDoc id);
204
205         public String JavaDoc getName();
206         public void setName(String JavaDoc name);
207     }
208
209     public static class SMMaxA implements SMMax
210     {
211         private Integer JavaDoc id;
212         private String JavaDoc name;
213
214         public Integer JavaDoc getId()
215         {
216             return id;
217         }
218
219         public void setId(Integer JavaDoc id)
220         {
221             this.id = id;
222         }
223
224         public String JavaDoc getName()
225         {
226             return this.name;
227         }
228
229         public void setName(String JavaDoc name)
230         {
231             this.name = name;
232         }
233     }
234
235
236     public static class SMMaxAA extends SMMaxA
237     {
238     }
239
240     public static class SMMaxAAA extends SMMaxAA
241     {
242     }
243
244     public static class SMMaxAB extends SMMaxA
245     {
246     }
247
248     public static class SMMaxB implements SMMax
249     {
250         private Integer JavaDoc id;
251         private String JavaDoc name;
252
253         public Integer JavaDoc getId()
254         {
255             return id;
256         }
257
258         public void setId(Integer JavaDoc id)
259         {
260             this.id = id;
261         }
262
263         public String JavaDoc getName()
264         {
265             return this.name;
266         }
267
268         public void setName(String JavaDoc name)
269         {
270             this.name = name;
271         }
272     }
273
274     public static class SMMaxBB extends SMMaxB
275     {
276     }
277
278     public static class SMSameTableA implements Serializable JavaDoc
279     {
280         private Integer JavaDoc id;
281         private String JavaDoc name;
282
283         public Integer JavaDoc getId()
284         {
285             return id;
286         }
287
288         public void setId(Integer JavaDoc id)
289         {
290             this.id = id;
291         }
292
293         public String JavaDoc getName()
294         {
295             return this.name;
296         }
297
298         public void setName(String JavaDoc name)
299         {
300             this.name = name;
301         }
302     }
303
304     public static class SMSameTableAA extends SMSameTableA
305     {
306     }
307
308     public static class SMSameTableB implements Serializable JavaDoc
309     {
310         private Integer JavaDoc id;
311         private String JavaDoc name;
312
313         public Integer JavaDoc getId()
314         {
315             return id;
316         }
317
318         public void setId(Integer JavaDoc id)
319         {
320             this.id = id;
321         }
322
323         public String JavaDoc getName()
324         {
325             return this.name;
326         }
327
328         public void setName(String JavaDoc name)
329         {
330             this.name = name;
331         }
332     }
333
334     public static class SMSameTableBB extends SMSameTableB
335     {
336     }
337
338 }
339
Popular Tags