| Java™ Platform Standard Ed. 6 | ||||||||||
public interfaceCallableStatement
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 theset methods inherited fromPreparedStatement. The type of all OUT parameters must be registered prior to executing the stored procedure; their values are retrieved after execution via theget methods provided here.
ACallableStatement can return oneResultSet object or multipleResultSet objects. MultipleResultSet objects are handled using operations inherited fromStatement.
For maximum portability, a call'sResultSet objects and update counts should be processed prior to getting the values of output parameters.
Connection.prepareCall(java.lang.String),ResultSet| Fields inherited from interface java.sql.Statement |
|---|
CLOSE_ALL_RESULTS,CLOSE_CURRENT_RESULT,EXECUTE_FAILED,KEEP_CURRENT_RESULT,NO_GENERATED_KEYS,RETURN_GENERATED_KEYS,SUCCESS_NO_INFO |
getArray(int parameterIndex)Retrieves the value of the designated JDBC ARRAY parameter as anArray object in the Java programming language. | |
getArray(String parameterName)Retrieves the value of a JDBC ARRAY parameter as anArray object in the Java programming language. | |
getBigDecimal(int parameterIndex)Retrieves the value of the designated JDBC NUMERIC parameter as ajava.math.BigDecimal object with as many digits to the right of the decimal point as the value contains. | |
getBigDecimal(int parameterIndex, int scale)Deprecated. use getBigDecimal(int parameterIndex) orgetBigDecimal(String parameterName) | |
getBigDecimal(String parameterName)Retrieves the value of a JDBC NUMERIC parameter as ajava.math.BigDecimal object with as many digits to the right of the decimal point as the value contains. | |
getBlob(int parameterIndex)Retrieves the value of the designated JDBC BLOB parameter as aBlob object in the Java programming language. | |
getBlob(String parameterName)Retrieves the value of a JDBC BLOB parameter as aBlob object in the Java programming language. | |
getBoolean(int parameterIndex)Retrieves the value of the designated JDBC BIT orBOOLEAN parameter as aboolean in the Java programming language. | |
getBoolean(String parameterName)Retrieves the value of a JDBC BIT orBOOLEAN parameter as aboolean in the Java programming language. | |
getByte(int parameterIndex)Retrieves the value of the designated JDBC TINYINT parameter as abyte in the Java programming language. | |
getByte(String parameterName)Retrieves the value of a JDBC TINYINT parameter as abyte in the Java programming language. | |
getBytes(int parameterIndex)Retrieves the value of the designated JDBC BINARY orVARBINARY parameter as an array ofbyte values in the Java programming language. | |
getBytes(String parameterName)Retrieves the value of a JDBC BINARY orVARBINARY parameter as an array ofbyte values in the Java programming language. | |
getCharacterStream(int parameterIndex)Retrieves the value of the designated parameter as a java.io.Reader object in the Java programming language. | |
getCharacterStream(String parameterName)Retrieves the value of the designated parameter as a java.io.Reader object in the Java programming language. | |
getClob(int parameterIndex)Retrieves the value of the designated JDBC CLOB parameter as ajava.sql.Clob object in the Java programming language. | |
getClob(String parameterName)Retrieves the value of a JDBC CLOB parameter as ajava.sql.Clob object in the Java programming language. | |
getDate(int parameterIndex)Retrieves the value of the designated JDBC DATE parameter as ajava.sql.Date object. | |
getDate(int parameterIndex,Calendar cal)Retrieves the value of the designated JDBC DATE parameter as ajava.sql.Date object, using the givenCalendar object to construct the date. | |
getDate(String parameterName)Retrieves the value of a JDBC DATE parameter as ajava.sql.Date object. | |
getDate(String parameterName,Calendar cal)Retrieves the value of a JDBC DATE parameter as ajava.sql.Date object, using the givenCalendar object to construct the date. | |
getDouble(int parameterIndex)Retrieves the value of the designated JDBC DOUBLE parameter as adouble in the Java programming language. | |
getDouble(String parameterName)Retrieves the value of a JDBC DOUBLE parameter as adouble in the Java programming language. | |
getFloat(int parameterIndex)Retrieves the value of the designated JDBC FLOAT parameter as afloat in the Java programming language. | |
getFloat(String parameterName)Retrieves the value of a JDBC FLOAT parameter as afloat in the Java programming language. | |
getInt(int parameterIndex)Retrieves the value of the designated JDBC INTEGER parameter as anint in the Java programming language. | |
getInt(String parameterName)Retrieves the value of a JDBC INTEGER parameter as anint in the Java programming language. | |
getLong(int parameterIndex)Retrieves the value of the designated JDBC BIGINT parameter as along in the Java programming language. | |
getLong(String parameterName)Retrieves the value of a JDBC BIGINT parameter as along in the Java programming language. | |
getNCharacterStream(int parameterIndex)Retrieves the value of the designated parameter as a java.io.Reader object in the Java programming language. | |
getNCharacterStream(String parameterName)Retrieves the value of the designated parameter as a java.io.Reader object in the Java programming language. | |
getNClob(int parameterIndex)Retrieves the value of the designated JDBC NCLOB parameter as ajava.sql.NClob object in the Java programming language. | |
getNClob(String parameterName)Retrieves the value of a JDBC NCLOB parameter as ajava.sql.NClob object in the Java programming language. | |
getNString(int parameterIndex)Retrieves the value of the designated NCHAR,NVARCHAR orLONGNVARCHAR parameter as aString in the Java programming language. | |
getNString(String parameterName)Retrieves the value of the designated NCHAR,NVARCHAR orLONGNVARCHAR parameter as aString in the Java programming language. | |
getObject(int parameterIndex)Retrieves the value of the designated parameter as an Object in the Java programming language. | |
getObject(int parameterIndex,Map<String,Class<?>> map)Returns an object representing the value of OUT parameter parameterIndex and usesmap for the custom mapping of the parameter value. | |
getObject(String parameterName)Retrieves the value of a parameter as an Object in the Java programming language. | |
getObject(String parameterName,Map<String,Class<?>> map)Returns an object representing the value of OUT parameter parameterName and usesmap for the custom mapping of the parameter value. | |
getRef(int parameterIndex)Retrieves the value of the designated JDBC REF(<structured-type>) parameter as aRef object in the Java programming language. | |
getRef(String parameterName)Retrieves the value of a JDBC REF(<structured-type>) parameter as aRef object in the Java programming language. | |
getRowId(int parameterIndex)Retrieves the value of the designated JDBC ROWID parameter as ajava.sql.RowId object. | |
getRowId(String parameterName)Retrieves the value of the designated JDBC ROWID parameter as ajava.sql.RowId object. | |
getShort(int parameterIndex)Retrieves the value of the designated JDBC SMALLINT parameter as ashort in the Java programming language. | |
getShort(String parameterName)Retrieves the value of a JDBC SMALLINT parameter as ashort in the Java programming language. | |
getSQLXML(int parameterIndex)Retrieves the value of the designated SQL XML parameter as ajava.sql.SQLXML object in the Java programming language. | |
getSQLXML(String parameterName)Retrieves the value of the designated SQL XML parameter as ajava.sql.SQLXML object in the Java programming language. | |
getString(int parameterIndex)Retrieves the value of the designated JDBC CHAR,VARCHAR, orLONGVARCHAR parameter as aString in the Java programming language. | |
getString(String parameterName)Retrieves the value of a JDBC CHAR,VARCHAR, orLONGVARCHAR parameter as aString in the Java programming language. | |
getTime(int parameterIndex)Retrieves the value of the designated JDBC TIME parameter as ajava.sql.Time object. | |
getTime(int parameterIndex,Calendar cal)Retrieves the value of the designated JDBC TIME parameter as ajava.sql.Time object, using the givenCalendar object to construct the time. | |
getTime(String parameterName)Retrieves the value of a JDBC TIME parameter as ajava.sql.Time object. | |
getTime(String parameterName,Calendar cal)Retrieves the value of a JDBC TIME parameter as ajava.sql.Time object, using the givenCalendar object to construct the time. | |
getTimestamp(int parameterIndex)Retrieves the value of the designated JDBC TIMESTAMP parameter as ajava.sql.Timestamp object. | |
getTimestamp(int parameterIndex,Calendar cal)Retrieves the value of the designated JDBC TIMESTAMP parameter as ajava.sql.Timestamp object, using the givenCalendar object to construct theTimestamp object. | |
getTimestamp(String parameterName)Retrieves the value of a JDBC TIMESTAMP parameter as ajava.sql.Timestamp object. | |
getTimestamp(String parameterName,Calendar cal)Retrieves the value of a JDBC TIMESTAMP parameter as ajava.sql.Timestamp object, using the givenCalendar object to construct theTimestamp object. | |
getURL(int parameterIndex)Retrieves the value of the designated JDBC DATALINK parameter as ajava.net.URL object. | |
getURL(String parameterName)Retrieves the value of a JDBC DATALINK parameter as ajava.net.URL object. | |
registerOutParameter(int parameterIndex, int sqlType)Registers the OUT parameter in ordinal position parameterIndex to the JDBC typesqlType. | |
registerOutParameter(int parameterIndex, int sqlType, int scale)Registers the parameter in ordinal position parameterIndex to be of JDBC typesqlType. | |
registerOutParameter(int parameterIndex, int sqlType,String typeName)Registers the designated output parameter. | |
registerOutParameter(String parameterName, int sqlType)Registers the OUT parameter named parameterName to the JDBC typesqlType. | |
registerOutParameter(String parameterName, int sqlType, int scale)Registers the parameter named parameterName to be of JDBC typesqlType. | |
registerOutParameter(String parameterName, int sqlType,String typeName)Registers the designated output parameter. | |
setAsciiStream(String parameterName,InputStream x)Sets the designated parameter to the given input stream. | |
setAsciiStream(String parameterName,InputStream x, int length)Sets the designated parameter to the given input stream, which will have the specified number of bytes. | |
setAsciiStream(String parameterName,InputStream x, long length)Sets the designated parameter to the given input stream, which will have the specified number of bytes. | |
setBigDecimal(String parameterName,BigDecimal x)Sets the designated parameter to the given java.math.BigDecimal value. | |
setBinaryStream(String parameterName,InputStream x)Sets the designated parameter to the given input stream. | |
setBinaryStream(String parameterName,InputStream x, int length)Sets the designated parameter to the given input stream, which will have the specified number of bytes. | |
setBinaryStream(String parameterName,InputStream x, long length)Sets the designated parameter to the given input stream, which will have the specified number of bytes. | |
setBlob(String parameterName,Blob x)Sets the designated parameter to the given java.sql.Blob object. | |
setBlob(String parameterName,InputStream inputStream)Sets the designated parameter to a InputStream object. | |
setBlob(String parameterName,InputStream inputStream, long length)Sets the designated parameter to a InputStream object. | |
setBoolean(String parameterName, boolean x)Sets the designated parameter to the given Java boolean value. | |
setByte(String parameterName, byte x)Sets the designated parameter to the given Java byte value. | |
setBytes(String parameterName, byte[] x)Sets the designated parameter to the given Java array of bytes. | |
setCharacterStream(String parameterName,Reader reader)Sets the designated parameter to the given Reader object. | |
setCharacterStream(String parameterName,Reader reader, int length)Sets the designated parameter to the given Reader object, which is the given number of characters long. | |
setCharacterStream(String parameterName,Reader reader, long length)Sets the designated parameter to the given Reader object, which is the given number of characters long. | |
setClob(String parameterName,Clob x)Sets the designated parameter to the given java.sql.Clob object. | |
setClob(String parameterName,Reader reader)Sets the designated parameter to a Reader object. | |
setClob(String parameterName,Reader reader, long length)Sets the designated parameter to a Reader object. | |
setDate(String parameterName,Date x)Sets the designated parameter to the given java.sql.Date value using the default time zone of the virtual machine that is running the application. | |
setDate(String parameterName,Date x,Calendar cal)Sets the designated parameter to the given java.sql.Date value, using the givenCalendar object. | |
setDouble(String parameterName, double x)Sets the designated parameter to the given Java double value. | |
setFloat(String parameterName, float x)Sets the designated parameter to the given Java float value. | |
setInt(String parameterName, int x)Sets the designated parameter to the given Java int value. | |
setLong(String parameterName, long x)Sets the designated parameter to the given Java long value. | |
setNCharacterStream(String parameterName,Reader value)Sets the designated parameter to a Reader object. | |
setNCharacterStream(String parameterName,Reader value, long length)Sets the designated parameter to a Reader object. | |
setNClob(String parameterName,NClob value)Sets the designated parameter to a java.sql.NClob object. | |
setNClob(String parameterName,Reader reader)Sets the designated parameter to a Reader object. | |
setNClob(String parameterName,Reader reader, long length)Sets the designated parameter to a Reader object. | |
setNString(String parameterName,String value)Sets the designated parameter to the given String object. | |
setNull(String parameterName, int sqlType)Sets the designated parameter to SQL NULL. | |
setNull(String parameterName, int sqlType,String typeName)Sets the designated parameter to SQL NULL. | |
setObject(String parameterName,Object x)Sets the value of the designated parameter with the given object. | |
setObject(String parameterName,Object x, int targetSqlType)Sets the value of the designated parameter with the given object. | |
setObject(String parameterName,Object x, int targetSqlType, int scale)Sets the value of the designated parameter with the given object. | |
setRowId(String parameterName,RowId x)Sets the designated parameter to the given java.sql.RowId object. | |
setShort(String parameterName, short x)Sets the designated parameter to the given Java short value. | |
setSQLXML(String parameterName,SQLXML xmlObject)Sets the designated parameter to the given java.sql.SQLXML object. | |
setString(String parameterName,String x)Sets the designated parameter to the given Java String value. | |
setTime(String parameterName,Time x)Sets the designated parameter to the given java.sql.Time value. | |
setTime(String parameterName,Time x,Calendar cal)Sets the designated parameter to the given java.sql.Time value, using the givenCalendar object. | |
setTimestamp(String parameterName,Timestamp x)Sets the designated parameter to the given java.sql.Timestamp value. | |
setTimestamp(String parameterName,Timestamp x,Calendar cal)Sets the designated parameter to the given java.sql.Timestamp value, using the givenCalendar object. | |
setURL(String parameterName,URL val)Sets the designated parameter to the given java.net.URL object. | |
wasNull()Retrieves whether the last OUT parameter read had the value of SQL NULL. | |
| Methods inherited from interface java.sql.Wrapper |
|---|
isWrapperFor,unwrap |
voidregisterOutParameter(int parameterIndex, int sqlType) throwsSQLException
parameterIndex to the JDBC typesqlType. All OUT parameters must be registered before a stored procedure is executed. The JDBC type specified bysqlType for an OUT parameter determines the Java type that must be used in theget method to read the value of that parameter.
If the JDBC type expected to be returned to this output parameter is specific to this particular database,sqlType should bejava.sql.Types.OTHER. The methodgetObject(int) retrieves the value.
parameterIndex - the first parameter is 1, the second is 2, and so onsqlType - the JDBC type code defined byjava.sql.Types. If the parameter is of JDBC typeNUMERIC orDECIMAL, the version ofregisterOutParameter that accepts a scale value should be used.SQLException - if the parameterIndex is not valid; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - ifsqlType is aARRAY,BLOB,CLOB,DATALINK,JAVA_OBJECT,NCHAR,NCLOB,NVARCHAR,LONGNVARCHAR,REF,ROWID,SQLXML orSTRUCT data type and the JDBC driver does not support this data typeTypesvoidregisterOutParameter(int parameterIndex, int sqlType, int scale) throwsSQLException
parameterIndex to be of JDBC typesqlType. All OUT parameters must be registered before a stored procedure is executed. The JDBC type specified bysqlType for an OUT parameter determines the Java type that must be used in theget method to read the value of that parameter.
This version ofregisterOutParameter should be used when the parameter is of JDBC typeNUMERIC orDECIMAL.
parameterIndex - the first parameter is 1, the second is 2, and so onsqlType - the SQL type code defined byjava.sql.Types.scale - the desired number of digits to the right of the decimal point. It must be greater than or equal to zero.SQLException - if the parameterIndex is not valid; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - ifsqlType is aARRAY,BLOB,CLOB,DATALINK,JAVA_OBJECT,NCHAR,NCLOB,NVARCHAR,LONGNVARCHAR,REF,ROWID,SQLXML orSTRUCT data type and the JDBC driver does not support this data typeTypesbooleanwasNull() throwsSQLException
NULL. Note that this method should be called only after calling a getter method; otherwise, there is no value to use in determining whether it isnull or not.true if the last parameter read was SQLNULL;false otherwiseSQLException - if a database access error occurs or this method is called on a closedCallableStatementStringgetString(int parameterIndex) throwsSQLException
CHAR,VARCHAR, orLONGVARCHAR parameter as aString in the Java programming language. For the fixed-length type JDBCCHAR, theString object returned has exactly the same value the SQLCHAR value had in the database, including any padding added by the database.
parameterIndex - the first parameter is 1, the second is 2, and so onNULL, the result isnull.SQLException - if the parameterIndex is not valid; if a database access error occurs or this method is called on a closedCallableStatementsetString(java.lang.String, java.lang.String)booleangetBoolean(int parameterIndex) throwsSQLException
BIT orBOOLEAN parameter as aboolean in the Java programming language.parameterIndex - the first parameter is 1, the second is 2, and so onNULL, the result isfalse.SQLException - if the parameterIndex is not valid; if a database access error occurs or this method is called on a closedCallableStatementsetBoolean(java.lang.String, boolean)bytegetByte(int parameterIndex) throwsSQLException
TINYINT parameter as abyte in the Java programming language.parameterIndex - the first parameter is 1, the second is 2, and so onNULL, the result is0.SQLException - if the parameterIndex is not valid; if a database access error occurs or this method is called on a closedCallableStatementsetByte(java.lang.String, byte)shortgetShort(int parameterIndex) throwsSQLException
SMALLINT parameter as ashort in the Java programming language.parameterIndex - the first parameter is 1, the second is 2, and so onNULL, the result is0.SQLException - if the parameterIndex is not valid; if a database access error occurs or this method is called on a closedCallableStatementsetShort(java.lang.String, short)intgetInt(int parameterIndex) throwsSQLException
INTEGER parameter as anint in the Java programming language.parameterIndex - the first parameter is 1, the second is 2, and so onNULL, the result is0.SQLException - if the parameterIndex is not valid; if a database access error occurs or this method is called on a closedCallableStatementsetInt(java.lang.String, int)longgetLong(int parameterIndex) throwsSQLException
BIGINT parameter as along in the Java programming language.parameterIndex - the first parameter is 1, the second is 2, and so onNULL, the result is0.SQLException - if the parameterIndex is not valid; if a database access error occurs or this method is called on a closedCallableStatementsetLong(java.lang.String, long)floatgetFloat(int parameterIndex) throwsSQLException
FLOAT parameter as afloat in the Java programming language.parameterIndex - the first parameter is 1, the second is 2, and so onNULL, the result is0.SQLException - if the parameterIndex is not valid; if a database access error occurs or this method is called on a closedCallableStatementsetFloat(java.lang.String, float)doublegetDouble(int parameterIndex) throwsSQLException
DOUBLE parameter as adouble in the Java programming language.parameterIndex - the first parameter is 1, the second is 2, and so onNULL, the result is0.SQLException - if the parameterIndex is not valid; if a database access error occurs or this method is called on a closedCallableStatementsetDouble(java.lang.String, double)BigDecimalgetBigDecimal(int parameterIndex, int scale) throwsSQLException
getBigDecimal(int parameterIndex) orgetBigDecimal(String parameterName)NUMERIC parameter as ajava.math.BigDecimal object withscale digits to the right of the decimal point.parameterIndex - the first parameter is 1, the second is 2, and so onscale - the number of digits to the right of the decimal pointNULL, the result isnull.SQLException - if the parameterIndex is not valid; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodsetBigDecimal(java.lang.String, java.math.BigDecimal)byte[]getBytes(int parameterIndex) throwsSQLException
BINARY orVARBINARY parameter as an array ofbyte values in the Java programming language.parameterIndex - the first parameter is 1, the second is 2, and so onNULL, the result isnull.SQLException - if the parameterIndex is not valid; if a database access error occurs or this method is called on a closedCallableStatementsetBytes(java.lang.String, byte[])DategetDate(int parameterIndex) throwsSQLException
DATE parameter as ajava.sql.Date object.parameterIndex - the first parameter is 1, the second is 2, and so onNULL, the result isnull.SQLException - if the parameterIndex is not valid; if a database access error occurs or this method is called on a closedCallableStatementsetDate(java.lang.String, java.sql.Date)TimegetTime(int parameterIndex) throwsSQLException
TIME parameter as ajava.sql.Time object.parameterIndex - the first parameter is 1, the second is 2, and so onNULL, the result isnull.SQLException - if the parameterIndex is not valid; if a database access error occurs or this method is called on a closedCallableStatementsetTime(java.lang.String, java.sql.Time)TimestampgetTimestamp(int parameterIndex) throwsSQLException
TIMESTAMP parameter as ajava.sql.Timestamp object.parameterIndex - the first parameter is 1, the second is 2, and so onNULL, the result isnull.SQLException - if the parameterIndex is not valid; if a database access error occurs or this method is called on a closedCallableStatementsetTimestamp(java.lang.String, java.sql.Timestamp)ObjectgetObject(int parameterIndex) throwsSQLException
Object in the Java programming language. If the value is an SQLNULL, the driver returns a Javanull. This method returns a Java object whose type corresponds to the JDBC type that was registered for this parameter using the methodregisterOutParameter. By registering the target JDBC type asjava.sql.Types.OTHER, this method can be used to read database-specific abstract data types.
parameterIndex - the first parameter is 1, the second is 2, and so onjava.lang.Object holding the OUT parameter valueSQLException - if the parameterIndex is not valid; if a database access error occurs or this method is called on a closedCallableStatementTypes,setObject(java.lang.String, java.lang.Object, int, int)BigDecimalgetBigDecimal(int parameterIndex) throwsSQLException
NUMERIC parameter as ajava.math.BigDecimal object with as many digits to the right of the decimal point as the value contains.parameterIndex - the first parameter is 1, the second is 2, and so onNULL, the result isnull.SQLException - if the parameterIndex is not valid; if a database access error occurs or this method is called on a closedCallableStatementsetBigDecimal(java.lang.String, java.math.BigDecimal)ObjectgetObject(int parameterIndex,Map<String,Class<?>> map) throwsSQLException
parameterIndex and usesmap for the custom mapping of the parameter value. This method returns a Java object whose type corresponds to the JDBC type that was registered for this parameter using the methodregisterOutParameter. By registering the target JDBC type asjava.sql.Types.OTHER, this method can be used to read database-specific abstract data types.
parameterIndex - the first parameter is 1, the second is 2, and so onmap - the mapping from SQL type names to Java classesjava.lang.Object holding the OUT parameter valueSQLException - if the parameterIndex is not valid; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodsetObject(java.lang.String, java.lang.Object, int, int)RefgetRef(int parameterIndex) throwsSQLException
REF(<structured-type>) parameter as aRef object in the Java programming language.parameterIndex - the first parameter is 1, the second is 2, and so onRef object in the Java programming language. If the value was SQLNULL, the valuenull is returned.SQLException - if the parameterIndex is not valid; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodBlobgetBlob(int parameterIndex) throwsSQLException
BLOB parameter as aBlob object in the Java programming language.parameterIndex - the first parameter is 1, the second is 2, and so onBlob object in the Java programming language. If the value was SQLNULL, the valuenull is returned.SQLException - if the parameterIndex is not valid; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodClobgetClob(int parameterIndex) throwsSQLException
CLOB parameter as ajava.sql.Clob object in the Java programming language.parameterIndex - the first parameter is 1, the second is 2, and so onClob object in the Java programming language. If the value was SQLNULL, the valuenull is returned.SQLException - if the parameterIndex is not valid; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodArraygetArray(int parameterIndex) throwsSQLException
ARRAY parameter as anArray object in the Java programming language.parameterIndex - the first parameter is 1, the second is 2, and so onArray object in the Java programming language. If the value was SQLNULL, the valuenull is returned.SQLException - if the parameterIndex is not valid; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodDategetDate(int parameterIndex,Calendar cal) throwsSQLException
DATE parameter as ajava.sql.Date object, using the givenCalendar object to construct the date. With aCalendar object, the driver can calculate the date taking into account a custom timezone and locale. If noCalendar object is specified, the driver uses the default timezone and locale.parameterIndex - the first parameter is 1, the second is 2, and so oncal - theCalendar object the driver will use to construct the dateNULL, the result isnull.SQLException - if the parameterIndex is not valid; if a database access error occurs or this method is called on a closedCallableStatementsetDate(java.lang.String, java.sql.Date)TimegetTime(int parameterIndex,Calendar cal) throwsSQLException
TIME parameter as ajava.sql.Time object, using the givenCalendar object to construct the time. With aCalendar object, the driver can calculate the time taking into account a custom timezone and locale. If noCalendar object is specified, the driver uses the default timezone and locale.parameterIndex - the first parameter is 1, the second is 2, and so oncal - theCalendar object the driver will use to construct the timeNULL, the result isnull.SQLException - if the parameterIndex is not valid; if a database access error occurs or this method is called on a closedCallableStatementsetTime(java.lang.String, java.sql.Time)TimestampgetTimestamp(int parameterIndex,Calendar cal) throwsSQLException
TIMESTAMP parameter as ajava.sql.Timestamp object, using the givenCalendar object to construct theTimestamp object. With aCalendar object, the driver can calculate the timestamp taking into account a custom timezone and locale. If noCalendar object is specified, the driver uses the default timezone and locale.parameterIndex - the first parameter is 1, the second is 2, and so oncal - theCalendar object the driver will use to construct the timestampNULL, the result isnull.SQLException - if the parameterIndex is not valid; if a database access error occurs or this method is called on a closedCallableStatementsetTimestamp(java.lang.String, java.sql.Timestamp)voidregisterOutParameter(int parameterIndex, int sqlType,String typeName) throwsSQLException
registerOutParameter should be used for a user-defined orREF output parameter. Examples of user-defined types include:STRUCT,DISTINCT,JAVA_OBJECT, and named array types.All OUT parameters must be registered before a stored procedure is executed.
For a user-defined parameter, the fully-qualified SQL type name of the parameter should also be given, while aREF parameter requires that the fully-qualified type name of the referenced type be given. A JDBC driver that does not need the type code and type name information may ignore it. To be portable, however, applications should always provide these values for user-defined andREF parameters. Although it is intended for user-defined andREF parameters, this method may be used to register a parameter of any JDBC type. If the parameter does not have a user-defined orREF type, thetypeName parameter is ignored.
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.
parameterIndex - the first parameter is 1, the second is 2,...sqlType - a value fromTypestypeName - the fully-qualified name of an SQL structured typeSQLException - if the parameterIndex is not valid; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - ifsqlType is aARRAY,BLOB,CLOB,DATALINK,JAVA_OBJECT,NCHAR,NCLOB,NVARCHAR,LONGNVARCHAR,REF,ROWID,SQLXML orSTRUCT data type and the JDBC driver does not support this data typeTypesvoidregisterOutParameter(String parameterName, int sqlType) throwsSQLException
parameterName to the JDBC typesqlType. All OUT parameters must be registered before a stored procedure is executed. The JDBC type specified bysqlType for an OUT parameter determines the Java type that must be used in theget method to read the value of that parameter.
If the JDBC type expected to be returned to this output parameter is specific to this particular database,sqlType should bejava.sql.Types.OTHER. The methodgetObject(int) retrieves the value.
parameterName - the name of the parametersqlType - the JDBC type code defined byjava.sql.Types. If the parameter is of JDBC typeNUMERIC orDECIMAL, the version ofregisterOutParameter that accepts a scale value should be used.SQLException - if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - ifsqlType is aARRAY,BLOB,CLOB,DATALINK,JAVA_OBJECT,NCHAR,NCLOB,NVARCHAR,LONGNVARCHAR,REF,ROWID,SQLXML orSTRUCT data type and the JDBC driver does not support this data type or if the JDBC driver does not support this methodTypesvoidregisterOutParameter(String parameterName, int sqlType, int scale) throwsSQLException
parameterName to be of JDBC typesqlType. All OUT parameters must be registered before a stored procedure is executed. The JDBC type specified bysqlType for an OUT parameter determines the Java type that must be used in theget method to read the value of that parameter.
This version ofregisterOutParameter should be used when the parameter is of JDBC typeNUMERIC orDECIMAL.
parameterName - the name of the parametersqlType - SQL type code defined byjava.sql.Types.scale - the desired number of digits to the right of the decimal point. It must be greater than or equal to zero.SQLException - if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - ifsqlType is aARRAY,BLOB,CLOB,DATALINK,JAVA_OBJECT,NCHAR,NCLOB,NVARCHAR,LONGNVARCHAR,REF,ROWID,SQLXML orSTRUCT data type and the JDBC driver does not support this data type or if the JDBC driver does not support this methodTypesvoidregisterOutParameter(String parameterName, int sqlType,String typeName) throwsSQLException
registerOutParameter should be used for a user-named or REF output parameter. Examples of user-named types include: STRUCT, DISTINCT, JAVA_OBJECT, and named array types.All OUT parameters must be registered before a stored procedure is executed.
For a user-named parameter the fully-qualified SQL type name of the parameter should also be given, while a REF parameter requires that the fully-qualified type name of the referenced type be given. A JDBC driver that does not need the type code and type name information may ignore it. To be portable, however, applications should always provide these values for user-named and REF parameters. 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 thegetXXX method whose Java type XXX corresponds to the parameter's registered SQL type.
parameterName - the name of the parametersqlType - a value fromTypestypeName - the fully-qualified name of an SQL structured typeSQLException - if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - ifsqlType is aARRAY,BLOB,CLOB,DATALINK,JAVA_OBJECT,NCHAR,NCLOB,NVARCHAR,LONGNVARCHAR,REF,ROWID,SQLXML orSTRUCT data type and the JDBC driver does not support this data type or if the JDBC driver does not support this methodTypesURLgetURL(int parameterIndex) throwsSQLException
DATALINK parameter as ajava.net.URL object.parameterIndex - the first parameter is 1, the second is 2,...java.net.URL object that represents the JDBCDATALINK value used as the designated parameterSQLException - if the parameterIndex is not valid; if a database access error occurs, this method is called on a closedCallableStatement, or if the URL being returned is not a valid URL on the Java platformSQLFeatureNotSupportedException - if the JDBC driver does not support this methodsetURL(java.lang.String, java.net.URL)voidsetURL(String parameterName,URL val) throwsSQLException
java.net.URL object. The driver converts this to an SQLDATALINK value when it sends it to the database.parameterName - the name of the parameterval - the parameter valueSQLException - if parameterName does not correspond to a named parameter; if a database access error occurs; this method is called on a closedCallableStatement or if a URL is malformedSQLFeatureNotSupportedException - if the JDBC driver does not support this methodgetURL(int)voidsetNull(String parameterName, int sqlType) throwsSQLException
NULL.Note: You must specify the parameter's SQL type.
parameterName - the name of the parametersqlType - the SQL type code defined injava.sql.TypesSQLException - if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodvoidsetBoolean(String parameterName, boolean x) throwsSQLException
boolean value. The driver converts this to an SQLBIT orBOOLEAN value when it sends it to the database.parameterName - the name of the parameterx - the parameter valueSQLException - if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodgetBoolean(int)voidsetByte(String parameterName, byte x) throwsSQLException
byte value. The driver converts this to an SQLTINYINT value when it sends it to the database.parameterName - the name of the parameterx - the parameter valueSQLException - if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodgetByte(int)voidsetShort(String parameterName, short x) throwsSQLException
short value. The driver converts this to an SQLSMALLINT value when it sends it to the database.parameterName - the name of the parameterx - the parameter valueSQLException - if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodgetShort(int)voidsetInt(String parameterName, int x) throwsSQLException
int value. The driver converts this to an SQLINTEGER value when it sends it to the database.parameterName - the name of the parameterx - the parameter valueSQLException - if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodgetInt(int)voidsetLong(String parameterName, long x) throwsSQLException
long value. The driver converts this to an SQLBIGINT value when it sends it to the database.parameterName - the name of the parameterx - the parameter valueSQLException - if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodgetLong(int)voidsetFloat(String parameterName, float x) throwsSQLException
float value. The driver converts this to an SQLFLOAT value when it sends it to the database.parameterName - the name of the parameterx - the parameter valueSQLException - if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodgetFloat(int)voidsetDouble(String parameterName, double x) throwsSQLException
double value. The driver converts this to an SQLDOUBLE value when it sends it to the database.parameterName - the name of the parameterx - the parameter valueSQLException - if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodgetDouble(int)voidsetBigDecimal(String parameterName,BigDecimal x) throwsSQLException
java.math.BigDecimal value. The driver converts this to an SQLNUMERIC value when it sends it to the database.parameterName - the name of the parameterx - the parameter valueSQLException - if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodgetBigDecimal(int, int)voidsetString(String parameterName,String x) throwsSQLException
String value. The driver converts this to an SQLVARCHAR orLONGVARCHAR value (depending on the argument's size relative to the driver's limits onVARCHAR values) when it sends it to the database.parameterName - the name of the parameterx - the parameter valueSQLException - if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodgetString(int)voidsetBytes(String parameterName, byte[] x) throwsSQLException
VARBINARY orLONGVARBINARY (depending on the argument's size relative to the driver's limits onVARBINARY values) when it sends it to the database.parameterName - the name of the parameterx - the parameter valueSQLException - if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodgetBytes(int)voidsetDate(String parameterName,Date x) throwsSQLException
java.sql.Date value using the default time zone of the virtual machine that is running the application. The driver converts this to an SQLDATE value when it sends it to the database.parameterName - the name of the parameterx - the parameter valueSQLException - if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodgetDate(int)voidsetTime(String parameterName,Time x) throwsSQLException
java.sql.Time value. The driver converts this to an SQLTIME value when it sends it to the database.parameterName - the name of the parameterx - the parameter valueSQLException - if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodgetTime(int)voidsetTimestamp(String parameterName,Timestamp x) throwsSQLException
java.sql.Timestamp value. The driver converts this to an SQLTIMESTAMP value when it sends it to the database.parameterName - the name of the parameterx - the parameter valueSQLException - if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodgetTimestamp(int)voidsetAsciiStream(String parameterName,InputStream x, int length) throwsSQLException
LONGVARCHAR parameter, it may be more practical to send it via ajava.io.InputStream. Data will be read from the stream as needed until end-of-file is reached. The JDBC driver will do any necessary conversion from ASCII to the database char format.Note: This stream object can either be a standard Java stream object or your own subclass that implements the standard interface.
parameterName - the name of the parameterx - the Java input stream that contains the ASCII parameter valuelength - the number of bytes in the streamSQLException - if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodvoidsetBinaryStream(String parameterName,InputStream x, int length) throwsSQLException
LONGVARBINARY parameter, it may be more practical to send it via ajava.io.InputStream object. The data will be read from the stream as needed until end-of-file is reached.Note: This stream object can either be a standard Java stream object or your own subclass that implements the standard interface.
parameterName - the name of the parameterx - the java input stream which contains the binary parameter valuelength - the number of bytes in the streamSQLException - if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodvoidsetObject(String parameterName,Object x, int targetSqlType, int scale) throwsSQLException
java.lang equivalent objects should be used.The given Java object will be converted to the given targetSqlType before being sent to the database. If the object has a custom mapping (is of a class implementing the interfaceSQLData), the JDBC driver should call the methodSQLData.writeSQL to write it to the SQL data stream. If, on the other hand, the object is of a class implementingRef,Blob,Clob,NClob,Struct,java.net.URL, orArray, the driver should pass it to the database as a value of the corresponding SQL type.
Note that this method may be used to pass datatabase- specific abstract data types.
parameterName - the name of the parameterx - the object containing the input parameter valuetargetSqlType - the SQL type (as defined in java.sql.Types) to be sent to the database. The scale argument may further qualify this type.scale - for java.sql.Types.DECIMAL or java.sql.Types.NUMERIC types, this is the number of digits after the decimal point. For all other types, this value will be ignored.SQLException - if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - iftargetSqlType is aARRAY,BLOB,CLOB,DATALINK,JAVA_OBJECT,NCHAR,NCLOB,NVARCHAR,LONGNVARCHAR,REF,ROWID,SQLXML orSTRUCT data type and the JDBC driver does not support this data typeTypes,getObject(int)voidsetObject(String parameterName,Object x, int targetSqlType) throwsSQLException
setObject above, except that it assumes a scale of zero.parameterName - the name of the parameterx - the object containing the input parameter valuetargetSqlType - the SQL type (as defined in java.sql.Types) to be sent to the databaseSQLException - if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - iftargetSqlType is aARRAY,BLOB,CLOB,DATALINK,JAVA_OBJECT,NCHAR,NCLOB,NVARCHAR,LONGNVARCHAR,REF,ROWID,SQLXML orSTRUCT data type and the JDBC driver does not support this data typegetObject(int)voidsetObject(String parameterName,Object x) throwsSQLException
Object; therefore, thejava.lang equivalent objects should be used for built-in types.The JDBC specification specifies a standard mapping from JavaObject types to SQL types. The given argument will be converted to the corresponding SQL type before being sent to the database.
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 interfaceSQLData, the JDBC driver should call the methodSQLData.writeSQL to write it to the SQL data stream. If, on the other hand, the object is of a class implementingRef,Blob,Clob,NClob,Struct,java.net.URL, orArray, the driver should pass it to the database as a value of the corresponding SQL type.
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.
Note: Not all databases allow for a non-typed Null to be sent to the backend. For maximum portability, thesetNull or thesetObject(String parameterName, Object x, int sqlType) method should be used instead ofsetObject(String parameterName, Object x).
parameterName - the name of the parameterx - the object containing the input parameter valueSQLException - if parameterName does not correspond to a named parameter; if a database access error occurs, this method is called on a closedCallableStatement or if the givenObject parameter is ambiguousSQLFeatureNotSupportedException - if the JDBC driver does not support this methodgetObject(int)voidsetCharacterStream(String parameterName,Reader reader, int length) throwsSQLException
Reader object, which is the given number of characters long. When a very large UNICODE value is input to aLONGVARCHAR parameter, it may be more practical to send it via ajava.io.Reader object. The data will be read from the stream as needed until end-of-file is reached. The JDBC driver will do any necessary conversion from UNICODE to the database char format.Note: This stream object can either be a standard Java stream object or your own subclass that implements the standard interface.
parameterName - the name of the parameterreader - thejava.io.Reader object that contains the UNICODE data used as the designated parameterlength - the number of characters in the streamSQLException - if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodvoidsetDate(String parameterName,Date x,Calendar cal) throwsSQLException
java.sql.Date value, using the givenCalendar object. The driver uses theCalendar object to construct an SQLDATE value, which the driver then sends to the database. With a aCalendar object, the driver can calculate the date taking into account a custom timezone. If noCalendar object is specified, the driver uses the default timezone, which is that of the virtual machine running the application.parameterName - the name of the parameterx - the parameter valuecal - theCalendar object the driver will use to construct the dateSQLException - if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodgetDate(int)voidsetTime(String parameterName,Time x,Calendar cal) throwsSQLException
java.sql.Time value, using the givenCalendar object. The driver uses theCalendar object to construct an SQLTIME value, which the driver then sends to the database. With a aCalendar object, the driver can calculate the time taking into account a custom timezone. If noCalendar object is specified, the driver uses the default timezone, which is that of the virtual machine running the application.parameterName - the name of the parameterx - the parameter valuecal - theCalendar object the driver will use to construct the timeSQLException - if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodgetTime(int)voidsetTimestamp(String parameterName,Timestamp x,Calendar cal) throwsSQLException
java.sql.Timestamp value, using the givenCalendar object. The driver uses theCalendar object to construct an SQLTIMESTAMP value, which the driver then sends to the database. With a aCalendar object, the driver can calculate the timestamp taking into account a custom timezone. If noCalendar object is specified, the driver uses the default timezone, which is that of the virtual machine running the application.parameterName - the name of the parameterx - the parameter valuecal - theCalendar object the driver will use to construct the timestampSQLException - if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodgetTimestamp(int)voidsetNull(String parameterName, int sqlType,String typeName) throwsSQLException
NULL. This version of the methodsetNull should be used for user-defined types and REF type parameters. Examples of user-defined types include: STRUCT, DISTINCT, JAVA_OBJECT, and named array types.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.
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.
parameterName - the name of the parametersqlType - a value fromjava.sql.TypestypeName - the fully-qualified name of an SQL user-defined type; ignored if the parameter is not a user-defined type or SQLREF valueSQLException - if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodStringgetString(String parameterName) throwsSQLException
CHAR,VARCHAR, orLONGVARCHAR parameter as aString in the Java programming language. For the fixed-length type JDBCCHAR, theString object returned has exactly the same value the SQLCHAR value had in the database, including any padding added by the database.
parameterName - the name of the parameterNULL, the result isnull.SQLException - if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodsetString(java.lang.String, java.lang.String)booleangetBoolean(String parameterName) throwsSQLException
BIT orBOOLEAN parameter as aboolean in the Java programming language.parameterName - the name of the parameterNULL, the result isfalse.SQLException - if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodsetBoolean(java.lang.String, boolean)bytegetByte(String parameterName) throwsSQLException
TINYINT parameter as abyte in the Java programming language.parameterName - the name of the parameterNULL, the result is0.SQLException - if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodsetByte(java.lang.String, byte)shortgetShort(String parameterName) throwsSQLException
SMALLINT parameter as ashort in the Java programming language.parameterName - the name of the parameterNULL, the result is0.SQLException - if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodsetShort(java.lang.String, short)intgetInt(String parameterName) throwsSQLException
INTEGER parameter as anint in the Java programming language.parameterName - the name of the parameterNULL, the result is0.SQLException - if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodsetInt(java.lang.String, int)longgetLong(String parameterName) throwsSQLException
BIGINT parameter as along in the Java programming language.parameterName - the name of the parameterNULL, the result is0.SQLException - if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodsetLong(java.lang.String, long)floatgetFloat(String parameterName) throwsSQLException
FLOAT parameter as afloat in the Java programming language.parameterName - the name of the parameterNULL, the result is0.SQLException - if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodsetFloat(java.lang.String, float)doublegetDouble(String parameterName) throwsSQLException
DOUBLE parameter as adouble in the Java programming language.parameterName - the name of the parameterNULL, the result is0.SQLException - if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodsetDouble(java.lang.String, double)byte[]getBytes(String parameterName) throwsSQLException
BINARY orVARBINARY parameter as an array ofbyte values in the Java programming language.parameterName - the name of the parameterNULL, the result isnull.SQLException - if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodsetBytes(java.lang.String, byte[])DategetDate(String parameterName) throwsSQLException
DATE parameter as ajava.sql.Date object.parameterName - the name of the parameterNULL, the result isnull.SQLException - if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodsetDate(java.lang.String, java.sql.Date)TimegetTime(String parameterName) throwsSQLException
TIME parameter as ajava.sql.Time object.parameterName - the name of the parameterNULL, the result isnull.SQLException - if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodsetTime(java.lang.String, java.sql.Time)TimestampgetTimestamp(String parameterName) throwsSQLException
TIMESTAMP parameter as ajava.sql.Timestamp object.parameterName - the name of the parameterNULL, the result isnull.SQLException - if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodsetTimestamp(java.lang.String, java.sql.Timestamp)ObjectgetObject(String parameterName) throwsSQLException
Object in the Java programming language. If the value is an SQLNULL, the driver returns a Javanull. This method returns a Java object whose type corresponds to the JDBC type that was registered for this parameter using the methodregisterOutParameter. By registering the target JDBC type asjava.sql.Types.OTHER, this method can be used to read database-specific abstract data types.
parameterName - the name of the parameterjava.lang.Object holding the OUT parameter value.SQLException - if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodTypes,setObject(java.lang.String, java.lang.Object, int, int)BigDecimalgetBigDecimal(String parameterName) throwsSQLException
NUMERIC parameter as ajava.math.BigDecimal object with as many digits to the right of the decimal point as the value contains.parameterName - the name of the parameterNULL, the result isnull.SQLExceptionif - parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodSQLExceptionsetBigDecimal(java.lang.String, java.math.BigDecimal)ObjectgetObject(String parameterName,Map<String,Class<?>> map) throwsSQLException
parameterName and usesmap for the custom mapping of the parameter value. This method returns a Java object whose type corresponds to the JDBC type that was registered for this parameter using the methodregisterOutParameter. By registering the target JDBC type asjava.sql.Types.OTHER, this method can be used to read database-specific abstract data types.
parameterName - the name of the parametermap - the mapping from SQL type names to Java classesjava.lang.Object holding the OUT parameter valueSQLException - if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodsetObject(java.lang.String, java.lang.Object, int, int)RefgetRef(String parameterName) throwsSQLException
REF(<structured-type>) parameter as aRef object in the Java programming language.parameterName - the name of the parameterRef object in the Java programming language. If the value was SQLNULL, the valuenull is returned.SQLException - if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodBlobgetBlob(String parameterName) throwsSQLException
BLOB parameter as aBlob object in the Java programming language.parameterName - the name of the parameterBlob object in the Java programming language. If the value was SQLNULL, the valuenull is returned.SQLException - if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodClobgetClob(String parameterName) throwsSQLException
CLOB parameter as ajava.sql.Clob object in the Java programming language.parameterName - the name of the parameterClob object in the Java programming language. If the value was SQLNULL, the valuenull is returned.SQLException - if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodArraygetArray(String parameterName) throwsSQLException
ARRAY parameter as anArray object in the Java programming language.parameterName - the name of the parameterArray object in Java programming language. If the value was SQLNULL, the valuenull is returned.SQLException - if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodDategetDate(String parameterName,Calendar cal) throwsSQLException
DATE parameter as ajava.sql.Date object, using the givenCalendar object to construct the date. With aCalendar object, the driver can calculate the date taking into account a custom timezone and locale. If noCalendar object is specified, the driver uses the default timezone and locale.parameterName - the name of the parametercal - theCalendar object the driver will use to construct the dateNULL, the result isnull.SQLException - if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodsetDate(java.lang.String, java.sql.Date)TimegetTime(String parameterName,Calendar cal) throwsSQLException
TIME parameter as ajava.sql.Time object, using the givenCalendar object to construct the time. With aCalendar object, the driver can calculate the time taking into account a custom timezone and locale. If noCalendar object is specified, the driver uses the default timezone and locale.parameterName - the name of the parametercal - theCalendar object the driver will use to construct the timeNULL, the result isnull.SQLException - if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodsetTime(java.lang.String, java.sql.Time)TimestampgetTimestamp(String parameterName,Calendar cal) throwsSQLException
TIMESTAMP parameter as ajava.sql.Timestamp object, using the givenCalendar object to construct theTimestamp object. With aCalendar object, the driver can calculate the timestamp taking into account a custom timezone and locale. If noCalendar object is specified, the driver uses the default timezone and locale.parameterName - the name of the parametercal - theCalendar object the driver will use to construct the timestampNULL, the result isnull.SQLException - if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodsetTimestamp(java.lang.String, java.sql.Timestamp)URLgetURL(String parameterName) throwsSQLException
DATALINK parameter as ajava.net.URL object.parameterName - the name of the parameterjava.net.URL object in the Java programming language. If the value was SQLNULL, the valuenull is returned.SQLException - if parameterName does not correspond to a named parameter; if a database access error occurs, this method is called on a closedCallableStatement, or if there is a problem with the URLSQLFeatureNotSupportedException - if the JDBC driver does not support this methodsetURL(java.lang.String, java.net.URL)RowIdgetRowId(int parameterIndex) throwsSQLException
ROWID parameter as ajava.sql.RowId object.parameterIndex - the first parameter is 1, the second is 2,...RowId object that represents the JDBCROWID value is used as the designated parameter. If the parameter contains a SQLNULL, then anull value is returned.SQLException - if the parameterIndex is not valid; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodRowIdgetRowId(String parameterName) throwsSQLException
ROWID parameter as ajava.sql.RowId object.parameterName - the name of the parameterRowId object that represents the JDBCROWID value is used as the designated parameter. If the parameter contains a SQLNULL, then anull value is returned.SQLException - if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodvoidsetRowId(String parameterName,RowId x) throwsSQLException
java.sql.RowId object. The driver converts this to a SQLROWID when it sends it to the database.parameterName - the name of the parameterx - the parameter valueSQLException - if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodvoidsetNString(String parameterName,String value) throwsSQLException
String object. The driver converts this to a SQLNCHAR orNVARCHAR orLONGNVARCHARparameterName - the name of the parameter to be setvalue - the parameter valueSQLException - if parameterName does not correspond to a named parameter; if the driver does not support national character sets; if the driver can detect that a data conversion error could occur; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodvoidsetNCharacterStream(String parameterName,Reader value, long length) throwsSQLException
Reader object. TheReader reads the data till end-of-file is reached. The driver does the necessary conversion from Java character format to the national character set in the database.parameterName - the name of the parameter to be setvalue - the parameter valuelength - the number of characters in the parameter data.SQLException - if parameterName does not correspond to a named parameter; if the driver does not support national character sets; if the driver can detect that a data conversion error could occur; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodvoidsetNClob(String parameterName,NClob value) throwsSQLException
java.sql.NClob object. The object implements thejava.sql.NClob interface. ThisNClob object maps to a SQLNCLOB.parameterName - the name of the parameter to be setvalue - the parameter valueSQLException - if parameterName does not correspond to a named parameter; if the driver does not support national character sets; if the driver can detect that a data conversion error could occur; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodvoidsetClob(String parameterName,Reader reader, long length) throwsSQLException
Reader object. Thereader must contain the number of characters specified by length otherwise aSQLException will be generated when theCallableStatement is executed. This method differs from thesetCharacterStream (int, Reader, int) method because it informs the driver that the parameter value should be sent to the server as aCLOB. When thesetCharacterStream method is used, the driver may have to do extra work to determine whether the parameter data should be send to the server as aLONGVARCHAR or aCLOBparameterName - the name of the parameter to be setreader - An object that contains the data to set the parameter value to.length - the number of characters in the parameter data.SQLException - if parameterName does not correspond to a named parameter; if the length specified is less than zero; a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodvoidsetBlob(String parameterName,InputStream inputStream, long length) throwsSQLException
InputStream object. Theinputstream must contain the number of characters specified by length, otherwise aSQLException will be generated when theCallableStatement is executed. This method differs from thesetBinaryStream (int, InputStream, int) method because it informs the driver that the parameter value should be sent to the server as aBLOB. When thesetBinaryStream method is used, the driver may have to do extra work to determine whether the parameter data should be sent to the server as aLONGVARBINARY or aBLOBparameterName - the name of the parameter to be set the second is 2, ...inputStream - An object that contains the data to set the parameter value to.length - the number of bytes in the parameter data.SQLException - if parameterName does not correspond to a named parameter; if the length specified is less than zero; if the number of bytes in the inputstream does not match the specfied length; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodvoidsetNClob(String parameterName,Reader reader, long length) throwsSQLException
Reader object. Thereader must contain the number of characters specified by length otherwise aSQLException will be generated when theCallableStatement is executed. This method differs from thesetCharacterStream (int, Reader, int) method because it informs the driver that the parameter value should be sent to the server as aNCLOB. When thesetCharacterStream method is used, the driver may have to do extra work to determine whether the parameter data should be send to the server as aLONGNVARCHAR or aNCLOBparameterName - the name of the parameter to be setreader - An object that contains the data to set the parameter value to.length - the number of characters in the parameter data.SQLException - if parameterName does not correspond to a named parameter; if the length specified is less than zero; if the driver does not support national character sets; if the driver can detect that a data conversion error could occur; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodNClobgetNClob(int parameterIndex) throwsSQLException
NCLOB parameter as ajava.sql.NClob object in the Java programming language.parameterIndex - the first parameter is 1, the second is 2, and so onNClob object in the Java programming language. If the value was SQLNULL, the valuenull is returned.SQLException - if the parameterIndex is not valid; if the driver does not support national character sets; if the driver can detect that a data conversion error could occur; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodNClobgetNClob(String parameterName) throwsSQLException
NCLOB parameter as ajava.sql.NClob object in the Java programming language.parameterName - the name of the parameterNClob object in the Java programming language. If the value was SQLNULL, the valuenull is returned.SQLException - if parameterName does not correspond to a named parameter; if the driver does not support national character sets; if the driver can detect that a data conversion error could occur; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodvoidsetSQLXML(String parameterName,SQLXML xmlObject) throwsSQLException
java.sql.SQLXML object. The driver converts this to anSQL XML value when it sends it to the database.parameterName - the name of the parameterxmlObject - aSQLXML object that maps anSQL XML valueSQLException - if parameterName does not correspond to a named parameter; if a database access error occurs; this method is called on a closedCallableStatement or thejava.xml.transform.Result,Writer orOutputStream has not been closed for theSQLXML objectSQLFeatureNotSupportedException - if the JDBC driver does not support this methodSQLXMLgetSQLXML(int parameterIndex) throwsSQLException
SQL XML parameter as ajava.sql.SQLXML object in the Java programming language.parameterIndex - index of the first parameter is 1, the second is 2, ...SQLXML object that maps anSQL XML valueSQLException - if the parameterIndex is not valid; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodSQLXMLgetSQLXML(String parameterName) throwsSQLException
SQL XML parameter as ajava.sql.SQLXML object in the Java programming language.parameterName - the name of the parameterSQLXML object that maps anSQL XML valueSQLException - if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodStringgetNString(int parameterIndex) throwsSQLException
NCHAR,NVARCHAR orLONGNVARCHAR parameter as aString in the Java programming language. For the fixed-length type JDBCNCHAR, theString object returned has exactly the same value the SQLNCHAR value had in the database, including any padding added by the database.
parameterIndex - index of the first parameter is 1, the second is 2, ...String object that maps anNCHAR,NVARCHAR orLONGNVARCHAR valueSQLException - if the parameterIndex is not valid; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodsetNString(java.lang.String, java.lang.String)StringgetNString(String parameterName) throwsSQLException
NCHAR,NVARCHAR orLONGNVARCHAR parameter as aString in the Java programming language. For the fixed-length type JDBCNCHAR, theString object returned has exactly the same value the SQLNCHAR value had in the database, including any padding added by the database.
parameterName - the name of the parameterString object that maps anNCHAR,NVARCHAR orLONGNVARCHAR valueSQLException - if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodsetNString(java.lang.String, java.lang.String)ReadergetNCharacterStream(int parameterIndex) throwsSQLException
java.io.Reader object in the Java programming language. It is intended for use when accessingNCHAR,NVARCHAR andLONGNVARCHAR parameters.parameterIndex - the first parameter is 1, the second is 2, ...java.io.Reader object that contains the parameter value; if the value is SQLNULL, the value returned isnull in the Java programming language.SQLException - if the parameterIndex is not valid; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodReadergetNCharacterStream(String parameterName) throwsSQLException
java.io.Reader object in the Java programming language. It is intended for use when accessingNCHAR,NVARCHAR andLONGNVARCHAR parameters.parameterName - the name of the parameterjava.io.Reader object that contains the parameter value; if the value is SQLNULL, the value returned isnull in the Java programming languageSQLException - if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodReadergetCharacterStream(int parameterIndex) throwsSQLException
java.io.Reader object in the Java programming language.parameterIndex - the first parameter is 1, the second is 2, ...java.io.Reader object that contains the parameter value; if the value is SQLNULL, the value returned isnull in the Java programming language.SQLException - if the parameterIndex is not valid; if a database access error occurs or this method is called on a closedCallableStatementReadergetCharacterStream(String parameterName) throwsSQLException
java.io.Reader object in the Java programming language.parameterName - the name of the parameterjava.io.Reader object that contains the parameter value; if the value is SQLNULL, the value returned isnull in the Java programming languageSQLException - if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodvoidsetBlob(String parameterName,Blob x) throwsSQLException
java.sql.Blob object. The driver converts this to an SQLBLOB value when it sends it to the database.parameterName - the name of the parameterx - aBlob object that maps an SQLBLOB valueSQLException - if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodvoidsetClob(String parameterName,Clob x) throwsSQLException
java.sql.Clob object. The driver converts this to an SQLCLOB value when it sends it to the database.parameterName - the name of the parameterx - aClob object that maps an SQLCLOB valueSQLException - if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodvoidsetAsciiStream(String parameterName,InputStream x, long length) throwsSQLException
LONGVARCHAR parameter, it may be more practical to send it via ajava.io.InputStream. Data will be read from the stream as needed until end-of-file is reached. The JDBC driver will do any necessary conversion from ASCII to the database char format.Note: This stream object can either be a standard Java stream object or your own subclass that implements the standard interface.
parameterName - the name of the parameterx - the Java input stream that contains the ASCII parameter valuelength - the number of bytes in the streamSQLException - if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodvoidsetBinaryStream(String parameterName,InputStream x, long length) throwsSQLException
LONGVARBINARY parameter, it may be more practical to send it via ajava.io.InputStream object. The data will be read from the stream as needed until end-of-file is reached.Note: This stream object can either be a standard Java stream object or your own subclass that implements the standard interface.
parameterName - the name of the parameterx - the java input stream which contains the binary parameter valuelength - the number of bytes in the streamSQLException - if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodvoidsetCharacterStream(String parameterName,Reader reader, long length) throwsSQLException
Reader object, which is the given number of characters long. When a very large UNICODE value is input to aLONGVARCHAR parameter, it may be more practical to send it via ajava.io.Reader object. The data will be read from the stream as needed until end-of-file is reached. The JDBC driver will do any necessary conversion from UNICODE to the database char format.Note: This stream object can either be a standard Java stream object or your own subclass that implements the standard interface.
parameterName - the name of the parameterreader - thejava.io.Reader object that contains the UNICODE data used as the designated parameterlength - the number of characters in the streamSQLException - if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodvoidsetAsciiStream(String parameterName,InputStream x) throwsSQLException
LONGVARCHAR parameter, it may be more practical to send it via ajava.io.InputStream. Data will be read from the stream as needed until end-of-file is reached. The JDBC driver will do any necessary conversion from ASCII to the database char format.Note: This stream object can either be a standard Java stream object or your own subclass that implements the standard interface.
Note: Consult your JDBC driver documentation to determine if it might be more efficient to use a version ofsetAsciiStream which takes a length parameter.
parameterName - the name of the parameterx - the Java input stream that contains the ASCII parameter valueSQLException - if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodvoidsetBinaryStream(String parameterName,InputStream x) throwsSQLException
LONGVARBINARY parameter, it may be more practical to send it via ajava.io.InputStream object. The data will be read from the stream as needed until end-of-file is reached.Note: This stream object can either be a standard Java stream object or your own subclass that implements the standard interface.
Note: Consult your JDBC driver documentation to determine if it might be more efficient to use a version ofsetBinaryStream which takes a length parameter.
parameterName - the name of the parameterx - the java input stream which contains the binary parameter valueSQLException - if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodvoidsetCharacterStream(String parameterName,Reader reader) throwsSQLException
Reader object. When a very large UNICODE value is input to aLONGVARCHAR parameter, it may be more practical to send it via ajava.io.Reader object. The data will be read from the stream as needed until end-of-file is reached. The JDBC driver will do any necessary conversion from UNICODE to the database char format.Note: This stream object can either be a standard Java stream object or your own subclass that implements the standard interface.
Note: Consult your JDBC driver documentation to determine if it might be more efficient to use a version ofsetCharacterStream which takes a length parameter.
parameterName - the name of the parameterreader - thejava.io.Reader object that contains the Unicode dataSQLException - if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodvoidsetNCharacterStream(String parameterName,Reader value) throwsSQLException
Reader object. TheReader reads the data till end-of-file is reached. The driver does the necessary conversion from Java character format to the national character set in the database.Note: This stream object can either be a standard Java stream object or your own subclass that implements the standard interface.
Note: Consult your JDBC driver documentation to determine if it might be more efficient to use a version ofsetNCharacterStream which takes a length parameter.
parameterName - the name of the parametervalue - the parameter valueSQLException - if parameterName does not correspond to a named parameter; if the driver does not support national character sets; if the driver can detect that a data conversion error could occur; if a database access error occurs; or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodvoidsetClob(String parameterName,Reader reader) throwsSQLException
Reader object. This method differs from thesetCharacterStream (int, Reader) method because it informs the driver that the parameter value should be sent to the server as aCLOB. When thesetCharacterStream method is used, the driver may have to do extra work to determine whether the parameter data should be send to the server as aLONGVARCHAR or aCLOBNote: Consult your JDBC driver documentation to determine if it might be more efficient to use a version ofsetClob which takes a length parameter.
parameterName - the name of the parameterreader - An object that contains the data to set the parameter value to.SQLException - if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodvoidsetBlob(String parameterName,InputStream inputStream) throwsSQLException
InputStream object. This method differs from thesetBinaryStream (int, InputStream) method because it informs the driver that the parameter value should be sent to the server as aBLOB. When thesetBinaryStream method is used, the driver may have to do extra work to determine whether the parameter data should be send to the server as aLONGVARBINARY or aBLOBNote: Consult your JDBC driver documentation to determine if it might be more efficient to use a version ofsetBlob which takes a length parameter.
parameterName - the name of the parameterinputStream - An object that contains the data to set the parameter value to.SQLException - if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodvoidsetNClob(String parameterName,Reader reader) throwsSQLException
Reader object. This method differs from thesetCharacterStream (int, Reader) method because it informs the driver that the parameter value should be sent to the server as aNCLOB. When thesetCharacterStream method is used, the driver may have to do extra work to determine whether the parameter data should be send to the server as aLONGNVARCHAR or aNCLOBNote: Consult your JDBC driver documentation to determine if it might be more efficient to use a version ofsetNClob which takes a length parameter.
parameterName - the name of the parameterreader - An object that contains the data to set the parameter value to.SQLException - if parameterName does not correspond to a named parameter; if the driver does not support national character sets; if the driver can detect that a data conversion error could occur; if a database access error occurs or this method is called on a closedCallableStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this method| Java™ Platform Standard Ed. 6 | ||||||||||