Public Member Functions | |
CallableStatement (Connection connection, String sql) throws SQLException | |
void | registerOutParameter (int parameterIndex, int sqlType) throws SQLException |
void | registerOutParameter (int parameterIndex, int sqlType, int scale) throws SQLException |
boolean | wasNull () throws SQLException |
String | getString (int parameterIndex) throws SQLException |
boolean | getBoolean (int parameterIndex) throws SQLException |
byte | getByte (int parameterIndex) throws SQLException |
short | getShort (int parameterIndex) throws SQLException |
int | getInt (int parameterIndex) throws SQLException |
long | getLong (int parameterIndex) throws SQLException |
float | getFloat (int parameterIndex) throws SQLException |
double | getDouble (int parameterIndex) throws SQLException |
BigDecimal | getBigDecimal (int parameterIndex, int scale) throws SQLException |
byte[] | getBytes (int parameterIndex) throws SQLException |
Date | getDate (int parameterIndex) throws SQLException |
Time | getTime (int parameterIndex) throws SQLException |
Timestamp | getTimestamp (int parameterIndex) throws SQLException |
Object | getObject (int parameterIndex) throws SQLException |
BigDecimal | getBigDecimal (int parameterIndex) throws SQLException |
Object | getObject (int i, Map map) throws SQLException |
Ref | getRef (int i) throws SQLException |
Blob | getBlob (int i) throws SQLException |
Clob | getClob (int i) throws SQLException |
Array | getArray (int i) throws SQLException |
Date | getDate (int parameterIndex, Calendar cal) throws SQLException |
Time | getTime (int parameterIndex, Calendar cal) throws SQLException |
Timestamp | getTimestamp (int parameterIndex, Calendar cal) throws SQLException |
void | registerOutParameter (int paramIndex, int sqlType, String typeName) throws SQLException |
void | registerOutParameter (String parameterName, int sqlType) throws SQLException |
void | registerOutParameter (String parameterName, int sqlType, int scale) throws SQLException |
void | registerOutParameter (String parameterName, int sqlType, String typeName) throws SQLException |
URL | getURL (int parameterIndex) throws SQLException |
void | setURL (String parameterName, URL val) throws SQLException |
void | setNull (String parameterName, int sqlType) throws SQLException |
void | setBoolean (String parameterName, boolean x) throws SQLException |
void | setByte (String parameterName, byte x) throws SQLException |
void | setShort (String parameterName, short x) throws SQLException |
void | setInt (String parameterName, int x) throws SQLException |
void | setLong (String parameterName, long x) throws SQLException |
void | setFloat (String parameterName, float x) throws SQLException |
void | setDouble (String parameterName, double x) throws SQLException |
void | setBigDecimal (String parameterName, BigDecimal x) throws SQLException |
void | setString (String parameterName, String x) throws SQLException |
void | setBytes (String parameterName, byte[] x) throws SQLException |
void | setDate (String parameterName, Date x) throws SQLException |
void | setTime (String parameterName, Time x) throws SQLException |
void | setTimestamp (String parameterName, Timestamp x) throws SQLException |
void | setAsciiStream (String parameterName, InputStream x, int length) throws SQLException |
void | setBinaryStream (String parameterName, InputStream x, int length) throws SQLException |
void | setObject (String parameterName, Object x, int targetSqlType, int scale) throws SQLException |
void | setObject (String parameterName, Object x, int targetSqlType) throws SQLException |
void | setObject (String parameterName, Object x) throws SQLException |
void | setCharacterStream (String parameterName, Reader reader, int length) throws SQLException |
void | setDate (String parameterName, Date x, Calendar cal) throws SQLException |
void | setTime (String parameterName, Time x, Calendar cal) throws SQLException |
void | setTimestamp (String parameterName, Timestamp x, Calendar cal) throws SQLException |
void | setNull (String parameterName, int sqlType, String typeName) throws SQLException |
String | getString (String parameterName) throws SQLException |
boolean | getBoolean (String parameterName) throws SQLException |
byte | getByte (String parameterName) throws SQLException |
short | getShort (String parameterName) throws SQLException |
int | getInt (String parameterName) throws SQLException |
long | getLong (String parameterName) throws SQLException |
float | getFloat (String parameterName) throws SQLException |
double | getDouble (String parameterName) throws SQLException |
byte[] | getBytes (String parameterName) throws SQLException |
Date | getDate (String parameterName) throws SQLException |
Time | getTime (String parameterName) throws SQLException |
Timestamp | getTimestamp (String parameterName) throws SQLException |
Object | getObject (String parameterName) throws SQLException |
BigDecimal | getBigDecimal (String parameterName) throws SQLException |
Object | getObject (String parameterName, Map map) throws SQLException |
Ref | getRef (String parameterName) throws SQLException |
Blob | getBlob (String parameterName) throws SQLException |
Clob | getClob (String parameterName) throws SQLException |
Array | getArray (String parameterName) throws SQLException |
Date | getDate (String parameterName, Calendar cal) throws SQLException |
Time | getTime (String parameterName, Calendar cal) throws SQLException |
Timestamp | getTimestamp (String parameterName, Calendar cal) throws SQLException |
URL | getURL (String parameterName) throws SQLException |
{call <procedure-name>[<arg1>,<arg2>, ...]}
The other standard form
{?= call <procedure-name>[<arg1>,<arg2>, ...]}
is *NOT* supported. Parameters are referred to sequentially, by number, with the first parameter being 1. IN parameter values are set using the set
methods inherited from PreparedStatement.
OUT parameters are *NOT* supported.
A CallableStatement
can return one DriverResultSet object or multiple ResultSet
objects. Multiple ResultSet
objects are handled using operations inherited from Statement.
Definition at line 76 of file CallableStatement.java.
|
Definition at line 88 of file CallableStatement.java. 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 }
|
|
Retrieves the value of a JDBC
Definition at line 1560 of file CallableStatement.java. 01561 { 01562 throw new NotImplementedException("getArray"); 01563 }
|
|
Retrieves the value of the designated JDBC
Definition at line 502 of file CallableStatement.java. 00503 { 00504 throw new NotImplementedException("getArray"); 00505 }
|
|
Retrieves the value of a JDBC
Definition at line 1474 of file CallableStatement.java. 01475 { 01476 throw new NotImplementedException("getBigDecimal"); 01477 }
|
|
Retrieves the value of the designated JDBC
Definition at line 415 of file CallableStatement.java. 00416 { 00417 throw new NotImplementedException(""); 00418 }
|
|
Retrieves the value of the designated JDBC
Definition at line 309 of file CallableStatement.java. 00311 { 00312 throw new NotImplementedException("getBigDecimal"); 00313 }
|
|
Retrieves the value of a JDBC
Definition at line 1528 of file CallableStatement.java. 01529 { 01530 throw new NotImplementedException("getBlob"); 01531 }
|
|
Retrieves the value of the designated JDBC
Definition at line 470 of file CallableStatement.java. 00471 { 00472 throw new NotImplementedException("getBlob"); 00473 }
|
|
Retrieves the value of a JDBC
Definition at line 1273 of file CallableStatement.java. 01274 { 01275 throw new NotImplementedException("getBoolean"); 01276 }
|
|
Retrieves the value of the designated JDBC
Definition at line 200 of file CallableStatement.java. 00201 { 00202 throw new NotImplementedException("getBoolean"); 00203 }
|
|
Retrieves the value of a JDBC
Definition at line 1289 of file CallableStatement.java. 01290 { 01291 throw new NotImplementedException("getByte"); 01292 }
|
|
Retrieves the value of the designated JDBC
Definition at line 215 of file CallableStatement.java. 00216 { 00217 throw new NotImplementedException("getByte"); 00218 }
|
|
Retrieves the value of a JDBC
Definition at line 1386 of file CallableStatement.java. 01387 { 01388 throw new NotImplementedException("getBytes"); 01389 }
|
|
Retrieves the value of the designated JDBC
Definition at line 326 of file CallableStatement.java. 00327 { 00328 throw new NotImplementedException("getBytes"); 00329 }
|
|
Retrieves the value of a JDBC
Definition at line 1544 of file CallableStatement.java. 01545 { 01546 throw new NotImplementedException("getClob"); 01547 }
|
|
Retrieves the value of the designated JDBC
Definition at line 486 of file CallableStatement.java. 00487 { 00488 throw new NotImplementedException("getClob"); 00489 }
|
|
Retrieves the value of a JDBC
Definition at line 1582 of file CallableStatement.java. 01583 { 01584 throw new NotImplementedException("getDate"); 01585 }
|
|
Retrieves the value of a JDBC
Definition at line 1402 of file CallableStatement.java. 01403 { 01404 throw new NotImplementedException("getDate"); 01405 }
|
|
Retrieves the value of the designated JDBC
Definition at line 524 of file CallableStatement.java. 00525 { 00526 throw new NotImplementedException("getDate"); 00527 }
|
|
Retrieves the value of the designated JDBC
Definition at line 341 of file CallableStatement.java. 00342 { 00343 throw new NotImplementedException("getDate"); 00344 }
|
|
Retrieves the value of a JDBC
Definition at line 1369 of file CallableStatement.java. 01370 { 01371 throw new NotImplementedException("getDouble"); 01372 }
|
|
Retrieves the value of the designated JDBC
Definition at line 290 of file CallableStatement.java. 00291 { 00292 throw new NotImplementedException("getDouble"); 00293 }
|
|
Retrieves the value of a JDBC
Definition at line 1353 of file CallableStatement.java. 01354 { 01355 throw new NotImplementedException("getFloat"); 01356 }
|
|
Retrieves the value of the designated JDBC
Definition at line 275 of file CallableStatement.java. 00276 { 00277 throw new NotImplementedException("getFloat"); 00278 }
|
|
Retrieves the value of a JDBC
Definition at line 1321 of file CallableStatement.java. 01322 { 01323 throw new NotImplementedException("getInt"); 01324 }
|
|
Retrieves the value of the designated JDBC
Definition at line 245 of file CallableStatement.java. 00246 { 00247 throw new NotImplementedException("getInt"); 00248 }
|
|
Retrieves the value of a JDBC
Definition at line 1337 of file CallableStatement.java. 01338 { 01339 throw new NotImplementedException("getLong"); 01340 }
|
|
Retrieves the value of the designated JDBC
Definition at line 260 of file CallableStatement.java. 00261 { 00262 throw new NotImplementedException("getLong"); 00263 }
|
|
Returns an object representing the value of OUT parameter
This method returns a Java object whose type corresponds to the JDBC type that was registered for this parameter using the method
Definition at line 1496 of file CallableStatement.java. 01497 { 01498 throw new NotImplementedException("getObject"); 01499 }
|
|
Retrieves the value of a parameter as an
This method returns a Java object whose type corresponds to the JDBC type that was registered for this parameter using the method
Definition at line 1457 of file CallableStatement.java. 01458 { 01459 throw new NotImplementedException("getObject"); 01460 }
|
|
Returns an object representing the value of OUT parameter
This method returns a Java object whose type corresponds to the JDBC type that was registered for this parameter using the method
Definition at line 437 of file CallableStatement.java. 00438 { 00439 throw new NotImplementedException("getObject"); 00440 }
|
|
Retrieves the value of the designated parameter as an
This method returns a Java object whose type corresponds to the JDBC type that was registered for this parameter using the method
Definition at line 396 of file CallableStatement.java. 00397 { 00398 throw new NotImplementedException("getObject"); 00399 }
|
|
Retrieves the value of a JDBC
Definition at line 1512 of file CallableStatement.java. 01513 { 01514 throw new NotImplementedException("getRef"); 01515 }
|
|
Retrieves the value of the designated JDBC
Definition at line 454 of file CallableStatement.java. 00455 { 00456 throw new NotImplementedException("getRef"); 00457 }
|
|
Retrieves the value of a JDBC
Definition at line 1305 of file CallableStatement.java. 01306 { 01307 throw new NotImplementedException("getShort"); 01308 }
|
|
Retrieves the value of the designated JDBC
Definition at line 230 of file CallableStatement.java. 00231 { 00232 throw new NotImplementedException("getShort"); 00233 }
|
|
Retrieves the value of a JDBC
For the fixed-length type JDBC
Definition at line 1257 of file CallableStatement.java. 01258 { 01259 throw new NotImplementedException("getString"); 01260 }
|
|
Retrieves the value of the designated JDBC
For the fixed-length type JDBC
Definition at line 185 of file CallableStatement.java. 00186 { 00187 throw new NotImplementedException("getString"); 00188 }
|
|
Retrieves the value of a JDBC
Definition at line 1604 of file CallableStatement.java. 01605 { 01606 throw new NotImplementedException("getTime"); 01607 }
|
|
Retrieves the value of a JDBC
Definition at line 1418 of file CallableStatement.java. 01419 { 01420 throw new NotImplementedException("getTime"); 01421 }
|
|
Retrieves the value of the designated JDBC
Definition at line 546 of file CallableStatement.java. 00547 { 00548 throw new NotImplementedException("getTime"); 00549 }
|
|
Retrieves the value of the designated JDBC
Definition at line 356 of file CallableStatement.java. 00357 { 00358 throw new NotImplementedException("getTime"); 00359 }
|
|
Retrieves the value of a JDBC
Definition at line 1627 of file CallableStatement.java. 01629 { 01630 throw new NotImplementedException("getTimestamp"); 01631 }
|
|
Retrieves the value of a JDBC
Definition at line 1434 of file CallableStatement.java. 01435 { 01436 throw new NotImplementedException("getTimestamp"); 01437 }
|
|
Retrieves the value of the designated JDBC
Definition at line 569 of file CallableStatement.java. 00571 { 00572 throw new NotImplementedException("getTimestamp"); 00573 }
|
|
Retrieves the value of the designated JDBC
Definition at line 371 of file CallableStatement.java. 00372 { 00373 throw new NotImplementedException("getTimestamp"); 00374 }
|
|
Retrieves the value of a JDBC
Definition at line 1646 of file CallableStatement.java. 01647 { 01648 throw new NotImplementedException("getURL"); 01649 }
|
|
Retrieves the value of the designated JDBC
Definition at line 721 of file CallableStatement.java. 00722 { 00723 throw new NotImplementedException("getURL"); 00724 }
|
|
Registers the designated output parameter. This version of the method
Before executing a stored procedure call, you must explicitly call Although it is intended for user-named and REF parameters, this method may be used to register a parameter of any JDBC type. If the parameter does not have a user-named or REF type, the typeName parameter is ignored.
Note: When reading the value of an out parameter, you must use the
Definition at line 703 of file CallableStatement.java. 00705 { 00706 throw new NotImplementedException("registerOutParameter"); 00707 }
|
|
Registers the parameter named
The JDBC type specified by
This version of
Definition at line 666 of file CallableStatement.java. 00668 { 00669 throw new NotImplementedException("registerOutParameter"); 00670 }
|
|
Registers the OUT parameter named
The JDBC type specified by
If the JDBC type expected to be returned to this output parameter is specific to this particular database,
Definition at line 640 of file CallableStatement.java. 00642 { 00643 throw new NotImplementedException("registerOutParameter"); 00644 }
|
|
Registers the designated output parameter. This version of the method
Before executing a stored procedure call, you must explicitly call
Although it is intended for user-defined and Note: When reading the value of an out parameter, you must use the getter method whose Java type corresponds to the parameter's registered SQL type.
Definition at line 608 of file CallableStatement.java. 00610 { 00611 throw new NotImplementedException("registerOutParameter"); 00612 }
|
|
Registers the parameter in ordinal position
The JDBC type specified by
This version of
Definition at line 147 of file CallableStatement.java. 00149 { 00150 throw new NotImplementedException( 00151 "registerOutParameter(int parameterIndex, int sqlType, int scale)"); 00152 }
|
|
Registers the OUT parameter in ordinal position
The JDBC type specified by
If the JDBC type expected to be returned to this output parameter is specific to this particular database,
Definition at line 121 of file CallableStatement.java. 00123 { 00124 throw new NotImplementedException( 00125 "registerOutParameter(int parameterIndex, int sqlType)"); 00126 }
|
|
Sets the designated parameter to the given input stream, which will have the specified number of bytes. When a very large ASCII value is input to a Note: This stream object can either be a standard Java stream object or your own subclass that implements the standard interface.
Definition at line 989 of file CallableStatement.java. 00991 { 00992 throw new NotImplementedException("setAsciiStream"); 00993 }
|
|
Sets the designated parameter to the given
Definition at line 881 of file CallableStatement.java. 00883 { 00884 throw new NotImplementedException("setBigDecimal"); 00885 }
|
|
Sets the designated parameter to the given input stream, which will have the specified number of bytes. When a very large binary value is input to a Note: This stream object can either be a standard Java stream object or your own subclass that implements the standard interface.
Definition at line 1011 of file CallableStatement.java. 01013 { 01014 throw new NotImplementedException("setBinaryStream"); 01015 }
|
|
Sets the designated parameter to the given Java
Definition at line 769 of file CallableStatement.java. 00770 { 00771 throw new NotImplementedException("setBoolean"); 00772 }
|
|
Sets the designated parameter to the given Java
Definition at line 785 of file CallableStatement.java. 00786 { 00787 throw new NotImplementedException("setByte"); 00788 }
|
|
Sets the designated parameter to the given Java array of bytes. The driver converts this to an SQL
Definition at line 918 of file CallableStatement.java. 00919 { 00920 throw new NotImplementedException("setBytes"); 00921 }
|
|
Sets the designated parameter to the given Note: This stream object can either be a standard Java stream object or your own subclass that implements the standard interface.
Definition at line 1131 of file CallableStatement.java. 01133 { 01134 throw new NotImplementedException(""); 01135 }
|
|
Sets the designated parameter to the given
Definition at line 1155 of file CallableStatement.java. 01157 { 01158 throw new NotImplementedException("setDate"); 01159 }
|
|
Sets the designated parameter to the given
Definition at line 934 of file CallableStatement.java. 00935 { 00936 throw new NotImplementedException("setDate"); 00937 }
|
|
Sets the designated parameter to the given Java
Definition at line 865 of file CallableStatement.java. 00866 { 00867 throw new NotImplementedException("setDouble"); 00868 }
|
|
Sets the designated parameter to the given Java
Definition at line 849 of file CallableStatement.java. 00850 { 00851 throw new NotImplementedException("setFloat"); 00852 }
|
|
Sets the designated parameter to the given Java
Definition at line 817 of file CallableStatement.java. 00818 { 00819 throw new NotImplementedException("setInt"); 00820 }
|
|
Sets the designated parameter to the given Java
Definition at line 833 of file CallableStatement.java. 00834 { 00835 throw new NotImplementedException("setLong"); 00836 }
|
|
Sets the designated parameter to SQL Note: to be portable, applications must give the SQL type code and the fully-qualified SQL type name when specifying a NULL user-defined or REF parameter. In the case of a user-defined type the name is the type name of the parameter itself. For a REF parameter, the name is the type name of the referenced type. If a JDBC driver does not need the type code or type name information, it may ignore it. Although it is intended for user-defined and Ref parameters, this method may be used to set a null parameter of any JDBC type. If the parameter does not have a user-defined or REF type, the given typeName is ignored.
Definition at line 1234 of file CallableStatement.java. 01236 { 01237 throw new NotImplementedException("setNull"); 01238 }
|
|
Sets the designated parameter to SQL Note: you must specify the parameter's SQL type.
Definition at line 753 of file CallableStatement.java. 00754 { 00755 throw new NotImplementedException("setNull"); 00756 }
|
|
Sets the value of the designated parameter with the given object. The second parameter must be of type
The JDBC specification specifies a standard mapping from Java Note that this method may be used to pass datatabase-specific abstract data types, by using a driver-specific Java type.
If the object is of a class implementing the interface This method throws an exception if there is an ambiguity, for example, if the object is of a class implementing more than one of the interfaces named above.
Definition at line 1107 of file CallableStatement.java. 01108 { 01109 throw new NotImplementedException("setObject"); 01110 }
|
|
Sets the value of the designated parameter with the given object. This method is like the method
Definition at line 1069 of file CallableStatement.java. 01071 { 01072 throw new NotImplementedException("setObject"); 01073 }
|
|
Sets the value of the designated parameter with the given object. The second argument must be an object type; for integral values, the
The given Java object will be converted to the given
If the object has a custom mapping (is of a class implementing the interface Note that this method may be used to pass datatabase-specific abstract data types.
Definition at line 1050 of file CallableStatement.java. 01052 { 01053 throw new NotImplementedException("setObject"); 01054 }
|
|
Sets the designated parameter to the given Java
Definition at line 801 of file CallableStatement.java. 00802 { 00803 throw new NotImplementedException("setShort"); 00804 }
|
|
Sets the designated parameter to the given Java
Definition at line 900 of file CallableStatement.java. 00901 { 00902 throw new NotImplementedException("setString"); 00903 }
|
|
Sets the designated parameter to the given
Definition at line 1179 of file CallableStatement.java. 01181 { 01182 throw new NotImplementedException("setTime"); 01183 }
|
|
Sets the designated parameter to the given
Definition at line 950 of file CallableStatement.java. 00951 { 00952 throw new NotImplementedException("setTime"); 00953 }
|
|
Sets the designated parameter to the given
Definition at line 1203 of file CallableStatement.java. 01205 { 01206 throw new NotImplementedException("setTimestamp"); 01207 }
|
|
Sets the designated parameter to the given
Definition at line 966 of file CallableStatement.java. 00968 { 00969 throw new NotImplementedException("setTimestamp"); 00970 }
|
|
Sets the designated parameter to the given
Definition at line 738 of file CallableStatement.java. 00739 { 00740 throw new NotImplementedException("setURL"); 00741 }
|
|
Retrieves whether the last OUT parameter read had the value of SQL
Definition at line 164 of file CallableStatement.java. 00165 { 00166 throw new NotImplementedException("wasNull"); 00167 }
|