{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.
CallableStatement.java の 79 行で定義されています。
Public メソッド | |
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 |
|
|
|
Retrieves the value of a JDBC
|
|
Retrieves the value of the designated JDBC
|
|
Retrieves the value of a JDBC
|
|
Retrieves the value of the designated JDBC
|
|
Retrieves the value of the designated JDBC
|
|
Retrieves the value of a JDBC
|
|
Retrieves the value of the designated JDBC
|
|
Retrieves the value of a JDBC
|
|
Retrieves the value of the designated JDBC
|
|
Retrieves the value of a JDBC
|
|
Retrieves the value of the designated JDBC
|
|
Retrieves the value of a JDBC
|
|
Retrieves the value of the designated JDBC
|
|
Retrieves the value of a JDBC
|
|
Retrieves the value of the designated JDBC
|
|
Retrieves the value of a JDBC
|
|
Retrieves the value of a JDBC
|
|
Retrieves the value of the designated JDBC
|
|
Retrieves the value of the designated JDBC
|
|
Retrieves the value of a JDBC
|
|
Retrieves the value of the designated JDBC
|
|
Retrieves the value of a JDBC
|
|
Retrieves the value of the designated JDBC
|
|
Retrieves the value of a JDBC
|
|
Retrieves the value of the designated JDBC
|
|
Retrieves the value of a JDBC
|
|
Retrieves the value of the designated JDBC
|
|
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
|
|
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
|
|
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
|
|
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
|
|
Retrieves the value of a JDBC
|
|
Retrieves the value of the designated JDBC
|
|
Retrieves the value of a JDBC
|
|
Retrieves the value of the designated JDBC
|
|
Retrieves the value of a JDBC
For the fixed-length type JDBC
|
|
Retrieves the value of the designated JDBC
For the fixed-length type JDBC
|
|
Retrieves the value of a JDBC
|
|
Retrieves the value of a JDBC
|
|
Retrieves the value of the designated JDBC
|
|
Retrieves the value of the designated JDBC
|
|
Retrieves the value of a JDBC
|
|
Retrieves the value of a JDBC
|
|
Retrieves the value of the designated JDBC
|
|
Retrieves the value of the designated JDBC
|
|
Retrieves the value of a JDBC
|
|
Retrieves the value of the designated JDBC
|
|
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
|
|
Registers the parameter named
The JDBC type specified by
This version of
|
|
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,
|
|
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.
|
|
Registers the parameter in ordinal position
The JDBC type specified by
This version of
|
|
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,
|
|
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.
|
|
Sets the designated parameter to the given
|
|
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.
|
|
Sets the designated parameter to the given Java
|
|
Sets the designated parameter to the given Java
|
|
Sets the designated parameter to the given Java array of bytes. The driver converts this to an SQL
|
|
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.
|
|
Sets the designated parameter to the given
|
|
Sets the designated parameter to the given
|
|
Sets the designated parameter to the given Java
|
|
Sets the designated parameter to the given Java
|
|
Sets the designated parameter to the given Java
|
|
Sets the designated parameter to the given Java
|
|
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.
|
|
Sets the designated parameter to SQL Note: you must specify the parameter's SQL type.
|
|
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.
|
|
Sets the value of the designated parameter with the given object. This method is like the method
|
|
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.
|
|
Sets the designated parameter to the given Java
|
|
Sets the designated parameter to the given Java
|
|
Sets the designated parameter to the given
|
|
Sets the designated parameter to the given
|
|
Sets the designated parameter to the given
|
|
Sets the designated parameter to the given
|
|
Sets the designated parameter to the given
|
|
Retrieves whether the last OUT parameter read had the value of SQL
|