Interface CallableStatement
- All Superinterfaces:
AutoCloseable,PreparedStatement,Statement,Wrapper
public interface CallableStatement extends PreparedStatement
The JDBC API provides an SQL escape syntax allowing Stored Procedures
to be called in a standard way for all databases. The JDBC escape syntax has
two forms. One form includes a result parameter. The second form does not
include a result parameter. Where the result parameter is used, it must be
declared as an OUT parameter. Other parameters can be declared as
IN, OUT, or INOUT. Parameters are referenced either by
name or by a numerical index starting at 1.
The correct syntax is:
-
{ ?= call <procedurename> [( [parameter1,parameter2,...] )] }
-
{ call <procedurename> [( [parameter1,parameter2,...] )] }
IN parameters are set before calling the procedure,
using the setter methods which are inherited from PreparedStatement.
For OUT parameters, their type must be registered before executing
the stored procedure. The values are retrieved using the getter methods
defined in the CallableStatement interface.
CallableStatements can return one or more ResultSets. In the
event that multiple ResultSets are returned, they are accessed using
the methods inherited from the Statement interface.
-
Field Summary
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 -
Method Summary
Modifier and Type Method Description ArraygetArray(int parameterIndex)Gets the value of a specified JDBCARRAYparameter as ajava.sql.Array.ArraygetArray(String parameterName)Gets the value of a specified JDBCARRAYparameter as ajava.sql.Array.BigDecimalgetBigDecimal(int parameterIndex)Returns a newBigDecimalrepresentation of the JDBCNUMERICparameter specified by the input index.BigDecimalgetBigDecimal(int parameterIndex, int scale)Deprecated.BigDecimalgetBigDecimal(String parameterName)Returns a newBigDecimalrepresentation of the JDBCNUMERICparameter specified by the input name.BlobgetBlob(int parameterIndex)Gets the value of a specified JDBCBLOBparameter as ajava.sql.Blob.BlobgetBlob(String parameterName)Gets the value of a specified JDBCBLOBparameter as ajava.sql.Blob.booleangetBoolean(int parameterIndex)Gets the value of a specified JDBCBITparameter as a boolean.booleangetBoolean(String parameterName)Gets the value of a specified JDBCBITparameter as aboolean.bytegetByte(int parameterIndex)Gets the value of a specified JDBCTINYINTparameter as abyte.bytegetByte(String parameterName)Gets the value of a specified JDBCTINYINTparameter as a Javabyte.byte[]getBytes(int parameterIndex)Returns a byte array representation of the indexed JDBCBINARYorVARBINARYparameter.byte[]getBytes(String parameterName)Returns a byte array representation of the named JDBCBINARYorVARBINARYparameter.ReadergetCharacterStream(int parameterIndex)Returns the value of the specified parameter as ajava.io.Reader.ReadergetCharacterStream(String parameterName)Returns the value of the specified parameter as ajava.io.Reader.ClobgetClob(int parameterIndex)Gets the value of a specified JDBCCLOBparameter as ajava.sql.Clob.ClobgetClob(String parameterName)Gets the value of a specified JDBCCLOBparameter as ajava.sql.Clob.DategetDate(int parameterIndex)Gets the value of the specified JDBCDATEparameter as ajava.sql.Date.DategetDate(int parameterIndex, Calendar cal)Gets the value of the specified JDBCDATEparameter as ajava.sql.Date, using the specifiedCalendarto construct the date.DategetDate(String parameterName)Gets the value of the specified JDBCDATEparameter as ajava.sql.Date.DategetDate(String parameterName, Calendar cal)Gets the value of the specified JDBCDATEparameter as ajava.sql.Date, using the specifiedCalendarto construct the date.doublegetDouble(int parameterIndex)Gets the value of the specified JDBCDOUBLEparameter as adouble.doublegetDouble(String parameterName)Gets the value of the specified JDBCDOUBLEparameter as adouble.floatgetFloat(int parameterIndex)Gets the value of the specified JDBCFLOATparameter as afloat.floatgetFloat(String parameterName)Gets the value of the specified JDBCFLOATparameter as a Javafloat.intgetInt(int parameterIndex)Gets the value of the specified JDBCINTEGERparameter as anint.intgetInt(String parameterName)Gets the value of the specified JDBCINTEGERparameter as anint.longgetLong(int parameterIndex)Gets the value of the specified JDBCBIGINTparameter as along.longgetLong(String parameterName)Gets the value of the specified JDBCBIGINTparameter as along.ReadergetNCharacterStream(int parameterIndex)Returns the value of the specified SQL NCHAR, NVARCHAR, or LONGNVARCHAR parameter as aReader.ReadergetNCharacterStream(String parameterName)Returns the value of the specified SQL NCHAR, NVARCHAR, or LONGNVARCHAR parameter as ajava.io.Reader.NClobgetNClob(int parameterIndex)Returns the value of the specified SQL NCLOB parameter as ajava.sql.NClob.NClobgetNClob(String parameterName)Returns the value of the specified SQL NCLOB parameter as ajava.sql.NClob.StringgetNString(int parameterIndex)Returns the value of the specified SQL NCHAR, NVARCHAR, or LONGNVARCHAR parameter as ajava.lang.String.StringgetNString(String parameterName)Returns the value of the specified SQL NCHAR, NVARCHAR, or LONGNVARCHAR parameter as ajava.lang.String.ObjectgetObject(int parameterIndex)Gets the value of the specified parameter as a JavaObject.ObjectgetObject(int parameterIndex, Map<String,Class<?>> map)Gets the value of the specified parameter as anObject.ObjectgetObject(String parameterName)Gets the value of the specified parameter as anObject.ObjectgetObject(String parameterName, Map<String,Class<?>> map)Gets the value of a specified parameter as anObject.RefgetRef(int parameterIndex)Gets the value of a specified SQLREF(<structured type>)parameter as ajava.sql.Ref.RefgetRef(String parameterName)Gets the value of a specified SQLREF(<structured type>)parameter as ajava.sql.Ref.RowIdgetRowId(int parameterIndex)Gets the value of a specifiedROWIDparameter as ajava.sql.RowId.RowIdgetRowId(String parameterName)Returns the value of the specified SQL ROWID parameter as ajava.sql.RowId.shortgetShort(int parameterIndex)Gets the value of a specified JDBCSMALLINTparameter as ashort.shortgetShort(String parameterName)Gets the value of a specified JDBCSMALLINTparameter as ashort.SQLXMLgetSQLXML(int parameterIndex)Returns the value of the specified SQL XML parameter as ajava.sql.SQLXML.SQLXMLgetSQLXML(String parameterName)Returns the value of the specified SQL XML parameter as ajava.sql.SQLXML.StringgetString(int parameterIndex)Returns the indexed parameter's value as aString.StringgetString(String parameterName)Returns the named parameter's value as a string.TimegetTime(int parameterIndex)Gets the value of a specified JDBCTIMEparameter as ajava.sql.Time.TimegetTime(int parameterIndex, Calendar cal)Gets the value of a specified JDBCTIMEparameter as ajava.sql.Time, using the suppliedCalendarto construct the time.TimegetTime(String parameterName)Gets the value of a specified JDBCTIMEparameter as ajava.sql.Time.TimegetTime(String parameterName, Calendar cal)Gets the value of a specified JDBCTIMEparameter as ajava.sql.Time, using the suppliedCalendarto construct the time.TimestampgetTimestamp(int parameterIndex)Returns the indexed parameter'sTIMESTAMPvalue as ajava.sql.Timestamp.TimestampgetTimestamp(int parameterIndex, Calendar cal)Returns the indexed parameter'sTIMESTAMPvalue as ajava.sql.Timestamp.TimestampgetTimestamp(String parameterName)Returns the named parameter'sTIMESTAMPvalue as ajava.sql.Timestamp.TimestampgetTimestamp(String parameterName, Calendar cal)Returns the indexed parameter'sTIMESTAMPvalue as ajava.sql.Timestamp.URLgetURL(int parameterIndex)Gets the value of a specified JDBCDATALINKparameter as ajava.net.URL.URLgetURL(String parameterName)Returns the named parameter's JDBCDATALINKvalue in a new Javajava.net.URL.voidregisterOutParameter(int parameterIndex, int sqlType)Defines the type of a specifiedOUTparameter.voidregisterOutParameter(int parameterIndex, int sqlType, int scale)Defines the Type of a specifiedOUTparameter.voidregisterOutParameter(int paramIndex, int sqlType, String typeName)Defines the Type of a specifiedOUTparameter.voidregisterOutParameter(String parameterName, int sqlType)Defines the Type of a specifiedOUTparameter.voidregisterOutParameter(String parameterName, int sqlType, int scale)Defines the Type of a specifiedOUTparameter.voidregisterOutParameter(String parameterName, int sqlType, String typeName)Defines the Type of a specifiedOUTparameter.voidsetAsciiStream(String parameterName, InputStream x)Sets the named parameter to the bytes from the givenreader.voidsetAsciiStream(String parameterName, InputStream theInputStream, int length)Sets the value of a specified parameter to the content of a suppliedInputStream, which has a specified number of bytes.voidsetAsciiStream(String parameterName, InputStream x, long length)Sets the named parameter to the nextlengthbytes from the giveninputStream.voidsetBigDecimal(String parameterName, BigDecimal theBigDecimal)Sets the value of a specified parameter to a suppliedjava.math.BigDecimalvalue.voidsetBinaryStream(String parameterName, InputStream x)Sets the named parameter to the bytes from the givenreader.voidsetBinaryStream(String parameterName, InputStream theInputStream, int length)Sets the value of a specified parameter to the content of a supplied binaryInputStream, which has a specified number of bytes.voidsetBinaryStream(String parameterName, InputStream x, long length)Sets the named parameter to the nextlengthbytes from the giveninputStream.voidsetBlob(String parameterName, InputStream inputStream)Sets the named parameter to the bytes from the giveninputStream.voidsetBlob(String parameterName, InputStream inputStream, long length)Sets the named parameter to the nextlengthbytes from the giveninputStream.voidsetBlob(String parameterName, Blob blob)Sets the named parameter to the givenblob.voidsetBoolean(String parameterName, boolean theBoolean)Sets the value of a specified parameter to a suppliedbooleanvalue.voidsetByte(String parameterName, byte theByte)Sets the value of a specified parameter to a suppliedbytevalue.voidsetBytes(String parameterName, byte[] theBytes)Sets the value of a specified parameter to a supplied array of bytes.voidsetCharacterStream(String parameterName, Reader reader)Sets the named parameter to the characters from the givenreader.voidsetCharacterStream(String parameterName, Reader reader, int length)Sets the value of a specified parameter to the character content of aReaderobject, with the specified length of character data.voidsetCharacterStream(String parameterName, Reader reader, long length)Sets the named parameter to the nextlengthcharacters from the givenreader.voidsetClob(String parameterName, Reader reader)Sets the named parameter to the characters from the givenreader.voidsetClob(String parameterName, Reader reader, long length)Sets the named parameter to the nextlengthcharacters from the givenreader.voidsetClob(String parameterName, Clob clob)Sets the named parameter to the givenclob.voidsetDate(String parameterName, Date theDate)Sets the value of a specified parameter to a suppliedjava.sql.Datevalue.voidsetDate(String parameterName, Date theDate, Calendar cal)Sets the value of a specified parameter to a suppliedjava.sql.Datevalue, using a supplied calendar to map the date.voidsetDouble(String parameterName, double theDouble)Sets the value of a specified parameter to a supplieddoublevalue.voidsetFloat(String parameterName, float theFloat)Sets the value of a specified parameter to to a suppliedfloatvalue.voidsetInt(String parameterName, int theInt)Sets the value of a specified parameter to a suppliedintvalue.voidsetLong(String parameterName, long theLong)Sets the value of a specified parameter to a suppliedlongvalue.voidsetNCharacterStream(String parameterName, Reader value)Sets the named parameter to the characters from the givenreader.voidsetNCharacterStream(String parameterName, Reader reader, long length)Sets the named parameter to the characters from the givenreader.voidsetNClob(String parameterName, Reader reader)Sets the named parameter to the characters from the givenreader.voidsetNClob(String parameterName, Reader reader, long length)Sets the named parameter to the nextlengthcharacters from the givenreader.voidsetNClob(String parameterName, NClob nclob)Sets the named parameter to the givennclob.voidsetNString(String parameterName, String string)Sets the named parameter to the givenstring.voidsetNull(String parameterName, int sqlType)Sets the value of a specified parameter to SQLNULL.voidsetNull(String parameterName, int sqlType, String typeName)Sets the value of a specified parameter to be SQLNULLwhere the parameter type is eitherREFor user defined (e.g.voidsetObject(String parameterName, Object theObject)Sets the value of a specified parameter using a supplied object.voidsetObject(String parameterName, Object theObject, int targetSqlType)Sets the value of a specified parameter using a supplied object.voidsetObject(String parameterName, Object theObject, int targetSqlType, int scale)Sets the value of a specified parameter using a supplied object.voidsetRowId(String parameterName, RowId rowId)Sets the named parameter to the givenrowId.voidsetShort(String parameterName, short theShort)Sets the value of a specified parameter to a suppliedshortvalue.voidsetSQLXML(String parameterName, SQLXML sqlXml)Sets the named parameter to the givensqlXml.voidsetString(String parameterName, String theString)Sets the value of a specified parameter to a suppliedString.voidsetTime(String parameterName, Time theTime)Sets the value of the parameter namedparameterNameto the value of the suppliedjava.sql.Time.voidsetTime(String parameterName, Time theTime, Calendar cal)Sets the value of the parameter namedparameterNameto the value of the suppliedjava.sql.Timeusing the supplied calendar.voidsetTimestamp(String parameterName, Timestamp theTimestamp)Sets the value of a specified parameter to a suppliedjava.sql.Timestampvalue.voidsetTimestamp(String parameterName, Timestamp theTimestamp, Calendar cal)Sets the value of a specified parameter to a suppliedjava.sql.Timestampvalue, using the supplied calendar.voidsetURL(String parameterName, URL theURL)Sets the value of a specified parameter to the suppliedjava.net.URL.booleanwasNull()Gets whether the value of the lastOUTparameter read was SQLNULL.Methods inherited from interface java.sql.PreparedStatement
addBatch, clearParameters, execute, executeQuery, executeUpdate, getMetaData, getParameterMetaData, setArray, setAsciiStream, setAsciiStream, setAsciiStream, setBigDecimal, setBinaryStream, setBinaryStream, setBinaryStream, setBlob, setBlob, setBlob, setBoolean, setByte, setBytes, setCharacterStream, setCharacterStream, setCharacterStream, setClob, setClob, setClob, setDate, setDate, setDouble, setFloat, setInt, setLong, setNCharacterStream, setNCharacterStream, setNClob, setNClob, setNClob, setNString, setNull, setNull, setObject, setObject, setObject, setRef, setRowId, setShort, setSQLXML, setString, setTime, setTime, setTimestamp, setTimestamp, setUnicodeStream, setURLMethods inherited from interface java.sql.Statement
addBatch, cancel, clearBatch, clearWarnings, close, execute, execute, execute, execute, executeBatch, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, isClosed, isPoolable, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeoutMethods inherited from interface java.sql.Wrapper
isWrapperFor, unwrap
-
Method Details
-
getArray
Gets the value of a specified JDBCARRAYparameter as ajava.sql.Array.- Parameters:
parameterIndex- the parameter index, where the first parameter has index 1.- Returns:
- a
java.sql.Arraycontaining the parameter value. - Throws:
SQLException- if a database error occurs.
-
getArray
Gets the value of a specified JDBCARRAYparameter as ajava.sql.Array.- Parameters:
parameterName- the desired parameter's name.- Returns:
- a
java.sql.Arraycontaining the parameter's value. - Throws:
SQLException- if there is a problem accessing the database.
-
getBigDecimal
Returns a newBigDecimalrepresentation of the JDBCNUMERICparameter specified by the input index.- Parameters:
parameterIndex- the parameter number index where the first parameter has index 1.- Returns:
- a
java.math.BigDecimalrepresenting the value of the specified parameter. The valuenullis returned if the parameter in question is an SQLNULL. - Throws:
SQLException- if a database error occurs.
-
getBigDecimal
Deprecated.UsegetBigDecimal(int)orgetBigDecimal(String)instead.Returns a newBigDecimalrepresentation of the JDBCNUMERICparameter specified by the input index. The number of digits after the decimal point is specified byscale.- Parameters:
parameterIndex- the parameter number index, where the first parameter has index 1.scale- the number of digits after the decimal point to get.- Returns:
- a
java.math.BigDecimalrepresenting the value of the specified parameter. The valuenullis returned if the parameter in question is an SQLNULL. - Throws:
SQLException- if a database error occurs.
-
getBigDecimal
Returns a newBigDecimalrepresentation of the JDBCNUMERICparameter specified by the input name.- Parameters:
parameterName- the desired parameter's name.- Returns:
- a
java.math.BigDecimalrepresenting the value of the specified parameter. The valuenullis returned if the parameter in question is an SQLNULL. - Throws:
SQLException- if a database error occurs.
-
getBlob
Gets the value of a specified JDBCBLOBparameter as ajava.sql.Blob.- Parameters:
parameterIndex- the parameter number index, where the first parameter has index 1.- Returns:
- a
java.sql.Blobrepresenting the value of the specified parameter. The valuenullis returned if the parameter in question is an SQLNULL. - Throws:
SQLException- if a database error occurs.
-
getBlob
Gets the value of a specified JDBCBLOBparameter as ajava.sql.Blob.- Parameters:
parameterName- the desired parameter's name.- Returns:
- a
java.sql.Blobrepresenting the value of the specified parameter. The valuenullis returned if the parameter in question is an SQLNULL. - Throws:
SQLException- if a database error occurs.
-
getBoolean
Gets the value of a specified JDBCBITparameter as a boolean.- Parameters:
parameterIndex- the parameter number index, where the first parameter has index 1.- Returns:
- a
booleanrepresenting the parameter value.falseis returned if the value is SQLNULL. - Throws:
SQLException- if a database error occurs.
-
getBoolean
Gets the value of a specified JDBCBITparameter as aboolean.- Parameters:
parameterName- the desired parameter's name.- Returns:
- a
booleanrepresentation of the value of the parameter.falseis returned if the SQL value isNULL. - Throws:
SQLException- if a database error occurs.
-
getByte
Gets the value of a specified JDBCTINYINTparameter as abyte.- Parameters:
parameterIndex- the parameter number index, where the first parameter has index 1.- Returns:
- a
byterepresentation of the value of the parameter.0is returned if the value is SQLNULL. - Throws:
SQLException- if a database error occurs.
-
getByte
Gets the value of a specified JDBCTINYINTparameter as a Javabyte.- Parameters:
parameterName- the desired parameter's name.- Returns:
- a
byterepresentation of the value of the parameter.0is returned if the SQL value isNULL. - Throws:
SQLException- if a database error occurs.
-
getBytes
Returns a byte array representation of the indexed JDBCBINARYorVARBINARYparameter.- Parameters:
parameterIndex- the parameter number index, where the first parameter has index 1.- Returns:
- an array of bytes giving the value of the parameter.
nullis returned if the value is SQLNULL. - Throws:
SQLException- if a database error occurs.
-
getBytes
Returns a byte array representation of the named JDBCBINARYorVARBINARYparameter.- Parameters:
parameterName- the name of the parameter.- Returns:
- an array of bytes giving the value of the parameter.
nullis returned if the value is SQLNULL. - Throws:
SQLException- if a database error occurs.
-
getClob
Gets the value of a specified JDBCCLOBparameter as ajava.sql.Clob.- Parameters:
parameterIndex- the parameter number index, where the first parameter has index 1.- Returns:
- a
java.sql.Clobrepresenting the value of the parameter.nullis returned if the value is SQLNULL. - Throws:
SQLException- if a database error occurs.- See Also:
Clob
-
getClob
Gets the value of a specified JDBCCLOBparameter as ajava.sql.Clob.- Parameters:
parameterName- the name of the parameter.- Returns:
- a
java.sql.Clobwith the value of the parameter.nullis returned if the value is SQLNULL. - Throws:
SQLException- if a database error occurs.- See Also:
Clob
-
getDate
Gets the value of the specified JDBCDATEparameter as ajava.sql.Date.- Parameters:
parameterIndex- the parameter number index, where the first parameter has index 1.- Returns:
- the
java.sql.Daterepresenting the parameter's value.nullis returned if the value is SQLNULL. - Throws:
SQLException- if a database error occurs.- See Also:
Date
-
getDate
Gets the value of the specified JDBCDATEparameter as ajava.sql.Date, using the specifiedCalendarto construct the date.The JDBC driver uses the calendar to create the Date using a particular timezone and locale. The default behavior of the driver is to use the VM defaults. See "Be wary of the default locale".
- Parameters:
parameterIndex- the parameter number index, where the first parameter has index 1.cal- theCalendarto use to construct the date- Returns:
- the
java.sql.Dategiving the parameter's value.nullis returned if the value is SQLNULL. - Throws:
SQLException- if a database error occurs.- See Also:
Date
-
getDate
Gets the value of the specified JDBCDATEparameter as ajava.sql.Date.- Parameters:
parameterName- the name of the desired parameter.- Returns:
- the
java.sql.Dategiving the parameter's value.nullis returned if the value is SQLNULL. - Throws:
SQLException- if a database error occurs.- See Also:
Date
-
getDate
Gets the value of the specified JDBCDATEparameter as ajava.sql.Date, using the specifiedCalendarto construct the date.The JDBC driver uses the calendar to create the date using a particular timezone and locale. The default behavior of the driver is to use the VM defaults. See "Be wary of the default locale".
- Parameters:
parameterName- the name of the desired parameter.cal- used for creating the returnedDate.- Returns:
- the
java.sql.Dategiving the parameter's value.nullis returned if the value is SQLNULL. - Throws:
SQLException- if a database error occurs.- See Also:
Date
-
getDouble
Gets the value of the specified JDBCDOUBLEparameter as adouble.- Parameters:
parameterIndex- the parameter number index, where the first parameter has index 1.- Returns:
- the parameter's value as a
double.0.0is returned if the value is SQLNULL. - Throws:
SQLException- if a database error occurs.
-
getDouble
Gets the value of the specified JDBCDOUBLEparameter as adouble.- Parameters:
parameterName- the name of the desired parameter.- Returns:
- the parameter's value as a
double.0.0is returned if the value is SQLNULL. - Throws:
SQLException- if there is a problem accessing the database.
-
getFloat
Gets the value of the specified JDBCFLOATparameter as afloat.- Parameters:
parameterIndex- the parameter number index, where the first parameter has index 1.- Returns:
- the parameter's value as a
float.0.0is returned if the value is SQLNULL. - Throws:
SQLException- if a database error occurs.
-
getFloat
Gets the value of the specified JDBCFLOATparameter as a Javafloat.- Parameters:
parameterName- the name of the desired parameter.- Returns:
- the parameter's value as a
float.0.0is returned if the value is SQLNULL. - Throws:
SQLException- if there is a problem accessing the database.
-
getInt
Gets the value of the specified JDBCINTEGERparameter as anint.- Parameters:
parameterIndex- the parameter number index, where the first parameter has index 1.- Returns:
- the
intgiving the parameter's value.0is returned if the value is SQLNULL. - Throws:
SQLException- if a database error occurs.
-
getInt
Gets the value of the specified JDBCINTEGERparameter as anint.- Parameters:
parameterName- the name of the desired parameter.- Returns:
- the
intgiving the parameter's value.0is returned if the value is SQLNULL. - Throws:
SQLException- if a database error occurs.
-
getLong
Gets the value of the specified JDBCBIGINTparameter as along.- Parameters:
parameterIndex- the parameter number index, where the first parameter has index 1.- Returns:
- the
longgiving the parameter's value.0is returned if the value is SQLNULL. - Throws:
SQLException- if a database error occurs.
-
getLong
Gets the value of the specified JDBCBIGINTparameter as along.- Parameters:
parameterName- the name of the desired parameter.- Returns:
- the
longgiving the parameter's value.0is returned if the value is SQLNULL. - Throws:
SQLException- if a database error occurs.
-
getObject
Gets the value of the specified parameter as a JavaObject.The object type returned is the JDBC type registered for the parameter with a
registerOutParametercall. If a parameter was registered as ajava.sql.Types.OTHERthen it may hold abstract types that are particular to the connected database.- Parameters:
parameterIndex- the parameter number index, where the first parameter has index 1.- Returns:
- an Object holding the value of the parameter.
- Throws:
SQLException- if a database error occurs.
-
getObject
Gets the value of the specified parameter as anObject. TheMapgives the correspondence between SQL types and Java classes.- Parameters:
parameterIndex- the parameter number index, where the first parameter has index 1.map- theMapgiving the correspondence between SQL types and Java classes.- Returns:
- an Object holding the value of the parameter.
- Throws:
SQLException- if a database error occurs.
-
getObject
Gets the value of the specified parameter as anObject.The object type returned is the JDBC type that was registered for the parameter by an earlier call to
registerOutParameter(int, int). If a parameter was registered as ajava.sql.Types.OTHERthen it may hold abstract types that are particular to the connected database.- Parameters:
parameterName- the parameter name.- Returns:
- the Java
Objectrepresentation of the value of the parameter. - Throws:
SQLException- if there is a problem accessing the database.
-
getObject
Gets the value of a specified parameter as anObject. The actual return type is determined by theMapparameter which gives the correspondence between SQL types and Java classes.- Parameters:
parameterName- the parameter name.map- theMapof SQL types to their Java counterparts- Returns:
- an
Objectholding the value of the parameter. - Throws:
SQLException- if there is a problem accessing the database.
-
getRef
Gets the value of a specified SQLREF(<structured type>)parameter as ajava.sql.Ref.- Parameters:
parameterIndex- the parameter number index, where the first parameter has index 1.- Returns:
- a
java.sql.Refwith the parameter value.nullis returned if the value is SQLNULL. - Throws:
SQLException- if a database error occurs.
-
getRef
Gets the value of a specified SQLREF(<structured type>)parameter as ajava.sql.Ref.- Parameters:
parameterName- the desired parameter's name.- Returns:
- the parameter's value in the form of a
java.sql.Ref. Anullreference is returned if the parameter's value is SQLNULL. - Throws:
SQLException- if there is a problem accessing the database.- See Also:
Ref
-
getShort
Gets the value of a specified JDBCSMALLINTparameter as ashort.- Parameters:
parameterIndex- the parameter number index, where the first parameter has index 1.- Returns:
- the parameter's value as a
short. 0 is returned if the parameter's value is SQLNULL. - Throws:
SQLException- if a database error occurs.
-
getShort
Gets the value of a specified JDBCSMALLINTparameter as ashort.- Parameters:
parameterName- the desired parameter's name.- Returns:
- the parameter's value as a
short. 0 is returned if the parameter's value is SQLNULL. - Throws:
SQLException- if there is a problem accessing the database.
-
getString
Returns the indexed parameter's value as aString. The parameter value must be one of the JDBC typesCHAR,VARCHARorLONGVARCHAR.The
Stringcorresponding to aCHARof fixed length will be of identical length to the value in the database inclusive of padding characters.- Parameters:
parameterIndex- the parameter number index, where the first parameter has index 1.- Returns:
- the parameter's value as a
String.nullis returned if the value is SQLNULL. - Throws:
SQLException- if there is a problem accessing the database.
-
getString
Returns the named parameter's value as a string. The parameter value must be one of the JDBC typesCHAR,VARCHARorLONGVARCHAR.The string corresponding to a
CHARof fixed length will be of identical length to the value in the database inclusive of padding characters.- Parameters:
parameterName- the desired parameter's name.- Returns:
- the parameter's value as a
String.nullis returned if the value is SQLNULL. - Throws:
SQLException- if there is a problem accessing the database.
-
getTime
Gets the value of a specified JDBCTIMEparameter as ajava.sql.Time.- Parameters:
parameterIndex- the parameter number index, where the first parameter has index 1.- Returns:
- the parameter's value as a
java.sql.Time.nullis returned if the value is SQLNULL. - Throws:
SQLException- if a database error occurs.- See Also:
Time
-
getTime
Gets the value of a specified JDBCTIMEparameter as ajava.sql.Time, using the suppliedCalendarto construct the time. The JDBC driver uses the calendar to handle specific timezones and locales in order to determineTime.- Parameters:
parameterIndex- the parameter number index, where the first parameter has index 1.cal- the calendar to use in constructingTime.- Returns:
- the parameter's value as a
java.sql.Time.nullis returned if the value is SQLNULL. - Throws:
SQLException- if a database error occurs.- See Also:
Time,Calendar
-
getTime
Gets the value of a specified JDBCTIMEparameter as ajava.sql.Time.- Parameters:
parameterName- the name of the desired parameter.- Returns:
- a new
java.sql.Timewith the parameter's value. Anullreference is returned for an SQL value ofNULL. - Throws:
SQLException- if a database error occurs.- See Also:
Time
-
getTime
Gets the value of a specified JDBCTIMEparameter as ajava.sql.Time, using the suppliedCalendarto construct the time. The JDBC driver uses the calendar to handle specific timezones and locales when creatingTime.- Parameters:
parameterName- the name of the desired parameter.cal- used for creating the returnedTime- Returns:
- a new
java.sql.Timewith the parameter's value. Anullreference is returned for an SQL value ofNULL. - Throws:
SQLException- if a database error occurs.- See Also:
Time,Calendar
-
getTimestamp
Returns the indexed parameter'sTIMESTAMPvalue as ajava.sql.Timestamp.- Parameters:
parameterIndex- the parameter number index, where the first parameter has index 1- Returns:
- the parameter's value as a
java.sql.Timestamp. Anullreference is returned for an SQL value ofNULL. - Throws:
SQLException- if a database error occurs.- See Also:
Timestamp
-
getTimestamp
Returns the indexed parameter'sTIMESTAMPvalue as ajava.sql.Timestamp. The JDBC driver uses the suppliedCalendarto handle specific timezones and locales when creating the result.- Parameters:
parameterIndex- the parameter number index, where the first parameter has index 1cal- used for creating the returnedTimestamp- Returns:
- the parameter's value as a
java.sql.Timestamp. Anullreference is returned for an SQL value ofNULL. - Throws:
SQLException- if a database error occurs.- See Also:
Timestamp
-
getTimestamp
Returns the named parameter'sTIMESTAMPvalue as ajava.sql.Timestamp.- Parameters:
parameterName- the name of the desired parameter.- Returns:
- the parameter's value as a
java.sql.Timestamp. Anullreference is returned for an SQL value ofNULL. - Throws:
SQLException- if a database error occurs.- See Also:
Timestamp
-
getTimestamp
Returns the indexed parameter'sTIMESTAMPvalue as ajava.sql.Timestamp. The JDBC driver uses the suppliedCalendarto handle specific timezones and locales when creating the result.- Parameters:
parameterName- the name of the desired parameter.cal- used for creating the returnedTimestamp- Returns:
- the parameter's value as a
java.sql.Timestamp. Anullreference is returned for an SQL value ofNULL. - Throws:
SQLException- if a database error occurs.- See Also:
Timestamp
-
getURL
Gets the value of a specified JDBCDATALINKparameter as ajava.net.URL.- Parameters:
parameterIndex- the parameter number index, where the first parameter has index 1.- Returns:
- a
URLgiving the parameter's value.nullis returned if the value is SQLNULL. - Throws:
SQLException- if a database error occurs.- See Also:
URL
-
getURL
Returns the named parameter's JDBCDATALINKvalue in a new Javajava.net.URL.- Parameters:
parameterName- the name of the desired parameter.- Returns:
- a new
java.net.URLencapsulating the parameter value. Anullreference is returned for an SQL value ofNULL. - Throws:
SQLException- if a database error occurs.- See Also:
URL
-
registerOutParameter
Defines the type of a specifiedOUTparameter. AllOUTparameters must have their type defined before a stored procedure is executed.The type supplied in the
sqlTypeparameter fixes the type that will be returned by the getter methods ofCallableStatement. If a database specific type is expected for a parameter, the Typejava.sql.Types.OTHERshould be used. Note that there is another variant of this method for User Defined Types or aREFtype.- Parameters:
parameterIndex- the parameter number index, where the first parameter has index 1sqlType- the JDBC type as defined byjava.sql.Types. The JDBC typesNUMERICandDECIMALshould be defined usingregisterOutParameter(int, int, int).- Throws:
SQLException- if a database error occurs.- See Also:
Types
-
registerOutParameter
Defines the Type of a specifiedOUTparameter. AllOUTparameters must have their type defined before a stored procedure is executed. This version of theregisterOutParametermethod, which has a scale parameter, should be used for the JDBC typesNUMERICandDECIMAL, where there is a need to specify the number of digits expected after the decimal point.The type supplied in the
sqlTypeparameter fixes the type that will be returned by the getter methods ofCallableStatement.- Parameters:
parameterIndex- the parameter number index, where the first parameter has index 1sqlType- the JDBC type as defined byjava.sql.Types.scale- the number of digits after the decimal point. Must be greater than or equal to 0.- Throws:
SQLException- if a database error occurs.- See Also:
Types
-
registerOutParameter
Defines the Type of a specifiedOUTparameter. This variant of the method is designed for use with parameters that are User Defined Types (UDT) or aREFtype, although it can be used for any type.- Parameters:
paramIndex- the parameter number index, where the first parameter has index 1.sqlType- a JDBC type expressed as a constant fromTypes.typeName- an SQL type name. For aREFtype, this name should be the fully qualified name of the referenced type.- Throws:
SQLException- if a database error occurs.- See Also:
Ref
-
registerOutParameter
Defines the Type of a specifiedOUTparameter. All OUT parameters must have their Type defined before a stored procedure is executed.The type supplied in the
sqlTypeparameter fixes the type that will be returned by the getter methods ofCallableStatement. If a database-specific type is expected for a parameter, the Typejava.sql.Types.OTHERshould be used. Note that there is another variant of this method for User Defined Types or aREFtype.- Parameters:
parameterName- the parameter name.sqlType- a JDBC type expressed as a constant fromTypes. TypesNUMERICandDECIMALshould be defined using the variant of this method that takes ascaleparameter.- Throws:
SQLException- if a database error occurs.
-
registerOutParameter
Defines the Type of a specifiedOUTparameter. AllOUTparameters must have their Type defined before a stored procedure is executed. This version of theregisterOutParametermethod, which has a scale parameter, should be used for the JDBC typesNUMERICandDECIMAL, where there is a need to specify the number of digits expected after the decimal point.The type supplied in the
sqlTypeparameter fixes the type that will be returned by the getter methods ofCallableStatement.- Parameters:
parameterName- the parameter name.sqlType- a JDBC type expressed as a constant fromTypes.scale- the number of digits after the decimal point. Must be greater than or equal to 0.- Throws:
SQLException- if a database error occurs.
-
registerOutParameter
Defines the Type of a specifiedOUTparameter. This variant of the method is designed for use with parameters that are User Defined Types (UDT) or aREFtype, although it can be used for any type.- Parameters:
parameterName- the parameter namesqlType- a JDBC type expressed as a constant fromTypestypeName- the fully qualified name of an SQL structured type. For aREFtype, this name should be the fully qualified name of the referenced type.- Throws:
SQLException- if a database error occurs.
-
setAsciiStream
void setAsciiStream(String parameterName, InputStream theInputStream, int length) throws SQLExceptionSets the value of a specified parameter to the content of a suppliedInputStream, which has a specified number of bytes.This is a good method for setting an SQL
LONGVARCHARparameter where the length of the data is large. Data is read from theInputStreamuntil end-of-file is reached or the specified number of bytes is copied.- Parameters:
parameterName- the parameter nametheInputStream- the ASCII input stream carrying the data to update the parameter with.length- the number of bytes in theInputStreamto copy to the parameter.- Throws:
SQLException- if a database error occurs.
-
setBigDecimal
Sets the value of a specified parameter to a suppliedjava.math.BigDecimalvalue.- Parameters:
parameterName- the name of the parameter.theBigDecimal- thejava.math.BigIntegervalue to set.- Throws:
SQLException- if a database error occurs.
-
setBinaryStream
void setBinaryStream(String parameterName, InputStream theInputStream, int length) throws SQLExceptionSets the value of a specified parameter to the content of a supplied binaryInputStream, which has a specified number of bytes.Use this method when a large amount of data needs to be set into a
LONGVARBINARYparameter.- Parameters:
parameterName- the name of the parameter.theInputStream- the binaryInputStreamcarrying the data to update the parameter.length- the number of bytes in theInputStreamto copy to the parameter.- Throws:
SQLException- if a database error occurs.
-
setBoolean
Sets the value of a specified parameter to a suppliedbooleanvalue.- Parameters:
parameterName- the parameter name.theBoolean- the new value with which to update the parameter.- Throws:
SQLException- if a database error occurs.
-
setByte
Sets the value of a specified parameter to a suppliedbytevalue.- Parameters:
parameterName- the parameter name.theByte- the new value with which to update the parameter.- Throws:
SQLException- if a database error occurs.
-
setBytes
Sets the value of a specified parameter to a supplied array of bytes. The array is mapped toVARBINARYor elseLONGVARBINARYin the connected database.- Parameters:
parameterName- the parameter name.theBytes- the new value with which to update the parameter.- Throws:
SQLException- if a database error occurs.
-
setCharacterStream
Sets the value of a specified parameter to the character content of aReaderobject, with the specified length of character data.- Parameters:
parameterName- the parameter name.reader- the new value with which to update the parameter.length- a count of the characters contained inreader.- Throws:
SQLException- if a database error occurs.
-
setDate
Sets the value of a specified parameter to a suppliedjava.sql.Datevalue.- Parameters:
parameterName- the parameter name.theDate- the new value with which to update the parameter.- Throws:
SQLException- if a database error occurs.
-
setDate
Sets the value of a specified parameter to a suppliedjava.sql.Datevalue, using a supplied calendar to map the date. The calendar allows the application to control the timezone used to compute the SQLDATEin the database. In case that no calendar is supplied, the driver uses the default timezone of the Java virtual machine.- Parameters:
parameterName- the parameter name.theDate- the new value with which to update the parameter.cal- aCalendarto use to construct the SQLDATEvalue.- Throws:
SQLException- if a database error occurs.- See Also:
Calendar,Date
-
setDouble
Sets the value of a specified parameter to a supplieddoublevalue.- Parameters:
parameterName- the parameter name.theDouble- the new value with which to update the parameter.- Throws:
SQLException- if a database error occurs.
-
setFloat
Sets the value of a specified parameter to to a suppliedfloatvalue.- Parameters:
parameterName- the parameter name.theFloat- the new value with which to update the parameter.- Throws:
SQLException- if a database error occurs.
-
setInt
Sets the value of a specified parameter to a suppliedintvalue.- Parameters:
parameterName- the parameter name.theInt- the new value with which to update the parameter.- Throws:
SQLException- if a database error occurs.
-
setLong
Sets the value of a specified parameter to a suppliedlongvalue.- Parameters:
parameterName- the parameter name.theLong- the new value with which to update the parameter.- Throws:
SQLException- if a database error occurs.
-
setNull
Sets the value of a specified parameter to SQLNULL. Don't use this version ofsetNullfor User Defined Types (UDT) or forREFtype parameters.- Parameters:
parameterName- the parameter name.sqlType- a JDBC type expressed as a constant fromTypes.- Throws:
SQLException- if a database error occurs.
-
setNull
Sets the value of a specified parameter to be SQLNULLwhere the parameter type is eitherREFor user defined (e.g.STRUCT,JAVA_OBJECTetc).For reasons of portability, the caller is expected to supply both the SQL type code and type name (which is just the parameter name if the type is user defined, referred to as a
UDT, or the name of the referenced type in case of aREFtype).- Parameters:
parameterName- the parameter name.sqlType- a JDBC type expressed as a constant fromTypes.typeName- if the target parameter is a user defined type then this should contain the full type name. The fully qualified name of aUDTorREFtype is ignored if the parameter is not aUDT.- Throws:
SQLException- if a database error occurs.- See Also:
Types
-
setObject
Sets the value of a specified parameter using a supplied object. Prior to issuing this request to the connected databasetheObjectis transformed to the corresponding SQL type according to the standard Java to SQL mapping rules.If the object's class implements the interface
SQLData, the JDBC driver callsSQLData.writeSQLto write it to the SQL data stream. IftheObjectimplements any of the following interfaces then the driver is in charge of mapping the value to the appropriate SQL type.- Parameters:
parameterName- the parameter nametheObject- the new value with which to update the parameter- Throws:
SQLException- if a database error occurs.- See Also:
SQLData
-
setObject
Sets the value of a specified parameter using a supplied object.The parameter
then the driver is in charge of mapping the value to the appropriate SQL type and deliver it to the database.theObjectis converted to the giventargetSqlTypebefore it is sent to the database. If the object has a custom mapping (its class implements the interfaceSQLData), the JDBC driver calls the methodSQLData.writeSQLto write it to the SQL data stream. IftheObjectis an instance of one of the following types- Parameters:
parameterName- the parameter name.theObject- the new value with which to update the parameter.targetSqlType- a JDBC type expressed as a constant fromTypes.- Throws:
SQLException- if a database error occurs.- See Also:
SQLData
-
setObject
void setObject(String parameterName, Object theObject, int targetSqlType, int scale) throws SQLExceptionSets the value of a specified parameter using a supplied object.The object is converted to the given
then the driver is charge of mapping the value to the appropriate SQL type.targetSqlTypebefore it is sent to the database. If the object has a custom mapping (its class implements the interfaceSQLData), the JDBC driver calls the methodSQLData.writeSQLto write it to the SQL data stream. IftheObjectimplements any of the following interfaces- Parameters:
parameterName- the parameter name.theObject- the new value with which to update the parameter.targetSqlType- a JDBC type expressed as a constant fromTypes.scale- where applicable, the number of digits after the decimal. point.- Throws:
SQLException- if a database error occurs.- See Also:
SQLData
-
setShort
Sets the value of a specified parameter to a suppliedshortvalue.- Parameters:
parameterName- the name of the parameter.theShort- a short value to update the parameter.- Throws:
SQLException- if a database error occurs.
-
setString
Sets the value of a specified parameter to a suppliedString.- Parameters:
parameterName- the name of the parameter.theString- aStringvalue to update the parameter.- Throws:
SQLException- if a database error occurs.
-
setTime
Sets the value of the parameter namedparameterNameto the value of the suppliedjava.sql.Time.- Parameters:
parameterName- the parameter name.theTime- the new value with which to update the parameter.- Throws:
SQLException- if a database error occurs.- See Also:
Time
-
setTime
Sets the value of the parameter namedparameterNameto the value of the suppliedjava.sql.Timeusing the supplied calendar.The driver uses the supplied
Calendarto create the SQLTIMEvalue, which allows it to use a custom timezone - otherwise the driver uses the VM defaults. See "Be wary of the default locale".- Parameters:
parameterName- the parameter name.theTime- the new value with which to update the parameter.cal- used for creating the new SQLTIMEvalue.- Throws:
SQLException- if a database error occurs.- See Also:
Time
-
setTimestamp
Sets the value of a specified parameter to a suppliedjava.sql.Timestampvalue.- Parameters:
parameterName- the parameter name.theTimestamp- the new value with which to update the parameter.- Throws:
SQLException- if a database error occurs.- See Also:
Timestamp
-
setTimestamp
Sets the value of a specified parameter to a suppliedjava.sql.Timestampvalue, using the supplied calendar.The driver uses the supplied calendar to create the SQL
TIMESTAMPvalue, which allows it to use a custom timezone - otherwise the driver uses the VM defaults. See "Be wary of the default locale".- Parameters:
parameterName- the parameter name.theTimestamp- the new value with which to update the parameter.cal- used for creating the new SQLTIMEvalue.- Throws:
SQLException- if a database error occurs.- See Also:
Timestamp,Calendar
-
setURL
Sets the value of a specified parameter to the suppliedjava.net.URL.- Parameters:
parameterName- the parameter name.theURL- the new value with which to update the parameter.- Throws:
SQLException- if a database error occurs.- See Also:
URL
-
wasNull
Gets whether the value of the lastOUTparameter read was SQLNULL.- Returns:
- true if the last parameter was SQL
NULL,falseotherwise. - Throws:
SQLException- if a database error occurs.
-
getRowId
Gets the value of a specifiedROWIDparameter as ajava.sql.RowId.- Parameters:
parameterIndex- the parameter number index, where the first parameter has index 1.- Throws:
SQLException- if a database error occurs.
-
getRowId
Returns the value of the specified SQL ROWID parameter as ajava.sql.RowId.- Parameters:
parameterName- the parameter name- Throws:
SQLException- if a database error occurs
-
setRowId
Sets the named parameter to the givenrowId.- Throws:
SQLException- if a database error occurs
-
setNString
Sets the named parameter to the givenstring.- Throws:
SQLException- if a database error occurs
-
setNCharacterStream
Sets the named parameter to the characters from the givenreader.- Throws:
SQLException- if a database error occurs
-
setNClob
Sets the named parameter to the givennclob.- Throws:
SQLException- if a database error occurs
-
setClob
Sets the named parameter to the nextlengthcharacters from the givenreader.- Throws:
SQLException- if a database error occurs
-
setBlob
Sets the named parameter to the nextlengthbytes from the giveninputStream.- Throws:
SQLException- if a database error occurs
-
setNClob
Sets the named parameter to the nextlengthcharacters from the givenreader.- Throws:
SQLException- if a database error occurs
-
getNClob
Returns the value of the specified SQL NCLOB parameter as ajava.sql.NClob.- Parameters:
parameterIndex- the parameter number index, where the first parameter has index 1.- Throws:
SQLException- if a database error occurs.
-
getNClob
Returns the value of the specified SQL NCLOB parameter as ajava.sql.NClob.- Parameters:
parameterName- the parameter name- Throws:
SQLException- if a database error occurs
-
setSQLXML
Sets the named parameter to the givensqlXml.- Throws:
SQLException- if a database error occurs
-
getSQLXML
Returns the value of the specified SQL XML parameter as ajava.sql.SQLXML.- Parameters:
parameterIndex- the parameter number index, where the first parameter has index 1.- Throws:
SQLException- if a database error occurs.
-
getSQLXML
Returns the value of the specified SQL XML parameter as ajava.sql.SQLXML.- Parameters:
parameterName- the parameter name- Throws:
SQLException- if a database error occurs
-
getNString
Returns the value of the specified SQL NCHAR, NVARCHAR, or LONGNVARCHAR parameter as ajava.lang.String.- Parameters:
parameterIndex- the parameter number index, where the first parameter has index 1.- Throws:
SQLException- if a database error occurs.
-
getNString
Returns the value of the specified SQL NCHAR, NVARCHAR, or LONGNVARCHAR parameter as ajava.lang.String.- Parameters:
parameterName- the parameter name- Throws:
SQLException- if a database error occurs
-
getNCharacterStream
Returns the value of the specified SQL NCHAR, NVARCHAR, or LONGNVARCHAR parameter as aReader.- Parameters:
parameterIndex- the parameter number index, where the first parameter has index 1.- Throws:
SQLException- if a database error occurs.
-
getNCharacterStream
Returns the value of the specified SQL NCHAR, NVARCHAR, or LONGNVARCHAR parameter as ajava.io.Reader.- Parameters:
parameterName- the parameter name- Throws:
SQLException- if a database error occurs
-
getCharacterStream
Returns the value of the specified parameter as ajava.io.Reader.- Parameters:
parameterIndex- the parameter number index, where the first parameter has index 1.- Throws:
SQLException- if a database error occurs.
-
getCharacterStream
Returns the value of the specified parameter as ajava.io.Reader.- Parameters:
parameterName- the parameter name- Throws:
SQLException- if a database error occurs
-
setBlob
Sets the named parameter to the givenblob.- Throws:
SQLException- if a database error occurs
-
setClob
Sets the named parameter to the givenclob.- Throws:
SQLException- if a database error occurs
-
setAsciiStream
Sets the named parameter to the nextlengthbytes from the giveninputStream.- Throws:
SQLException- if a database error occurs
-
setAsciiStream
Sets the named parameter to the bytes from the givenreader.- Throws:
SQLException- if a database error occurs
-
setBinaryStream
Sets the named parameter to the nextlengthbytes from the giveninputStream.- Throws:
SQLException- if a database error occurs
-
setBinaryStream
Sets the named parameter to the bytes from the givenreader.- Throws:
SQLException- if a database error occurs
-
setCharacterStream
Sets the named parameter to the nextlengthcharacters from the givenreader.- Throws:
SQLException- if a database error occurs
-
setCharacterStream
Sets the named parameter to the characters from the givenreader.- Throws:
SQLException- if a database error occurs
-
setNCharacterStream
Sets the named parameter to the characters from the givenreader.- Throws:
SQLException- if a database error occurs
-
setClob
Sets the named parameter to the characters from the givenreader.- Throws:
SQLException- if a database error occurs
-
setBlob
Sets the named parameter to the bytes from the giveninputStream.- Throws:
SQLException- if a database error occurs
-
setNClob
Sets the named parameter to the characters from the givenreader.- Throws:
SQLException- if a database error occurs
-
getBigDecimal(int)orgetBigDecimal(String)instead.