00001
00025
package org.objectweb.cjdbc.driver;
00026
00027
import java.io.InputStream;
00028
import java.io.Reader;
00029
import java.math.BigDecimal;
00030
import java.net.URL;
00031
import java.sql.Array;
00032
import java.sql.Blob;
00033
import java.sql.Clob;
00034
import java.sql.Date;
00035
import java.sql.Ref;
00036
import java.sql.SQLException;
00037
import java.sql.Time;
00038
import java.sql.Timestamp;
00039
import java.util.Calendar;
00040
import java.util.Map;
00041
00042
import org.objectweb.cjdbc.common.sql.NotImplementedException;
00043
00076 public class CallableStatement extends PreparedStatement
00077 implements
00078 java.sql.
CallableStatement
00079 {
00088 public CallableStatement(
Connection connection, String sql)
00089
throws SQLException
00090 {
00091 super(connection, sql);
00092
if (!
this.sql.toLowerCase().startsWith(
"{call")
00093 && !
this.sql.toLowerCase().startsWith(
"}call"))
00094
throw new SQLException(
00095
"Syntax error: callable statements expected syntax is {call procedure_name[(?, ?, ...)]}");
00096 }
00097
00121 public void registerOutParameter(
int parameterIndex,
int sqlType)
00122
throws SQLException
00123 {
00124
throw new NotImplementedException(
00125
"registerOutParameter(int parameterIndex, int sqlType)");
00126 }
00127
00147 public void registerOutParameter(
int parameterIndex,
int sqlType,
int scale)
00148
throws SQLException
00149 {
00150
throw new NotImplementedException(
00151
"registerOutParameter(int parameterIndex, int sqlType, int scale)");
00152 }
00153
00164 public boolean wasNull() throws SQLException
00165 {
00166
throw new NotImplementedException(
"wasNull");
00167 }
00168
00185 public String
getString(
int parameterIndex)
throws SQLException
00186 {
00187
throw new NotImplementedException(
"getString");
00188 }
00189
00200 public boolean getBoolean(
int parameterIndex)
throws SQLException
00201 {
00202
throw new NotImplementedException(
"getBoolean");
00203 }
00204
00215 public byte
getByte(
int parameterIndex)
throws SQLException
00216 {
00217
throw new NotImplementedException(
"getByte");
00218 }
00219
00230 public short getShort(
int parameterIndex)
throws SQLException
00231 {
00232
throw new NotImplementedException(
"getShort");
00233 }
00234
00245 public int getInt(
int parameterIndex)
throws SQLException
00246 {
00247
throw new NotImplementedException(
"getInt");
00248 }
00249
00260 public long getLong(
int parameterIndex)
throws SQLException
00261 {
00262
throw new NotImplementedException(
"getLong");
00263 }
00264
00275 public float getFloat(
int parameterIndex)
throws SQLException
00276 {
00277
throw new NotImplementedException(
"getFloat");
00278 }
00279
00290 public double getDouble(
int parameterIndex)
throws SQLException
00291 {
00292
throw new NotImplementedException(
"getDouble");
00293 }
00294
00309 public BigDecimal
getBigDecimal(
int parameterIndex,
int scale)
00310
throws SQLException
00311 {
00312
throw new NotImplementedException(
"getBigDecimal");
00313 }
00314
00326 public byte[]
getBytes(
int parameterIndex)
throws SQLException
00327 {
00328
throw new NotImplementedException(
"getBytes");
00329 }
00330
00341 public Date
getDate(
int parameterIndex)
throws SQLException
00342 {
00343
throw new NotImplementedException(
"getDate");
00344 }
00345
00356 public Time
getTime(
int parameterIndex)
throws SQLException
00357 {
00358
throw new NotImplementedException(
"getTime");
00359 }
00360
00371 public Timestamp
getTimestamp(
int parameterIndex)
throws SQLException
00372 {
00373
throw new NotImplementedException(
"getTimestamp");
00374 }
00375
00376
00377
00378
00396 public Object
getObject(
int parameterIndex)
throws SQLException
00397 {
00398
throw new NotImplementedException(
"getObject");
00399 }
00400
00401
00402
00415 public BigDecimal
getBigDecimal(
int parameterIndex)
throws SQLException
00416 {
00417
throw new NotImplementedException(
"");
00418 }
00419
00437 public Object
getObject(
int i, Map map)
throws SQLException
00438 {
00439
throw new NotImplementedException(
"getObject");
00440 }
00441
00454 public Ref
getRef(
int i)
throws SQLException
00455 {
00456
throw new NotImplementedException(
"getRef");
00457 }
00458
00470 public Blob getBlob(
int i)
throws SQLException
00471 {
00472
throw new NotImplementedException(
"getBlob");
00473 }
00474
00486 public Clob getClob(
int i)
throws SQLException
00487 {
00488
throw new NotImplementedException(
"getClob");
00489 }
00490
00502 public Array
getArray(
int i)
throws SQLException
00503 {
00504
throw new NotImplementedException(
"getArray");
00505 }
00506
00524 public Date
getDate(
int parameterIndex, Calendar cal)
throws SQLException
00525 {
00526
throw new NotImplementedException(
"getDate");
00527 }
00528
00546 public Time
getTime(
int parameterIndex, Calendar cal)
throws SQLException
00547 {
00548
throw new NotImplementedException(
"getTime");
00549 }
00550
00569 public Timestamp
getTimestamp(
int parameterIndex, Calendar cal)
00570
throws SQLException
00571 {
00572
throw new NotImplementedException(
"getTimestamp");
00573 }
00574
00608 public void registerOutParameter(
int paramIndex,
int sqlType, String typeName)
00609
throws SQLException
00610 {
00611
throw new NotImplementedException(
"registerOutParameter");
00612 }
00613
00614
00615
00640 public void registerOutParameter(String parameterName,
int sqlType)
00641
throws SQLException
00642 {
00643
throw new NotImplementedException(
"registerOutParameter");
00644 }
00645
00666 public void registerOutParameter(String parameterName,
int sqlType,
int scale)
00667
throws SQLException
00668 {
00669
throw new NotImplementedException(
"registerOutParameter");
00670 }
00671
00703 public void registerOutParameter(String parameterName,
int sqlType,
00704 String typeName)
throws SQLException
00705 {
00706
throw new NotImplementedException(
"registerOutParameter");
00707 }
00708
00721 public URL
getURL(
int parameterIndex)
throws SQLException
00722 {
00723
throw new NotImplementedException(
"getURL");
00724 }
00725
00738 public void setURL(String parameterName, URL val)
throws SQLException
00739 {
00740
throw new NotImplementedException(
"setURL");
00741 }
00742
00753 public void setNull(String parameterName,
int sqlType)
throws SQLException
00754 {
00755
throw new NotImplementedException(
"setNull");
00756 }
00757
00769 public void setBoolean(String parameterName,
boolean x)
throws SQLException
00770 {
00771
throw new NotImplementedException(
"setBoolean");
00772 }
00773
00785 public void setByte(String parameterName, byte x)
throws SQLException
00786 {
00787
throw new NotImplementedException(
"setByte");
00788 }
00789
00801 public void setShort(String parameterName,
short x)
throws SQLException
00802 {
00803
throw new NotImplementedException(
"setShort");
00804 }
00805
00817 public void setInt(String parameterName,
int x)
throws SQLException
00818 {
00819
throw new NotImplementedException(
"setInt");
00820 }
00821
00833 public void setLong(String parameterName,
long x)
throws SQLException
00834 {
00835
throw new NotImplementedException(
"setLong");
00836 }
00837
00849 public void setFloat(String parameterName,
float x)
throws SQLException
00850 {
00851
throw new NotImplementedException(
"setFloat");
00852 }
00853
00865 public void setDouble(String parameterName,
double x)
throws SQLException
00866 {
00867
throw new NotImplementedException(
"setDouble");
00868 }
00869
00881 public void setBigDecimal(String parameterName, BigDecimal x)
00882
throws SQLException
00883 {
00884
throw new NotImplementedException(
"setBigDecimal");
00885 }
00886
00900 public void setString(String parameterName, String x)
throws SQLException
00901 {
00902
throw new NotImplementedException(
"setString");
00903 }
00904
00918 public void setBytes(String parameterName, byte[] x)
throws SQLException
00919 {
00920
throw new NotImplementedException(
"setBytes");
00921 }
00922
00934 public void setDate(String parameterName, Date x)
throws SQLException
00935 {
00936
throw new NotImplementedException(
"setDate");
00937 }
00938
00950 public void setTime(String parameterName, Time x)
throws SQLException
00951 {
00952
throw new NotImplementedException(
"setTime");
00953 }
00954
00966 public void setTimestamp(String parameterName, Timestamp x)
00967
throws SQLException
00968 {
00969
throw new NotImplementedException(
"setTimestamp");
00970 }
00971
00989 public void setAsciiStream(String parameterName, InputStream x,
int length)
00990
throws SQLException
00991 {
00992
throw new NotImplementedException(
"setAsciiStream");
00993 }
00994
01011 public void setBinaryStream(String parameterName, InputStream x,
int length)
01012
throws SQLException
01013 {
01014
throw new NotImplementedException(
"setBinaryStream");
01015 }
01016
01050 public void setObject(String parameterName, Object x,
int targetSqlType,
01051
int scale)
throws SQLException
01052 {
01053
throw new NotImplementedException(
"setObject");
01054 }
01055
01069 public void setObject(String parameterName, Object x,
int targetSqlType)
01070
throws SQLException
01071 {
01072
throw new NotImplementedException(
"setObject");
01073 }
01074
01107 public void setObject(String parameterName, Object x)
throws SQLException
01108 {
01109
throw new NotImplementedException(
"setObject");
01110 }
01111
01131 public void setCharacterStream(String parameterName, Reader reader,
int length)
01132
throws SQLException
01133 {
01134
throw new NotImplementedException(
"");
01135 }
01136
01155 public void setDate(String parameterName, Date x, Calendar cal)
01156
throws SQLException
01157 {
01158
throw new NotImplementedException(
"setDate");
01159 }
01160
01179 public void setTime(String parameterName, Time x, Calendar cal)
01180
throws SQLException
01181 {
01182
throw new NotImplementedException(
"setTime");
01183 }
01184
01203 public void setTimestamp(String parameterName, Timestamp x, Calendar cal)
01204
throws SQLException
01205 {
01206
throw new NotImplementedException(
"setTimestamp");
01207 }
01208
01234 public void setNull(String parameterName,
int sqlType, String typeName)
01235
throws SQLException
01236 {
01237
throw new NotImplementedException(
"setNull");
01238 }
01239
01257 public String
getString(String parameterName)
throws SQLException
01258 {
01259
throw new NotImplementedException(
"getString");
01260 }
01261
01273 public boolean getBoolean(String parameterName)
throws SQLException
01274 {
01275
throw new NotImplementedException(
"getBoolean");
01276 }
01277
01289 public byte
getByte(String parameterName)
throws SQLException
01290 {
01291
throw new NotImplementedException(
"getByte");
01292 }
01293
01305 public short getShort(String parameterName)
throws SQLException
01306 {
01307
throw new NotImplementedException(
"getShort");
01308 }
01309
01321 public int getInt(String parameterName)
throws SQLException
01322 {
01323
throw new NotImplementedException(
"getInt");
01324 }
01325
01337 public long getLong(String parameterName)
throws SQLException
01338 {
01339
throw new NotImplementedException(
"getLong");
01340 }
01341
01353 public float getFloat(String parameterName)
throws SQLException
01354 {
01355
throw new NotImplementedException(
"getFloat");
01356 }
01357
01369 public double getDouble(String parameterName)
throws SQLException
01370 {
01371
throw new NotImplementedException(
"getDouble");
01372 }
01373
01386 public byte[]
getBytes(String parameterName)
throws SQLException
01387 {
01388
throw new NotImplementedException(
"getBytes");
01389 }
01390
01402 public Date
getDate(String parameterName)
throws SQLException
01403 {
01404
throw new NotImplementedException(
"getDate");
01405 }
01406
01418 public Time
getTime(String parameterName)
throws SQLException
01419 {
01420
throw new NotImplementedException(
"getTime");
01421 }
01422
01434 public Timestamp
getTimestamp(String parameterName)
throws SQLException
01435 {
01436
throw new NotImplementedException(
"getTimestamp");
01437 }
01438
01457 public Object
getObject(String parameterName)
throws SQLException
01458 {
01459
throw new NotImplementedException(
"getObject");
01460 }
01461
01474 public BigDecimal
getBigDecimal(String parameterName)
throws SQLException
01475 {
01476
throw new NotImplementedException(
"getBigDecimal");
01477 }
01478
01496 public Object
getObject(String parameterName, Map map)
throws SQLException
01497 {
01498
throw new NotImplementedException(
"getObject");
01499 }
01500
01512 public Ref
getRef(String parameterName)
throws SQLException
01513 {
01514
throw new NotImplementedException(
"getRef");
01515 }
01516
01528 public Blob getBlob(String parameterName)
throws SQLException
01529 {
01530
throw new NotImplementedException(
"getBlob");
01531 }
01532
01544 public Clob getClob(String parameterName)
throws SQLException
01545 {
01546
throw new NotImplementedException(
"getClob");
01547 }
01548
01560 public Array
getArray(String parameterName)
throws SQLException
01561 {
01562
throw new NotImplementedException(
"getArray");
01563 }
01564
01582 public Date
getDate(String parameterName, Calendar cal)
throws SQLException
01583 {
01584
throw new NotImplementedException(
"getDate");
01585 }
01586
01604 public Time
getTime(String parameterName, Calendar cal)
throws SQLException
01605 {
01606
throw new NotImplementedException(
"getTime");
01607 }
01608
01627 public Timestamp
getTimestamp(String parameterName, Calendar cal)
01628
throws SQLException
01629 {
01630
throw new NotImplementedException(
"getTimestamp");
01631 }
01632
01646 public URL
getURL(String parameterName)
throws SQLException
01647 {
01648
throw new NotImplementedException(
"getURL");
01649 }
01650 }