001: package org.apache.ojb.broker;
002:
003: import java.io.Serializable;
004: import java.util.Date;
005:
006: /**
007: * Test case helper class.
008: *
009: * @author <a href="mailto:armin@codeAuLait.de">Armin Waibel</a>
010: * @version $Id: ComplexMultiMapped.java,v 1.1 2003/08/09 13:23:40 arminw Exp $
011: */
012: public class ComplexMultiMapped {
013: //*******************************************************
014: // Inner class
015: //*******************************************************
016: public static class PersistentA implements Serializable {
017: private int ID = 0;
018: private String value1;
019: private int value2;
020: private Date value3;
021: private String ojbConcreteClass = PersistentA.class.getName();
022:
023: public int getID() {
024: return ID;
025: }
026:
027: public void setID(int ID) {
028: this .ID = ID;
029: }
030:
031: public String getValue1() {
032: return value1;
033: }
034:
035: public void setValue1(String value1) {
036: this .value1 = value1;
037: }
038:
039: public int getValue2() {
040: return value2;
041: }
042:
043: public void setValue2(int value2) {
044: this .value2 = value2;
045: }
046:
047: public Date getValue3() {
048: return value3;
049: }
050:
051: public void setValue3(Date value3) {
052: this .value3 = value3;
053: }
054:
055: public String getOjbConcreteClass() {
056: return ojbConcreteClass;
057: }
058:
059: public void setOjbConcreteClass(String ojbConcreteClass) {
060: this .ojbConcreteClass = ojbConcreteClass;
061: }
062: }
063:
064: //*******************************************************
065: // Inner class
066: //*******************************************************
067: public static class PersistentB implements Serializable {
068: private int ID = 0;
069: private String value4;
070: private int value5;
071: private Date value6;
072: private String ojbConcreteClass = PersistentB.class.getName();
073:
074: public int getID() {
075: return ID;
076: }
077:
078: public void setID(int ID) {
079: this .ID = ID;
080: }
081:
082: public String getValue4() {
083: return value4;
084: }
085:
086: public void setValue4(String value4) {
087: this .value4 = value4;
088: }
089:
090: public int getValue5() {
091: return value5;
092: }
093:
094: public void setValue5(int value5) {
095: this .value5 = value5;
096: }
097:
098: public Date getValue6() {
099: return value6;
100: }
101:
102: public void setValue6(Date value6) {
103: this .value6 = value6;
104: }
105:
106: public String getOjbConcreteClass() {
107: return ojbConcreteClass;
108: }
109:
110: public void setOjbConcreteClass(String ojbConcreteClass) {
111: this .ojbConcreteClass = ojbConcreteClass;
112: }
113: }
114:
115: //*******************************************************
116: // Inner class
117: //*******************************************************
118: public static class PersistentC implements Serializable {
119: private int ID = 0;
120: private String value1;
121: private int value2;
122: private Date value3;
123: private String value4;
124: private int value5;
125: private Date value6;
126: private String value7;
127: private String ojbConcreteClass = PersistentC.class.getName();
128:
129: public int getID() {
130: return ID;
131: }
132:
133: public void setID(int ID) {
134: this .ID = ID;
135: }
136:
137: public String getValue1() {
138: return value1;
139: }
140:
141: public void setValue1(String value1) {
142: this .value1 = value1;
143: }
144:
145: public int getValue2() {
146: return value2;
147: }
148:
149: public void setValue2(int value2) {
150: this .value2 = value2;
151: }
152:
153: public Date getValue3() {
154: return value3;
155: }
156:
157: public void setValue3(Date value3) {
158: this .value3 = value3;
159: }
160:
161: public String getValue4() {
162: return value4;
163: }
164:
165: public void setValue4(String value4) {
166: this .value4 = value4;
167: }
168:
169: public int getValue5() {
170: return value5;
171: }
172:
173: public void setValue5(int value5) {
174: this .value5 = value5;
175: }
176:
177: public Date getValue6() {
178: return value6;
179: }
180:
181: public void setValue6(Date value6) {
182: this .value6 = value6;
183: }
184:
185: public String getValue7() {
186: return value7;
187: }
188:
189: public void setValue7(String value7) {
190: this .value7 = value7;
191: }
192:
193: public String getOjbConcreteClass() {
194: return ojbConcreteClass;
195: }
196:
197: public void setOjbConcreteClass(String ojbConcreteClass) {
198: this .ojbConcreteClass = ojbConcreteClass;
199: }
200: }
201:
202: //*******************************************************
203: // Inner class
204: //*******************************************************
205: public static class PersistentD extends PersistentB {
206: private int ID = 0;
207: private String value1;
208: private int value2;
209: private Date value3;
210: private String ojbConcreteClass = PersistentD.class.getName();
211:
212: public int getID() {
213: return ID;
214: }
215:
216: public void setID(int ID) {
217: this .ID = ID;
218: }
219:
220: public String getValue1() {
221: return value1;
222: }
223:
224: public void setValue1(String value1) {
225: this .value1 = value1;
226: }
227:
228: public int getValue2() {
229: return value2;
230: }
231:
232: public void setValue2(int value2) {
233: this .value2 = value2;
234: }
235:
236: public Date getValue3() {
237: return value3;
238: }
239:
240: public void setValue3(Date value3) {
241: this .value3 = value3;
242: }
243:
244: public String getOjbConcreteClass() {
245: return ojbConcreteClass;
246: }
247:
248: public void setOjbConcreteClass(String ojbConcreteClass) {
249: this .ojbConcreteClass = ojbConcreteClass;
250: }
251: }
252:
253: //*******************************************************
254: // Inner class
255: //*******************************************************
256: public static class PersistentE extends PersistentB {
257: private int ID = 0;
258: private String value1;
259: private int value2;
260: private Date value3;
261: private String ojbConcreteClass = PersistentE.class.getName();
262:
263: public int getID() {
264: return ID;
265: }
266:
267: public void setID(int ID) {
268: this .ID = ID;
269: }
270:
271: public String getValue1() {
272: return value1;
273: }
274:
275: public void setValue1(String value1) {
276: this .value1 = value1;
277: }
278:
279: public int getValue2() {
280: return value2;
281: }
282:
283: public void setValue2(int value2) {
284: this .value2 = value2;
285: }
286:
287: public Date getValue3() {
288: return value3;
289: }
290:
291: public void setValue3(Date value3) {
292: this .value3 = value3;
293: }
294:
295: public String getOjbConcreteClass() {
296: return ojbConcreteClass;
297: }
298:
299: public void setOjbConcreteClass(String ojbConcreteClass) {
300: this .ojbConcreteClass = ojbConcreteClass;
301: }
302: }
303:
304: //*******************************************************
305: // Inner class
306: //*******************************************************
307: public static class PersistentF extends PersistentE {
308: }
309: }
|