1 package org.apache.ojb.broker.sequence; 2 3 import java.io.Serializable ; 4 5 11 public class Repository 12 { 13 public static class SMDatabaseSequence implements Serializable 14 { 15 private Integer seqId; 16 private String name; 17 18 public SMDatabaseSequence(Integer seqId, String name) 19 { 20 this.seqId = seqId; 21 this.name = name; 22 } 23 24 public SMDatabaseSequence() 25 { 26 } 27 28 public Integer getSeqId() 29 { 30 return seqId; 31 } 32 33 public void setSeqId(Integer seqId) 34 { 35 this.seqId = seqId; 36 } 37 38 public String getName() 39 { 40 return name; 41 } 42 43 public void setName(String name) 44 { 45 this.name = name; 46 } 47 } 48 49 50 public static interface SMInterface extends Serializable 51 { 52 public Integer getId(); 53 public void setId(Integer id); 54 55 public String getName(); 56 public void setName(String name); 57 } 58 59 public static class SMInterfaceExtendA implements SMInterface 60 { 61 private Integer id; 62 private String name; 63 64 public Integer getId() 65 { 66 return id; 67 } 68 69 public void setId(Integer id) 70 { 71 this.id = id; 72 } 73 74 public String getName() 75 { 76 return this.name; 77 } 78 79 public void setName(String 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 id; 100 private String name; 101 102 public Integer getId() 103 { 104 return id; 105 } 106 107 public void setId(Integer id) 108 { 109 this.id = id; 110 } 111 112 public String getName() 113 { 114 return this.name; 115 } 116 117 public void setName(String 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 130 { 131 private int intKey; 132 private String name; 133 private String stringKey; 134 private Long longKey; 135 private Integer 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 getName() 148 { 149 return name; 150 } 151 152 public void setName(String name) 153 { 154 this.name = name; 155 } 156 157 public String getStringKey() 158 { 159 return stringKey; 160 } 161 162 public void setStringKey(String stringKey) 163 { 164 this.stringKey = stringKey; 165 } 166 167 public Long getLongKey() 168 { 169 return longKey; 170 } 171 172 public void setLongKey(Long longKey) 173 { 174 this.longKey = longKey; 175 } 176 177 public Integer getIntegerKey() 178 { 179 return integerKey; 180 } 181 182 public void setIntegerKey(Integer integerKey) 183 { 184 this.integerKey = integerKey; 185 } 186 187 public String toString() 188 { 189 StringBuffer buf = new StringBuffer (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 201 { 202 public Integer getId(); 203 public void setId(Integer id); 204 205 public String getName(); 206 public void setName(String name); 207 } 208 209 public static class SMMaxA implements SMMax 210 { 211 private Integer id; 212 private String name; 213 214 public Integer getId() 215 { 216 return id; 217 } 218 219 public void setId(Integer id) 220 { 221 this.id = id; 222 } 223 224 public String getName() 225 { 226 return this.name; 227 } 228 229 public void setName(String 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 id; 251 private String name; 252 253 public Integer getId() 254 { 255 return id; 256 } 257 258 public void setId(Integer id) 259 { 260 this.id = id; 261 } 262 263 public String getName() 264 { 265 return this.name; 266 } 267 268 public void setName(String 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 279 { 280 private Integer id; 281 private String name; 282 283 public Integer getId() 284 { 285 return id; 286 } 287 288 public void setId(Integer id) 289 { 290 this.id = id; 291 } 292 293 public String getName() 294 { 295 return this.name; 296 } 297 298 public void setName(String 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 309 { 310 private Integer id; 311 private String name; 312 313 public Integer getId() 314 { 315 return id; 316 } 317 318 public void setId(Integer id) 319 { 320 this.id = id; 321 } 322 323 public String getName() 324 { 325 return this.name; 326 } 327 328 public void setName(String name) 329 { 330 this.name = name; 331 } 332 } 333 334 public static class SMSameTableBB extends SMSameTableB 335 { 336 } 337 338 } 339 | Popular Tags |