1 2 9 10 package org.objectweb.rmijdbc; 11 12 import java.math.BigDecimal ; 13 import java.rmi.*; 14 import java.rmi.server.Unreferenced ; 15 import java.sql.*; 16 import java.util.Calendar ; 17 18 50 public class RJCallableStatementServer 51 extends RJPreparedStatementServer 52 implements RJCallableStatementInterface, Unreferenced { 53 54 java.sql.CallableStatement jdbcCallableStmt_; 55 56 public RJCallableStatementServer(java.sql.CallableStatement c) 57 throws java.rmi.RemoteException { 58 super(c); 59 jdbcCallableStmt_ = c; 60 } 61 62 public void unreferenced() { Runtime.getRuntime().gc(); } 63 64 79 public void registerOutParameter(int parameterIndex, int sqlType) 80 throws RemoteException, SQLException { 81 jdbcCallableStmt_.registerOutParameter(parameterIndex, sqlType); 82 } 83 84 98 public void registerOutParameter(int parameterIndex, int sqlType, int scale) 99 throws RemoteException, SQLException { 100 jdbcCallableStmt_.registerOutParameter(parameterIndex, sqlType, scale); 101 } 102 103 113 public boolean wasNull() throws RemoteException, SQLException { 114 return jdbcCallableStmt_.wasNull(); 115 } 116 117 123 public String getString(int parameterIndex) throws RemoteException, SQLException { 124 return jdbcCallableStmt_.getString(parameterIndex); 125 } 126 127 133 public boolean getBoolean(int parameterIndex) throws RemoteException, SQLException { 134 return jdbcCallableStmt_.getBoolean(parameterIndex); 135 } 136 137 143 public byte getByte(int parameterIndex) throws RemoteException, SQLException { 144 return jdbcCallableStmt_.getByte(parameterIndex); 145 } 146 147 153 public short getShort(int parameterIndex) throws RemoteException, SQLException { 154 return jdbcCallableStmt_.getShort(parameterIndex); 155 } 156 157 163 public int getInt(int parameterIndex) throws RemoteException, SQLException { 164 return jdbcCallableStmt_.getInt(parameterIndex); 165 } 166 167 173 public long getLong(int parameterIndex) throws RemoteException, SQLException { 174 return jdbcCallableStmt_.getLong(parameterIndex); 175 } 176 177 183 public float getFloat(int parameterIndex) throws RemoteException, SQLException { 184 return jdbcCallableStmt_.getFloat(parameterIndex); 185 } 186 187 193 public double getDouble(int parameterIndex) throws RemoteException, SQLException { 194 return jdbcCallableStmt_.getDouble(parameterIndex); 195 } 196 197 205 public BigDecimal getBigDecimal(int parameterIndex, int scale) 206 throws RemoteException, SQLException { 207 return jdbcCallableStmt_.getBigDecimal(parameterIndex, scale); 208 } 209 210 216 public byte[] getBytes(int parameterIndex) throws RemoteException, SQLException { 217 return jdbcCallableStmt_.getBytes(parameterIndex); 218 } 219 220 226 public java.sql.Date getDate(int parameterIndex) throws RemoteException, SQLException { 227 return jdbcCallableStmt_.getDate(parameterIndex); 228 } 229 230 236 public java.sql.Time getTime(int parameterIndex) throws RemoteException, SQLException { 237 return jdbcCallableStmt_.getTime(parameterIndex); 238 } 239 240 246 public java.sql.Timestamp getTimestamp(int parameterIndex) 247 throws RemoteException, SQLException { 248 return jdbcCallableStmt_.getTimestamp(parameterIndex); 249 } 250 251 254 269 public Object getObject(int parameterIndex) 270 throws RemoteException, SQLException { 271 return jdbcCallableStmt_.getObject(parameterIndex); 272 } 273 274 public void registerOutParameter(int paramIndex, int sqlType, 276 String typeName) throws RemoteException, SQLException { 277 jdbcCallableStmt_.registerOutParameter(paramIndex, sqlType, typeName); 278 } 279 280 public Timestamp getTimestamp(int parameterIndex, Calendar cal) 281 throws RemoteException, SQLException { 282 return jdbcCallableStmt_.getTimestamp(parameterIndex,cal); 283 } 284 285 public Time getTime(int parameterIndex, Calendar cal) 286 throws RemoteException, SQLException { 287 return jdbcCallableStmt_.getTime(parameterIndex,cal); 288 } 289 290 public RJRefInterface getRef(int i) throws RemoteException, SQLException { 291 return new RJRefServer(jdbcCallableStmt_.getRef(i)); 292 } 293 294 public Object getObject(int i,java.util.Map map) throws RemoteException, SQLException { 295 return jdbcCallableStmt_.getObject(i,map); 296 } 297 298 public Date getDate(int parameterIndex, Calendar cal) 299 throws RemoteException, SQLException { 300 return jdbcCallableStmt_.getDate(parameterIndex,cal) ; 301 } 302 303 public RJClobInterface getClob(int i) throws RemoteException, SQLException { 304 return new RJClobServer(jdbcCallableStmt_.getClob(i)); 305 } 306 307 public void setTimestamp(int parameterIndex, Timestamp x, 308 Calendar cal) throws RemoteException, SQLException { 309 jdbcCallableStmt_.setTimestamp(parameterIndex,x,cal); 310 } 311 312 public RJBlobInterface getBlob(int i) throws RemoteException, SQLException { 313 return new RJBlobServer(jdbcCallableStmt_.getBlob(i)); 314 } 315 316 public BigDecimal getBigDecimal(int parameterIndex) 317 throws RemoteException, SQLException { 318 return jdbcCallableStmt_.getBigDecimal(parameterIndex); 319 } 320 321 public RJArrayInterface getArray(int i) 322 throws RemoteException, SQLException { 323 return new RJArrayServer(jdbcCallableStmt_.getArray(i)); 324 } 325 326 328 329 331 public void registerOutParameter(String parameterName, int sqlType) 332 throws RemoteException, SQLException { 333 jdbcCallableStmt_.registerOutParameter(parameterName, sqlType); 334 } 335 336 public void registerOutParameter(String parameterName, int sqlType, int scale) 337 throws RemoteException, SQLException { 338 jdbcCallableStmt_.registerOutParameter(parameterName, sqlType, scale); 339 } 340 341 public void registerOutParameter (String parameterName, int sqlType, String typeName) 342 throws RemoteException, SQLException { 343 jdbcCallableStmt_.registerOutParameter(parameterName, sqlType, typeName); 344 } 345 346 public java.net.URL getURL(int parameterIndex) 347 throws RemoteException, SQLException { 348 return jdbcCallableStmt_.getURL(parameterIndex); 349 } 350 351 public void setURL(String parameterName, java.net.URL val) 352 throws RemoteException, SQLException { 353 jdbcCallableStmt_.setURL(parameterName, val); 354 } 355 356 357 public void setNull(String parameterName, int sqlType) 358 throws RemoteException, SQLException { 359 jdbcCallableStmt_.setNull(parameterName, sqlType); 360 } 361 362 public void setBoolean(String parameterName, boolean x) 363 throws RemoteException, SQLException { 364 jdbcCallableStmt_.setBoolean(parameterName, x); 365 } 366 367 public void setByte(String parameterName, byte x) 368 throws RemoteException, SQLException { 369 jdbcCallableStmt_.setByte(parameterName, x); 370 } 371 372 373 public void setShort(String parameterName, short x) 374 throws RemoteException, SQLException { 375 jdbcCallableStmt_.setShort(parameterName, x); 376 } 377 378 379 public void setInt(String parameterName, int x) 380 throws RemoteException, SQLException { 381 jdbcCallableStmt_.setInt(parameterName, x); 382 } 383 384 385 public void setLong(String parameterName, long x) 386 throws RemoteException, SQLException { 387 jdbcCallableStmt_.setLong(parameterName, x); 388 } 389 390 391 public void setFloat(String parameterName, float x) 392 throws RemoteException, SQLException { 393 jdbcCallableStmt_.setFloat(parameterName, x); 394 } 395 396 397 public void setDouble(String parameterName, double x) 398 throws RemoteException, SQLException { 399 jdbcCallableStmt_.setDouble(parameterName, x); 400 } 401 402 403 public void setBigDecimal(String parameterName, BigDecimal x) 404 throws RemoteException, SQLException { 405 jdbcCallableStmt_.setBigDecimal(parameterName, x); 406 } 407 408 409 public void setString(String parameterName, String x) 410 throws RemoteException, SQLException { 411 jdbcCallableStmt_.setString(parameterName, x); 412 } 413 414 415 public void setBytes(String parameterName, byte x[]) 416 throws RemoteException, SQLException { 417 jdbcCallableStmt_.setBytes(parameterName, x); 418 } 419 420 421 public void setDate(String parameterName, java.sql.Date x) 422 throws RemoteException, SQLException { 423 jdbcCallableStmt_.setDate(parameterName, x); 424 } 425 426 public void setTime(String parameterName, java.sql.Time x) 427 throws RemoteException, SQLException { 428 jdbcCallableStmt_.setTime(parameterName, x); 429 } 430 431 public void setTimestamp(String parameterName, java.sql.Timestamp x) 432 throws RemoteException, SQLException { 433 jdbcCallableStmt_.setTimestamp(parameterName, x); 434 } 435 436 public void setAsciiStream(String parameterName, java.io.InputStream x, int length) 437 throws RemoteException, SQLException { 438 jdbcCallableStmt_.setAsciiStream(parameterName, x, length); 439 } 440 441 public void setBinaryStream(String parameterName, java.io.InputStream x, int length) 442 throws RemoteException, SQLException { 443 jdbcCallableStmt_.setBinaryStream(parameterName, x, length); 444 } 445 446 447 public void setObject(String parameterName, Object x, int targetSqlType, int scale) 448 throws RemoteException, SQLException { 449 jdbcCallableStmt_.setObject(parameterName, x, targetSqlType, scale); 450 } 451 452 public void setObject(String parameterName, Object x, int targetSqlType) 453 throws RemoteException, SQLException { 454 jdbcCallableStmt_.setObject(parameterName, x, targetSqlType); 455 } 456 457 public void setObject(String parameterName, Object x) 458 throws RemoteException, SQLException { 459 jdbcCallableStmt_.setObject(parameterName, x); 460 } 461 462 463 public void setCharacterStream(String parameterName, java.io.Reader reader, int length) 464 throws RemoteException, SQLException { 465 jdbcCallableStmt_.setCharacterStream(parameterName, reader, length); 466 } 467 468 public void setDate(String parameterName, java.sql.Date x, Calendar cal) 469 throws RemoteException, SQLException { 470 jdbcCallableStmt_.setDate(parameterName, x, cal); 471 } 472 473 public void setTime(String parameterName, java.sql.Time x, Calendar cal) 474 throws RemoteException, SQLException { 475 jdbcCallableStmt_.setTime(parameterName, x, cal); 476 } 477 478 public void setTimestamp(String parameterName, java.sql.Timestamp x, Calendar cal) 479 throws RemoteException, SQLException { 480 jdbcCallableStmt_.setTimestamp(parameterName, x, cal); 481 } 482 483 public void setNull (String parameterName, int sqlType, String typeName) 484 throws RemoteException, SQLException { 485 486 jdbcCallableStmt_.setNull(parameterName, sqlType, typeName); 487 } 488 489 public String getString(String parameterName) 490 throws RemoteException, SQLException { 491 return jdbcCallableStmt_.getString(parameterName); 492 } 493 494 public boolean getBoolean(String parameterName) 495 throws RemoteException, SQLException { 496 return jdbcCallableStmt_.getBoolean(parameterName); 497 } 498 499 public byte getByte(String parameterName) 500 throws RemoteException, SQLException { 501 return jdbcCallableStmt_.getByte(parameterName); 502 } 503 504 public short getShort(String parameterName) 505 throws RemoteException, SQLException { 506 return jdbcCallableStmt_.getShort(parameterName); 507 } 508 509 public int getInt(String parameterName) 510 throws RemoteException, SQLException { 511 return jdbcCallableStmt_.getInt(parameterName); 512 } 513 514 public long getLong(String parameterName) 515 throws RemoteException, SQLException { 516 return jdbcCallableStmt_.getLong(parameterName); 517 } 518 519 public float getFloat(String parameterName) 520 throws RemoteException, SQLException { 521 return jdbcCallableStmt_.getFloat(parameterName); 522 } 523 524 public double getDouble(String parameterName) 525 throws RemoteException, SQLException { 526 return jdbcCallableStmt_.getDouble(parameterName); 527 } 528 529 public byte[] getBytes(String parameterName) 530 throws RemoteException, SQLException { 531 return jdbcCallableStmt_.getBytes(parameterName); 532 } 533 534 public java.sql.Date getDate(String parameterName) 535 throws RemoteException, SQLException { 536 return jdbcCallableStmt_.getDate(parameterName); 537 } 538 539 public java.sql.Time getTime(String parameterName) 540 throws RemoteException, SQLException { 541 return jdbcCallableStmt_.getTime(parameterName); 542 } 543 544 public java.sql.Timestamp getTimestamp(String parameterName) 545 throws RemoteException, SQLException { 546 return jdbcCallableStmt_.getTimestamp(parameterName); 547 } 548 549 public Object getObject(String parameterName) 550 throws RemoteException, SQLException { 551 return jdbcCallableStmt_.getObject(parameterName); 552 } 553 554 public BigDecimal getBigDecimal(String parameterName) 555 throws RemoteException, SQLException { 556 return jdbcCallableStmt_.getBigDecimal(parameterName); 557 } 558 559 public Object getObject (String parameterName, java.util.Map map) 560 throws RemoteException, SQLException { 561 return jdbcCallableStmt_.getObject(parameterName, map); 562 } 563 564 public RJRefInterface getRef(String parameterName) 565 throws RemoteException, SQLException { 566 return new RJRefServer(jdbcCallableStmt_.getRef(parameterName)); 567 } 568 569 public RJBlobInterface getBlob (String parameterName) 570 throws RemoteException, SQLException { 571 return new RJBlobServer(jdbcCallableStmt_.getBlob(parameterName)); 572 } 573 574 public RJClobInterface getClob (String parameterName) 575 throws RemoteException, SQLException { 576 return new RJClobServer(jdbcCallableStmt_.getClob(parameterName)); 577 } 578 579 public RJArrayInterface getArray (String parameterName) 580 throws RemoteException, SQLException { 581 return new RJArrayServer(jdbcCallableStmt_.getArray(parameterName)); 582 } 583 584 public java.sql.Date getDate(String parameterName, Calendar cal) 585 throws RemoteException, SQLException { 586 return jdbcCallableStmt_.getDate(parameterName, cal); 587 } 588 589 public java.sql.Time getTime(String parameterName, Calendar cal) 590 throws RemoteException, SQLException { 591 return jdbcCallableStmt_.getTime(parameterName, cal); 592 } 593 594 public java.sql.Timestamp getTimestamp(String parameterName, Calendar cal) 595 throws RemoteException, SQLException { 596 return jdbcCallableStmt_.getTimestamp(parameterName, cal); 597 } 598 599 public java.net.URL getURL(String parameterName) 600 throws RemoteException, SQLException { 601 return jdbcCallableStmt_.getURL(parameterName); 602 } 603 604 }; 605 606 | Popular Tags |