1 16 package com.ibatis.sqlmap.engine.type; 17 18 import java.io.InputStream ; 19 import java.io.Reader ; 20 import java.math.BigDecimal ; 21 import java.net.URL ; 22 import java.sql.*; 23 import java.util.Calendar ; 24 import java.util.Map ; 25 26 29 public class CallableStatementResultSet implements ResultSet { 30 31 private CallableStatement cs; 32 33 38 public CallableStatementResultSet(CallableStatement cs) { 39 this.cs = cs; 40 } 41 42 public boolean absolute(int row) throws SQLException { 43 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 44 } 45 46 public void afterLast() throws SQLException { 47 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 48 } 49 50 public void beforeFirst() throws SQLException { 51 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 52 } 53 54 public void cancelRowUpdates() throws SQLException { 55 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 56 } 57 58 public void clearWarnings() throws SQLException { 59 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 60 } 61 62 public void close() throws SQLException { 63 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 64 } 65 66 public void deleteRow() throws SQLException { 67 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 68 } 69 70 public int findColumn(String columnName) throws SQLException { 71 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 72 } 73 74 public boolean first() throws SQLException { 75 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 76 } 77 78 public Array getArray(String colName) throws SQLException { 79 return cs.getArray(colName); 80 } 81 82 public Array getArray(int i) throws SQLException { 83 return cs.getArray(i); 84 } 85 86 public InputStream getAsciiStream(int columnIndex) throws SQLException { 87 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 88 } 89 90 public InputStream getAsciiStream(String columnName) throws SQLException { 91 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 92 } 93 94 public BigDecimal getBigDecimal(int columnIndex) throws SQLException { 95 return cs.getBigDecimal(columnIndex); 96 } 97 98 public BigDecimal getBigDecimal(int columnIndex, int scale) throws SQLException { 99 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 100 } 101 102 public BigDecimal getBigDecimal(String columnName) throws SQLException { 103 return cs.getBigDecimal(columnName); 104 } 105 106 public BigDecimal getBigDecimal(String columnName, int scale) throws SQLException { 107 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 108 } 109 110 public InputStream getBinaryStream(int columnIndex) throws SQLException { 111 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 112 } 113 114 public InputStream getBinaryStream(String columnName) throws SQLException { 115 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 116 } 117 118 public Blob getBlob(String colName) throws SQLException { 119 return cs.getBlob(colName); 120 } 121 122 public Blob getBlob(int i) throws SQLException { 123 return cs.getBlob(i); 124 } 125 126 public boolean getBoolean(int columnIndex) throws SQLException { 127 return cs.getBoolean(columnIndex); 128 } 129 130 public boolean getBoolean(String columnName) throws SQLException { 131 return cs.getBoolean(columnName); 132 } 133 134 public byte getByte(int columnIndex) throws SQLException { 135 return cs.getByte(columnIndex); 136 } 137 138 public byte getByte(String columnName) throws SQLException { 139 return cs.getByte(columnName); 140 } 141 142 public byte[] getBytes(int columnIndex) throws SQLException { 143 return cs.getBytes(columnIndex); 144 } 145 146 public byte[] getBytes(String columnName) throws SQLException { 147 return cs.getBytes(columnName); 148 } 149 150 public Reader getCharacterStream(int columnIndex) throws SQLException { 151 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 152 } 153 154 public Reader getCharacterStream(String columnName) throws SQLException { 155 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 156 } 157 158 public Clob getClob(String colName) throws SQLException { 159 return cs.getClob(colName); 160 } 161 162 public Clob getClob(int i) throws SQLException { 163 return cs.getClob(i); 164 } 165 166 public int getConcurrency() throws SQLException { 167 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 168 } 169 170 public String getCursorName() throws SQLException { 171 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 172 } 173 174 public Date getDate(int columnIndex) throws SQLException { 175 return cs.getDate(columnIndex); 176 } 177 178 public Date getDate(int columnIndex, Calendar cal) throws SQLException { 179 return cs.getDate(columnIndex, cal); 180 } 181 182 public Date getDate(String columnName) throws SQLException { 183 return cs.getDate(columnName); 184 } 185 186 public Date getDate(String columnName, Calendar cal) throws SQLException { 187 return cs.getDate(columnName, cal); 188 } 189 190 public double getDouble(int columnIndex) throws SQLException { 191 return cs.getDouble(columnIndex); 192 } 193 194 public double getDouble(String columnName) throws SQLException { 195 return cs.getDouble(columnName); 196 } 197 198 public int getFetchDirection() throws SQLException { 199 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 200 } 201 202 public int getFetchSize() throws SQLException { 203 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 204 } 205 206 public float getFloat(int columnIndex) throws SQLException { 207 return cs.getFloat(columnIndex); 208 } 209 210 public float getFloat(String columnName) throws SQLException { 211 return cs.getFloat(columnName); 212 } 213 214 public int getInt(int columnIndex) throws SQLException { 215 return cs.getInt(columnIndex); 216 } 217 218 public int getInt(String columnName) throws SQLException { 219 return cs.getInt(columnName); 220 } 221 222 public long getLong(int columnIndex) throws SQLException { 223 return cs.getLong(columnIndex); 224 } 225 226 public long getLong(String columnName) throws SQLException { 227 return cs.getLong(columnName); 228 } 229 230 public ResultSetMetaData getMetaData() throws SQLException { 231 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 232 } 233 234 public Object getObject(String colName, Map map) throws SQLException { 235 return cs.getObject(colName, map); 236 } 237 238 public Object getObject(int columnIndex) throws SQLException { 239 return cs.getObject(columnIndex); 240 } 241 242 public Object getObject(String columnName) throws SQLException { 243 return cs.getObject(columnName); 244 } 245 246 public Object getObject(int i, Map map) throws SQLException { 247 return cs.getObject(i, map); 248 } 249 250 public Ref getRef(String colName) throws SQLException { 251 return cs.getRef(colName); 252 } 253 254 public Ref getRef(int i) throws SQLException { 255 return cs.getRef(i); 256 } 257 258 public int getRow() throws SQLException { 259 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 260 } 261 262 public short getShort(int columnIndex) throws SQLException { 263 return cs.getShort(columnIndex); 264 } 265 266 public short getShort(String columnName) throws SQLException { 267 return cs.getShort(columnName); 268 } 269 270 public Statement getStatement() throws SQLException { 271 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 272 } 273 274 public String getString(int columnIndex) throws SQLException { 275 return cs.getString(columnIndex); 276 } 277 278 public String getString(String columnName) throws SQLException { 279 return cs.getString(columnName); 280 } 281 282 public Time getTime(int columnIndex) throws SQLException { 283 return cs.getTime(columnIndex); 284 } 285 286 public Time getTime(int columnIndex, Calendar cal) throws SQLException { 287 return cs.getTime(columnIndex, cal); 288 } 289 290 public Time getTime(String columnName) throws SQLException { 291 return cs.getTime(columnName); 292 } 293 294 public Time getTime(String columnName, Calendar cal) throws SQLException { 295 return cs.getTime(columnName, cal); 296 } 297 298 public Timestamp getTimestamp(int columnIndex) throws SQLException { 299 return cs.getTimestamp(columnIndex); 300 } 301 302 public Timestamp getTimestamp(int columnIndex, Calendar cal) throws SQLException { 303 return cs.getTimestamp(columnIndex, cal); 304 } 305 306 public Timestamp getTimestamp(String columnName) throws SQLException { 307 return cs.getTimestamp(columnName); 308 } 309 310 public Timestamp getTimestamp(String columnName, Calendar cal) throws SQLException { 311 return cs.getTimestamp(columnName, cal); 312 } 313 314 public int getType() throws SQLException { 315 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 316 } 317 318 public InputStream getUnicodeStream(int columnIndex) throws SQLException { 319 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 320 } 321 322 public InputStream getUnicodeStream(String columnName) throws SQLException { 323 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 324 } 325 326 public URL getURL(int columnIndex) throws SQLException { 327 return cs.getURL(columnIndex); 328 } 329 330 public URL getURL(String columnName) throws SQLException { 331 return cs.getURL(columnName); 332 } 333 334 public SQLWarning getWarnings() throws SQLException { 335 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 336 } 337 338 public void insertRow() throws SQLException { 339 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 340 } 341 342 public boolean isAfterLast() throws SQLException { 343 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 344 } 345 346 public boolean isBeforeFirst() throws SQLException { 347 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 348 } 349 350 public boolean isFirst() throws SQLException { 351 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 352 } 353 354 public boolean isLast() throws SQLException { 355 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 356 } 357 358 public boolean last() throws SQLException { 359 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 360 } 361 362 public void moveToCurrentRow() throws SQLException { 363 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 364 } 365 366 public void moveToInsertRow() throws SQLException { 367 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 368 } 369 370 public boolean next() throws SQLException { 371 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 372 } 373 374 public boolean previous() throws SQLException { 375 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 376 } 377 378 public void refreshRow() throws SQLException { 379 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 380 } 381 382 public boolean relative(int rows) throws SQLException { 383 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 384 } 385 386 public boolean rowDeleted() throws SQLException { 387 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 388 } 389 390 public boolean rowInserted() throws SQLException { 391 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 392 } 393 394 public boolean rowUpdated() throws SQLException { 395 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 396 } 397 398 public void setFetchDirection(int direction) throws SQLException { 399 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 400 } 401 402 public void setFetchSize(int rows) throws SQLException { 403 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 404 } 405 406 public void updateArray(int columnIndex, Array x) throws SQLException { 407 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 408 } 409 410 public void updateArray(String columnName, Array x) throws SQLException { 411 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 412 } 413 414 public void updateAsciiStream(int columnIndex, InputStream x, int length) throws SQLException { 415 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 416 } 417 418 public void updateAsciiStream(String columnName, InputStream x, int length) throws SQLException { 419 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 420 } 421 422 public void updateBigDecimal(int columnIndex, BigDecimal x) throws SQLException { 423 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 424 } 425 426 public void updateBigDecimal(String columnName, BigDecimal x) throws SQLException { 427 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 428 } 429 430 public void updateBinaryStream(int columnIndex, InputStream x, int length) throws SQLException { 431 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 432 } 433 434 public void updateBinaryStream(String columnName, InputStream x, int length) throws SQLException { 435 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 436 } 437 438 public void updateBlob(int columnIndex, Blob x) throws SQLException { 439 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 440 } 441 442 public void updateBlob(String columnName, Blob x) throws SQLException { 443 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 444 } 445 446 public void updateBoolean(int columnIndex, boolean x) throws SQLException { 447 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 448 } 449 450 public void updateBoolean(String columnName, boolean x) throws SQLException { 451 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 452 } 453 454 public void updateByte(int columnIndex, byte x) throws SQLException { 455 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 456 } 457 458 public void updateByte(String columnName, byte x) throws SQLException { 459 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 460 } 461 462 public void updateBytes(int columnIndex, byte x[]) throws SQLException { 463 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 464 } 465 466 public void updateBytes(String columnName, byte x[]) throws SQLException { 467 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 468 } 469 470 public void updateCharacterStream(int columnIndex, Reader x, int length) throws SQLException { 471 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 472 } 473 474 public void updateCharacterStream(String columnName, Reader reader, int length) throws SQLException { 475 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 476 } 477 478 public void updateClob(int columnIndex, Clob x) throws SQLException { 479 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 480 } 481 482 public void updateClob(String columnName, Clob x) throws SQLException { 483 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 484 } 485 486 public void updateDate(int columnIndex, Date x) throws SQLException { 487 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 488 } 489 490 public void updateDate(String columnName, Date x) throws SQLException { 491 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 492 } 493 494 public void updateDouble(int columnIndex, double x) throws SQLException { 495 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 496 } 497 498 public void updateDouble(String columnName, double x) throws SQLException { 499 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 500 } 501 502 public void updateFloat(int columnIndex, float x) throws SQLException { 503 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 504 } 505 506 public void updateFloat(String columnName, float x) throws SQLException { 507 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 508 } 509 510 public void updateInt(int columnIndex, int x) throws SQLException { 511 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 512 } 513 514 public void updateInt(String columnName, int x) throws SQLException { 515 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 516 } 517 518 public void updateLong(int columnIndex, long x) throws SQLException { 519 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 520 } 521 522 public void updateLong(String columnName, long x) throws SQLException { 523 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 524 } 525 526 public void updateNull(int columnIndex) throws SQLException { 527 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 528 } 529 530 public void updateNull(String columnName) throws SQLException { 531 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 532 } 533 534 public void updateObject(int columnIndex, Object x) throws SQLException { 535 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 536 } 537 538 public void updateObject(int columnIndex, Object x, int scale) throws SQLException { 539 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 540 } 541 542 public void updateObject(String columnName, Object x) throws SQLException { 543 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 544 } 545 546 public void updateObject(String columnName, Object x, int scale) throws SQLException { 547 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 548 } 549 550 public void updateRef(int columnIndex, Ref x) throws SQLException { 551 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 552 } 553 554 public void updateRef(String columnName, Ref x) throws SQLException { 555 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 556 } 557 558 public void updateRow() throws SQLException { 559 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 560 } 561 562 public void updateShort(int columnIndex, short x) throws SQLException { 563 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 564 } 565 566 public void updateShort(String columnName, short x) throws SQLException { 567 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 568 } 569 570 public void updateString(int columnIndex, String x) throws SQLException { 571 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 572 } 573 574 public void updateString(String columnName, String x) throws SQLException { 575 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 576 } 577 578 public void updateTime(int columnIndex, Time x) throws SQLException { 579 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 580 } 581 582 public void updateTime(String columnName, Time x) throws SQLException { 583 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 584 } 585 586 public void updateTimestamp(int columnIndex, Timestamp x) throws SQLException { 587 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 588 } 589 590 public void updateTimestamp(String columnName, Timestamp x) throws SQLException { 591 throw new UnsupportedOperationException ("CallableStatement does not support this method."); 592 } 593 594 public boolean wasNull() throws SQLException { 595 return cs.wasNull(); 596 } 597 598 } 599 | Popular Tags |