001: package org.apache.ojb.broker.sequence;
002:
003: import java.io.Serializable;
004:
005: /**
006: * Repository class for sequence test classes.
007: *
008: * @author <a href="mailto:armin@codeAuLait.de">Armin Waibel</a>
009: * @version $Id: Repository.java,v 1.1 2003/08/09 13:23:40 arminw Exp $
010: */
011: public class Repository {
012: public static class SMDatabaseSequence implements Serializable {
013: private Integer seqId;
014: private String name;
015:
016: public SMDatabaseSequence(Integer seqId, String name) {
017: this .seqId = seqId;
018: this .name = name;
019: }
020:
021: public SMDatabaseSequence() {
022: }
023:
024: public Integer getSeqId() {
025: return seqId;
026: }
027:
028: public void setSeqId(Integer seqId) {
029: this .seqId = seqId;
030: }
031:
032: public String getName() {
033: return name;
034: }
035:
036: public void setName(String name) {
037: this .name = name;
038: }
039: }
040:
041: public static interface SMInterface extends Serializable {
042: public Integer getId();
043:
044: public void setId(Integer id);
045:
046: public String getName();
047:
048: public void setName(String name);
049: }
050:
051: public static class SMInterfaceExtendA implements SMInterface {
052: private Integer id;
053: private String name;
054:
055: public Integer getId() {
056: return id;
057: }
058:
059: public void setId(Integer id) {
060: this .id = id;
061: }
062:
063: public String getName() {
064: return this .name;
065: }
066:
067: public void setName(String name) {
068: this .name = name;
069: }
070: }
071:
072: public static class SMInterfaceExtendAA extends SMInterfaceExtendA {
073: }
074:
075: public static class SMInterfaceExtendAAA extends
076: SMInterfaceExtendAA {
077: }
078:
079: public static class SMInterfaceExtendAB extends SMInterfaceExtendA {
080: }
081:
082: public static class SMInterfaceExtendB implements SMInterface {
083: private Integer id;
084: private String name;
085:
086: public Integer getId() {
087: return id;
088: }
089:
090: public void setId(Integer id) {
091: this .id = id;
092: }
093:
094: public String getName() {
095: return this .name;
096: }
097:
098: public void setName(String name) {
099: this .name = name;
100: }
101: }
102:
103: public static class SMInterfaceExtendBB extends SMInterfaceExtendB {
104: }
105:
106: public static class SMKey implements Serializable {
107: private int intKey;
108: private String name;
109: private String stringKey;
110: private Long longKey;
111: private Integer integerKey;
112:
113: public int getIntKey() {
114: return intKey;
115: }
116:
117: public void setIntKey(int intKey) {
118: this .intKey = intKey;
119: }
120:
121: public String getName() {
122: return name;
123: }
124:
125: public void setName(String name) {
126: this .name = name;
127: }
128:
129: public String getStringKey() {
130: return stringKey;
131: }
132:
133: public void setStringKey(String stringKey) {
134: this .stringKey = stringKey;
135: }
136:
137: public Long getLongKey() {
138: return longKey;
139: }
140:
141: public void setLongKey(Long longKey) {
142: this .longKey = longKey;
143: }
144:
145: public Integer getIntegerKey() {
146: return integerKey;
147: }
148:
149: public void setIntegerKey(Integer integerKey) {
150: this .integerKey = integerKey;
151: }
152:
153: public String toString() {
154: StringBuffer buf = new StringBuffer(this .getClass()
155: .getName());
156: buf.append(": name=" + getName());
157: buf.append(", intKey=" + getIntKey());
158: buf.append(", longKey=" + getLongKey());
159: buf.append(", stringKey=" + getStringKey());
160: buf.append(", integerKey=" + getIntegerKey());
161: return buf.toString();
162: }
163: }
164:
165: public static interface SMMax extends Serializable {
166: public Integer getId();
167:
168: public void setId(Integer id);
169:
170: public String getName();
171:
172: public void setName(String name);
173: }
174:
175: public static class SMMaxA implements SMMax {
176: private Integer id;
177: private String name;
178:
179: public Integer getId() {
180: return id;
181: }
182:
183: public void setId(Integer id) {
184: this .id = id;
185: }
186:
187: public String getName() {
188: return this .name;
189: }
190:
191: public void setName(String name) {
192: this .name = name;
193: }
194: }
195:
196: public static class SMMaxAA extends SMMaxA {
197: }
198:
199: public static class SMMaxAAA extends SMMaxAA {
200: }
201:
202: public static class SMMaxAB extends SMMaxA {
203: }
204:
205: public static class SMMaxB implements SMMax {
206: private Integer id;
207: private String name;
208:
209: public Integer getId() {
210: return id;
211: }
212:
213: public void setId(Integer id) {
214: this .id = id;
215: }
216:
217: public String getName() {
218: return this .name;
219: }
220:
221: public void setName(String name) {
222: this .name = name;
223: }
224: }
225:
226: public static class SMMaxBB extends SMMaxB {
227: }
228:
229: public static class SMSameTableA implements Serializable {
230: private Integer id;
231: private String name;
232:
233: public Integer getId() {
234: return id;
235: }
236:
237: public void setId(Integer id) {
238: this .id = id;
239: }
240:
241: public String getName() {
242: return this .name;
243: }
244:
245: public void setName(String name) {
246: this .name = name;
247: }
248: }
249:
250: public static class SMSameTableAA extends SMSameTableA {
251: }
252:
253: public static class SMSameTableB implements Serializable {
254: private Integer id;
255: private String name;
256:
257: public Integer getId() {
258: return id;
259: }
260:
261: public void setId(Integer id) {
262: this .id = id;
263: }
264:
265: public String getName() {
266: return this .name;
267: }
268:
269: public void setName(String name) {
270: this .name = name;
271: }
272: }
273:
274: public static class SMSameTableBB extends SMSameTableB {
275: }
276:
277: }
|