| 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 |