|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
, Statement

public interface CallableStatement

The interface used to execute SQL stored procedures. The JDBC API provides a stored procedure SQL escape syntax that allows stored procedures to be called in a standard way for all RDBMSs. This escape syntax has one form that includes a result parameter and one that does not. If used, the result parameter must be registered as an OUT parameter. The other parameters can be used for input, output or both. Parameters are referred to sequentially, by number, with the first parameter being 1.
{?= call <procedure-name>[<arg1>,<arg2>, ...]}
{call <procedure-name>[<arg1>,<arg2>, ...]}
IN parameter values are set using the set methods inherited from
PreparedStatement
. The type of all OUT parameters must be
registered prior to executing the stored procedure; their values
are retrieved after execution via the get methods provided here.
A CallableStatement can return one ResultSet
object or
multiple ResultSet objects. Multiple
ResultSet objects are handled using operations
inherited from Statement
.
For maximum portability, a call's ResultSet objects and
update counts should be processed prior to getting the values of output
parameters.
Connection.prepareCall(java.lang.String)
,
ResultSet

| Field Summary |
|---|
Fields inherited from interface java.sql.Statement ![]() |
|---|
CLOSE_ALL_RESULTS |
| Method Summary | |
|---|---|
Array |
getArray
Retrieves the value of the designated JDBC ARRAY parameter as an
Array object in the Java programming language. |
Array |
getArray
Retrieves the value of a JDBC ARRAY parameter as an
Array object in the Java programming language. |
BigDecimal |
getBigDecimal
Retrieves the value of the designated JDBC NUMERIC parameter as a
java.math.BigDecimal object with as many digits to the
right of the decimal point as the value contains. |
BigDecimal |
getBigDecimal
Deprecated. use getBigDecimal(int parameterIndex)
or getBigDecimal(String parameterName) |
BigDecimal |
getBigDecimal
Retrieves the value of a JDBC NUMERIC parameter as a
java.math.BigDecimal object with as many digits to the
right of the decimal point as the value contains. |
Blob |
getBlob
Retrieves the value of the designated JDBC BLOB parameter as a
Blob object in the Java programming language. |
Blob |
getBlob
Retrieves the value of a JDBC BLOB parameter as a
Blob object in the Java programming language. |
boolean |
getBoolean
Retrieves the value of the designated JDBC BIT parameter as a
boolean in the Java programming language. |
boolean |
getBoolean
Retrieves the value of a JDBC BIT parameter as a
boolean in the Java programming language. |
byte |
getByte
Retrieves the value of the designated JDBC TINYINT parameter
as a byte in the Java programming language. |
byte |
getByte
Retrieves the value of a JDBC TINYINT parameter as a byte
in the Java programming language. |
byte[] |
getBytes
Retrieves the value of the designated JDBC BINARY or
VARBINARY parameter as an array of byte
values in the Java programming language. |
byte[] |
getBytes
Retrieves the value of a JDBC BINARY or VARBINARY
parameter as an array of byte values in the Java
programming language. |
Clob |
getClob
Retrieves the value of the designated JDBC CLOB parameter as a
Clob object in the Java programming language. |
Clob |
getClob
Retrieves the value of a JDBC CLOB parameter as a
Clob object in the Java programming language. |
Date |
getDate
Retrieves the value of the designated JDBC DATE parameter as a
java.sql.Date object. |
Date |
getDate
Retrieves the value of the designated JDBC DATE parameter as a
java.sql.Date object, using
the given Calendar object
to construct the date. |
Date |
getDate
Retrieves the value of a JDBC DATE parameter as a
java.sql.Date object. |
Date |
getDate
Retrieves the value of a JDBC DATE parameter as a
java.sql.Date object, using
the given Calendar object
to construct the date. |
double |
getDouble
Retrieves the value of the designated JDBC DOUBLE parameter as a double
in the Java programming language. |
double |
getDouble
Retrieves the value of a JDBC DOUBLE parameter as a double
in the Java programming language. |
float |
getFloat
Retrieves the value of the designated JDBC FLOAT parameter
as a float in the Java programming language. |
float |
getFloat
Retrieves the value of a JDBC FLOAT parameter as a float
in the Java programming language. |
int |
getInt
Retrieves the value of the designated JDBC INTEGER parameter
as an int in the Java programming language. |
int |
getInt
Retrieves the value of a JDBC INTEGER parameter as an int
in the Java programming language. |
long |
getLong
Retrieves the value of the designated JDBC BIGINT parameter
as a long in the Java programming language. |
long |
getLong
Retrieves the value of a JDBC BIGINT parameter as a long
in the Java programming language. |
Object |
getObject
Retrieves the value of the designated parameter as an Object
in the Java programming language. |
Object |
getObject
Returns an object representing the value of OUT parameter i and uses map for the custom
mapping of the parameter value. |
Object |
getObject
Retrieves the value of a parameter as an Object in the Java
programming language. |
Object |
getObject
Returns an object representing the value of OUT parameter i and uses map for the custom
mapping of the parameter value. |
Ref |
getRef
Retrieves the value of the designated JDBC REF(<structured-type>)
parameter as a Ref object in the Java programming language. |
Ref |
getRef
Retrieves the value of a JDBC REF(<structured-type>)
parameter as a Ref object in the Java programming language. |
short |
getShort
Retrieves the value of the designated JDBC SMALLINT parameter
as a short in the Java programming language. |
short |
getShort
Retrieves the value of a JDBC SMALLINT parameter as a short
in the Java programming language. |
String |
getString
Retrieves the value of the designated JDBC CHAR,
VARCHAR, or LONGVARCHAR parameter as a
String in the Java programming language. |
String |
getString
Retrieves the value of a JDBC CHAR, VARCHAR,
or LONGVARCHAR parameter as a String in
the Java programming language. |
Time |
getTime
Retrieves the value of the designated JDBC TIME parameter as a
java.sql.Time object. |
Time |
getTime
Retrieves the value of the designated JDBC TIME parameter as a
java.sql.Time object, using
the given Calendar object
to construct the time. |
Time |
getTime
Retrieves the value of a JDBC TIME parameter as a
java.sql.Time object. |
Time |
getTime
Retrieves the value of a JDBC TIME parameter as a
java.sql.Time object, using
the given Calendar object
to construct the time. |
Timestamp |
getTimestamp
Retrieves the value of the designated JDBC TIMESTAMP parameter as a
java.sql.Timestamp object. |
Timestamp |
getTimestamp
Retrieves the value of the designated JDBC TIMESTAMP parameter as a
java.sql.Timestamp object, using
the given Calendar object to construct
the Timestamp object. |
Timestamp |
getTimestamp
Retrieves the value of a JDBC TIMESTAMP parameter as a
java.sql.Timestamp object. |
Timestamp |
getTimestamp
Retrieves the value of a JDBC TIMESTAMP parameter as a
java.sql.Timestamp object, using
the given Calendar object to construct
the Timestamp object. |
URL |
getURL
Retrieves the value of the designated JDBC DATALINK parameter as a
java.net.URL object. |
URL |
getURL
Retrieves the value of a JDBC DATALINK parameter as a
java.net.URL object. |
void |
registerOutParameter
Registers the OUT parameter in ordinal position parameterIndex to the JDBC type
sqlType. |
void |
registerOutParameter
Registers the parameter in ordinal position parameterIndex to be of JDBC type
sqlType. |
void |
registerOutParameter
Registers the designated output parameter. |
void |
registerOutParameter
Registers the OUT parameter named parameterName to the JDBC type
sqlType. |
void |
registerOutParameter
Registers the parameter named parameterName to be of JDBC type
sqlType. |
void |
registerOutParameter
Registers the designated output parameter. |
void |
setAsciiStream
Sets the designated parameter to the given input stream, which will have the specified number of bytes. |
void |
setBigDecimal
Sets the designated parameter to the given java.math.BigDecimal value. |
void |
setBinaryStream
Sets the designated parameter to the given input stream, which will have the specified number of bytes. |
void |
setBoolean
Sets the designated parameter to the given Java boolean value. |
void |
setByte
Sets the designated parameter to the given Java byte value. |
void |
setBytes
Sets the designated parameter to the given Java array of bytes. |
void |
setCharacterStream |