Class SQLServerCallableStatement
- All Implemented Interfaces:
ISQLServerCallableStatement,ISQLServerPreparedStatement,ISQLServerStatement,java.io.Serializable,java.lang.AutoCloseable,java.sql.CallableStatement,java.sql.PreparedStatement,java.sql.Statement,java.sql.Wrapper
public class SQLServerCallableStatement extends SQLServerPreparedStatement implements ISQLServerCallableStatement
The API javadoc for JDBC API methods that this class implements are not repeated here. Please see Sun's JDBC API interfaces javadoc for those details.
- See Also:
- Serialized Form
-
Field Summary
Fields inherited from class com.microsoft.sqlserver.jdbc.SQLServerStatement
stmtColumnEncriptionSetting -
Method Summary
Modifier and Type Method Description java.sql.ArraygetArray(int parameterIndex)java.sql.ArraygetArray(java.lang.String parameterName)java.io.InputStreamgetAsciiStream(int parameterIndex)Returns the value of the designated column in the current row of thisResultSetobject as a stream of ASCII characters.java.io.InputStreamgetAsciiStream(java.lang.String parameterName)Returns the value of the designated column in the current row of thisResultSetobject as a stream of ASCII characters.java.math.BigDecimalgetBigDecimal(int parameterIndex)java.math.BigDecimalgetBigDecimal(int parameterIndex, int scale)Deprecated.java.math.BigDecimalgetBigDecimal(java.lang.String parameterName)java.math.BigDecimalgetBigDecimal(java.lang.String parameterName, int scale)Deprecated.java.io.InputStreamgetBinaryStream(int parameterIndex)Returns the value of the designated column in the current row of thisResultSetobject as a stream of uninterpreted bytes.java.io.InputStreamgetBinaryStream(java.lang.String parameterName)Returns the value of the designated column in the current row of thisResultSetobject as a stream of uninterpretedbytes.java.sql.BlobgetBlob(int parameterIndex)java.sql.BlobgetBlob(java.lang.String parameterName)booleangetBoolean(int index)booleangetBoolean(java.lang.String parameterName)bytegetByte(int index)bytegetByte(java.lang.String parameterName)byte[]getBytes(int index)byte[]getBytes(java.lang.String parameterName)java.io.ReadergetCharacterStream(int parameterIndex)java.io.ReadergetCharacterStream(java.lang.String parameterName)java.sql.ClobgetClob(int parameterIndex)java.sql.ClobgetClob(java.lang.String parameterName)java.sql.DategetDate(int index)java.sql.DategetDate(int index, java.util.Calendar cal)java.sql.DategetDate(java.lang.String parameterName)java.sql.DategetDate(java.lang.String parameterName, java.util.Calendar cal)java.sql.TimestampgetDateTime(int index)Returns the value of the designated column in the current row of this ResultSet object as a java.sql.Timestamp object in the Java programming language.java.sql.TimestampgetDateTime(int index, java.util.Calendar cal)Returns the value of the designated column in the current row of this ResultSet object as a java.sql.Timestamp object in the Java programming language.java.sql.TimestampgetDateTime(java.lang.String parameterName)Returns the value of the designated column in the current row of this ResultSet object as a java.sql.Timestamp object in the Java programming language.java.sql.TimestampgetDateTime(java.lang.String name, java.util.Calendar cal)Returns the value of the designated column in the current row of this ResultSet object as a java.sql.Timestamp object in the Java programming language.DateTimeOffsetgetDateTimeOffset(int index)Returns the DateTimeOffset value of parameter with index parameterIndex.DateTimeOffsetgetDateTimeOffset(java.lang.String parameterName)Returns the DateTimeOffset value of parameter with name parameterName.doublegetDouble(int index)doublegetDouble(java.lang.String parameterName)floatgetFloat(int index)floatgetFloat(java.lang.String parameterName)intgetInt(int index)intgetInt(java.lang.String parameterName)longgetLong(int index)longgetLong(java.lang.String parameterName)java.math.BigDecimalgetMoney(int parameterIndex)Returns the value of the column specified as a java.math.BigDecimal object.java.math.BigDecimalgetMoney(java.lang.String parameterName)Returns the value of the column specified as a java.math.BigDecimal object.java.io.ReadergetNCharacterStream(int parameterIndex)java.io.ReadergetNCharacterStream(java.lang.String parameterName)java.sql.NClobgetNClob(int parameterIndex)java.sql.NClobgetNClob(java.lang.String parameterName)java.lang.StringgetNString(int parameterIndex)java.lang.StringgetNString(java.lang.String parameterName)java.lang.ObjectgetObject(int index)<T> TgetObject(int index, java.lang.Class<T> type)java.lang.ObjectgetObject(int parameterIndex, java.util.Map<java.lang.String,java.lang.Class<?>> map)java.lang.ObjectgetObject(java.lang.String parameterName)<T> TgetObject(java.lang.String parameterName, java.lang.Class<T> type)java.lang.ObjectgetObject(java.lang.String parameterName, java.util.Map<java.lang.String,java.lang.Class<?>> m)java.sql.RefgetRef(int parameterIndex)java.sql.RefgetRef(java.lang.String parameterName)java.sql.RowIdgetRowId(int parameterIndex)java.sql.RowIdgetRowId(java.lang.String parameterName)shortgetShort(int index)shortgetShort(java.lang.String parameterName)java.sql.TimestampgetSmallDateTime(int index)Returns the value of the designated column in the current row of this ResultSet object as a java.sql.Timestamp object in the Java programming language.java.sql.TimestampgetSmallDateTime(int index, java.util.Calendar cal)Returns the value of the designated column in the current row of this ResultSet object as a java.sql.Timestamp object in the Java programming language.java.sql.TimestampgetSmallDateTime(java.lang.String parameterName)Returns the value of the designated column in the current row of this ResultSet object as a java.sql.Timestamp object in the Java programming language.java.sql.TimestampgetSmallDateTime(java.lang.String name, java.util.Calendar cal)Returns the value of the designated column in the current row of this ResultSet object as a java.sql.Timestamp object in the Java programming language.java.math.BigDecimalgetSmallMoney(int parameterIndex)Returns the value of the column specified as a java.math.BigDecimal object.java.math.BigDecimalgetSmallMoney(java.lang.String parameterName)Returns the value of the column specified as a java.math.BigDecimal object.java.sql.SQLXMLgetSQLXML(int parameterIndex)java.sql.SQLXMLgetSQLXML(java.lang.String parameterName)java.lang.StringgetString(int index)java.lang.StringgetString(java.lang.String parameterName)java.sql.TimegetTime(int index)java.sql.TimegetTime(int index, java.util.Calendar cal)java.sql.TimegetTime(java.lang.String parameterName)java.sql.TimegetTime(java.lang.String parameterName, java.util.Calendar cal)java.sql.TimestampgetTimestamp(int index)java.sql.TimestampgetTimestamp(int index, java.util.Calendar cal)java.sql.TimestampgetTimestamp(java.lang.String parameterName)java.sql.TimestampgetTimestamp(java.lang.String name, java.util.Calendar cal)java.net.URLgetURL(int parameterIndex)java.net.URLgetURL(java.lang.String parameterName)voidregisterOutParameter(int index, int sqlType)voidregisterOutParameter(int index, int sqlType, int scale)voidregisterOutParameter(int index, int sqlType, int precision, int scale)Registers the parameter in ordinal position index to be of JDBC type sqlType.voidregisterOutParameter(int index, int sqlType, java.lang.String typeName)voidregisterOutParameter(int parameterIndex, java.sql.SQLType sqlType)voidregisterOutParameter(int parameterIndex, java.sql.SQLType sqlType, int scale)voidregisterOutParameter(int parameterIndex, java.sql.SQLType sqlType, int precision, int scale)Registers the parameter in ordinal position index to be of JDBC type sqlType.voidregisterOutParameter(int parameterIndex, java.sql.SQLType sqlType, java.lang.String typeName)voidregisterOutParameter(java.lang.String parameterName, int sqlType)voidregisterOutParameter(java.lang.String parameterName, int sqlType, int scale)voidregisterOutParameter(java.lang.String parameterName, int sqlType, int precision, int scale)Registers the parameter in ordinal position index to be of JDBC type sqlType.voidregisterOutParameter(java.lang.String parameterName, int sqlType, java.lang.String typeName)voidregisterOutParameter(java.lang.String parameterName, java.sql.SQLType sqlType)voidregisterOutParameter(java.lang.String parameterName, java.sql.SQLType sqlType, int scale)voidregisterOutParameter(java.lang.String parameterName, java.sql.SQLType sqlType, int precision, int scale)Registers the parameter in ordinal position index to be of JDBC type sqlType.voidregisterOutParameter(java.lang.String parameterName, java.sql.SQLType sqlType, java.lang.String typeName)voidsetAsciiStream(java.lang.String parameterName, java.io.InputStream value)voidsetAsciiStream(java.lang.String parameterName, java.io.InputStream value, int length)voidsetAsciiStream(java.lang.String parameterName, java.io.InputStream value, long length)voidsetBigDecimal(java.lang.String parameterName, java.math.BigDecimal value)voidsetBigDecimal(java.lang.String parameterName, java.math.BigDecimal value, int precision, int scale)Sets the designated parameter to the givenjava.math.BigDecimalvalue.voidsetBigDecimal(java.lang.String parameterName, java.math.BigDecimal value, int precision, int scale, boolean forceEncrypt)Sets the designated parameter to the givenjava.math.BigDecimalvalue.voidsetBinaryStream(java.lang.String parameterName, java.io.InputStream value)voidsetBinaryStream(java.lang.String parameterName, java.io.InputStream value, int length)voidsetBinaryStream(java.lang.String parameterName, java.io.InputStream value, long length)voidsetBlob(java.lang.String parameterName, java.io.InputStream value)voidsetBlob(java.lang.String parameterName, java.io.InputStream inputStream, long length)voidsetBlob(java.lang.String parameterName, java.sql.Blob inputStream)voidsetBoolean(java.lang.String parameterName, boolean value)voidsetBoolean(java.lang.String parameterName, boolean value, boolean forceEncrypt)Sets the designated parameter to the given Javabooleanvalue.voidsetByte(java.lang.String parameterName, byte value)voidsetByte(java.lang.String parameterName, byte value, boolean forceEncrypt)Sets the designated parameter to the given Javabytevalue.voidsetBytes(java.lang.String parameterName, byte[] value)voidsetBytes(java.lang.String parameterName, byte[] value, boolean forceEncrypt)Sets the designated parameter to the given Java array of bytes.voidsetCharacterStream(java.lang.String parameterName, java.io.Reader reader)voidsetCharacterStream(java.lang.String parameterName, java.io.Reader value, int length)voidsetCharacterStream(java.lang.String parameterName, java.io.Reader reader, long length)voidsetClob(java.lang.String parameterName, java.io.Reader reader)voidsetClob(java.lang.String parameterName, java.io.Reader value, long length)voidsetClob(java.lang.String parameterName, java.sql.Clob value)voidsetDate(java.lang.String parameterName, java.sql.Date value)voidsetDate(java.lang.String parameterName, java.sql.Date value, java.util.Calendar calendar)voidsetDate(java.lang.String parameterName, java.sql.Date value, java.util.Calendar calendar, boolean forceEncrypt)Sets the designated parameter to the givenjava.sql.Datevalue, using the givenCalendarobject.voidsetDateTime(java.lang.String parameterName, java.sql.Timestamp value)Sets the designated parameter to the givenjava.sql.Timestampvalue.voidsetDateTime(java.lang.String parameterName, java.sql.Timestamp value, boolean forceEncrypt)Sets the designated parameter to the givenjava.sql.Timestampvalue.voidsetDateTimeOffset(java.lang.String parameterName, DateTimeOffset value)Sets parameter parameterName to DateTimeOffset value.voidsetDateTimeOffset(java.lang.String parameterName, DateTimeOffset value, int scale)Sets parameter parameterName to DateTimeOffset value.voidsetDateTimeOffset(java.lang.String parameterName, DateTimeOffset value, int scale, boolean forceEncrypt)Sets parameter parameterName to DateTimeOffset value.voidsetDouble(java.lang.String parameterName, double value)voidsetDouble(java.lang.String parameterName, double value, boolean forceEncrypt)Sets the designated parameter to the given Javadoublevalue.voidsetFloat(java.lang.String parameterName, float value)voidsetFloat(java.lang.String parameterName, float value, boolean forceEncrypt)Sets the designated parameter to the given Javafloatvalue.voidsetInt(java.lang.String parameterName, int value)voidsetInt(java.lang.String parameterName, int value, boolean forceEncrypt)Sets the designated parameter to the given Javaintvalue.voidsetLong(java.lang.String parameterName, long value)voidsetLong(java.lang.String parameterName, long value, boolean forceEncrypt)Sets the designated parameter to the given Javalongvalue.voidsetMoney(java.lang.String parameterName, java.math.BigDecimal value)Sets the designated parameter to the given Javajava.math.BigDecimalvalue.voidsetMoney(java.lang.String parameterName, java.math.BigDecimal value, boolean forceEncrypt)Sets the designated parameter to the given Javajava.math.BigDecimalvalue.voidsetNCharacterStream(java.lang.String parameterName, java.io.Reader value)voidsetNCharacterStream(java.lang.String parameterName, java.io.Reader value, long length)voidsetNClob(java.lang.String parameterName, java.io.Reader reader)voidsetNClob(java.lang.String parameterName, java.io.Reader reader, long length)voidsetNClob(java.lang.String parameterName, java.sql.NClob value)voidsetNString(java.lang.String parameterName, java.lang.String value)voidsetNString(java.lang.String parameterName, java.lang.String value, boolean forceEncrypt)Sets the designated parameter to the givenStringobject.voidsetNull(java.lang.String parameterName, int nType)voidsetNull(java.lang.String parameterName, int nType, java.lang.String sTypeName)voidsetObject(java.lang.String parameterName, java.lang.Object value)voidsetObject(java.lang.String parameterName, java.lang.Object value, int sqlType)voidsetObject(java.lang.String parameterName, java.lang.Object value, int sqlType, int decimals)voidsetObject(java.lang.String parameterName, java.lang.Object value, int sqlType, int decimals, boolean forceEncrypt)Sets the value of the designated parameter with the given object.voidsetObject(java.lang.String parameterName, java.lang.Object value, int targetSqlType, java.lang.Integer precision, int scale)Sets the value of the designated parameter with the given object.voidsetObject(java.lang.String parameterName, java.lang.Object value, java.sql.SQLType jdbcType)voidsetObject(java.lang.String parameterName, java.lang.Object value, java.sql.SQLType jdbcType, int scale)voidsetObject(java.lang.String parameterName, java.lang.Object value, java.sql.SQLType jdbcType, int scale, boolean forceEncrypt)Sets the value of the designated parameter with the given object.voidsetRowId(java.lang.String parameterName, java.sql.RowId value)voidsetShort(java.lang.String parameterName, short value)voidsetShort(java.lang.String parameterName, short value, boolean forceEncrypt)Sets the designated parameter to the given Javashortvalue.voidsetSmallDateTime(java.lang.String parameterName, java.sql.Timestamp value)Sets the designated parameter to the givenjava.sql.Timestampvalue.voidsetSmallDateTime(java.lang.String parameterName, java.sql.Timestamp value, boolean forceEncrypt)Sets the designated parameter to the givenjava.sql.Timestampvalue.voidsetSmallMoney(java.lang.String parameterName, java.math.BigDecimal value)Sets the designated parameter to the given Javajava.math.BigDecimalvalue.voidsetSmallMoney(java.lang.String parameterName, java.math.BigDecimal value, boolean forceEncrypt)Sets the designated parameter to the given Javajava.math.BigDecimalvalue.voidsetSQLXML(java.lang.String parameterName, java.sql.SQLXML xmlObject)voidsetString(java.lang.String parameterName, java.lang.String value)voidsetString(java.lang.String parameterName, java.lang.String value, boolean forceEncrypt)Sets the designated parameter to the given JavaStringvalue.voidsetStructured(java.lang.String parameterName, java.lang.String tvpName, ISQLServerDataRecord tvpDataRecord)Populates a table valued parameter passed to a stored procedure with an ISQLServerDataRecord object.voidsetStructured(java.lang.String parameterName, java.lang.String tvpName, SQLServerDataTable tvpDataTable)Populates a table valued parameter passed to a stored procedure with a data table.voidsetStructured(java.lang.String parameterName, java.lang.String tvpName, java.sql.ResultSet tvpResultSet)Populates a table valued parameter passed to a stored procedure with a ResultSet retrieved from another tablevoidsetTime(java.lang.String parameterName, java.sql.Time value)voidsetTime(java.lang.String parameterName, java.sql.Time value, int scale)Sets the designated parameter to the givenjava.sql.Timevalue.voidsetTime(java.lang.String parameterName, java.sql.Time value, int scale, boolean forceEncrypt)Sets the designated parameter to the givenjava.sql.Timevalue.voidsetTime(java.lang.String parameterName, java.sql.Time value, java.util.Calendar calendar)voidsetTime(java.lang.String parameterName, java.sql.Time value, java.util.Calendar calendar, boolean forceEncrypt)Sets the designated parameter to the givenjava.sql.Timevalue, using the givenCalendarobject.voidsetTimestamp(java.lang.String parameterName, java.sql.Timestamp value)voidsetTimestamp(java.lang.String parameterName, java.sql.Timestamp value, int scale)Sets the designated parameter to the givenjava.sql.Timestampvalue.voidsetTimestamp(java.lang.String parameterName, java.sql.Timestamp value, int scale, boolean forceEncrypt)Sets the designated parameter to the givenjava.sql.Timestampvalue.voidsetTimestamp(java.lang.String parameterName, java.sql.Timestamp value, java.util.Calendar calendar)voidsetTimestamp(java.lang.String parameterName, java.sql.Timestamp value, java.util.Calendar calendar, boolean forceEncrypt)Sets the designated parameter to the givenjava.sql.Timestampvalue.voidsetUniqueIdentifier(java.lang.String parameterName, java.lang.String guid)Sets the designated parameter to the givenStringvalue.voidsetUniqueIdentifier(java.lang.String parameterName, java.lang.String guid, boolean forceEncrypt)Sets the designated parameter to the givenStringvalue.voidsetURL(java.lang.String parameterName, java.net.URL url)booleanwasNull()Methods inherited from class com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement
addBatch, addBatch, clearBatch, clearParameters, execute, execute, executeBatch, executeLargeBatch, executeLargeUpdate, executeQuery, executeQuery, executeUpdate, executeUpdate, getMetaData, getParameterMetaData, getParameterMetaData, getPreparedStatementHandle, getUseFmtOnly, setArray, setAsciiStream, setAsciiStream, setAsciiStream, setBigDecimal, setBigDecimal, setBigDecimal, setBinaryStream, setBinaryStream, setBinaryStream, setBlob, setBlob, setBlob, setBoolean, setBoolean, setByte, setByte, setBytes, setBytes, setCharacterStream, setCharacterStream, setCharacterStream, setClob, setClob, setClob, setDate, setDate, setDate, setDateTime, setDateTime, setDateTimeOffset, setDateTimeOffset, setDateTimeOffset, setDouble, setDouble, setFloat, setFloat, setGeography, setGeometry, setInt, setInt, setLong, setLong, setMoney, setMoney, setNCharacterStream, setNCharacterStream, setNClob, setNClob, setNClob, setNString, setNString, setNull, setNull, setObject, setObject, setObject, setObject, setObject, setObject, setObject, setObject, setObject, setRef, setRowId, setShort, setShort, setSmallDateTime, setSmallDateTime, setSmallMoney, setSmallMoney, setSQLXML, setString, setString, setStructured, setStructured, setStructured, setTime, setTime, setTime, setTime, setTime, setTimestamp, setTimestamp, setTimestamp, setTimestamp, setTimestamp, setUnicodeStream, setUniqueIdentifier, setUniqueIdentifier, setURL, setUseFmtOnlyMethods inherited from class com.microsoft.sqlserver.jdbc.SQLServerStatement
cancel, clearWarnings, close, closeOnCompletion, execute, execute, execute, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeUpdate, executeUpdate, executeUpdate, getCancelQueryTimeout, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getLargeMaxRows, getLargeUpdateCount, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResponseBuffering, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getStmtColumnEncriptionSetting, getUpdateCount, getWarnings, isClosed, isCloseOnCompletion, isPoolable, isWrapperFor, setCancelQueryTimeout, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setLargeMaxRows, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout, setResponseBuffering, toString, unwrapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.microsoft.sqlserver.jdbc.ISQLServerPreparedStatement
getParameterMetaData, getPreparedStatementHandle, getUseFmtOnly, setBigDecimal, setBigDecimal, setBoolean, setByte, setBytes, setDate, setDateTime, setDateTime, setDateTimeOffset, setDateTimeOffset, setDateTimeOffset, setDouble, setFloat, setGeography, setGeometry, setInt, setLong, setMoney, setMoney, setNString, setObject, setObject, setObject, setObject, setShort, setSmallDateTime, setSmallDateTime, setSmallMoney, setSmallMoney, setString, setStructured, setStructured, setStructured, setTime, setTime, setTime, setTimestamp, setTimestamp, setTimestamp, setUniqueIdentifier, setUniqueIdentifier, setUseFmtOnlyMethods inherited from interface com.microsoft.sqlserver.jdbc.ISQLServerStatement
getCancelQueryTimeout, getResponseBuffering, setCancelQueryTimeout, setResponseBufferingMethods inherited from interface java.sql.PreparedStatement
addBatch, clearParameters, execute, executeLargeUpdate, 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, setObject, setObject, setRef, setRowId, setShort, setSQLXML, setString, setTime, setTime, setTimestamp, setTimestamp, setUnicodeStream, setURLMethods inherited from interface java.sql.Statement
addBatch, cancel, clearBatch, clearWarnings, close, closeOnCompletion, enquoteIdentifier, enquoteLiteral, enquoteNCharLiteral, execute, execute, execute, execute, executeBatch, executeLargeBatch, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getLargeMaxRows, getLargeUpdateCount, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, isClosed, isCloseOnCompletion, isPoolable, isSimpleIdentifier, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setLargeMaxRows, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout
-
Method Details
-
registerOutParameter
- Specified by:
registerOutParameterin interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
registerOutParameter
public void registerOutParameter(int index, int sqlType, java.lang.String typeName) throws SQLServerException- Specified by:
registerOutParameterin interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
registerOutParameter
- Specified by:
registerOutParameterin interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
registerOutParameter
public void registerOutParameter(int index, int sqlType, int precision, int scale) throws SQLServerExceptionDescription copied from interface:ISQLServerCallableStatementRegisters the parameter in ordinal position index to be of JDBC type sqlType. All OUT parameters must be registered before a stored procedure is executed.The JDBC type specified by sqlType for an OUT parameter determines the Java type that must be used in the get method to read the value of that parameter.
- Specified by:
registerOutParameterin interfaceISQLServerCallableStatement- Parameters:
index- the first column is 1, the second is 2, ...sqlType- the JDBC type code defined by SQLType to use to register the OUT Parameter.precision- the sum of the desired number of digits to the left and right of the decimal point. It must be greater than or equal to zero.scale- the desired number of digits to the right of the decimal point. It must be greater than or equal to zero.- Throws:
SQLServerException- If any errors occur.
-
getInt
- Specified by:
getIntin interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
getInt
- Specified by:
getIntin interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
getString
- Specified by:
getStringin interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
getString
- Specified by:
getStringin interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
getNString
public final java.lang.String getNString(int parameterIndex) throws java.sql.SQLException- Specified by:
getNStringin interfacejava.sql.CallableStatement- Throws:
java.sql.SQLException
-
getNString
public final java.lang.String getNString(java.lang.String parameterName) throws java.sql.SQLException- Specified by:
getNStringin interfacejava.sql.CallableStatement- Throws:
java.sql.SQLException
-
getBigDecimal
@Deprecated public java.math.BigDecimal getBigDecimal(int parameterIndex, int scale) throws java.sql.SQLExceptionDeprecated.- Specified by:
getBigDecimalin interfacejava.sql.CallableStatement- Throws:
java.sql.SQLException
-
getBigDecimal
@Deprecated public java.math.BigDecimal getBigDecimal(java.lang.String parameterName, int scale) throws SQLServerExceptionDeprecated.- Specified by:
getBigDecimalin interfaceISQLServerCallableStatement- Throws:
SQLServerException
-
getBoolean
- Specified by:
getBooleanin interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
getBoolean
- Specified by:
getBooleanin interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
getByte
- Specified by:
getBytein interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
getByte
- Specified by:
getBytein interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
getBytes
- Specified by:
getBytesin interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
getBytes
- Specified by:
getBytesin interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
getDate
- Specified by:
getDatein interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
getDate
- Specified by:
getDatein interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
getDate
- Specified by:
getDatein interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
getDate
public java.sql.Date getDate(java.lang.String parameterName, java.util.Calendar cal) throws SQLServerException- Specified by:
getDatein interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
getDouble
- Specified by:
getDoublein interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
getDouble
- Specified by:
getDoublein interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
getFloat
- Specified by:
getFloatin interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
getFloat
- Specified by:
getFloatin interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
getLong
- Specified by:
getLongin interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
getLong
- Specified by:
getLongin interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
getObject
- Specified by:
getObjectin interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
getObject
public <T> T getObject(int index, java.lang.Class<T> type) throws java.sql.SQLException- Specified by:
getObjectin interfacejava.sql.CallableStatement- Throws:
java.sql.SQLException
-
getObject
- Specified by:
getObjectin interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
getObject
public <T> T getObject(java.lang.String parameterName, java.lang.Class<T> type) throws java.sql.SQLException- Specified by:
getObjectin interfacejava.sql.CallableStatement- Throws:
java.sql.SQLException
-
getShort
- Specified by:
getShortin interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
getShort
- Specified by:
getShortin interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
getTime
- Specified by:
getTimein interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
getTime
- Specified by:
getTimein interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
getTime
- Specified by:
getTimein interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
getTime
public java.sql.Time getTime(java.lang.String parameterName, java.util.Calendar cal) throws SQLServerException- Specified by:
getTimein interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
getTimestamp
- Specified by:
getTimestampin interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
getTimestamp
- Specified by:
getTimestampin interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
getTimestamp
public java.sql.Timestamp getTimestamp(int index, java.util.Calendar cal) throws SQLServerException- Specified by:
getTimestampin interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
getTimestamp
public java.sql.Timestamp getTimestamp(java.lang.String name, java.util.Calendar cal) throws SQLServerException- Specified by:
getTimestampin interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
getDateTime
Description copied from interface:ISQLServerCallableStatementReturns the value of the designated column in the current row of this ResultSet object as a java.sql.Timestamp object in the Java programming language.- Specified by:
getDateTimein interfaceISQLServerCallableStatement- Parameters:
index- the first column is 1, the second is 2, ...- Returns:
- the column value; if the value is SQL NULL, the value returned is null
- Throws:
SQLServerException- when an error occurs
-
getDateTime
Description copied from interface:ISQLServerCallableStatementReturns the value of the designated column in the current row of this ResultSet object as a java.sql.Timestamp object in the Java programming language.- Specified by:
getDateTimein interfaceISQLServerCallableStatement- Parameters:
parameterName- the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the column- Returns:
- the column value; if the value is SQL NULL, the value returned is null
- Throws:
SQLServerException- when an error occurs
-
getDateTime
Description copied from interface:ISQLServerCallableStatementReturns the value of the designated column in the current row of this ResultSet object as a java.sql.Timestamp object in the Java programming language. This method uses the given calendar to construct an appropriate millisecond value for the timestamp if the underlying database does not store timezone information.- Specified by:
getDateTimein interfaceISQLServerCallableStatement- Parameters:
index- the first column is 1, the second is 2, ...cal- the java.util.Calendar object to use in constructing the dateTime- Returns:
- the column value; if the value is SQL NULL, the value returned is null
- Throws:
SQLServerException- when an error occurs
-
getDateTime
public java.sql.Timestamp getDateTime(java.lang.String name, java.util.Calendar cal) throws SQLServerExceptionDescription copied from interface:ISQLServerCallableStatementReturns the value of the designated column in the current row of this ResultSet object as a java.sql.Timestamp object in the Java programming language. This method uses the given calendar to construct an appropriate millisecond value for the timestamp if the underlying database does not store timezone information.- Specified by:
getDateTimein interfaceISQLServerCallableStatement- Parameters:
name- the name of the columncal- the java.util.Calendar object to use in constructing the dateTime- Returns:
- the column value; if the value is SQL NULL, the value returned is null
- Throws:
SQLServerException- when an error occurs
-
getSmallDateTime
Description copied from interface:ISQLServerCallableStatementReturns the value of the designated column in the current row of this ResultSet object as a java.sql.Timestamp object in the Java programming language.- Specified by:
getSmallDateTimein interfaceISQLServerCallableStatement- Parameters:
index- the first column is 1, the second is 2, ...- Returns:
- the column value; if the value is SQL NULL, the value returned is null
- Throws:
SQLServerException- when an error occurs
-
getSmallDateTime
public java.sql.Timestamp getSmallDateTime(java.lang.String parameterName) throws SQLServerExceptionDescription copied from interface:ISQLServerCallableStatementReturns the value of the designated column in the current row of this ResultSet object as a java.sql.Timestamp object in the Java programming language.- Specified by:
getSmallDateTimein interfaceISQLServerCallableStatement- Parameters:
parameterName- The name of a column.- Returns:
- the column value; if the value is SQL NULL, the value returned is null
- Throws:
SQLServerException- when an error occurs
-
getSmallDateTime
public java.sql.Timestamp getSmallDateTime(int index, java.util.Calendar cal) throws SQLServerExceptionDescription copied from interface:ISQLServerCallableStatementReturns the value of the designated column in the current row of this ResultSet object as a java.sql.Timestamp object in the Java programming language.- Specified by:
getSmallDateTimein interfaceISQLServerCallableStatement- Parameters:
index- the first column is 1, the second is 2, ...cal- the java.util.Calendar object to use in constructing the smalldateTime- Returns:
- the column value; if the value is SQL NULL, the value returned is null
- Throws:
SQLServerException- when an error occurs
-
getSmallDateTime
public java.sql.Timestamp getSmallDateTime(java.lang.String name, java.util.Calendar cal) throws SQLServerExceptionDescription copied from interface:ISQLServerCallableStatementReturns the value of the designated column in the current row of this ResultSet object as a java.sql.Timestamp object in the Java programming language.- Specified by:
getSmallDateTimein interfaceISQLServerCallableStatement- Parameters:
name- The name of a columncal- the java.util.Calendar object to use in constructing the smalldateTime- Returns:
- the column value; if the value is SQL NULL, the value returned is null
- Throws:
SQLServerException- when an error occurs
-
getDateTimeOffset
Description copied from interface:ISQLServerCallableStatementReturns the DateTimeOffset value of parameter with index parameterIndex.- Specified by:
getDateTimeOffsetin interfaceISQLServerCallableStatement- Parameters:
index- the first parameter is 1, the second is 2, and so on- Returns:
- DateTimeOffset value if the value is SQL NULL, the value returned is null
- Throws:
SQLServerException- if parameterIndex is out of range; if a database access error occurs or this method is called on a closedCallableStatement
-
getDateTimeOffset
Description copied from interface:ISQLServerCallableStatementReturns the DateTimeOffset value of parameter with name parameterName.- Specified by:
getDateTimeOffsetin interfaceISQLServerCallableStatement- Parameters:
parameterName- the name of the parameter- Returns:
- DateTimeOffset value if the value is SQL NULL, the value returned is null
- Throws:
SQLServerException- if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatement
-
wasNull
- Specified by:
wasNullin interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
getAsciiStream
Description copied from interface:ISQLServerCallableStatementReturns the value of the designated column in the current row of thisResultSetobject as a stream of ASCII characters. The value can then be read in chunks from the stream. This method is particularly suitable for retrieving largeLONGVARCHARvalues. The JDBC driver will do any necessary conversion from the database format into ASCII.Note: All the data in the returned stream must be read prior to getting the value of any other column. The next call to a getter method implicitly closes the stream. Also, a stream may return
0when the methodInputStream.availableis called whether there is data available or not.- Specified by:
getAsciiStreamin interfaceISQLServerCallableStatement- Parameters:
parameterIndex- the first column is 1, the second is 2, ...- Returns:
- a Java input stream that delivers the database column value as a stream of one-byte ASCII characters; if
the value is SQL
NULL, the value returned isnull - Throws:
SQLServerException- if the columnIndex is not valid; if a database access error occurs or this method is called on a closed result set
-
getAsciiStream
public final java.io.InputStream getAsciiStream(java.lang.String parameterName) throws SQLServerExceptionDescription copied from interface:ISQLServerCallableStatementReturns the value of the designated column in the current row of thisResultSetobject as a stream of ASCII characters. The value can then be read in chunks from the stream. This method is particularly suitable for retrieving largeLONGVARCHARvalues. The JDBC driver will do any necessary conversion from the database format into ASCII.Note: All the data in the returned stream must be read prior to getting the value of any other column. The next call to a getter method implicitly closes the stream. Also, a stream may return
0when the methodavailableis called whether there is data available or not.- Specified by:
getAsciiStreamin interfaceISQLServerCallableStatement- Parameters:
parameterName- the name of the parameter- Returns:
- a Java input stream that delivers the database column value as a stream of one-byte ASCII characters. If
the value is SQL
NULL, the value returned isnull. - Throws:
SQLServerException- if the columnLabel is not valid; if a database access error occurs or this method is called on a closed result set
-
getBigDecimal
- Specified by:
getBigDecimalin interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
getBigDecimal
public java.math.BigDecimal getBigDecimal(java.lang.String parameterName) throws SQLServerException- Specified by:
getBigDecimalin interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
getMoney
Description copied from interface:ISQLServerCallableStatementReturns the value of the column specified as a java.math.BigDecimal object.- Specified by:
getMoneyin interfaceISQLServerCallableStatement- Parameters:
parameterIndex- The zero-based ordinal of a column.- Returns:
- the column value; if the value is SQL NULL, the value returned is null
- Throws:
SQLServerException- when an error occurs
-
getMoney
Description copied from interface:ISQLServerCallableStatementReturns the value of the column specified as a java.math.BigDecimal object.- Specified by:
getMoneyin interfaceISQLServerCallableStatement- Parameters:
parameterName- The name of a column.- Returns:
- the column value; if the value is SQL NULL, the value returned is null.
- Throws:
SQLServerException- when an error occurs
-
getSmallMoney
Description copied from interface:ISQLServerCallableStatementReturns the value of the column specified as a java.math.BigDecimal object.- Specified by:
getSmallMoneyin interfaceISQLServerCallableStatement- Parameters:
parameterIndex- The zero-based ordinal of a column.- Returns:
- the column value; if the value is SQL NULL, the value returned is null
- Throws:
SQLServerException- when an error occurs
-
getSmallMoney
public java.math.BigDecimal getSmallMoney(java.lang.String parameterName) throws SQLServerExceptionDescription copied from interface:ISQLServerCallableStatementReturns the value of the column specified as a java.math.BigDecimal object.- Specified by:
getSmallMoneyin interfaceISQLServerCallableStatement- Parameters:
parameterName- The name of a column.- Returns:
- the column value; if the value is SQL NULL, the value returned is null.
- Throws:
SQLServerException- when an error occurs
-
getBinaryStream
Description copied from interface:ISQLServerCallableStatementReturns the value of the designated column in the current row of thisResultSetobject as a stream of uninterpreted bytes. The value can then be read in chunks from the stream. This method is particularly suitable for retrieving largeLONGVARBINARYvalues.Note: All the data in the returned stream must be read prior to getting the value of any other column. The next call to a getter method implicitly closes the stream. Also, a stream may return
0when the methodInputStream.availableis called whether there is data available or not.- Specified by:
getBinaryStreamin interfaceISQLServerCallableStatement- Parameters:
parameterIndex- the first column is 1, the second is 2, ...- Returns:
- a Java input stream that delivers the database column value as a stream of uninterpreted bytes; if the
value is SQL
NULL, the value returned isnull - Throws:
SQLServerException- if the columnIndex is not valid; if a database access error occurs or this method is called on a closed result set
-
getBinaryStream
public final java.io.InputStream getBinaryStream(java.lang.String parameterName) throws SQLServerExceptionDescription copied from interface:ISQLServerCallableStatementReturns the value of the designated column in the current row of thisResultSetobject as a stream of uninterpretedbytes. The value can then be read in chunks from the stream. This method is particularly suitable for retrieving largeLONGVARBINARYvalues.Note: All the data in the returned stream must be read prior to getting the value of any other column. The next call to a getter method implicitly closes the stream. Also, a stream may return
0when the methodavailableis called whether there is data available or not.- Specified by:
getBinaryStreamin interfaceISQLServerCallableStatement- Parameters:
parameterName- the name of the parameter- Returns:
- a Java input stream that delivers the database column value as a stream of uninterpreted bytes; if the
value is SQL
NULL, the result isnull - Throws:
SQLServerException- if the columnLabel is not valid; if a database access error occurs or this method is called on a closed result set
-
getBlob
- Specified by:
getBlobin interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
getBlob
- Specified by:
getBlobin interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
getCharacterStream
- Specified by:
getCharacterStreamin interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
getCharacterStream
public final java.io.Reader getCharacterStream(java.lang.String parameterName) throws java.sql.SQLException- Specified by:
getCharacterStreamin interfacejava.sql.CallableStatement- Throws:
java.sql.SQLException
-
getNCharacterStream
public final java.io.Reader getNCharacterStream(int parameterIndex) throws java.sql.SQLException- Specified by:
getNCharacterStreamin interfacejava.sql.CallableStatement- Throws:
java.sql.SQLException
-
getNCharacterStream
public final java.io.Reader getNCharacterStream(java.lang.String parameterName) throws java.sql.SQLException- Specified by:
getNCharacterStreamin interfacejava.sql.CallableStatement- Throws:
java.sql.SQLException
-
getClob
- Specified by:
getClobin interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
getClob
- Specified by:
getClobin interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
getNClob
public java.sql.NClob getNClob(int parameterIndex) throws java.sql.SQLException- Specified by:
getNClobin interfacejava.sql.CallableStatement- Throws:
java.sql.SQLException
-
getNClob
public java.sql.NClob getNClob(java.lang.String parameterName) throws java.sql.SQLException- Specified by:
getNClobin interfacejava.sql.CallableStatement- Throws:
java.sql.SQLException
-
getObject
public java.lang.Object getObject(int parameterIndex, java.util.Map<java.lang.String,java.lang.Class<?>> map) throws java.sql.SQLException- Specified by:
getObjectin interfacejava.sql.CallableStatement- Throws:
java.sql.SQLException
-
getObject
public java.lang.Object getObject(java.lang.String parameterName, java.util.Map<java.lang.String,java.lang.Class<?>> m) throws java.sql.SQLException- Specified by:
getObjectin interfacejava.sql.CallableStatement- Throws:
java.sql.SQLException
-
getRef
public java.sql.Ref getRef(int parameterIndex) throws java.sql.SQLException- Specified by:
getRefin interfacejava.sql.CallableStatement- Throws:
java.sql.SQLException
-
getRef
public java.sql.Ref getRef(java.lang.String parameterName) throws java.sql.SQLException- Specified by:
getRefin interfacejava.sql.CallableStatement- Throws:
java.sql.SQLException
-
getArray
public java.sql.Array getArray(int parameterIndex) throws java.sql.SQLException- Specified by:
getArrayin interfacejava.sql.CallableStatement- Throws:
java.sql.SQLException
-
getArray
public java.sql.Array getArray(java.lang.String parameterName) throws java.sql.SQLException- Specified by:
getArrayin interfacejava.sql.CallableStatement- Throws:
java.sql.SQLException
-
setTimestamp
public void setTimestamp(java.lang.String parameterName, java.sql.Timestamp value, java.util.Calendar calendar) throws SQLServerException- Specified by:
setTimestampin interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
setTimestamp
public void setTimestamp(java.lang.String parameterName, java.sql.Timestamp value, java.util.Calendar calendar, boolean forceEncrypt) throws SQLServerExceptionDescription copied from interface:ISQLServerCallableStatementSets the designated parameter to the givenjava.sql.Timestampvalue. The driver converts this to an SQLTIMESTAMPvalue when it sends it to the database.- Specified by:
setTimestampin interfaceISQLServerCallableStatement- Parameters:
parameterName- the name of the parametervalue- the parameter valuecalendar- a java.util.CalendarforceEncrypt- If the boolean forceEncrypt is set to true, the query parameter will only be set if the designation column is encrypted and Always Encrypted is enabled on the connection or on the statement. If the boolean forceEncrypt is set to false, the driver will not force encryption on parameters.- Throws:
SQLServerException- if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatement- See Also:
CallableStatement.getTimestamp(int)
-
setTime
public void setTime(java.lang.String parameterName, java.sql.Time value, java.util.Calendar calendar) throws SQLServerException- Specified by:
setTimein interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
setTime
public void setTime(java.lang.String parameterName, java.sql.Time value, java.util.Calendar calendar, boolean forceEncrypt) throws SQLServerExceptionDescription copied from interface:ISQLServerCallableStatementSets the designated parameter to the givenjava.sql.Timevalue, using the givenCalendarobject. The driver uses theCalendarobject to construct an SQLTIMEvalue, which the driver then sends to the database. With a aCalendarobject, the driver can calculate the time taking into account a custom timezone. If noCalendarobject is specified, the driver uses the default timezone, which is that of the virtual machine running the application.- Specified by:
setTimein interfaceISQLServerCallableStatement- Parameters:
parameterName- the name of the parametervalue- the parameter valuecalendar- theCalendarobject the driver will use to construct the timeforceEncrypt- If the boolean forceEncrypt is set to true, the query parameter will only be set if the designation column is encrypted and Always Encrypted is enabled on the connection or on the statement. If the boolean forceEncrypt is set to false, the driver will not force encryption on parameters.- Throws:
SQLServerException- if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatement- See Also:
CallableStatement.getTime(int)
-
setDate
public void setDate(java.lang.String parameterName, java.sql.Date value, java.util.Calendar calendar) throws SQLServerException- Specified by:
setDatein interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
setDate
public void setDate(java.lang.String parameterName, java.sql.Date value, java.util.Calendar calendar, boolean forceEncrypt) throws SQLServerExceptionDescription copied from interface:ISQLServerCallableStatementSets the designated parameter to the givenjava.sql.Datevalue, using the givenCalendarobject. The driver uses theCalendarobject to construct an SQLDATEvalue, which the driver then sends to the database. With a aCalendarobject, the driver can calculate the date taking into account a custom timezone. If noCalendarobject is specified, the driver uses the default timezone, which is that of the virtual machine running the application.- Specified by:
setDatein interfaceISQLServerCallableStatement- Parameters:
parameterName- the name of the parametervalue- the parameter valuecalendar- theCalendarobject the driver will use to construct the dateforceEncrypt- If the boolean forceEncrypt is set to true, the query parameter will only be set if the designation column is encrypted and Always Encrypted is enabled on the connection or on the statement. If the boolean forceEncrypt is set to false, the driver will not force encryption on parameters.- Throws:
SQLServerException- if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatement- See Also:
CallableStatement.getDate(int)
-
setCharacterStream
public final void setCharacterStream(java.lang.String parameterName, java.io.Reader reader) throws java.sql.SQLException- Specified by:
setCharacterStreamin interfacejava.sql.CallableStatement- Throws:
java.sql.SQLException
-
setCharacterStream
public final void setCharacterStream(java.lang.String parameterName, java.io.Reader value, int length) throws java.sql.SQLException- Specified by:
setCharacterStreamin interfacejava.sql.CallableStatement- Throws:
java.sql.SQLException
-
setCharacterStream
public final void setCharacterStream(java.lang.String parameterName, java.io.Reader reader, long length) throws java.sql.SQLException- Specified by:
setCharacterStreamin interfacejava.sql.CallableStatement- Throws:
java.sql.SQLException
-
setNCharacterStream
public final void setNCharacterStream(java.lang.String parameterName, java.io.Reader value) throws java.sql.SQLException- Specified by:
setNCharacterStreamin interfacejava.sql.CallableStatement- Throws:
java.sql.SQLException
-
setNCharacterStream
public final void setNCharacterStream(java.lang.String parameterName, java.io.Reader value, long length) throws java.sql.SQLException- Specified by:
setNCharacterStreamin interfacejava.sql.CallableStatement- Throws:
java.sql.SQLException
-
setClob
public final void setClob(java.lang.String parameterName, java.sql.Clob value) throws java.sql.SQLException- Specified by:
setClobin interfacejava.sql.CallableStatement- Throws:
java.sql.SQLException
-
setClob
public final void setClob(java.lang.String parameterName, java.io.Reader reader) throws java.sql.SQLException- Specified by:
setClobin interfacejava.sql.CallableStatement- Throws:
java.sql.SQLException
-
setClob
public final void setClob(java.lang.String parameterName, java.io.Reader value, long length) throws java.sql.SQLException- Specified by:
setClobin interfacejava.sql.CallableStatement- Throws:
java.sql.SQLException
-
setNClob
public final void setNClob(java.lang.String parameterName, java.sql.NClob value) throws java.sql.SQLException- Specified by:
setNClobin interfacejava.sql.CallableStatement- Throws:
java.sql.SQLException
-
setNClob
public final void setNClob(java.lang.String parameterName, java.io.Reader reader) throws java.sql.SQLException- Specified by:
setNClobin interfacejava.sql.CallableStatement- Throws:
java.sql.SQLException
-
setNClob
public final void setNClob(java.lang.String parameterName, java.io.Reader reader, long length) throws java.sql.SQLException- Specified by:
setNClobin interfacejava.sql.CallableStatement- Throws:
java.sql.SQLException
-
setNString
public final void setNString(java.lang.String parameterName, java.lang.String value) throws java.sql.SQLException- Specified by:
setNStringin interfacejava.sql.CallableStatement- Throws:
java.sql.SQLException
-
setNString
public final void setNString(java.lang.String parameterName, java.lang.String value, boolean forceEncrypt) throws SQLServerExceptionDescription copied from interface:ISQLServerCallableStatementSets the designated parameter to the givenStringobject. The driver converts this to a SQLNCHARorNVARCHARorLONGNVARCHAR- Specified by:
setNStringin interfaceISQLServerCallableStatement- Parameters:
parameterName- the name of the parameter to be setvalue- the parameter valueforceEncrypt- If the boolean forceEncrypt is set to true, the query parameter will only be set if the designation column is encrypted and Always Encrypted is enabled on the connection or on the statement. If the boolean forceEncrypt is set to false, the driver will not force encryption on parameters.- Throws:
SQLServerException- 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 closedCallableStatement
-
setObject
public void setObject(java.lang.String parameterName, java.lang.Object value) throws SQLServerException- Specified by:
setObjectin interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
setObject
public void setObject(java.lang.String parameterName, java.lang.Object value, int sqlType) throws SQLServerException- Specified by:
setObjectin interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
setObject
public void setObject(java.lang.String parameterName, java.lang.Object value, int sqlType, int decimals) throws SQLServerException- Specified by:
setObjectin interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
setObject
public void setObject(java.lang.String parameterName, java.lang.Object value, int sqlType, int decimals, boolean forceEncrypt) throws SQLServerExceptionDescription copied from interface:ISQLServerCallableStatementSets the value of the designated parameter with the given object.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 interface
SQLData), the JDBC driver should call the methodSQLData.writeSQLto 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 database- specific abstract data types.
- Specified by:
setObjectin interfaceISQLServerCallableStatement- Parameters:
parameterName- the name of the parametervalue- the object containing the input parameter valuesqlType- the SQL type (as defined in java.sql.Types) to be sent to the database. The scale argument may further qualify this type.decimals- 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.forceEncrypt- If the boolean forceEncrypt is set to true, the query parameter will only be set if the designation column is encrypted and Always Encrypted is enabled on the connection or on the statement. If the boolean forceEncrypt is set to false, the driver will not force encryption on parameters.- Throws:
SQLServerException- if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatement- See Also:
Types,CallableStatement.getObject(int)
-
setObject
public final void setObject(java.lang.String parameterName, java.lang.Object value, int targetSqlType, java.lang.Integer precision, int scale) throws SQLServerExceptionDescription copied from interface:ISQLServerCallableStatementSets the value of the designated parameter with the given object.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 interface
SQLData), the JDBC driver should call the methodSQLData.writeSQLto 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.
- Specified by:
setObjectin interfaceISQLServerCallableStatement- Parameters:
parameterName- the name of the parametervalue- 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.precision- the precision of the column.scale- the scale of the column.- Throws:
SQLServerException- if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatement- See Also:
Types,CallableStatement.getObject(int)
-
setAsciiStream
public final void setAsciiStream(java.lang.String parameterName, java.io.InputStream value) throws java.sql.SQLException- Specified by:
setAsciiStreamin interfacejava.sql.CallableStatement- Throws:
java.sql.SQLException
-
setAsciiStream
public final void setAsciiStream(java.lang.String parameterName, java.io.InputStream value, int length) throws java.sql.SQLException- Specified by:
setAsciiStreamin interfacejava.sql.CallableStatement- Throws:
java.sql.SQLException
-
setAsciiStream
public final void setAsciiStream(java.lang.String parameterName, java.io.InputStream value, long length) throws java.sql.SQLException- Specified by:
setAsciiStreamin interfacejava.sql.CallableStatement- Throws:
java.sql.SQLException
-
setBinaryStream
public final void setBinaryStream(java.lang.String parameterName, java.io.InputStream value) throws java.sql.SQLException- Specified by:
setBinaryStreamin interfacejava.sql.CallableStatement- Throws:
java.sql.SQLException
-
setBinaryStream
public final void setBinaryStream(java.lang.String parameterName, java.io.InputStream value, int length) throws java.sql.SQLException- Specified by:
setBinaryStreamin interfacejava.sql.CallableStatement- Throws:
java.sql.SQLException
-
setBinaryStream
public final void setBinaryStream(java.lang.String parameterName, java.io.InputStream value, long length) throws java.sql.SQLException- Specified by:
setBinaryStreamin interfacejava.sql.CallableStatement- Throws:
java.sql.SQLException
-
setBlob
public final void setBlob(java.lang.String parameterName, java.sql.Blob inputStream) throws java.sql.SQLException- Specified by:
setBlobin interfacejava.sql.CallableStatement- Throws:
java.sql.SQLException
-
setBlob
public final void setBlob(java.lang.String parameterName, java.io.InputStream value) throws java.sql.SQLException- Specified by:
setBlobin interfacejava.sql.CallableStatement- Throws:
java.sql.SQLException
-
setBlob
public final void setBlob(java.lang.String parameterName, java.io.InputStream inputStream, long length) throws java.sql.SQLException- Specified by:
setBlobin interfacejava.sql.CallableStatement- Throws:
java.sql.SQLException
-
setTimestamp
public void setTimestamp(java.lang.String parameterName, java.sql.Timestamp value) throws SQLServerException- Specified by:
setTimestampin interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
setTimestamp
public void setTimestamp(java.lang.String parameterName, java.sql.Timestamp value, int scale) throws SQLServerExceptionDescription copied from interface:ISQLServerCallableStatementSets the designated parameter to the givenjava.sql.Timestampvalue. The driver converts this to an SQLTIMESTAMPvalue when it sends it to the database.- Specified by:
setTimestampin interfaceISQLServerCallableStatement- Parameters:
parameterName- the name of the parametervalue- the parameter valuescale- the scale of the parameter- Throws:
SQLServerException- if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatement- See Also:
CallableStatement.getTimestamp(int)
-
setTimestamp
public void setTimestamp(java.lang.String parameterName, java.sql.Timestamp value, int scale, boolean forceEncrypt) throws SQLServerExceptionDescription copied from interface:ISQLServerCallableStatementSets the designated parameter to the givenjava.sql.Timestampvalue. The driver converts this to an SQLTIMESTAMPvalue when it sends it to the database.- Specified by:
setTimestampin interfaceISQLServerCallableStatement- Parameters:
parameterName- the name of the parametervalue- the parameter valuescale- the scale of the parameterforceEncrypt- If the boolean forceEncrypt is set to true, the query parameter will only be set if the designation column is encrypted and Always Encrypted is enabled on the connection or on the statement. If the boolean forceEncrypt is set to false, the driver will not force encryption on parameters.- Throws:
SQLServerException- if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatement- See Also:
CallableStatement.getTimestamp(int)
-
setDateTimeOffset
public void setDateTimeOffset(java.lang.String parameterName, DateTimeOffset value) throws SQLServerExceptionDescription copied from interface:ISQLServerCallableStatementSets parameter parameterName to DateTimeOffset value.- Specified by:
setDateTimeOffsetin interfaceISQLServerCallableStatement- Parameters:
parameterName- the name of the parametervalue- DateTimeOffset value- Throws:
SQLServerException- if an error occurs
-
setDateTimeOffset
public void setDateTimeOffset(java.lang.String parameterName, DateTimeOffset value, int scale) throws SQLServerExceptionDescription copied from interface:ISQLServerCallableStatementSets parameter parameterName to DateTimeOffset value.- Specified by:
setDateTimeOffsetin interfaceISQLServerCallableStatement- Parameters:
parameterName- the name of the parametervalue- DateTimeOffset valuescale- the scale of the parameter- Throws:
SQLServerException- if an error occurs
-
setDateTimeOffset
public void setDateTimeOffset(java.lang.String parameterName, DateTimeOffset value, int scale, boolean forceEncrypt) throws SQLServerExceptionDescription copied from interface:ISQLServerCallableStatementSets parameter parameterName to DateTimeOffset value.- Specified by:
setDateTimeOffsetin interfaceISQLServerCallableStatement- Parameters:
parameterName- the name of the parametervalue- DateTimeOffset valuescale- the scale of the parameterforceEncrypt- If the boolean forceEncrypt is set to true, the query parameter will only be set if the designation column is encrypted and Always Encrypted is enabled on the connection or on the statement. If the boolean forceEncrypt is set to false, the driver will not force encryption on parameters.- Throws:
SQLServerException- if an error occurs
-
setDate
- Specified by:
setDatein interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
setTime
- Specified by:
setTimein interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
setTime
public void setTime(java.lang.String parameterName, java.sql.Time value, int scale) throws SQLServerExceptionDescription copied from interface:ISQLServerCallableStatementSets the designated parameter to the givenjava.sql.Timevalue. The driver converts this to an SQLTIMEvalue when it sends it to the database.- Specified by:
setTimein interfaceISQLServerCallableStatement- Parameters:
parameterName- the name of the parametervalue- the parameter valuescale- the scale of the column- Throws:
SQLServerException- if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatement- See Also:
CallableStatement.getTime(int)
-
setTime
public void setTime(java.lang.String parameterName, java.sql.Time value, int scale, boolean forceEncrypt) throws SQLServerExceptionDescription copied from interface:ISQLServerCallableStatementSets the designated parameter to the givenjava.sql.Timevalue. The driver converts this to an SQLTIMEvalue when it sends it to the database.- Specified by:
setTimein interfaceISQLServerCallableStatement- Parameters:
parameterName- the name of the parametervalue- the parameter valuescale- the scale of the columnforceEncrypt- If the boolean forceEncrypt is set to true, the query parameter will only be set if the designation column is encrypted and Always Encrypted is enabled on the connection or on the statement. If the boolean forceEncrypt is set to false, the driver will not force encryption on parameters.- Throws:
SQLServerException- if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatement- See Also:
CallableStatement.getTime(int)
-
setDateTime
public void setDateTime(java.lang.String parameterName, java.sql.Timestamp value) throws SQLServerExceptionDescription copied from interface:ISQLServerCallableStatementSets the designated parameter to the givenjava.sql.Timestampvalue. The driver converts this to an SQLDATETIMEvalue when it sends it to the database.- Specified by:
setDateTimein interfaceISQLServerCallableStatement- Parameters:
parameterName- the name of the parametervalue- the parameter value- Throws:
SQLServerException- if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatement
-
setDateTime
public void setDateTime(java.lang.String parameterName, java.sql.Timestamp value, boolean forceEncrypt) throws SQLServerExceptionDescription copied from interface:ISQLServerCallableStatementSets the designated parameter to the givenjava.sql.Timestampvalue. The driver converts this to an SQLDATETIMEvalue when it sends it to the database.- Specified by:
setDateTimein interfaceISQLServerCallableStatement- Parameters:
parameterName- the name of the parametervalue- the parameter valueforceEncrypt- If the boolean forceEncrypt is set to true, the query parameter will only be set if the designation column is encrypted and Always Encrypted is enabled on the connection or on the statement. If the boolean forceEncrypt is set to false, the driver will not force encryption on parameters.- Throws:
SQLServerException- if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatement
-
setSmallDateTime
public void setSmallDateTime(java.lang.String parameterName, java.sql.Timestamp value) throws SQLServerExceptionDescription copied from interface:ISQLServerCallableStatementSets the designated parameter to the givenjava.sql.Timestampvalue. The driver converts this to an SQLSMALLDATETIMEvalue when it sends it to the database.- Specified by:
setSmallDateTimein interfaceISQLServerCallableStatement- Parameters:
parameterName- the name of the parametervalue- the parameter value- Throws:
SQLServerException- if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatement
-
setSmallDateTime
public void setSmallDateTime(java.lang.String parameterName, java.sql.Timestamp value, boolean forceEncrypt) throws SQLServerExceptionDescription copied from interface:ISQLServerCallableStatementSets the designated parameter to the givenjava.sql.Timestampvalue. The driver converts this to an SQLSMALLDATETIMEvalue when it sends it to the database.- Specified by:
setSmallDateTimein interfaceISQLServerCallableStatement- Parameters:
parameterName- the name of the parametervalue- the parameter valueforceEncrypt- If the boolean forceEncrypt is set to true, the query parameter will only be set if the designation column is encrypted and Always Encrypted is enabled on the connection or on the statement. If the boolean forceEncrypt is set to false, the driver will not force encryption on parameters.- Throws:
SQLServerException- if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatement
-
setUniqueIdentifier
public void setUniqueIdentifier(java.lang.String parameterName, java.lang.String guid) throws SQLServerExceptionDescription copied from interface:ISQLServerCallableStatementSets the designated parameter to the givenStringvalue. The driver converts this to an SQLuniqueIdentifiervalue when it sends it to the database.- Specified by:
setUniqueIdentifierin interfaceISQLServerCallableStatement- Parameters:
parameterName- the name of the parameterguid- the parameter value- Throws:
SQLServerException- if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatement
-
setUniqueIdentifier
public void setUniqueIdentifier(java.lang.String parameterName, java.lang.String guid, boolean forceEncrypt) throws SQLServerExceptionDescription copied from interface:ISQLServerCallableStatementSets the designated parameter to the givenStringvalue. The driver converts this to an SQLuniqueIdentifiervalue when it sends it to the database.- Specified by:
setUniqueIdentifierin interfaceISQLServerCallableStatement- Parameters:
parameterName- the name of the parameterguid- the parameter valueforceEncrypt- If the boolean forceEncrypt is set to true, the query parameter will only be set if the designation column is encrypted and Always Encrypted is enabled on the connection or on the statement. If the boolean forceEncrypt is set to false, the driver will not force encryption on parameters.- Throws:
SQLServerException- if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatement
-
setBytes
- Specified by:
setBytesin interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
setBytes
public void setBytes(java.lang.String parameterName, byte[] value, boolean forceEncrypt) throws SQLServerExceptionDescription copied from interface:ISQLServerCallableStatementSets the designated parameter to the given Java array of bytes. The driver converts this to an SQLVARBINARYorLONGVARBINARY(depending on the argument's size relative to the driver's limits onVARBINARYvalues) when it sends it to the database.- Specified by:
setBytesin interfaceISQLServerCallableStatement- Parameters:
parameterName- the name of the parametervalue- the parameter valueforceEncrypt- If the boolean forceEncrypt is set to true, the query parameter will only be set if the designation column is encrypted and Always Encrypted is enabled on the connection or on the statement. If the boolean forceEncrypt is set to false, the driver will not force encryption on parameters.- Throws:
SQLServerException- if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatement
-
setByte
- Specified by:
setBytein interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
setByte
public void setByte(java.lang.String parameterName, byte value, boolean forceEncrypt) throws SQLServerExceptionDescription copied from interface:ISQLServerCallableStatementSets the designated parameter to the given Javabytevalue. The driver converts this to an SQLTINYINTvalue when it sends it to the database.- Specified by:
setBytein interfaceISQLServerCallableStatement- Parameters:
parameterName- the name of the parametervalue- the parameter valueforceEncrypt- If the boolean forceEncrypt is set to true, the query parameter will only be set if the designation column is encrypted and Always Encrypted is enabled on the connection or on the statement. If the boolean forceEncrypt is set to false, the driver will not force encryption on parameters.- Throws:
SQLServerException- if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatement
-
setString
public void setString(java.lang.String parameterName, java.lang.String value) throws SQLServerException- Specified by:
setStringin interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
setString
public void setString(java.lang.String parameterName, java.lang.String value, boolean forceEncrypt) throws SQLServerExceptionDescription copied from interface:ISQLServerCallableStatementSets the designated parameter to the given JavaStringvalue. The driver converts this to an SQLVARCHARorLONGVARCHARvalue (depending on the argument's size relative to the driver's limits onVARCHARvalues) when it sends it to the database.- Specified by:
setStringin interfaceISQLServerCallableStatement- Parameters:
parameterName- the name of the parametervalue- the parameter valueforceEncrypt- If the boolean forceEncrypt is set to true, the query parameter will only be set if the designation column is encrypted and Always Encrypted is enabled on the connection or on the statement. If the boolean forceEncrypt is set to false, the driver will not force encryption on parameters.- Throws:
SQLServerException- if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatement
-
setMoney
public void setMoney(java.lang.String parameterName, java.math.BigDecimal value) throws SQLServerExceptionDescription copied from interface:ISQLServerCallableStatementSets the designated parameter to the given Javajava.math.BigDecimalvalue. The driver converts this to an SQLMoneyvalue.- Specified by:
setMoneyin interfaceISQLServerCallableStatement- Parameters:
parameterName- the name of the parametervalue- the parameter value- Throws:
SQLServerException- if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatement
-
setMoney
public void setMoney(java.lang.String parameterName, java.math.BigDecimal value, boolean forceEncrypt) throws SQLServerExceptionDescription copied from interface:ISQLServerCallableStatementSets the designated parameter to the given Javajava.math.BigDecimalvalue. The driver converts this to an SQLMoneyvalue.- Specified by:
setMoneyin interfaceISQLServerCallableStatement- Parameters:
parameterName- the name of the parametervalue- the parameter valueforceEncrypt- If the boolean forceEncrypt is set to true, the query parameter will only be set if the designation column is encrypted and Always Encrypted is enabled on the connection or on the statement. If the boolean forceEncrypt is set to false, the driver will not force encryption on parameters.- Throws:
SQLServerException- if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatement
-
setSmallMoney
public void setSmallMoney(java.lang.String parameterName, java.math.BigDecimal value) throws SQLServerExceptionDescription copied from interface:ISQLServerCallableStatementSets the designated parameter to the given Javajava.math.BigDecimalvalue. The driver converts this to an SQLsmallMoneyvalue.- Specified by:
setSmallMoneyin interfaceISQLServerCallableStatement- Parameters:
parameterName- the name of the parametervalue- the parameter value- Throws:
SQLServerException- if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatement
-
setSmallMoney
public void setSmallMoney(java.lang.String parameterName, java.math.BigDecimal value, boolean forceEncrypt) throws SQLServerExceptionDescription copied from interface:ISQLServerCallableStatementSets the designated parameter to the given Javajava.math.BigDecimalvalue. The driver converts this to an SQLsmallMoneyvalue.- Specified by:
setSmallMoneyin interfaceISQLServerCallableStatement- Parameters:
parameterName- the name of the parametervalue- the parameter valueforceEncrypt- If the boolean forceEncrypt is set to true, the query parameter will only be set if the designation column is encrypted and Always Encrypted is enabled on the connection or on the statement. If the boolean forceEncrypt is set to false, the driver will not force encryption on parameters.- Throws:
SQLServerException- if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatement
-
setBigDecimal
public void setBigDecimal(java.lang.String parameterName, java.math.BigDecimal value) throws SQLServerException- Specified by:
setBigDecimalin interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
setBigDecimal
public void setBigDecimal(java.lang.String parameterName, java.math.BigDecimal value, int precision, int scale) throws SQLServerExceptionDescription copied from interface:ISQLServerCallableStatementSets the designated parameter to the givenjava.math.BigDecimalvalue. The driver converts this to an SQLNUMERICvalue when it sends it to the database.- Specified by:
setBigDecimalin interfaceISQLServerCallableStatement- Parameters:
parameterName- the name of the parametervalue- the parameter valueprecision- the precision of the columnscale- the scale of the column- Throws:
SQLServerException- if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatement
-
setBigDecimal
public void setBigDecimal(java.lang.String parameterName, java.math.BigDecimal value, int precision, int scale, boolean forceEncrypt) throws SQLServerExceptionDescription copied from interface:ISQLServerCallableStatementSets the designated parameter to the givenjava.math.BigDecimalvalue. The driver converts this to an SQLNUMERICvalue when it sends it to the database.- Specified by:
setBigDecimalin interfaceISQLServerCallableStatement- Parameters:
parameterName- the name of the parametervalue- the parameter valueprecision- the precision of the columnscale- the scale of the columnforceEncrypt- If the boolean forceEncrypt is set to true, the query parameter will only be set if the designation column is encrypted and Always Encrypted is enabled on the connection or on the statement. If the boolean forceEncrypt is set to false, the driver will not force encryption on parameters.- Throws:
SQLServerException- if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatement
-
setDouble
- Specified by:
setDoublein interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
setDouble
public void setDouble(java.lang.String parameterName, double value, boolean forceEncrypt) throws SQLServerExceptionDescription copied from interface:ISQLServerCallableStatementSets the designated parameter to the given Javadoublevalue. The driver converts this to an SQLDOUBLEvalue when it sends it to the database.- Specified by:
setDoublein interfaceISQLServerCallableStatement- Parameters:
parameterName- the name of the parametervalue- the parameter valueforceEncrypt- If the boolean forceEncrypt is set to true, the query parameter will only be set if the designation column is encrypted and Always Encrypted is enabled on the connection or on the statement. If the boolean forceEncrypt is set to false, the driver will not force encryption on parameters.- Throws:
SQLServerException- if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatement
-
setFloat
- Specified by:
setFloatin interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
setFloat
public void setFloat(java.lang.String parameterName, float value, boolean forceEncrypt) throws SQLServerExceptionDescription copied from interface:ISQLServerCallableStatementSets the designated parameter to the given Javafloatvalue. The driver converts this to an SQLFLOATvalue when it sends it to the database.- Specified by:
setFloatin interfaceISQLServerCallableStatement- Parameters:
parameterName- the name of the parametervalue- the parameter valueforceEncrypt- If the boolean forceEncrypt is set to true, the query parameter will only be set if the designation column is encrypted and Always Encrypted is enabled on the connection or on the statement. If the boolean forceEncrypt is set to false, the driver will not force encryption on parameters.- Throws:
SQLServerException- if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatement
-
setInt
- Specified by:
setIntin interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
setInt
public void setInt(java.lang.String parameterName, int value, boolean forceEncrypt) throws SQLServerExceptionDescription copied from interface:ISQLServerCallableStatementSets the designated parameter to the given Javaintvalue. The driver converts this to an SQLINTEGERvalue when it sends it to the database.- Specified by:
setIntin interfaceISQLServerCallableStatement- Parameters:
parameterName- the name of the parametervalue- the parameter valueforceEncrypt- If the boolean forceEncrypt is set to true, the query parameter will only be set if the designation column is encrypted and Always Encrypted is enabled on the connection or on the statement. If the boolean forceEncrypt is set to false, the driver will not force encryption on parameters.- Throws:
SQLServerException- if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatement
-
setLong
- Specified by:
setLongin interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
setLong
public void setLong(java.lang.String parameterName, long value, boolean forceEncrypt) throws SQLServerExceptionDescription copied from interface:ISQLServerCallableStatementSets the designated parameter to the given Javalongvalue. The driver converts this to an SQLBIGINTvalue when it sends it to the database.- Specified by:
setLongin interfaceISQLServerCallableStatement- Parameters:
parameterName- the name of the parametervalue- the parameter valueforceEncrypt- If the boolean forceEncrypt is set to true, the query parameter will only be set if the designation column is encrypted and Always Encrypted is enabled on the connection or on the statement. If the boolean forceEncrypt is set to false, the driver will not force encryption on parameters.- Throws:
SQLServerException- if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatement
-
setShort
- Specified by:
setShortin interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
setShort
public void setShort(java.lang.String parameterName, short value, boolean forceEncrypt) throws SQLServerExceptionDescription copied from interface:ISQLServerCallableStatementSets the designated parameter to the given Javashortvalue. The driver converts this to an SQLSMALLINTvalue when it sends it to the database.- Specified by:
setShortin interfaceISQLServerCallableStatement- Parameters:
parameterName- the name of the parametervalue- the parameter valueforceEncrypt- If the boolean forceEncrypt is set to true, the query parameter will only be set if the designation column is encrypted and Always Encrypted is enabled on the connection or on the statement. If the boolean forceEncrypt is set to false, the driver will not force encryption on parameters.- Throws:
SQLServerException- if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatement
-
setBoolean
- Specified by:
setBooleanin interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
setBoolean
public void setBoolean(java.lang.String parameterName, boolean value, boolean forceEncrypt) throws SQLServerExceptionDescription copied from interface:ISQLServerCallableStatementSets the designated parameter to the given Javabooleanvalue. The driver converts this to an SQLBITorBOOLEANvalue when it sends it to the database.- Specified by:
setBooleanin interfaceISQLServerCallableStatement- Parameters:
parameterName- the name of the parametervalue- the parameter valueforceEncrypt- If the boolean forceEncrypt is set to true, the query parameter will only be set if the designation column is encrypted and Always Encrypted is enabled on the connection or on the statement. If the boolean forceEncrypt is set to false, the driver will not force encryption on parameters.- Throws:
SQLServerException- if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatement
-
setNull
- Specified by:
setNullin interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
setNull
public void setNull(java.lang.String parameterName, int nType, java.lang.String sTypeName) throws SQLServerException- Specified by:
setNullin interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
setURL
public void setURL(java.lang.String parameterName, java.net.URL url) throws java.sql.SQLException- Specified by:
setURLin interfacejava.sql.CallableStatement- Throws:
java.sql.SQLException
-
setStructured
public final void setStructured(java.lang.String parameterName, java.lang.String tvpName, SQLServerDataTable tvpDataTable) throws SQLServerExceptionDescription copied from interface:ISQLServerCallableStatementPopulates a table valued parameter passed to a stored procedure with a data table.- Specified by:
setStructuredin interfaceISQLServerCallableStatement- Parameters:
parameterName- the name of the parametertvpName- the name of the type TVPtvpDataTable- the data table object- Throws:
SQLServerException- when an error occurs
-
setStructured
public final void setStructured(java.lang.String parameterName, java.lang.String tvpName, java.sql.ResultSet tvpResultSet) throws SQLServerExceptionDescription copied from interface:ISQLServerCallableStatementPopulates a table valued parameter passed to a stored procedure with a ResultSet retrieved from another table- Specified by:
setStructuredin interfaceISQLServerCallableStatement- Parameters:
parameterName- the name of the parametertvpName- the name of the type TVPtvpResultSet- the source result set object- Throws:
SQLServerException- when an error occurs
-
setStructured
public final void setStructured(java.lang.String parameterName, java.lang.String tvpName, ISQLServerDataRecord tvpDataRecord) throws SQLServerExceptionDescription copied from interface:ISQLServerCallableStatementPopulates a table valued parameter passed to a stored procedure with an ISQLServerDataRecord object.- Specified by:
setStructuredin interfaceISQLServerCallableStatement- Parameters:
parameterName- the name of the parametertvpName- the name of the type TVPtvpDataRecord- ISQLServerDataRecord is used for streaming data and the user decides how to use it. tvpDataRecord is an ISQLServerDataRecord object.the source result set object- Throws:
SQLServerException- when an error occurs
-
getURL
public java.net.URL getURL(int parameterIndex) throws java.sql.SQLException- Specified by:
getURLin interfacejava.sql.CallableStatement- Throws:
java.sql.SQLException
-
getURL
public java.net.URL getURL(java.lang.String parameterName) throws java.sql.SQLException- Specified by:
getURLin interfacejava.sql.CallableStatement- Throws:
java.sql.SQLException
-
setSQLXML
public final void setSQLXML(java.lang.String parameterName, java.sql.SQLXML xmlObject) throws java.sql.SQLException- Specified by:
setSQLXMLin interfacejava.sql.CallableStatement- Throws:
java.sql.SQLException
-
getSQLXML
public final java.sql.SQLXML getSQLXML(int parameterIndex) throws java.sql.SQLException- Specified by:
getSQLXMLin interfacejava.sql.CallableStatement- Throws:
java.sql.SQLException
-
getSQLXML
public final java.sql.SQLXML getSQLXML(java.lang.String parameterName) throws java.sql.SQLException- Specified by:
getSQLXMLin interfacejava.sql.CallableStatement- Throws:
java.sql.SQLException
-
setRowId
public final void setRowId(java.lang.String parameterName, java.sql.RowId value) throws java.sql.SQLException- Specified by:
setRowIdin interfacejava.sql.CallableStatement- Throws:
java.sql.SQLException
-
getRowId
public final java.sql.RowId getRowId(int parameterIndex) throws java.sql.SQLException- Specified by:
getRowIdin interfacejava.sql.CallableStatement- Throws:
java.sql.SQLException
-
getRowId
public final java.sql.RowId getRowId(java.lang.String parameterName) throws java.sql.SQLException- Specified by:
getRowIdin interfacejava.sql.CallableStatement- Throws:
java.sql.SQLException
-
registerOutParameter
public void registerOutParameter(java.lang.String parameterName, int sqlType, java.lang.String typeName) throws SQLServerException- Specified by:
registerOutParameterin interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
registerOutParameter
public void registerOutParameter(java.lang.String parameterName, int sqlType, int scale) throws SQLServerException- Specified by:
registerOutParameterin interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
registerOutParameter
public void registerOutParameter(java.lang.String parameterName, int sqlType, int precision, int scale) throws SQLServerExceptionDescription copied from interface:ISQLServerCallableStatementRegisters the parameter in ordinal position index to be of JDBC type sqlType. All OUT parameters must be registered before a stored procedure is executed.The JDBC type specified by sqlType for an OUT parameter determines the Java type that must be used in the get method to read the value of that parameter.
- Specified by:
registerOutParameterin interfaceISQLServerCallableStatement- Parameters:
parameterName- the name of the parametersqlType- the JDBC type code defined by SQLType to use to register the OUT Parameter.precision- the sum of the desired number of digits to the left and right of the decimal point. It must be greater than or equal to zero.scale- the desired number of digits to the right of the decimal point. It must be greater than or equal to zero.- Throws:
SQLServerException- If any errors occur.
-
registerOutParameter
public void registerOutParameter(java.lang.String parameterName, int sqlType) throws SQLServerException- Specified by:
registerOutParameterin interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
registerOutParameter
public void registerOutParameter(int parameterIndex, java.sql.SQLType sqlType) throws SQLServerException- Specified by:
registerOutParameterin interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
registerOutParameter
public void registerOutParameter(int parameterIndex, java.sql.SQLType sqlType, java.lang.String typeName) throws SQLServerException- Specified by:
registerOutParameterin interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
registerOutParameter
public void registerOutParameter(int parameterIndex, java.sql.SQLType sqlType, int scale) throws SQLServerException- Specified by:
registerOutParameterin interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
registerOutParameter
public void registerOutParameter(int parameterIndex, java.sql.SQLType sqlType, int precision, int scale) throws SQLServerExceptionDescription copied from interface:ISQLServerCallableStatementRegisters the parameter in ordinal position index to be of JDBC type sqlType. All OUT parameters must be registered before a stored procedure is executed.The JDBC type specified by sqlType for an OUT parameter determines the Java type that must be used in the get method to read the value of that parameter.
- Specified by:
registerOutParameterin interfaceISQLServerCallableStatement- Parameters:
parameterIndex- the first column is 1, the second is 2, ...sqlType- the JDBC type code defined by SQLType to use to register the OUT Parameter.precision- the sum of the desired number of digits to the left and right of the decimal point. It must be greater than or equal to zero.scale- the desired number of digits to the right of the decimal point. It must be greater than or equal to zero.- Throws:
SQLServerException- If any errors occur.
-
setObject
public void setObject(java.lang.String parameterName, java.lang.Object value, java.sql.SQLType jdbcType) throws SQLServerException- Specified by:
setObjectin interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
setObject
public void setObject(java.lang.String parameterName, java.lang.Object value, java.sql.SQLType jdbcType, int scale) throws SQLServerException- Specified by:
setObjectin interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
setObject
public void setObject(java.lang.String parameterName, java.lang.Object value, java.sql.SQLType jdbcType, int scale, boolean forceEncrypt) throws SQLServerExceptionDescription copied from interface:ISQLServerCallableStatementSets the value of the designated parameter with the given object.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 interface
SQLData), the JDBC driver should call the methodSQLData.writeSQLto 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.
- Specified by:
setObjectin interfaceISQLServerCallableStatement- Parameters:
parameterName- the name of the parametervalue- the object containing the input parameter valuejdbcType- the SQL type (as defined in java.sql.Types) to be sent to the database. The scale argument may further qualify this type.scale- the scale of the column.forceEncrypt- If the boolean forceEncrypt is set to true, the query parameter will only be set if the designation column is encrypted and Always Encrypted is enabled on the connection or on the statement. If the boolean forceEncrypt is set to false, the driver will not force encryption on parameters.- Throws:
SQLServerException- if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closedCallableStatement- See Also:
Types,CallableStatement.getObject(int)
-
registerOutParameter
public void registerOutParameter(java.lang.String parameterName, java.sql.SQLType sqlType, java.lang.String typeName) throws SQLServerException- Specified by:
registerOutParameterin interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
registerOutParameter
public void registerOutParameter(java.lang.String parameterName, java.sql.SQLType sqlType, int scale) throws SQLServerException- Specified by:
registerOutParameterin interfacejava.sql.CallableStatement- Throws:
SQLServerException
-
registerOutParameter
public void registerOutParameter(java.lang.String parameterName, java.sql.SQLType sqlType, int precision, int scale) throws SQLServerExceptionDescription copied from interface:ISQLServerCallableStatementRegisters the parameter in ordinal position index to be of JDBC type sqlType. All OUT parameters must be registered before a stored procedure is executed.The JDBC type specified by sqlType for an OUT parameter determines the Java type that must be used in the get method to read the value of that parameter.
- Specified by:
registerOutParameterin interfaceISQLServerCallableStatement- Parameters:
parameterName- the name of the parametersqlType- the JDBC type code defined by SQLType to use to register the OUT Parameter.precision- the sum of the desired number of digits to the left and right of the decimal point. It must be greater than or equal to zero.scale- the desired number of digits to the right of the decimal point. It must be greater than or equal to zero.- Throws:
SQLServerException- If any errors occur.
-
registerOutParameter
public void registerOutParameter(java.lang.String parameterName, java.sql.SQLType sqlType) throws SQLServerException- Specified by:
registerOutParameterin interfacejava.sql.CallableStatement- Throws:
SQLServerException
-