comparison geo-backend/src/main/java/de/intevation/gnv/geobackend/sde/datasources/SDEResultSet.java @ 132:5a583cff97ea

Implementation of the Datainfrastructure for fetching Data from different DataStores. geo-backend/trunk@12 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Fri, 04 Sep 2009 08:11:30 +0000
parents e4eacd613356
children d43ff60acda4
comparison
equal deleted inserted replaced
131:d8ff739b9f3b 132:5a583cff97ea
46 * @serial 1.0 46 * @serial 1.0
47 * @see 47 * @see
48 * @since 21.11.2007 11:01:27 48 * @since 21.11.2007 11:01:27
49 */ 49 */
50 public class SDEResultSet extends ResultSet { 50 public class SDEResultSet extends ResultSet {
51 51
52 /** 52 /**
53 * Default Logging instance 53 * Default Logging instance
54 */ 54 */
55 private static Logger log = Logger.getLogger(SDEResultSet.class); 55 private static Logger log = Logger.getLogger(SDEResultSet.class);
56 56
57 private List<Row> mRows = Collections.synchronizedList(new ArrayList<Row>()); 57 private List<Row> mRows = Collections.synchronizedList(new ArrayList<Row>());
58 private List<ColDefinition> mCols = Collections.synchronizedList(new ArrayList<ColDefinition>()); 58 private List<ColDefinition> mCols = Collections.synchronizedList(new ArrayList<ColDefinition>());
59 59
60 private Row currentRow = null; 60 private Row currentRow = null;
61 private int cursor = 0; 61 private int cursor = 0;
62 62
63 public SDEResultSet() { 63 public SDEResultSet() {
64 } 64 }
65 65
66 public int getCount() { 66 public int getCount() {
67 return mRows.size(); 67 return mRows.size();
68 } 68 }
69 69
70 public int getNumberOfColumns() { 70 public int getNumberOfColumns() {
71 return mCols.size(); 71 return mCols.size();
72 } 72 }
73 73
74 public ColDefinition[] getColumnDefinitions() { 74 public ColDefinition[] getColumnDefinitions() {
75 ColDefinition[] lColDefinitions = new ColDefinition[mCols.size()]; 75 ColDefinition[] lColDefinitions = new ColDefinition[mCols.size()];
76 return mCols.toArray(lColDefinitions); 76 return mCols.toArray(lColDefinitions);
77 } 77 }
78 78
79 public Row[] getResults() { 79 public Row[] getResults() {
80 Row[] lRows = new Row[mRows.size()]; 80 Row[] lRows = new Row[mRows.size()];
81 return mRows.toArray(lRows); 81 return mRows.toArray(lRows);
82 } 82 }
83 83
84 public void addRow(Row pRow) { 84 public void addRow(Row pRow) {
85 mRows.add(pRow); 85 mRows.add(pRow);
86 } 86 }
87 87
88 public void addCol(ColDefinition pColDefinition) { 88 public void addCol(ColDefinition pColDefinition) {
89 mCols.add(pColDefinition); 89 mCols.add(pColDefinition);
90 } 90 }
91 91
92 /** 92 /**
93 * @see java.sql.ResultSet#absolute(int) 93 * @see java.sql.ResultSet#absolute(int)
94 */ 94 */
95 public boolean absolute(int row) throws SQLException { 95 public boolean absolute(int row) throws SQLException {
96 96
97 return false; 97 return false;
98 } 98 }
99 99
100 /** 100 /**
101 * @see java.sql.ResultSet#afterLast() 101 * @see java.sql.ResultSet#afterLast()
102 */ 102 */
103 public void afterLast() throws SQLException { 103 public void afterLast() throws SQLException {
104 } 104 }
105 105
106 /** 106 /**
107 * @see java.sql.ResultSet#beforeFirst() 107 * @see java.sql.ResultSet#beforeFirst()
108 */ 108 */
109 public void beforeFirst() throws SQLException { 109 public void beforeFirst() throws SQLException {
110 } 110 }
111 111
112 /** 112 /**
113 * @see java.sql.ResultSet#cancelRowUpdates() 113 * @see java.sql.ResultSet#cancelRowUpdates()
114 */ 114 */
115 public void cancelRowUpdates() throws SQLException { 115 public void cancelRowUpdates() throws SQLException {
116 } 116 }
117 117
118 /** 118 /**
119 * @see java.sql.ResultSet#clearWarnings() 119 * @see java.sql.ResultSet#clearWarnings()
120 */ 120 */
121 public void clearWarnings() throws SQLException { 121 public void clearWarnings() throws SQLException {
122 } 122 }
123 123
124 /** 124 /**
125 * @see java.sql.ResultSet#close() 125 * @see java.sql.ResultSet#close()
126 */ 126 */
127 public void close() throws SQLException { 127 public void close() throws SQLException {
128 } 128 }
129 129
130 /** 130 /**
131 * @see java.sql.ResultSet#deleteRow() 131 * @see java.sql.ResultSet#deleteRow()
132 */ 132 */
133 public void deleteRow() throws SQLException { 133 public void deleteRow() throws SQLException {
134 } 134 }
135 135
136 /** 136 /**
137 * @see java.sql.ResultSet#findColumn(java.lang.String) 137 * @see java.sql.ResultSet#findColumn(java.lang.String)
138 */ 138 */
139 public int findColumn(String columnName) throws SQLException { 139 public int findColumn(String columnName) throws SQLException {
140 140
141 return 0; 141 return 0;
142 } 142 }
143 143
144 /** 144 /**
145 * @see java.sql.ResultSet#first() 145 * @see java.sql.ResultSet#first()
146 */ 146 */
147 public boolean first() throws SQLException { 147 public boolean first() throws SQLException {
148 148
149 return false; 149 return false;
150 } 150 }
151 151
152 /** 152 /**
153 * @see java.sql.ResultSet#getArray(int) 153 * @see java.sql.ResultSet#getArray(int)
154 */ 154 */
155 public Array getArray(int i) throws SQLException { 155 public Array getArray(int i) throws SQLException {
156 156
157 return null; 157 return null;
158 } 158 }
159 159
160 /** 160 /**
161 * @see java.sql.ResultSet#getArray(java.lang.String) 161 * @see java.sql.ResultSet#getArray(java.lang.String)
162 */ 162 */
163 public Array getArray(String colName) throws SQLException { 163 public Array getArray(String colName) throws SQLException {
164 164
165 return null; 165 return null;
166 } 166 }
167 167
168 /** 168 /**
169 * @see java.sql.ResultSet#getAsciiStream(int) 169 * @see java.sql.ResultSet#getAsciiStream(int)
170 */ 170 */
171 public InputStream getAsciiStream(int columnIndex) throws SQLException { 171 public InputStream getAsciiStream(int columnIndex) throws SQLException {
172 172
173 return null; 173 return null;
174 } 174 }
175 175
176 /** 176 /**
177 * @see java.sql.ResultSet#getAsciiStream(java.lang.String) 177 * @see java.sql.ResultSet#getAsciiStream(java.lang.String)
178 */ 178 */
179 public InputStream getAsciiStream(String columnName) throws SQLException { 179 public InputStream getAsciiStream(String columnName) throws SQLException {
180 180
181 return null; 181 return null;
182 } 182 }
183 183
184 /** 184 /**
185 * @see java.sql.ResultSet#getBigDecimal(int) 185 * @see java.sql.ResultSet#getBigDecimal(int)
186 */ 186 */
187 public BigDecimal getBigDecimal(int columnIndex) throws SQLException { 187 public BigDecimal getBigDecimal(int columnIndex) throws SQLException {
188 188
189 return null; 189 return null;
190 } 190 }
191 191
192 /** 192 /**
193 * @see java.sql.ResultSet#getBigDecimal(java.lang.String) 193 * @see java.sql.ResultSet#getBigDecimal(java.lang.String)
194 */ 194 */
195 public BigDecimal getBigDecimal(String columnName) throws SQLException { 195 public BigDecimal getBigDecimal(String columnName) throws SQLException {
196 196
197 return null; 197 return null;
198 } 198 }
199 199
200 /** 200 /**
201 * @see java.sql.ResultSet#getBigDecimal(int, int) 201 * @see java.sql.ResultSet#getBigDecimal(int, int)
202 */ 202 */
203 public BigDecimal getBigDecimal(int columnIndex, int scale) 203 public BigDecimal getBigDecimal(int columnIndex, int scale)
204 throws SQLException { 204 throws SQLException {
205 205
206 return null; 206 return null;
207 } 207 }
208 208
209 /** 209 /**
210 * @see java.sql.ResultSet#getBigDecimal(java.lang.String, int) 210 * @see java.sql.ResultSet#getBigDecimal(java.lang.String, int)
211 */ 211 */
212 public BigDecimal getBigDecimal(String columnName, int scale) 212 public BigDecimal getBigDecimal(String columnName, int scale)
213 throws SQLException { 213 throws SQLException {
214 214
215 return null; 215 return null;
216 } 216 }
217 217
218 /** 218 /**
219 * @see java.sql.ResultSet#getBinaryStream(int) 219 * @see java.sql.ResultSet#getBinaryStream(int)
220 */ 220 */
221 public InputStream getBinaryStream(int columnIndex) throws SQLException { 221 public InputStream getBinaryStream(int columnIndex) throws SQLException {
222 222
223 return null; 223 return null;
224 } 224 }
225 225
226 /** 226 /**
227 * @see java.sql.ResultSet#getBinaryStream(java.lang.String) 227 * @see java.sql.ResultSet#getBinaryStream(java.lang.String)
228 */ 228 */
229 public InputStream getBinaryStream(String columnName) throws SQLException { 229 public InputStream getBinaryStream(String columnName) throws SQLException {
230 230
231 return null; 231 return null;
232 } 232 }
233 233
234 /** 234 /**
235 * @see java.sql.ResultSet#getBlob(int) 235 * @see java.sql.ResultSet#getBlob(int)
236 */ 236 */
237 public Blob getBlob(int i) throws SQLException { 237 public Blob getBlob(int i) throws SQLException {
238 238
239 return null; 239 return null;
240 } 240 }
241 241
242 /** 242 /**
243 * @see java.sql.ResultSet#getBlob(java.lang.String) 243 * @see java.sql.ResultSet#getBlob(java.lang.String)
244 */ 244 */
245 public Blob getBlob(String colName) throws SQLException { 245 public Blob getBlob(String colName) throws SQLException {
246 246
247 return null; 247 return null;
248 } 248 }
249 249
250 /** 250 /**
251 * @see java.sql.ResultSet#getBoolean(int) 251 * @see java.sql.ResultSet#getBoolean(int)
252 */ 252 */
253 public boolean getBoolean(int columnIndex) throws SQLException { 253 public boolean getBoolean(int columnIndex) throws SQLException {
254 254
255 return false; 255 return false;
256 } 256 }
257 257
258 /** 258 /**
259 * @see java.sql.ResultSet#getBoolean(java.lang.String) 259 * @see java.sql.ResultSet#getBoolean(java.lang.String)
260 */ 260 */
261 public boolean getBoolean(String columnName) throws SQLException { 261 public boolean getBoolean(String columnName) throws SQLException {
262 262
263 return false; 263 return false;
264 } 264 }
265 265
266 /** 266 /**
267 * @see java.sql.ResultSet#getByte(int) 267 * @see java.sql.ResultSet#getByte(int)
268 */ 268 */
269 public byte getByte(int columnIndex) throws SQLException { 269 public byte getByte(int columnIndex) throws SQLException {
270 270
271 return 0; 271 return 0;
272 } 272 }
273 273
274 /** 274 /**
275 * @see java.sql.ResultSet#getByte(java.lang.String) 275 * @see java.sql.ResultSet#getByte(java.lang.String)
276 */ 276 */
277 public byte getByte(String columnName) throws SQLException { 277 public byte getByte(String columnName) throws SQLException {
278 278
279 return 0; 279 return 0;
280 } 280 }
281 281
282 /** 282 /**
283 * @see java.sql.ResultSet#getBytes(int) 283 * @see java.sql.ResultSet#getBytes(int)
284 */ 284 */
285 public byte[] getBytes(int columnIndex) throws SQLException { 285 public byte[] getBytes(int columnIndex) throws SQLException {
286 286
287 return null; 287 return null;
288 } 288 }
289 289
290 /** 290 /**
291 * @see java.sql.ResultSet#getBytes(java.lang.String) 291 * @see java.sql.ResultSet#getBytes(java.lang.String)
292 */ 292 */
293 public byte[] getBytes(String columnName) throws SQLException { 293 public byte[] getBytes(String columnName) throws SQLException {
294 294
295 return null; 295 return null;
296 } 296 }
297 297
298 /** 298 /**
299 * @see java.sql.ResultSet#getCharacterStream(int) 299 * @see java.sql.ResultSet#getCharacterStream(int)
300 */ 300 */
301 public Reader getCharacterStream(int columnIndex) throws SQLException { 301 public Reader getCharacterStream(int columnIndex) throws SQLException {
302 302
303 return null; 303 return null;
304 } 304 }
305 305
306 /** 306 /**
307 * @see java.sql.ResultSet#getCharacterStream(java.lang.String) 307 * @see java.sql.ResultSet#getCharacterStream(java.lang.String)
308 */ 308 */
309 public Reader getCharacterStream(String columnName) throws SQLException { 309 public Reader getCharacterStream(String columnName) throws SQLException {
310 310
311 return null; 311 return null;
312 } 312 }
313 313
314 /** 314 /**
315 * @see java.sql.ResultSet#getClob(int) 315 * @see java.sql.ResultSet#getClob(int)
316 */ 316 */
317 public Clob getClob(int i) throws SQLException { 317 public Clob getClob(int i) throws SQLException {
318 318
319 return null; 319 return null;
320 } 320 }
321 321
322 /** 322 /**
323 * @see java.sql.ResultSet#getClob(java.lang.String) 323 * @see java.sql.ResultSet#getClob(java.lang.String)
324 */ 324 */
325 public Clob getClob(String colName) throws SQLException { 325 public Clob getClob(String colName) throws SQLException {
326 326
327 return null; 327 return null;
328 } 328 }
329 329
330 /** 330 /**
331 * @see java.sql.ResultSet#getConcurrency() 331 * @see java.sql.ResultSet#getConcurrency()
332 */ 332 */
333 public int getConcurrency() throws SQLException { 333 public int getConcurrency() throws SQLException {
334 334
335 return 0; 335 return 0;
336 } 336 }
337 337
338 /** 338 /**
339 * @see java.sql.ResultSet#getCursorName() 339 * @see java.sql.ResultSet#getCursorName()
340 */ 340 */
341 public String getCursorName() throws SQLException { 341 public String getCursorName() throws SQLException {
342 342
343 return null; 343 return null;
344 } 344 }
345 345
346 /** 346 /**
347 * @see java.sql.ResultSet#getDate(int) 347 * @see java.sql.ResultSet#getDate(int)
348 */ 348 */
349 public Date getDate(int columnIndex) throws SQLException { 349 public Date getDate(int columnIndex) throws SQLException {
350 try { 350 try {
351 return new java.sql.Date(this.currentRow.getDateValue(columnIndex-1).getTime()); 351 return new java.sql.Date(this.currentRow.getDateValue(columnIndex-1).getTime());
352 } catch (TechnicalException e) { 352 } catch (TechnicalException e) {
353 log.error(e,e); 353 log.error(e,e);
354 throw new SQLException(e.getMessage()); 354 throw new SQLException(e.getMessage());
355 } 355 }
356 } 356 }
357 357
358 /** 358 /**
359 * @see java.sql.ResultSet#getDate(java.lang.String) 359 * @see java.sql.ResultSet#getDate(java.lang.String)
360 */ 360 */
361 public Date getDate(String columnName) throws SQLException { 361 public Date getDate(String columnName) throws SQLException {
362 int columnIndex = this.getColumnIndex(columnName); 362 int columnIndex = this.getColumnIndex(columnName);
363 return this.getDate(columnIndex); 363 return this.getDate(columnIndex);
364 } 364 }
365 365
366 /** 366 /**
367 * @see java.sql.ResultSet#getDate(int, java.util.Calendar) 367 * @see java.sql.ResultSet#getDate(int, java.util.Calendar)
368 */ 368 */
369 public Date getDate(int columnIndex, Calendar cal) throws SQLException { 369 public Date getDate(int columnIndex, Calendar cal) throws SQLException {
370 370
371 return null; 371 return null;
372 } 372 }
373 373
374 /** 374 /**
375 * @see java.sql.ResultSet#getDate(java.lang.String, java.util.Calendar) 375 * @see java.sql.ResultSet#getDate(java.lang.String, java.util.Calendar)
376 */ 376 */
377 public Date getDate(String columnName, Calendar cal) throws SQLException { 377 public Date getDate(String columnName, Calendar cal) throws SQLException {
378 378
379 return null; 379 return null;
380 } 380 }
381 381
382 /** 382 /**
383 * @see java.sql.ResultSet#getDouble(int) 383 * @see java.sql.ResultSet#getDouble(int)
384 */ 384 */
385 public double getDouble(int columnIndex) throws SQLException { 385 public double getDouble(int columnIndex) throws SQLException {
386 try { 386 try {
387 return this.currentRow.getDoubleValue(columnIndex-1); 387 return this.currentRow.getDoubleValue(columnIndex-1);
388 } catch (TechnicalException e) { 388 } catch (TechnicalException e) {
389 log.error(e,e); 389 log.error(e,e);
390 throw new SQLException(e.getMessage()); 390 throw new SQLException(e.getMessage());
391 } 391 }
392 } 392 }
393 393
394 /** 394 /**
395 * @see java.sql.ResultSet#getDouble(java.lang.String) 395 * @see java.sql.ResultSet#getDouble(java.lang.String)
396 */ 396 */
397 public double getDouble(String columnName) throws SQLException { 397 public double getDouble(String columnName) throws SQLException {
398 int columnIndex = this.getColumnIndex(columnName); 398 int columnIndex = this.getColumnIndex(columnName);
399 return this.getDouble(columnIndex); 399 return this.getDouble(columnIndex);
400 } 400 }
401 401
402 /** 402 /**
403 * @see java.sql.ResultSet#getFetchDirection() 403 * @see java.sql.ResultSet#getFetchDirection()
404 */ 404 */
405 public int getFetchDirection() throws SQLException { 405 public int getFetchDirection() throws SQLException {
406 406
407 return 0; 407 return 0;
408 } 408 }
409 409
410 /** 410 /**
411 * @see java.sql.ResultSet#getFetchSize() 411 * @see java.sql.ResultSet#getFetchSize()
412 */ 412 */
413 public int getFetchSize() throws SQLException { 413 public int getFetchSize() throws SQLException {
414 414
415 return 0; 415 return 0;
416 } 416 }
417 417
418 /** 418 /**
419 * @see java.sql.ResultSet#getFloat(int) 419 * @see java.sql.ResultSet#getFloat(int)
420 */ 420 */
421 public float getFloat(int columnIndex) throws SQLException { 421 public float getFloat(int columnIndex) throws SQLException {
422 try { 422 try {
423 return this.currentRow.getFloatValue(columnIndex-1); 423 return this.currentRow.getFloatValue(columnIndex-1);
424 } catch (TechnicalException e) { 424 } catch (TechnicalException e) {
425 log.error(e,e); 425 log.error(e,e);
426 throw new SQLException(e.getMessage()); 426 throw new SQLException(e.getMessage());
427 } 427 }
428 } 428 }
429 429
430 /** 430 /**
431 * @see java.sql.ResultSet#getFloat(java.lang.String) 431 * @see java.sql.ResultSet#getFloat(java.lang.String)
432 */ 432 */
433 public float getFloat(String columnName) throws SQLException { 433 public float getFloat(String columnName) throws SQLException {
434 int columnIndex = this.getColumnIndex(columnName); 434 int columnIndex = this.getColumnIndex(columnName);
435 return this.getFloat(columnIndex); 435 return this.getFloat(columnIndex);
436 } 436 }
437 437
438 /** 438 /**
439 * @see java.sql.ResultSet#getInt(int) 439 * @see java.sql.ResultSet#getInt(int)
440 */ 440 */
441 public int getInt(int columnIndex) throws SQLException { 441 public int getInt(int columnIndex) throws SQLException {
442 442
443 try { 443 try {
444 return this.currentRow.getIntValue(columnIndex-1); 444 return this.currentRow.getIntValue(columnIndex-1);
445 } catch (TechnicalException e) { 445 } catch (TechnicalException e) {
446 log.error(e,e); 446 log.error(e,e);
447 throw new SQLException(e.getMessage()); 447 throw new SQLException(e.getMessage());
448 } 448 }
449 } 449 }
450 450
451 /** 451 /**
452 * @see java.sql.ResultSet#getInt(java.lang.String) 452 * @see java.sql.ResultSet#getInt(java.lang.String)
453 */ 453 */
454 public int getInt(String columnName) throws SQLException { 454 public int getInt(String columnName) throws SQLException {
455 int columnIndex = this.getColumnIndex(columnName); 455 int columnIndex = this.getColumnIndex(columnName);
456 return this.getInt(columnIndex); 456 return this.getInt(columnIndex);
457 } 457 }
458 458
459 /** 459 /**
460 * @see java.sql.ResultSet#getLong(int) 460 * @see java.sql.ResultSet#getLong(int)
461 */ 461 */
462 public long getLong(int columnIndex) throws SQLException { 462 public long getLong(int columnIndex) throws SQLException {
463 463
464 return 0; 464 return 0;
465 } 465 }
466 466
467 /** 467 /**
468 * @see java.sql.ResultSet#getLong(java.lang.String) 468 * @see java.sql.ResultSet#getLong(java.lang.String)
469 */ 469 */
470 public long getLong(String columnName) throws SQLException { 470 public long getLong(String columnName) throws SQLException {
471 471
472 return 0; 472 return 0;
473 } 473 }
474 474
475 /** 475 /**
476 * @see java.sql.ResultSet#getMetaData() 476 * @see java.sql.ResultSet#getMetaData()
477 */ 477 */
478 public ResultSetMetaData getMetaData() throws SQLException { 478 public ResultSetMetaData getMetaData() throws SQLException {
479 479 log.debug("SDEREsultSet.getMetaData");
480 return null; 480 return new ArcSDEResultSetMetaData(this.mCols);
481 } 481 }
482 482
483 /** 483 /**
484 * @see java.sql.ResultSet#getObject(int) 484 * @see java.sql.ResultSet#getObject(int)
485 */ 485 */
486 public Object getObject(int columnIndex) throws SQLException { 486 public Object getObject(int columnIndex) throws SQLException {
487 try { 487 try {
488 return this.currentRow.getValue(columnIndex-1); 488 return this.currentRow.getValue(columnIndex-1);
489 } catch (TechnicalException e) { 489 } catch (TechnicalException e) {
490 log.error(e,e); 490 log.error(e,e);
491 throw new SQLException(e.getMessage()); 491 throw new SQLException(e.getMessage());
492 } 492 }
493 } 493 }
494 494
495 /** 495 /**
496 * @see java.sql.ResultSet#getObject(java.lang.String) 496 * @see java.sql.ResultSet#getObject(java.lang.String)
497 */ 497 */
498 public Object getObject(String columnName) throws SQLException { 498 public Object getObject(String columnName) throws SQLException {
499 int columnIndex = this.getColumnIndex(columnName); 499 int columnIndex = this.getColumnIndex(columnName);
500 return this.getObject(columnIndex); 500 return this.getObject(columnIndex);
501 } 501 }
502 502
503 /** 503 /**
504 * @see java.sql.ResultSet#getObject(int, java.util.Map) 504 * @see java.sql.ResultSet#getObject(int, java.util.Map)
505 */ 505 */
506 public Object getObject(int i, Map<String, Class<?>> map) 506 public Object getObject(int i, Map<String, Class<?>> map)
507 throws SQLException { 507 throws SQLException {
508 508
509 return null; 509 return null;
510 } 510 }
511 511
512 /** 512 /**
513 * @see java.sql.ResultSet#getObject(java.lang.String, java.util.Map) 513 * @see java.sql.ResultSet#getObject(java.lang.String, java.util.Map)
514 */ 514 */
515 public Object getObject(String colName, Map<String, Class<?>> map) 515 public Object getObject(String colName, Map<String, Class<?>> map)
516 throws SQLException { 516 throws SQLException {
517 517
518 return null; 518 return null;
519 } 519 }
520 520
521 /** 521 /**
522 * @see java.sql.ResultSet#getRef(int) 522 * @see java.sql.ResultSet#getRef(int)
523 */ 523 */
524 public Ref getRef(int i) throws SQLException { 524 public Ref getRef(int i) throws SQLException {
525 525
526 return null; 526 return null;
527 } 527 }
528 528
529 /** 529 /**
530 * @see java.sql.ResultSet#getRef(java.lang.String) 530 * @see java.sql.ResultSet#getRef(java.lang.String)
531 */ 531 */
532 public Ref getRef(String colName) throws SQLException { 532 public Ref getRef(String colName) throws SQLException {
533 533
534 return null; 534 return null;
535 } 535 }
536 536
537 /** 537 /**
538 * @see java.sql.ResultSet#getRow() 538 * @see java.sql.ResultSet#getRow()
539 */ 539 */
540 public int getRow() throws SQLException { 540 public int getRow() throws SQLException {
541 541
542 return 0; 542 return 0;
543 } 543 }
544 544
545 /** 545 /**
546 * @see java.sql.ResultSet#getShort(int) 546 * @see java.sql.ResultSet#getShort(int)
547 */ 547 */
548 public short getShort(int columnIndex) throws SQLException { 548 public short getShort(int columnIndex) throws SQLException {
549 549
550 return 0; 550 return 0;
551 } 551 }
552 552
553 /** 553 /**
554 * @see java.sql.ResultSet#getShort(java.lang.String) 554 * @see java.sql.ResultSet#getShort(java.lang.String)
555 */ 555 */
556 public short getShort(String columnName) throws SQLException { 556 public short getShort(String columnName) throws SQLException {
557 557
558 return 0; 558 return 0;
559 } 559 }
560 560
561 /** 561 /**
562 * @see java.sql.ResultSet#getStatement() 562 * @see java.sql.ResultSet#getStatement()
563 */ 563 */
564 public Statement getStatement() throws SQLException { 564 public Statement getStatement() throws SQLException {
565 565
566 return null; 566 return null;
567 } 567 }
568 568
569 /** 569 /**
570 * @see java.sql.ResultSet#getString(int) 570 * @see java.sql.ResultSet#getString(int)
571 */ 571 */
572 public String getString(int columnIndex) throws SQLException { 572 public String getString(int columnIndex) throws SQLException {
573 573
574 try { 574 try {
575 return this.currentRow.getStringValue(columnIndex-1); 575 return this.currentRow.getStringValue(columnIndex-1);
576 } catch (TechnicalException e) { 576 } catch (TechnicalException e) {
577 log.error(e,e); 577 log.error(e,e);
578 throw new SQLException(e.getMessage()); 578 throw new SQLException(e.getMessage());
579 } 579 }
580 } 580 }
581 581
582 /** 582 /**
583 * @see java.sql.ResultSet#getString(java.lang.String) 583 * @see java.sql.ResultSet#getString(java.lang.String)
584 */ 584 */
585 public String getString(String columnName) throws SQLException { 585 public String getString(String columnName) throws SQLException {
586 int columnIndex = this.getColumnIndex(columnName); 586 int columnIndex = this.getColumnIndex(columnName);
587 return this.getString(columnIndex); 587 return this.getString(columnIndex);
588 } 588 }
589 589
590 /** 590 /**
591 * @see java.sql.ResultSet#getTime(int) 591 * @see java.sql.ResultSet#getTime(int)
592 */ 592 */
593 public Time getTime(int columnIndex) throws SQLException { 593 public Time getTime(int columnIndex) throws SQLException {
594 594
595 return null; 595 return null;
596 } 596 }
597 597
598 /** 598 /**
599 * @see java.sql.ResultSet#getTime(java.lang.String) 599 * @see java.sql.ResultSet#getTime(java.lang.String)
600 */ 600 */
601 public Time getTime(String columnName) throws SQLException { 601 public Time getTime(String columnName) throws SQLException {
602 602
603 return null; 603 return null;
604 } 604 }
605 605
606 /** 606 /**
607 * @see java.sql.ResultSet#getTime(int, java.util.Calendar) 607 * @see java.sql.ResultSet#getTime(int, java.util.Calendar)
608 */ 608 */
609 public Time getTime(int columnIndex, Calendar cal) throws SQLException { 609 public Time getTime(int columnIndex, Calendar cal) throws SQLException {
610 610
611 return null; 611 return null;
612 } 612 }
613 613
614 /** 614 /**
615 * @see java.sql.ResultSet#getTime(java.lang.String, java.util.Calendar) 615 * @see java.sql.ResultSet#getTime(java.lang.String, java.util.Calendar)
616 */ 616 */
617 public Time getTime(String columnName, Calendar cal) throws SQLException { 617 public Time getTime(String columnName, Calendar cal) throws SQLException {
618 618
619 return null; 619 return null;
620 } 620 }
621 621
622 /** 622 /**
623 * @see java.sql.ResultSet#getTimestamp(int) 623 * @see java.sql.ResultSet#getTimestamp(int)
624 */ 624 */
625 public Timestamp getTimestamp(int columnIndex) throws SQLException { 625 public Timestamp getTimestamp(int columnIndex) throws SQLException {
626 626
627 return null; 627 return null;
628 } 628 }
629 629
630 /** 630 /**
631 * @see java.sql.ResultSet#getTimestamp(java.lang.String) 631 * @see java.sql.ResultSet#getTimestamp(java.lang.String)
632 */ 632 */
633 public Timestamp getTimestamp(String columnName) throws SQLException { 633 public Timestamp getTimestamp(String columnName) throws SQLException {
634 634
635 return null; 635 return null;
636 } 636 }
637 637
638 /** 638 /**
639 * @see java.sql.ResultSet#getTimestamp(int, java.util.Calendar) 639 * @see java.sql.ResultSet#getTimestamp(int, java.util.Calendar)
640 */ 640 */
641 public Timestamp getTimestamp(int columnIndex, Calendar cal) 641 public Timestamp getTimestamp(int columnIndex, Calendar cal)
642 throws SQLException { 642 throws SQLException {
643 643
644 return null; 644 return null;
645 } 645 }
646 646
647 /** 647 /**
648 * @see java.sql.ResultSet#getTimestamp(java.lang.String, 648 * @see java.sql.ResultSet#getTimestamp(java.lang.String,
649 * java.util.Calendar) 649 * java.util.Calendar)
650 */ 650 */
651 public Timestamp getTimestamp(String columnName, Calendar cal) 651 public Timestamp getTimestamp(String columnName, Calendar cal)
652 throws SQLException { 652 throws SQLException {
653 653
654 return null; 654 return null;
655 } 655 }
656 656
657 /** 657 /**
658 * @see java.sql.ResultSet#getType() 658 * @see java.sql.ResultSet#getType()
659 */ 659 */
660 public int getType() throws SQLException { 660 public int getType() throws SQLException {
661 661
662 return 0; 662 return 0;
663 } 663 }
664 664
665 /** 665 /**
666 * @see java.sql.ResultSet#getURL(int) 666 * @see java.sql.ResultSet#getURL(int)
667 */ 667 */
668 public URL getURL(int columnIndex) throws SQLException { 668 public URL getURL(int columnIndex) throws SQLException {
669 669
670 return null; 670 return null;
671 } 671 }
672 672
673 /** 673 /**
674 * @see java.sql.ResultSet#getURL(java.lang.String) 674 * @see java.sql.ResultSet#getURL(java.lang.String)
675 */ 675 */
676 public URL getURL(String columnName) throws SQLException { 676 public URL getURL(String columnName) throws SQLException {
677 677
678 return null; 678 return null;
679 } 679 }
680 680
681 /** 681 /**
682 * @see java.sql.ResultSet#getUnicodeStream(int) 682 * @see java.sql.ResultSet#getUnicodeStream(int)
683 */ 683 */
684 public InputStream getUnicodeStream(int columnIndex) throws SQLException { 684 public InputStream getUnicodeStream(int columnIndex) throws SQLException {
685 685
686 return null; 686 return null;
687 } 687 }
688 688
689 /** 689 /**
690 * @see java.sql.ResultSet#getUnicodeStream(java.lang.String) 690 * @see java.sql.ResultSet#getUnicodeStream(java.lang.String)
691 */ 691 */
692 public InputStream getUnicodeStream(String columnName) throws SQLException { 692 public InputStream getUnicodeStream(String columnName) throws SQLException {
693 693
694 return null; 694 return null;
695 } 695 }
696 696
697 /** 697 /**
698 * @see java.sql.ResultSet#getWarnings() 698 * @see java.sql.ResultSet#getWarnings()
699 */ 699 */
700 public SQLWarning getWarnings() throws SQLException { 700 public SQLWarning getWarnings() throws SQLException {
701 701
702 return null; 702 return null;
703 } 703 }
704 704
705 /** 705 /**
706 * @see java.sql.ResultSet#insertRow() 706 * @see java.sql.ResultSet#insertRow()
707 */ 707 */
708 public void insertRow() throws SQLException { 708 public void insertRow() throws SQLException {
709 } 709 }
710 710
711 /** 711 /**
712 * @see java.sql.ResultSet#isAfterLast() 712 * @see java.sql.ResultSet#isAfterLast()
713 */ 713 */
714 public boolean isAfterLast() throws SQLException { 714 public boolean isAfterLast() throws SQLException {
715 715
716 return false; 716 return false;
717 } 717 }
718 718
719 /** 719 /**
720 * @see java.sql.ResultSet#isBeforeFirst() 720 * @see java.sql.ResultSet#isBeforeFirst()
721 */ 721 */
722 public boolean isBeforeFirst() throws SQLException { 722 public boolean isBeforeFirst() throws SQLException {
723 723
724 return false; 724 return false;
725 } 725 }
726 726
727 /** 727 /**
728 * @see java.sql.ResultSet#isFirst() 728 * @see java.sql.ResultSet#isFirst()
729 */ 729 */
730 public boolean isFirst() throws SQLException { 730 public boolean isFirst() throws SQLException {
731 731
732 return false; 732 return false;
733 } 733 }
734 734
735 /** 735 /**
736 * @see java.sql.ResultSet#isLast() 736 * @see java.sql.ResultSet#isLast()
737 */ 737 */
738 public boolean isLast() throws SQLException { 738 public boolean isLast() throws SQLException {
739 739
740 return false; 740 return false;
741 } 741 }
742 742
743 /** 743 /**
744 * @see java.sql.ResultSet#last() 744 * @see java.sql.ResultSet#last()
745 */ 745 */
746 public boolean last() throws SQLException { 746 public boolean last() throws SQLException {
747 747
748 return false; 748 return false;
749 } 749 }
750 750
751 /** 751 /**
752 * @see java.sql.ResultSet#moveToCurrentRow() 752 * @see java.sql.ResultSet#moveToCurrentRow()
753 */ 753 */
754 public void moveToCurrentRow() throws SQLException { 754 public void moveToCurrentRow() throws SQLException {
755 } 755 }
756 756
757 /** 757 /**
758 * @see java.sql.ResultSet#moveToInsertRow() 758 * @see java.sql.ResultSet#moveToInsertRow()
759 */ 759 */
760 public void moveToInsertRow() throws SQLException { 760 public void moveToInsertRow() throws SQLException {
761 } 761 }
762 762
763 /** 763 /**
764 * @see java.sql.ResultSet#next() 764 * @see java.sql.ResultSet#next()
765 */ 765 */
766 public boolean next() throws SQLException { 766 public boolean next() throws SQLException {
767 767
768 boolean next = this.mRows.size() > this.cursor; 768 boolean next = this.mRows.size() > this.cursor;
769 if (next){ 769 if (next){
770 log.debug("Zeile "+(cursor+1)+" von "+this.mRows.size()+" wird angesteuert."); 770 log.debug("Zeile "+(cursor+1)+" von "+this.mRows.size()+" wird angesteuert.");
771 this.currentRow = this.mRows.get(this.cursor); 771 this.currentRow = this.mRows.get(this.cursor);
772 this.cursor++; 772 this.cursor++;
773 }else{ 773 }else{
774 this.currentRow = null; 774 this.currentRow = null;
775 } 775 }
776 return next; 776 return next;
777 } 777 }
778 778
779 /** 779 /**
780 * @see java.sql.ResultSet#previous() 780 * @see java.sql.ResultSet#previous()
781 */ 781 */
782 public boolean previous() throws SQLException { 782 public boolean previous() throws SQLException {
783 783
784 return false; 784 return false;
785 } 785 }
786 786
787 /** 787 /**
788 * @see java.sql.ResultSet#refreshRow() 788 * @see java.sql.ResultSet#refreshRow()
789 */ 789 */
790 public void refreshRow() throws SQLException { 790 public void refreshRow() throws SQLException {
791 } 791 }
792 792
793 /** 793 /**
794 * @see java.sql.ResultSet#relative(int) 794 * @see java.sql.ResultSet#relative(int)
795 */ 795 */
796 public boolean relative(int rows) throws SQLException { 796 public boolean relative(int rows) throws SQLException {
797 797
798 return false; 798 return false;
799 } 799 }
800 800
801 /** 801 /**
802 * @see java.sql.ResultSet#rowDeleted() 802 * @see java.sql.ResultSet#rowDeleted()
803 */ 803 */
804 public boolean rowDeleted() throws SQLException { 804 public boolean rowDeleted() throws SQLException {
805 805
806 return false; 806 return false;
807 } 807 }
808 808
809 /** 809 /**
810 * @see java.sql.ResultSet#rowInserted() 810 * @see java.sql.ResultSet#rowInserted()
811 */ 811 */
812 public boolean rowInserted() throws SQLException { 812 public boolean rowInserted() throws SQLException {
813 813
814 return false; 814 return false;
815 } 815 }
816 816
817 /** 817 /**
818 * @see java.sql.ResultSet#rowUpdated() 818 * @see java.sql.ResultSet#rowUpdated()
819 */ 819 */
820 public boolean rowUpdated() throws SQLException { 820 public boolean rowUpdated() throws SQLException {
821 821
822 return false; 822 return false;
823 } 823 }
824 824
825 /** 825 /**
826 * @see java.sql.ResultSet#setFetchDirection(int) 826 * @see java.sql.ResultSet#setFetchDirection(int)
827 */ 827 */
828 public void setFetchDirection(int direction) throws SQLException { 828 public void setFetchDirection(int direction) throws SQLException {
829 } 829 }
830 830
831 /** 831 /**
832 * @see java.sql.ResultSet#setFetchSize(int) 832 * @see java.sql.ResultSet#setFetchSize(int)
833 */ 833 */
834 public void setFetchSize(int rows) throws SQLException { 834 public void setFetchSize(int rows) throws SQLException {
835 } 835 }
836 836
837 /** 837 /**
838 * @see java.sql.ResultSet#updateArray(int, java.sql.Array) 838 * @see java.sql.ResultSet#updateArray(int, java.sql.Array)
839 */ 839 */
840 public void updateArray(int columnIndex, Array x) throws SQLException { 840 public void updateArray(int columnIndex, Array x) throws SQLException {
841 } 841 }
842 842
843 /** 843 /**
844 * @see java.sql.ResultSet#updateArray(java.lang.String, java.sql.Array) 844 * @see java.sql.ResultSet#updateArray(java.lang.String, java.sql.Array)
845 */ 845 */
846 public void updateArray(String columnName, Array x) throws SQLException { 846 public void updateArray(String columnName, Array x) throws SQLException {
847 } 847 }
848 848
849 /** 849 /**
850 * @see java.sql.ResultSet#updateAsciiStream(int, java.io.InputStream, int) 850 * @see java.sql.ResultSet#updateAsciiStream(int, java.io.InputStream, int)
851 */ 851 */
852 public void updateAsciiStream(int columnIndex, InputStream x, int length) 852 public void updateAsciiStream(int columnIndex, InputStream x, int length)
853 throws SQLException { 853 throws SQLException {
854 } 854 }
855 855
856 /** 856 /**
857 * @see java.sql.ResultSet#updateAsciiStream(java.lang.String, 857 * @see java.sql.ResultSet#updateAsciiStream(java.lang.String,
858 * java.io.InputStream, int) 858 * java.io.InputStream, int)
859 */ 859 */
860 public void updateAsciiStream(String columnName, InputStream x, int length) 860 public void updateAsciiStream(String columnName, InputStream x, int length)
861 throws SQLException { 861 throws SQLException {
862 } 862 }
863 863
864 /** 864 /**
865 * @see java.sql.ResultSet#updateBigDecimal(int, java.math.BigDecimal) 865 * @see java.sql.ResultSet#updateBigDecimal(int, java.math.BigDecimal)
866 */ 866 */
867 public void updateBigDecimal(int columnIndex, BigDecimal x) 867 public void updateBigDecimal(int columnIndex, BigDecimal x)
868 throws SQLException { 868 throws SQLException {
869 } 869 }
870 870
871 /** 871 /**
872 * @see java.sql.ResultSet#updateBigDecimal(java.lang.String, 872 * @see java.sql.ResultSet#updateBigDecimal(java.lang.String,
873 * java.math.BigDecimal) 873 * java.math.BigDecimal)
874 */ 874 */
875 public void updateBigDecimal(String columnName, BigDecimal x) 875 public void updateBigDecimal(String columnName, BigDecimal x)
876 throws SQLException { 876 throws SQLException {
877 } 877 }
878 878
879 /** 879 /**
880 * @see java.sql.ResultSet#updateBinaryStream(int, java.io.InputStream, int) 880 * @see java.sql.ResultSet#updateBinaryStream(int, java.io.InputStream, int)
881 */ 881 */
882 public void updateBinaryStream(int columnIndex, InputStream x, int length) 882 public void updateBinaryStream(int columnIndex, InputStream x, int length)
883 throws SQLException { 883 throws SQLException {
884 } 884 }
885 885
886 /** 886 /**
887 * @see java.sql.ResultSet#updateBinaryStream(java.lang.String, 887 * @see java.sql.ResultSet#updateBinaryStream(java.lang.String,
888 * java.io.InputStream, int) 888 * java.io.InputStream, int)
889 */ 889 */
890 public void updateBinaryStream(String columnName, InputStream x, int length) 890 public void updateBinaryStream(String columnName, InputStream x, int length)
891 throws SQLException { 891 throws SQLException {
892 } 892 }
893 893
894 /** 894 /**
895 * @see java.sql.ResultSet#updateBlob(int, java.sql.Blob) 895 * @see java.sql.ResultSet#updateBlob(int, java.sql.Blob)
896 */ 896 */
897 public void updateBlob(int columnIndex, Blob x) throws SQLException { 897 public void updateBlob(int columnIndex, Blob x) throws SQLException {
898 } 898 }
899 899
900 /** 900 /**
901 * @see java.sql.ResultSet#updateBlob(java.lang.String, java.sql.Blob) 901 * @see java.sql.ResultSet#updateBlob(java.lang.String, java.sql.Blob)
902 */ 902 */
903 public void updateBlob(String columnName, Blob x) throws SQLException { 903 public void updateBlob(String columnName, Blob x) throws SQLException {
904 } 904 }
905 905
906 /** 906 /**
907 * @see java.sql.ResultSet#updateBoolean(int, boolean) 907 * @see java.sql.ResultSet#updateBoolean(int, boolean)
908 */ 908 */
909 public void updateBoolean(int columnIndex, boolean x) throws SQLException { 909 public void updateBoolean(int columnIndex, boolean x) throws SQLException {
910 } 910 }
911 911
912 /** 912 /**
913 * @see java.sql.ResultSet#updateBoolean(java.lang.String, boolean) 913 * @see java.sql.ResultSet#updateBoolean(java.lang.String, boolean)
914 */ 914 */
915 public void updateBoolean(String columnName, boolean x) throws SQLException { 915 public void updateBoolean(String columnName, boolean x) throws SQLException {
916 } 916 }
917 917
918 /** 918 /**
919 * @see java.sql.ResultSet#updateByte(int, byte) 919 * @see java.sql.ResultSet#updateByte(int, byte)
920 */ 920 */
921 public void updateByte(int columnIndex, byte x) throws SQLException { 921 public void updateByte(int columnIndex, byte x) throws SQLException {
922 } 922 }
923 923
924 /** 924 /**
925 * @see java.sql.ResultSet#updateByte(java.lang.String, byte) 925 * @see java.sql.ResultSet#updateByte(java.lang.String, byte)
926 */ 926 */
927 public void updateByte(String columnName, byte x) throws SQLException { 927 public void updateByte(String columnName, byte x) throws SQLException {
928 } 928 }
929 929
930 /** 930 /**
931 * @see java.sql.ResultSet#updateBytes(int, byte[]) 931 * @see java.sql.ResultSet#updateBytes(int, byte[])
932 */ 932 */
933 public void updateBytes(int columnIndex, byte[] x) throws SQLException { 933 public void updateBytes(int columnIndex, byte[] x) throws SQLException {
934 } 934 }
935 935
936 /** 936 /**
937 * @see java.sql.ResultSet#updateBytes(java.lang.String, byte[]) 937 * @see java.sql.ResultSet#updateBytes(java.lang.String, byte[])
938 */ 938 */
939 public void updateBytes(String columnName, byte[] x) throws SQLException { 939 public void updateBytes(String columnName, byte[] x) throws SQLException {
940 } 940 }
941 941
942 /** 942 /**
943 * @see java.sql.ResultSet#updateCharacterStream(int, java.io.Reader, int) 943 * @see java.sql.ResultSet#updateCharacterStream(int, java.io.Reader, int)
944 */ 944 */
945 public void updateCharacterStream(int columnIndex, Reader x, int length) 945 public void updateCharacterStream(int columnIndex, Reader x, int length)
946 throws SQLException { 946 throws SQLException {
947 } 947 }
948 948
949 /** 949 /**
950 * @see java.sql.ResultSet#updateCharacterStream(java.lang.String, 950 * @see java.sql.ResultSet#updateCharacterStream(java.lang.String,
951 * java.io.Reader, int) 951 * java.io.Reader, int)
952 */ 952 */
953 public void updateCharacterStream(String columnName, Reader reader, 953 public void updateCharacterStream(String columnName, Reader reader,
954 int length) throws SQLException { 954 int length) throws SQLException {
955 } 955 }
956 956
957 /** 957 /**
958 * @see java.sql.ResultSet#updateClob(int, java.sql.Clob) 958 * @see java.sql.ResultSet#updateClob(int, java.sql.Clob)
959 */ 959 */
960 public void updateClob(int columnIndex, Clob x) throws SQLException { 960 public void updateClob(int columnIndex, Clob x) throws SQLException {
961 } 961 }
962 962
963 /** 963 /**
964 * @see java.sql.ResultSet#updateClob(java.lang.String, java.sql.Clob) 964 * @see java.sql.ResultSet#updateClob(java.lang.String, java.sql.Clob)
965 */ 965 */
966 public void updateClob(String columnName, Clob x) throws SQLException { 966 public void updateClob(String columnName, Clob x) throws SQLException {
967 } 967 }
968 968
969 /** 969 /**
970 * @see java.sql.ResultSet#updateDate(int, java.sql.Date) 970 * @see java.sql.ResultSet#updateDate(int, java.sql.Date)
971 */ 971 */
972 public void updateDate(int columnIndex, Date x) throws SQLException { 972 public void updateDate(int columnIndex, Date x) throws SQLException {
973 } 973 }
974 974
975 /** 975 /**
976 * @see java.sql.ResultSet#updateDate(java.lang.String, java.sql.Date) 976 * @see java.sql.ResultSet#updateDate(java.lang.String, java.sql.Date)
977 */ 977 */
978 public void updateDate(String columnName, Date x) throws SQLException { 978 public void updateDate(String columnName, Date x) throws SQLException {
979 } 979 }
980 980
981 /** 981 /**
982 * @see java.sql.ResultSet#updateDouble(int, double) 982 * @see java.sql.ResultSet#updateDouble(int, double)
983 */ 983 */
984 public void updateDouble(int columnIndex, double x) throws SQLException { 984 public void updateDouble(int columnIndex, double x) throws SQLException {
985 } 985 }
986 986
987 /** 987 /**
988 * @see java.sql.ResultSet#updateDouble(java.lang.String, double) 988 * @see java.sql.ResultSet#updateDouble(java.lang.String, double)
989 */ 989 */
990 public void updateDouble(String columnName, double x) throws SQLException { 990 public void updateDouble(String columnName, double x) throws SQLException {
991 } 991 }
992 992
993 /** 993 /**
994 * @see java.sql.ResultSet#updateFloat(int, float) 994 * @see java.sql.ResultSet#updateFloat(int, float)
995 */ 995 */
996 public void updateFloat(int columnIndex, float x) throws SQLException { 996 public void updateFloat(int columnIndex, float x) throws SQLException {
997 } 997 }
998 998
999 /** 999 /**
1000 * @see java.sql.ResultSet#updateFloat(java.lang.String, float) 1000 * @see java.sql.ResultSet#updateFloat(java.lang.String, float)
1001 */ 1001 */
1002 public void updateFloat(String columnName, float x) throws SQLException { 1002 public void updateFloat(String columnName, float x) throws SQLException {
1003 } 1003 }
1004 1004
1005 /** 1005 /**
1006 * @see java.sql.ResultSet#updateInt(int, int) 1006 * @see java.sql.ResultSet#updateInt(int, int)
1007 */ 1007 */
1008 public void updateInt(int columnIndex, int x) throws SQLException { 1008 public void updateInt(int columnIndex, int x) throws SQLException {
1009 } 1009 }
1010 1010
1011 /** 1011 /**
1012 * @see java.sql.ResultSet#updateInt(java.lang.String, int) 1012 * @see java.sql.ResultSet#updateInt(java.lang.String, int)
1013 */ 1013 */
1014 public void updateInt(String columnName, int x) throws SQLException { 1014 public void updateInt(String columnName, int x) throws SQLException {
1015 } 1015 }
1016 1016
1017 /** 1017 /**
1018 * @see java.sql.ResultSet#updateLong(int, long) 1018 * @see java.sql.ResultSet#updateLong(int, long)
1019 */ 1019 */
1020 public void updateLong(int columnIndex, long x) throws SQLException { 1020 public void updateLong(int columnIndex, long x) throws SQLException {
1021 } 1021 }
1022 1022
1023 /** 1023 /**
1024 * @see java.sql.ResultSet#updateLong(java.lang.String, long) 1024 * @see java.sql.ResultSet#updateLong(java.lang.String, long)
1025 */ 1025 */
1026 public void updateLong(String columnName, long x) throws SQLException { 1026 public void updateLong(String columnName, long x) throws SQLException {
1027 } 1027 }
1028 1028
1029 /** 1029 /**
1030 * @see java.sql.ResultSet#updateNull(int) 1030 * @see java.sql.ResultSet#updateNull(int)
1031 */ 1031 */
1032 public void updateNull(int columnIndex) throws SQLException { 1032 public void updateNull(int columnIndex) throws SQLException {
1033 } 1033 }
1034 1034
1035 /** 1035 /**
1036 * @see java.sql.ResultSet#updateNull(java.lang.String) 1036 * @see java.sql.ResultSet#updateNull(java.lang.String)
1037 */ 1037 */
1038 public void updateNull(String columnName) throws SQLException { 1038 public void updateNull(String columnName) throws SQLException {
1039 } 1039 }
1040 1040
1041 /** 1041 /**
1042 * @see java.sql.ResultSet#updateObject(int, java.lang.Object) 1042 * @see java.sql.ResultSet#updateObject(int, java.lang.Object)
1043 */ 1043 */
1044 public void updateObject(int columnIndex, Object x) throws SQLException { 1044 public void updateObject(int columnIndex, Object x) throws SQLException {
1045 } 1045 }
1046 1046
1047 /** 1047 /**
1048 * @see java.sql.ResultSet#updateObject(java.lang.String, java.lang.Object) 1048 * @see java.sql.ResultSet#updateObject(java.lang.String, java.lang.Object)
1049 */ 1049 */
1050 public void updateObject(String columnName, Object x) throws SQLException { 1050 public void updateObject(String columnName, Object x) throws SQLException {
1051 } 1051 }
1052 1052
1053 /** 1053 /**
1054 * @see java.sql.ResultSet#updateObject(int, java.lang.Object, int) 1054 * @see java.sql.ResultSet#updateObject(int, java.lang.Object, int)
1055 */ 1055 */
1056 public void updateObject(int columnIndex, Object x, int scale) 1056 public void updateObject(int columnIndex, Object x, int scale)
1057 throws SQLException { 1057 throws SQLException {
1058 } 1058 }
1059 1059
1060 /** 1060 /**
1061 * @see java.sql.ResultSet#updateObject(java.lang.String, java.lang.Object, 1061 * @see java.sql.ResultSet#updateObject(java.lang.String, java.lang.Object,
1062 * int) 1062 * int)
1063 */ 1063 */
1064 public void updateObject(String columnName, Object x, int scale) 1064 public void updateObject(String columnName, Object x, int scale)
1065 throws SQLException { 1065 throws SQLException {
1066 } 1066 }
1067 1067
1068 /** 1068 /**
1069 * @see java.sql.ResultSet#updateRef(int, java.sql.Ref) 1069 * @see java.sql.ResultSet#updateRef(int, java.sql.Ref)
1070 */ 1070 */
1071 public void updateRef(int columnIndex, Ref x) throws SQLException { 1071 public void updateRef(int columnIndex, Ref x) throws SQLException {
1072 } 1072 }
1073 1073
1074 /** 1074 /**
1075 * @see java.sql.ResultSet#updateRef(java.lang.String, java.sql.Ref) 1075 * @see java.sql.ResultSet#updateRef(java.lang.String, java.sql.Ref)
1076 */ 1076 */
1077 public void updateRef(String columnName, Ref x) throws SQLException { 1077 public void updateRef(String columnName, Ref x) throws SQLException {
1078 } 1078 }
1079 1079
1080 /** 1080 /**
1081 * @see java.sql.ResultSet#updateRow() 1081 * @see java.sql.ResultSet#updateRow()
1082 */ 1082 */
1083 public void updateRow() throws SQLException { 1083 public void updateRow() throws SQLException {
1084 } 1084 }
1085 1085
1086 /** 1086 /**
1087 * @see java.sql.ResultSet#updateShort(int, short) 1087 * @see java.sql.ResultSet#updateShort(int, short)
1088 */ 1088 */
1089 public void updateShort(int columnIndex, short x) throws SQLException { 1089 public void updateShort(int columnIndex, short x) throws SQLException {
1090 } 1090 }
1091 1091
1092 /** 1092 /**
1093 * @see java.sql.ResultSet#updateShort(java.lang.String, short) 1093 * @see java.sql.ResultSet#updateShort(java.lang.String, short)
1094 */ 1094 */
1095 public void updateShort(String columnName, short x) throws SQLException { 1095 public void updateShort(String columnName, short x) throws SQLException {
1096 } 1096 }
1097 1097
1098 /** 1098 /**
1099 * @see java.sql.ResultSet#updateString(int, java.lang.String) 1099 * @see java.sql.ResultSet#updateString(int, java.lang.String)
1100 */ 1100 */
1101 public void updateString(int columnIndex, String x) throws SQLException { 1101 public void updateString(int columnIndex, String x) throws SQLException {
1102 } 1102 }
1103 1103
1104 /** 1104 /**
1105 * @see java.sql.ResultSet#updateString(java.lang.String, java.lang.String) 1105 * @see java.sql.ResultSet#updateString(java.lang.String, java.lang.String)
1106 */ 1106 */
1107 public void updateString(String columnName, String x) throws SQLException { 1107 public void updateString(String columnName, String x) throws SQLException {
1108 } 1108 }
1109 1109
1110 /** 1110 /**
1111 * @see java.sql.ResultSet#updateTime(int, java.sql.Time) 1111 * @see java.sql.ResultSet#updateTime(int, java.sql.Time)
1112 */ 1112 */
1113 public void updateTime(int columnIndex, Time x) throws SQLException { 1113 public void updateTime(int columnIndex, Time x) throws SQLException {
1114 } 1114 }
1115 1115
1116 /** 1116 /**
1117 * @see java.sql.ResultSet#updateTime(java.lang.String, java.sql.Time) 1117 * @see java.sql.ResultSet#updateTime(java.lang.String, java.sql.Time)
1118 */ 1118 */
1119 public void updateTime(String columnName, Time x) throws SQLException { 1119 public void updateTime(String columnName, Time x) throws SQLException {
1120 } 1120 }
1121 1121
1122 /** 1122 /**
1123 * @see java.sql.ResultSet#updateTimestamp(int, java.sql.Timestamp) 1123 * @see java.sql.ResultSet#updateTimestamp(int, java.sql.Timestamp)
1124 */ 1124 */
1125 public void updateTimestamp(int columnIndex, Timestamp x) 1125 public void updateTimestamp(int columnIndex, Timestamp x)
1126 throws SQLException { 1126 throws SQLException {
1127 } 1127 }
1128 1128
1129 /** 1129 /**
1130 * @see java.sql.ResultSet#updateTimestamp(java.lang.String, 1130 * @see java.sql.ResultSet#updateTimestamp(java.lang.String,
1131 * java.sql.Timestamp) 1131 * java.sql.Timestamp)
1132 */ 1132 */
1133 public void updateTimestamp(String columnName, Timestamp x) 1133 public void updateTimestamp(String columnName, Timestamp x)
1134 throws SQLException { 1134 throws SQLException {
1135 } 1135 }
1136 1136
1137 /** 1137 /**
1138 * @see java.sql.ResultSet#wasNull() 1138 * @see java.sql.ResultSet#wasNull()
1139 */ 1139 */
1140 public boolean wasNull() throws SQLException { 1140 public boolean wasNull() throws SQLException {
1141 1141
1142 return false; 1142 return false;
1143 } 1143 }
1144 1144
1145 1145
1146 private int getColumnIndex(String columnName) throws SQLException{ 1146 private int getColumnIndex(String columnName) throws SQLException{
1147 //TODO: Es gibt effizentere Lösungen. Hier noch mal über HashMap nachdenken 1147 //TODO: Es gibt effizentere Lösungen. Hier noch mal über HashMap nachdenken
1148 for (int i = 0 ; i < this.mCols.size();i++){ 1148 for (int i = 0 ; i < this.mCols.size();i++){
1149 if(this.mCols.get(i).getName().equalsIgnoreCase(columnName)){ 1149 if(this.mCols.get(i).getName().equalsIgnoreCase(columnName)){
1150 return i +1; // PLUS 1 da SQL-Cursor 1 nasiert sind 1150 return i +1; // PLUS 1 da SQL-Cursor 1 nasiert sind
1151 } 1151 }
1152 } 1152 }
1153 throw new SQLException("Column "+columnName+" does not exist in ResulSet"); 1153 throw new SQLException("Column "+columnName+" does not exist in ResulSet");
1154 1154 }
1155 }
1156 1155
1157 } 1156 }

http://dive4elements.wald.intevation.org