2 * To change this template, choose Tools | Templates
3 * and open the template in the editor.
9 import java
.io
.InputStream
;
10 import java
.io
.Reader
;
11 import java
.math
.BigDecimal
;
13 import java
.sql
.Array
;
15 import java
.sql
.CallableStatement
;
18 import java
.sql
.NClob
;
20 import java
.sql
.RowId
;
21 import java
.sql
.SQLException
;
22 import java
.sql
.SQLXML
;
24 import java
.sql
.Timestamp
;
25 import java
.util
.Calendar
;
31 public final class JdbcSqlCallableStatement
extends JdbcSqlPreparedStatement
implements CallableStatement
34 JdbcSqlCallableStatement(JdbcSqlConnection con
)
39 boolean isResultSetused
= false;
40 //JdbcSqlPreparedStatement.execute()
41 public void prepareProc(String query
) throws SQLException
46 if(isResultSetused) rs.close();
50 rv = jniStmt.prepare(query);
51 if( rv != 0 ) // 0 ->OK
53 throw getException(CSQL_PREPARE_ERR);
58 public boolean execute() throws SQLException
60 if (!isPrepared
) throw getException(CSQL_NOT_PREPARED
);
61 /* rowsAffect = jniStmt.execute();
63 throw getException(CSQL_EXECUTE_ERR);
69 public java
.sql
.ResultSet
executeQuery() throws SQLException
71 if (!isPrepared
) throw getException(CSQL_NOT_PREPARED
);
72 rowsAffect
= jniStmt
.execute();
74 throw getException(CSQL_EXECUTE_ERR
);
77 isResultSetused
= true;
81 //JdbcSqlPreparedStatement.executeQuery()
82 public int executeUpdate() throws SQLException
85 throw getException(CSQL_NOT_UPDATE
);
89 public synchronized Array
getArray(int index
) throws SQLException
91 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::getArray(int) called");
92 throw getException(CSQL_NOT_SUPPORTED
);
95 public synchronized Array
getArray(String name
) throws SQLException
97 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::getArray(String) called");
98 throw getException(CSQL_NOT_SUPPORTED
);
101 public synchronized BigDecimal
getBigDecimal(int index
, int scale
) throws SQLException
103 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::getBigDecimal(int, int) called");
104 throw getException(CSQL_NOT_SUPPORTED
);
107 public synchronized BigDecimal
getBigDecimal(int index
) throws SQLException
109 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::getBigDecimal(int) called");
110 throw getException(CSQL_NOT_SUPPORTED
);
113 public synchronized BigDecimal
getBigDecimal(String name
) throws SQLException
115 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::getBigDecimal(String) called");
116 throw getException(CSQL_NOT_SUPPORTED
);
119 public synchronized Blob
getBlob(int index
) throws SQLException
121 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::getBlob(int) called");
122 throw getException(CSQL_NOT_SUPPORTED
);
126 public synchronized Blob
getBlob(String name
) throws SQLException
128 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::getBlob(String) called");
129 throw getException(CSQL_NOT_SUPPORTED
);
133 public synchronized boolean getBoolean(int index
) throws SQLException
135 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::getBoolean(int) called");
136 throw getException(CSQL_NOT_SUPPORTED
);
140 public synchronized boolean getBoolean(String name
) throws SQLException
142 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::getBoolean(String) called");
143 throw getException(CSQL_NOT_SUPPORTED
);
147 public synchronized byte getByte(int index
) throws SQLException
149 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::getByte(int) called");
150 throw getException(CSQL_NOT_SUPPORTED
);
154 public synchronized byte getByte(String name
) throws SQLException
156 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::getByte(String) called");
157 throw getException(CSQL_NOT_SUPPORTED
);
160 public synchronized byte[] getBytes(int index
) throws SQLException
162 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::getBytes(int) called");
163 throw getException(CSQL_NOT_SUPPORTED
);
167 public synchronized byte[] getBytes(String name
) throws SQLException
169 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::getBytes(String) called");
170 throw getException(CSQL_NOT_SUPPORTED
);
174 public synchronized Clob
getClob(int index
) throws SQLException
176 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::getClob(int) called");
177 throw getException(CSQL_NOT_SUPPORTED
);
181 public synchronized Clob
getClob(String name
) throws SQLException
183 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::getClob(String) called");
184 throw getException(CSQL_NOT_SUPPORTED
);
188 public synchronized Date
getDate(int index
) throws SQLException
190 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::getDate(int) called");
191 throw getException(CSQL_NOT_SUPPORTED
);
194 public synchronized Date
getDate(int index
, Calendar cal
) throws SQLException
196 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::getDate(int, Calendar) called");
197 throw getException(CSQL_NOT_SUPPORTED
);
200 public synchronized Date
getDate(String name
) throws SQLException
202 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::getDate(String) called");
203 throw getException(CSQL_NOT_SUPPORTED
);
206 public synchronized Date
getDate(String name
, Calendar cal
) throws SQLException
208 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::getDate(String, Calendar) called");
209 throw getException(CSQL_NOT_SUPPORTED
);
212 public synchronized double getDouble(int index
) throws SQLException
214 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::getDouble(int) called");
215 throw getException(CSQL_NOT_SUPPORTED
);
218 public synchronized double getDouble(String name
) throws SQLException
220 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::getDouble(String) called");
221 throw getException(CSQL_NOT_SUPPORTED
);
224 public synchronized float getFloat(int index
) throws SQLException
226 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::getFloat(int) called");
227 throw getException(CSQL_NOT_SUPPORTED
);
230 public synchronized float getFloat(String name
) throws SQLException
232 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::getFloat(String) called");
233 throw getException(CSQL_NOT_SUPPORTED
);
236 public synchronized int getInt(int index
) throws SQLException
238 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::getInt(int) called");
239 throw getException(CSQL_NOT_SUPPORTED
);
242 public synchronized int getInt(String name
) throws SQLException
244 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::getInt(String) called");
245 throw getException(CSQL_NOT_SUPPORTED
);
248 public synchronized long getLong(int index
) throws SQLException
250 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::getLong(int) called");
251 throw getException(CSQL_NOT_SUPPORTED
);
254 public synchronized long getLong(String name
) throws SQLException
256 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::getLong(String) called");
257 throw getException(CSQL_NOT_SUPPORTED
);
261 public synchronized Object
getObject(int index
) throws SQLException
263 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::getObject(int) called");
264 throw getException(CSQL_NOT_SUPPORTED
);
267 public synchronized Object
getObject(int index
, Map
<String
,Class
<?
>> map
) throws SQLException
269 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::getObject(int, Map<String,Class<?>>) called");
270 throw getException(CSQL_NOT_SUPPORTED
);
272 public synchronized Object
getObject(String name
) throws SQLException
274 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::getObject(String) called");
275 throw getException(CSQL_NOT_SUPPORTED
);
278 public synchronized Object
getObject(String name
, Map
<String
,Class
<?
>> map
) throws SQLException
280 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::getObject(String, Map<String,Class<?>>) called");
281 throw getException(CSQL_NOT_SUPPORTED
);
284 public synchronized Ref
getRef(int index
) throws SQLException
286 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::getRef(int) called");
287 throw getException(CSQL_NOT_SUPPORTED
);
290 public synchronized Ref
getRef(String name
) throws SQLException
292 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::getRef(String) called");
293 throw getException(CSQL_NOT_SUPPORTED
);
297 public synchronized short getShort(int index
) throws SQLException
299 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::getShort(int) called");
300 throw getException(CSQL_NOT_SUPPORTED
);
303 public synchronized short getShort(String name
) throws SQLException
305 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::getShort(String) called");
306 throw getException(CSQL_NOT_SUPPORTED
);
309 public synchronized String
getString(int index
) throws SQLException
311 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::getString(int) called");
312 throw getException(CSQL_NOT_SUPPORTED
);
315 public synchronized String
getString(String name
) throws SQLException
317 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::getString(String) called");
318 throw getException(CSQL_NOT_SUPPORTED
);
321 public synchronized Time
getTime(int index
) throws SQLException
323 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::getTime(int) called");
324 throw getException(CSQL_NOT_SUPPORTED
);
327 public synchronized Time
getTime(int index
, Calendar cal
) throws SQLException
329 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::getTime(int, Calendar) called");
330 throw getException(CSQL_NOT_SUPPORTED
);
334 public synchronized Time
getTime(String name
) throws SQLException
336 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::getTime(String) called");
337 throw getException(CSQL_NOT_SUPPORTED
);
339 //This method returns the value of the specified parameter as a Java java.sql.Time.
340 public synchronized Time
getTime(String name
, Calendar cal
) throws SQLException
342 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::getTime(String, Calendar) called");
343 throw getException(CSQL_NOT_SUPPORTED
);
346 //This method returns the value of the specified parameter as a Java java.sql.Time.
348 public synchronized Timestamp
getTimestamp(int index
) throws SQLException
350 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::getTimeStamp(int) called");
351 throw getException(CSQL_NOT_SUPPORTED
);
355 //This method returns the value of the specified parameter as a Java java.sql.Timestamp.
358 public synchronized Timestamp
getTimestamp(int index
, Calendar cal
) throws SQLException
360 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::getTimeStamp(int, Calendar) called");
361 throw getException(CSQL_NOT_SUPPORTED
);
364 //This method returns the value of the specified parameter as a Java java.sql.Timestamp.
366 public synchronized Timestamp
getTimestamp(String name
) throws SQLException
368 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::getTimeStamp(String) called");
369 throw getException(CSQL_NOT_SUPPORTED
);
372 //This method returns the value of the specified parameter as a Java java.sql.Timestamp.
374 public synchronized Timestamp
getTimestamp(String name
, Calendar cal
) throws SQLException
376 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::getTimeStamp(String, Calendar) called");
377 throw getException(CSQL_NOT_SUPPORTED
);
380 //This method returns the value of the specified parameter as a Java java.sql.Timestamp.
382 public synchronized URL
getURL(int index
) throws SQLException
384 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::getURL(int) called");
385 throw getException(CSQL_NOT_SUPPORTED
);
388 //This method returns the value of the specified parameter as a Java java.net.URL.
390 public synchronized URL
getURL(String name
) throws SQLException
392 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::getURL(String) called");
393 throw getException(CSQL_NOT_SUPPORTED
);
395 public synchronized Reader
getCharacterStream(String name
) throws SQLException
397 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::getCharacterStream(String) called");
398 throw getException(CSQL_NOT_SUPPORTED
);
400 public synchronized Reader
getCharacterStream(int pos
) throws SQLException
402 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::getCharacterStream(int) called");
403 throw getException(CSQL_NOT_SUPPORTED
);
405 public synchronized Reader
getNCharacterStream(String name
) throws SQLException
407 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::getNCharacterStream(String) called");
408 throw getException(CSQL_NOT_SUPPORTED
);
410 public synchronized Reader
getNCharacterStream(int pos
) throws SQLException
412 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::getNCharacterStream(int) called");
413 throw getException(CSQL_NOT_SUPPORTED
);
415 public synchronized String
getNString(String name
) throws SQLException
417 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::getNString(String) called");
418 throw getException(CSQL_NOT_SUPPORTED
);
420 public synchronized String
getNString(int pos
) throws SQLException
422 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::getNString(int) called");
423 throw getException(CSQL_NOT_SUPPORTED
);
425 public synchronized SQLXML
getSQLXML(String name
) throws SQLException
427 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::getSQLXML(String) called");
428 throw getException(CSQL_NOT_SUPPORTED
);
430 public synchronized SQLXML
getSQLXML(int pos
) throws SQLException
432 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::getSQLXML(int) called");
433 throw getException(CSQL_NOT_SUPPORTED
);
435 public synchronized NClob
getNClob(String name
) throws SQLException
437 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::getNClob(String) called");
438 throw getException(CSQL_NOT_SUPPORTED
);
441 public synchronized NClob
getNClob(int pos
) throws SQLException
443 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::getNClob(int) called");
444 throw getException(CSQL_NOT_SUPPORTED
);
447 public synchronized RowId
getRowId(String name
) throws SQLException
449 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::getRowId(String) called");
450 throw getException(CSQL_NOT_SUPPORTED
);
453 public synchronized RowId
getRowId(int pos
) throws SQLException
455 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::getRowId(int) called");
456 throw getException(CSQL_NOT_SUPPORTED
);
458 //This method returns the value of the specified parameter as a Java java.net.URL.
460 public synchronized void registerOutParameter(int index
, int sqlType
) throws SQLException
462 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::registerOutParameter(int, int) called");
463 throw getException(CSQL_NOT_SUPPORTED
);
465 //This method registers the specified parameter as an output parameter of the specified SQL type.
467 public synchronized void registerOutParameter(int index
, int sqlType
, int scale
) throws SQLException
469 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::registerOutParameter(int, int, int) called");
470 throw getException(CSQL_NOT_SUPPORTED
);
473 //This method registers the specified parameter as an output parameter of the specified SQL type and scale.
475 public synchronized void registerOutParameter(int index
, int sqlType
, String typeName
) throws SQLException
477 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::registerOutParameter(int, int, String) called");
478 throw getException(CSQL_NOT_SUPPORTED
);
481 //This method registers the specified parameter as an output parameter of the specified SQL type.
483 public synchronized void registerOutParameter(String name
, int sqlType
) throws SQLException
485 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::registerOutParameter(String, int) called");
486 throw getException(CSQL_NOT_SUPPORTED
);
489 //This method registers the specified parameter as an output parameter of the specified SQL type.
491 public synchronized void registerOutParameter(String name
, int sqlType
, int scale
) throws SQLException
493 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::registerOutParameter(String, int, int) called");
494 throw getException(CSQL_NOT_SUPPORTED
);
497 //This method registers the specified parameter as an output parameter of the specified SQL type.
499 public synchronized void registerOutParameter(String name
, int sqlType
, String typeName
) throws SQLException
501 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::registerOutParameter(String, int, String) called");
502 throw getException(CSQL_NOT_SUPPORTED
);
505 //This method registers the specified parameter as an output parameter of the specified SQL type.
507 public synchronized void setAsciiStream(String name
, InputStream stream
, int count
) throws SQLException
509 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::setAsciiStream(String, InputStream, int) called");
510 throw getException(CSQL_NOT_SUPPORTED
);
513 //This method sets the specified parameter from the given Java ASCII InputStream value.
515 public synchronized void setBigDecimal(String name
, BigDecimal value
) throws SQLException
517 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::setBigDecimal called");
518 throw getException(CSQL_NOT_SUPPORTED
);
521 //This method sets the specified parameter from the given Java BigDecimal value.
523 public synchronized void setBinaryStream(String name
, InputStream stream
, int count
) throws SQLException
525 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::setBinaryStream(String, InputStream, count) called");
526 throw getException(CSQL_NOT_SUPPORTED
);
529 //This method sets the specified parameter from the given Java binary InputStream value.
531 public synchronized void setBoolean(String name
, boolean value
) throws SQLException
533 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::setBoolean called");
534 throw getException(CSQL_NOT_SUPPORTED
);
537 //This method sets the specified parameter from the given Java boolean value.
539 public synchronized void setByte(String name
, byte value
) throws SQLException
541 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::setTimeByte called");
542 throw getException(CSQL_NOT_SUPPORTED
);
545 //This method sets the specified parameter from the given Java byte value.
547 public synchronized void setBytes(String name
, byte[] value
) throws SQLException
549 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::setBytes called");
550 throw getException(CSQL_NOT_SUPPORTED
);
553 //This method sets the specified parameter from the given Java byte array value.
555 public synchronized void setCharacterStream(String name
, Reader reader
, int count
) throws SQLException
557 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::setCharacterStream called");
558 throw getException(CSQL_NOT_SUPPORTED
);
561 //This method sets the specified parameter from the given Java character Reader value.
563 public synchronized void setDate(String name
, Date value
) throws SQLException
565 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::setDate(String, Date) called");
566 throw getException(CSQL_NOT_SUPPORTED
);
569 //This method sets the specified parameter from the given Java java.sql.Date value.
571 public synchronized void setDate(String name
, Date value
, Calendar cal
) throws SQLException
573 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::setDate(String, Date, Calendar) called");
574 throw getException(CSQL_NOT_SUPPORTED
);
577 //This method sets the specified parameter from the given Java java.sql.Date value.
579 public synchronized void setDouble(String name
, double value
) throws SQLException
581 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::setDouble(String, double) called");
582 throw getException(CSQL_NOT_SUPPORTED
);
585 //This method sets the specified parameter from the given Java double value.
587 public synchronized void setFloat(String name
, float value
) throws SQLException
589 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::setFloat(String, float) called");
590 throw getException(CSQL_NOT_SUPPORTED
);
593 //This method sets the specified parameter from the given Java float value.
595 public synchronized void setInt(String name
, int value
) throws SQLException
597 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::setInt(String, int) called");
598 throw getException(CSQL_NOT_SUPPORTED
);
601 //This method sets the specified parameter from the given Java int value.
603 public synchronized void setLong(String name
, long value
) throws SQLException
605 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::setLong(String, long) called");
606 throw getException(CSQL_NOT_SUPPORTED
);
609 //This method sets the specified parameter from the given Java long value.
611 public synchronized void setNull(String name
, int sqlType
) throws SQLException
613 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::setNull(String, int) called");
614 throw getException(CSQL_NOT_SUPPORTED
);
617 //This method populates the specified parameter with a SQL NULL value for the specified type.
619 public synchronized void setNull(String name
, int sqlType
, String typeName
) throws SQLException
621 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::setNull(String, int, String) called");
622 throw getException(CSQL_NOT_SUPPORTED
);
625 //This method populates the specified parameter with a SQL NULL value for the specified type.
627 public synchronized void setObject(String name
, Object value
, int sqlType
, int scale
) throws SQLException
629 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::setObject(String, Object, int, int) called");
630 throw getException(CSQL_NOT_SUPPORTED
);
633 //This method sets the specified parameter from the given Java Object value.
635 public synchronized void setObject(String name
, Object value
, int sqlType
) throws SQLException
637 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::setObject(String, Object, int) called");
638 throw getException(CSQL_NOT_SUPPORTED
);
641 //This method sets the specified parameter from the given Java Object value.
643 public synchronized void setObject(String name
, Object value
) throws SQLException
645 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::setObject(String, Object) called");
646 throw getException(CSQL_NOT_SUPPORTED
);
649 //This method sets the specified parameter from the given Java Object value.
651 public synchronized void setShort(String name
, short value
) throws SQLException
653 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::setShort called");
654 throw getException(CSQL_NOT_SUPPORTED
);
657 //This method sets the specified parameter from the given Java short value.
659 public synchronized void setString(String name
, String value
) throws SQLException
661 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::setString called");
662 throw getException(CSQL_NOT_SUPPORTED
);
665 //This method sets the specified parameter from the given Java String value.
667 public synchronized void setTime(String name
, Time value
) throws SQLException
669 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::setTime(String, Time) called");
670 throw getException(CSQL_NOT_SUPPORTED
);
673 //This method sets the specified parameter from the given Java java.sql.Time value.
675 public synchronized void setTime(String name
, Time value
, Calendar cal
) throws SQLException
677 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::setTime(String, Time, Calendar) called");
678 throw getException(CSQL_NOT_SUPPORTED
);
681 //This method sets the specified parameter from the given Java java.sql.Time value.
683 public synchronized void setTimestamp(String name
, Timestamp value
) throws SQLException
685 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::setTimeStamp(String, TimeStamp) called");
686 throw getException(CSQL_NOT_SUPPORTED
);
689 //This method sets the specified parameter from the given Java java.sql.Timestamp value.
692 public synchronized void setTimestamp(String name
, Timestamp value
, Calendar cal
) throws SQLException
694 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::setTimeStamp(String, TimeStamp, Calendar) called");
695 throw getException(CSQL_NOT_SUPPORTED
);
697 public synchronized void setNClob(String parameterName
, Reader reader
) throws SQLException
699 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::setNClob(String, Reader) called");
700 throw getException(CSQL_NOT_SUPPORTED
);
702 public synchronized void setNClob(String parameterName
, Reader reader
, long length
) throws SQLException
704 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::setNClob(String, Reader, long) called");
705 throw getException(CSQL_NOT_SUPPORTED
);
707 public synchronized void setBlob(String parameterName
, InputStream inputStream
) throws SQLException
709 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::setBlob(String, InputStream) called");
710 throw getException(CSQL_NOT_SUPPORTED
);
712 public synchronized void setBlob(String parameterName
, InputStream inputStream
, long length
) throws SQLException
714 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::setBlob(String, InputStream, long) called");
715 throw getException(CSQL_NOT_SUPPORTED
);
717 public synchronized void setClob(String parameterName
, Reader reader
) throws SQLException
719 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::setClob(String, Reader) called");
720 throw getException(CSQL_NOT_SUPPORTED
);
722 public synchronized void setClob(String parameterName
, Reader reader
, long length
) throws SQLException
724 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::setClob(String, Reader, long) called");
725 throw getException(CSQL_NOT_SUPPORTED
);
727 public synchronized void setNCharacterStream(String parameterName
, Reader value
) throws SQLException
729 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::setNCharacterStream(String, Reader) called");
730 throw getException(CSQL_NOT_SUPPORTED
);
732 public synchronized void setNCharacterStream(String parameterName
, Reader value
, long length
) throws SQLException
734 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::setNCharacterStream(String, Reader, long) called");
735 throw getException(CSQL_NOT_SUPPORTED
);
737 public synchronized void setCharacterStream(String parameterName
, Reader reader
) throws SQLException
739 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::setCharacterStream(String, Reader) called");
740 throw getException(CSQL_NOT_SUPPORTED
);
742 public synchronized void setCharacterStream(String parameterName
, Reader reader
, long length
) throws SQLException
744 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::setCharacterStream(String, Reader, long) called");
745 throw getException(CSQL_NOT_SUPPORTED
);
747 public synchronized void setBinaryStream(String parameterName
, InputStream x
) throws SQLException
749 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::setBinaryStream(String, InputStream) called");
750 throw getException(CSQL_NOT_SUPPORTED
);
752 public synchronized void setBinaryStream(String parameterName
, InputStream x
, long length
) throws SQLException
754 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::setBinaryStream(String, InputStream, long) called");
755 throw getException(CSQL_NOT_SUPPORTED
);
757 public synchronized void setAsciiStream(String parameterName
, InputStream x
)throws SQLException
759 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::setAsciiStream(String, InputStream) called");
760 throw getException(CSQL_NOT_SUPPORTED
);
763 public synchronized void setAsciiStream(String parameterName
, InputStream x
, long length
)throws SQLException
765 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::setAsciiStream(String, InputStream, long) called");
766 throw getException(CSQL_NOT_SUPPORTED
);
768 public synchronized void setClob(String parameterName
, Clob x
) throws SQLException
770 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::setClob called");
771 throw getException(CSQL_NOT_SUPPORTED
);
773 public synchronized void setBlob(String parameterName
, Blob x
) throws SQLException
775 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::setBlob called");
776 throw getException(CSQL_NOT_SUPPORTED
);
779 public synchronized void setSQLXML(String parameterName
, SQLXML x
) throws SQLException
781 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::setSQLXML called");
782 throw getException(CSQL_NOT_SUPPORTED
);
785 public synchronized void setNClob(String parameterName
,NClob x
) throws SQLException
787 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::setNClob called");
788 throw getException(CSQL_NOT_SUPPORTED
);
790 public synchronized void setNString(String parameterName
,String x
) throws SQLException
792 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::setNString called");
793 throw getException(CSQL_NOT_SUPPORTED
);
795 public synchronized void setRowId(String parameterName
,RowId x
) throws SQLException
797 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::setRowId called");
798 throw getException(CSQL_NOT_SUPPORTED
);
801 //is method sets the specified parameter from the given Java java.sql.Timestamp value.
803 public synchronized void setURL(String name
, URL value
) throws SQLException
805 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::setURL called");
806 throw getException(CSQL_NOT_SUPPORTED
);
808 //This method sets the value of the specified parameter to the specified java.net.URL
810 public synchronized boolean wasNull() throws SQLException
812 if (JSqlError
.isDebug
) System
.out
.println("JdbcSqlCallableStatement::wasNull called");
813 throw getException(CSQL_NOT_SUPPORTED
);
815 //This method tests whether the value of the last parameter that was fetched was actually a SQL NULL value.