1 24 25 package org.objectweb.cjdbc.driver; 26 27 import java.io.InputStream ; 28 import java.io.Reader ; 29 import java.math.BigDecimal ; 30 import java.net.URL ; 31 import java.sql.Array ; 32 import java.sql.Blob ; 33 import java.sql.Clob ; 34 import java.sql.Date ; 35 import java.sql.Ref ; 36 import java.sql.SQLException ; 37 import java.sql.Time ; 38 import java.sql.Timestamp ; 39 import java.util.Calendar ; 40 import java.util.Map ; 41 42 import org.objectweb.cjdbc.common.exceptions.NotImplementedException; 43 44 76 public class CallableStatement extends PreparedStatement 77 implements 78 java.sql.CallableStatement 79 { 80 88 public CallableStatement(Connection connection, String sql) 89 throws SQLException 90 { 91 super(connection, sql); 92 if (!this.sql.toLowerCase().startsWith("{call") 93 && !this.sql.toLowerCase().startsWith("}call")) 94 throw new SQLException ( 95 "Syntax error: callable statements expected syntax is {call procedure_name[(?, ?, ...)]}"); 96 } 97 98 121 public void registerOutParameter(int parameterIndex, int sqlType) 122 throws SQLException 123 { 124 throw new NotImplementedException( 125 "registerOutParameter(int parameterIndex, int sqlType)"); 126 } 127 128 147 public void registerOutParameter(int parameterIndex, int sqlType, int scale) 148 throws SQLException 149 { 150 throw new NotImplementedException( 151 "registerOutParameter(int parameterIndex, int sqlType, int scale)"); 152 } 153 154 164 public boolean wasNull() throws SQLException 165 { 166 throw new NotImplementedException("wasNull"); 167 } 168 169 185 public String getString(int parameterIndex) throws SQLException 186 { 187 throw new NotImplementedException("getString"); 188 } 189 190 200 public boolean getBoolean(int parameterIndex) throws SQLException 201 { 202 throw new NotImplementedException("getBoolean"); 203 } 204 205 215 public byte getByte(int parameterIndex) throws SQLException 216 { 217 throw new NotImplementedException("getByte"); 218 } 219 220 230 public short getShort(int parameterIndex) throws SQLException 231 { 232 throw new NotImplementedException("getShort"); 233 } 234 235 245 public int getInt(int parameterIndex) throws SQLException 246 { 247 throw new NotImplementedException("getInt"); 248 } 249 250 260 public long getLong(int parameterIndex) throws SQLException 261 { 262 throw new NotImplementedException("getLong"); 263 } 264 265 275 public float getFloat(int parameterIndex) throws SQLException 276 { 277 throw new NotImplementedException("getFloat"); 278 } 279 280 290 public double getDouble(int parameterIndex) throws SQLException 291 { 292 throw new NotImplementedException("getDouble"); 293 } 294 295 309 public BigDecimal getBigDecimal(int parameterIndex, int scale) 310 throws SQLException 311 { 312 throw new NotImplementedException("getBigDecimal"); 313 } 314 315 326 public byte[] getBytes(int parameterIndex) throws SQLException 327 { 328 throw new NotImplementedException("getBytes"); 329 } 330 331 341 public Date getDate(int parameterIndex) throws SQLException 342 { 343 throw new NotImplementedException("getDate"); 344 } 345 346 356 public Time getTime(int parameterIndex) throws SQLException 357 { 358 throw new NotImplementedException("getTime"); 359 } 360 361 371 public Timestamp getTimestamp(int parameterIndex) throws SQLException 372 { 373 throw new NotImplementedException("getTimestamp"); 374 } 375 376 379 396 public Object getObject(int parameterIndex) throws SQLException 397 { 398 throw new NotImplementedException("getObject"); 399 } 400 401 403 415 public BigDecimal getBigDecimal(int parameterIndex) throws SQLException 416 { 417 throw new NotImplementedException(""); 418 } 419 420 437 public Object getObject(int i, Map map) throws SQLException 438 { 439 throw new NotImplementedException("getObject"); 440 } 441 442 454 public Ref getRef(int i) throws SQLException 455 { 456 throw new NotImplementedException("getRef"); 457 } 458 459 470 public Blob getBlob(int i) throws SQLException 471 { 472 throw new NotImplementedException("getBlob"); 473 } 474 475 486 public Clob getClob(int i) throws SQLException 487 { 488 throw new NotImplementedException("getClob"); 489 } 490 491 502 public Array getArray(int i) throws SQLException 503 { 504 throw new NotImplementedException("getArray"); 505 } 506 507 524 public Date getDate(int parameterIndex, Calendar cal) throws SQLException 525 { 526 throw new NotImplementedException("getDate"); 527 } 528 529 546 public Time getTime(int parameterIndex, Calendar cal) throws SQLException 547 { 548 throw new NotImplementedException("getTime"); 549 } 550 551 569 public Timestamp getTimestamp(int parameterIndex, Calendar cal) 570 throws SQLException 571 { 572 throw new NotImplementedException("getTimestamp"); 573 } 574 575 608 public void registerOutParameter(int paramIndex, int sqlType, String typeName) 609 throws SQLException 610 { 611 throw new NotImplementedException("registerOutParameter"); 612 } 613 614 616 640 public void registerOutParameter(String parameterName, int sqlType) 641 throws SQLException 642 { 643 throw new NotImplementedException("registerOutParameter"); 644 } 645 646 666 public void registerOutParameter(String parameterName, int sqlType, int scale) 667 throws SQLException 668 { 669 throw new NotImplementedException("registerOutParameter"); 670 } 671 672 703 public void registerOutParameter(String parameterName, int sqlType, 704 String typeName) throws SQLException 705 { 706 throw new NotImplementedException("registerOutParameter"); 707 } 708 709 721 public URL getURL(int parameterIndex) throws SQLException 722 { 723 throw new NotImplementedException("getURL"); 724 } 725 726 738 public void setURL(String parameterName, URL val) throws SQLException 739 { 740 throw new NotImplementedException("setURL"); 741 } 742 743 753 public void setNull(String parameterName, int sqlType) throws SQLException 754 { 755 throw new NotImplementedException("setNull"); 756 } 757 758 769 public void setBoolean(String parameterName, boolean x) throws SQLException 770 { 771 throw new NotImplementedException("setBoolean"); 772 } 773 774 785 public void setByte(String parameterName, byte x) throws SQLException 786 { 787 throw new NotImplementedException("setByte"); 788 } 789 790 801 public void setShort(String parameterName, short x) throws SQLException 802 { 803 throw new NotImplementedException("setShort"); 804 } 805 806 817 public void setInt(String parameterName, int x) throws SQLException 818 { 819 throw new NotImplementedException("setInt"); 820 } 821 822 833 public void setLong(String parameterName, long x) throws SQLException 834 { 835 throw new NotImplementedException("setLong"); 836 } 837 838 849 public void setFloat(String parameterName, float x) throws SQLException 850 { 851 throw new NotImplementedException("setFloat"); 852 } 853 854 865 public void setDouble(String parameterName, double x) throws SQLException 866 { 867 throw new NotImplementedException("setDouble"); 868 } 869 870 881 public void setBigDecimal(String parameterName, BigDecimal x) 882 throws SQLException 883 { 884 throw new NotImplementedException("setBigDecimal"); 885 } 886 887 900 public void setString(String parameterName, String x) throws SQLException 901 { 902 throw new NotImplementedException("setString"); 903 } 904 905 918 public void setBytes(String parameterName, byte[] x) throws SQLException 919 { 920 throw new NotImplementedException("setBytes"); 921 } 922 923 934 public void setDate(String parameterName, Date x) throws SQLException 935 { 936 throw new NotImplementedException("setDate"); 937 } 938 939 950 public void setTime(String parameterName, Time x) throws SQLException 951 { 952 throw new NotImplementedException("setTime"); 953 } 954 955 966 public void setTimestamp(String parameterName, Timestamp x) 967 throws SQLException 968 { 969 throw new NotImplementedException("setTimestamp"); 970 } 971 972 989 public void setAsciiStream(String parameterName, InputStream x, int length) 990 throws SQLException 991 { 992 throw new NotImplementedException("setAsciiStream"); 993 } 994 995 1011 public void setBinaryStream(String parameterName, InputStream x, int length) 1012 throws SQLException 1013 { 1014 throw new NotImplementedException("setBinaryStream"); 1015 } 1016 1017 1050 public void setObject(String parameterName, Object x, int targetSqlType, 1051 int scale) throws SQLException 1052 { 1053 throw new NotImplementedException("setObject"); 1054 } 1055 1056 1069 public void setObject(String parameterName, Object x, int targetSqlType) 1070 throws SQLException 1071 { 1072 throw new NotImplementedException("setObject"); 1073 } 1074 1075 1107 public void setObject(String parameterName, Object x) throws SQLException 1108 { 1109 throw new NotImplementedException("setObject"); 1110 } 1111 1112 1131 public void setCharacterStream(String parameterName, Reader reader, int length) 1132 throws SQLException 1133 { 1134 throw new NotImplementedException(""); 1135 } 1136 1137 1155 public void setDate(String parameterName, Date x, Calendar cal) 1156 throws SQLException 1157 { 1158 throw new NotImplementedException("setDate"); 1159 } 1160 1161 1179 public void setTime(String parameterName, Time x, Calendar cal) 1180 throws SQLException 1181 { 1182 throw new NotImplementedException("setTime"); 1183 } 1184 1185 1203 public void setTimestamp(String parameterName, Timestamp x, Calendar cal) 1204 throws SQLException 1205 { 1206 throw new NotImplementedException("setTimestamp"); 1207 } 1208 1209 1234 public void setNull(String parameterName, int sqlType, String typeName) 1235 throws SQLException 1236 { 1237 throw new NotImplementedException("setNull"); 1238 } 1239 1240 1257 public String getString(String parameterName) throws SQLException 1258 { 1259 throw new NotImplementedException("getString"); 1260 } 1261 1262 1273 public boolean getBoolean(String parameterName) throws SQLException 1274 { 1275 throw new NotImplementedException("getBoolean"); 1276 } 1277 1278 1289 public byte getByte(String parameterName) throws SQLException 1290 { 1291 throw new NotImplementedException("getByte"); 1292 } 1293 1294 1305 public short getShort(String parameterName) throws SQLException 1306 { 1307 throw new NotImplementedException("getShort"); 1308 } 1309 1310 1321 public int getInt(String parameterName) throws SQLException 1322 { 1323 throw new NotImplementedException("getInt"); 1324 } 1325 1326 1337 public long getLong(String parameterName) throws SQLException 1338 { 1339 throw new NotImplementedException("getLong"); 1340 } 1341 1342 1353 public float getFloat(String parameterName) throws SQLException 1354 { 1355 throw new NotImplementedException("getFloat"); 1356 } 1357 1358 1369 public double getDouble(String parameterName) throws SQLException 1370 { 1371 throw new NotImplementedException("getDouble"); 1372 } 1373 1374 1386 public byte[] getBytes(String parameterName) throws SQLException 1387 { 1388 throw new NotImplementedException("getBytes"); 1389 } 1390 1391 1402 public Date getDate(String parameterName) throws SQLException 1403 { 1404 throw new NotImplementedException("getDate"); 1405 } 1406 1407 1418 public Time getTime(String parameterName) throws SQLException 1419 { 1420 throw new NotImplementedException("getTime"); 1421 } 1422 1423 1434 public Timestamp getTimestamp(String parameterName) throws SQLException 1435 { 1436 throw new NotImplementedException("getTimestamp"); 1437 } 1438 1439 1457 public Object getObject(String parameterName) throws SQLException 1458 { 1459 throw new NotImplementedException("getObject"); 1460 } 1461 1462 1474 public BigDecimal getBigDecimal(String parameterName) throws SQLException 1475 { 1476 throw new NotImplementedException("getBigDecimal"); 1477 } 1478 1479 1496 public Object getObject(String parameterName, Map map) throws SQLException 1497 { 1498 throw new NotImplementedException("getObject"); 1499 } 1500 1501 1512 public Ref getRef(String parameterName) throws SQLException 1513 { 1514 throw new NotImplementedException("getRef"); 1515 } 1516 1517 1528 public Blob getBlob(String parameterName) throws SQLException 1529 { 1530 throw new NotImplementedException("getBlob"); 1531 } 1532 1533 1544 public Clob getClob(String parameterName) throws SQLException 1545 { 1546 throw new NotImplementedException("getClob"); 1547 } 1548 1549 1560 public Array getArray(String parameterName) throws SQLException 1561 { 1562 throw new NotImplementedException("getArray"); 1563 } 1564 1565 1582 public Date getDate(String parameterName, Calendar cal) throws SQLException 1583 { 1584 throw new NotImplementedException("getDate"); 1585 } 1586 1587 1604 public Time getTime(String parameterName, Calendar cal) throws SQLException 1605 { 1606 throw new NotImplementedException("getTime"); 1607 } 1608 1609 1627 public Timestamp getTimestamp(String parameterName, Calendar cal) 1628 throws SQLException 1629 { 1630 throw new NotImplementedException("getTimestamp"); 1631 } 1632 1633 1646 public URL getURL(String parameterName) throws SQLException 1647 { 1648 throw new NotImplementedException("getURL"); 1649 } 1650} | Popular Tags |