ISQLServerCallableStatement, ISQLServerPreparedStatement, ISQLServerStatement, AutoCloseable, CallableStatement, PreparedStatement, Statement, Wrapperpublic 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.
stmtColumnEncriptionSettingCLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO| Modifier and Type | Method | Description |
|---|---|---|
Array |
getArray(int parameterIndex) |
|
Array |
getArray(String parameterName) |
|
InputStream |
getAsciiStream(int parameterIndex) |
Returns the value of the designated column in the current row of this
ResultSet object as a stream
of ASCII characters. |
InputStream |
getAsciiStream(String parameterName) |
Returns the value of the designated column in the current row of this
ResultSet object as a stream
of ASCII characters. |
BigDecimal |
getBigDecimal(int parameterIndex) |
|
BigDecimal |
getBigDecimal(int parameterIndex,
int scale) |
Deprecated.
|
BigDecimal |
getBigDecimal(String parameterName) |
|
BigDecimal |
getBigDecimal(String parameterName,
int scale) |
Deprecated.
|
InputStream |
getBinaryStream(int parameterIndex) |
Returns the value of the designated column in the current row of this
ResultSet object as a stream
of uninterpreted bytes. |
InputStream |
getBinaryStream(String parameterName) |
Returns the value of the designated column in the current row of this
ResultSet object as a stream
of uninterpreted bytes. |
Blob |
getBlob(int parameterIndex) |
|
Blob |
getBlob(String parameterName) |
|
boolean |
getBoolean(int index) |
|
boolean |
getBoolean(String parameterName) |
|
byte |
getByte(int index) |
|
byte |
getByte(String parameterName) |
|
byte[] |
getBytes(int index) |
|
byte[] |
getBytes(String parameterName) |
|
Reader |
getCharacterStream(int parameterIndex) |
|
Reader |
getCharacterStream(String parameterName) |
|
Clob |
getClob(int parameterIndex) |
|
Clob |
getClob(String parameterName) |
|
Date |
getDate(int index) |
|
Date |
getDate(int index,
Calendar cal) |
|
Date |
getDate(String parameterName) |
|
Date |
getDate(String parameterName,
Calendar cal) |
|
Timestamp |
getDateTime(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.
|
Timestamp |
getDateTime(int index,
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.
|
Timestamp |
getDateTime(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.
|
Timestamp |
getDateTime(String name,
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.
|
DateTimeOffset |
getDateTimeOffset(int index) |
Returns the DateTimeOffset value of parameter with index parameterIndex.
|
DateTimeOffset |
getDateTimeOffset(String parameterName) |
Returns the DateTimeOffset value of parameter with name parameterName.
|
double |
getDouble(int index) |
|
double |
getDouble(String parameterName) |
|
float |
getFloat(int index) |
|
float |
getFloat(String parameterName) |
|
int |
getInt(int index) |
|
int |
getInt(String parameterName) |
|
long |
getLong(int index) |
|
long |
getLong(String parameterName) |
|
BigDecimal |
getMoney(int parameterIndex) |
Returns the value of the column specified as a java.math.BigDecimal object.
|
BigDecimal |
getMoney(String parameterName) |
Returns the value of the column specified as a java.math.BigDecimal object.
|
Reader |
getNCharacterStream(int parameterIndex) |
|
Reader |
getNCharacterStream(String parameterName) |
|
NClob |
getNClob(int parameterIndex) |
|
NClob |
getNClob(String parameterName) |
|
String |
getNString(int parameterIndex) |
|
String |
getNString(String parameterName) |
|
Object |
getObject(int index) |
|
<T> T |
getObject(int index,
Class<T> type) |
|
Object |
getObject(int parameterIndex,
Map<String,Class<?>> map) |
|
Object |
getObject(String parameterName) |
|
<T> T |
getObject(String parameterName,
Class<T> type) |
|
Object |
getObject(String parameterName,
Map<String,Class<?>> m) |
|
Ref |
getRef(int parameterIndex) |
|
Ref |
getRef(String parameterName) |
|
RowId |
getRowId(int parameterIndex) |
|
RowId |
getRowId(String parameterName) |
|
short |
getShort(int index) |
|
short |
getShort(String parameterName) |
|
Timestamp |
getSmallDateTime(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.
|
Timestamp |
getSmallDateTime(int index,
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.
|
Timestamp |
getSmallDateTime(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.
|
Timestamp |
getSmallDateTime(String name,
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.
|
BigDecimal |
getSmallMoney(int parameterIndex) |
Returns the value of the column specified as a java.math.BigDecimal object.
|
BigDecimal |
getSmallMoney(String parameterName) |
Returns the value of the column specified as a java.math.BigDecimal object.
|
SQLXML |
getSQLXML(int parameterIndex) |
|
SQLXML |
getSQLXML(String parameterName) |
|
String |
getString(int index) |
|
String |
getString(String parameterName) |
|
Time |
getTime(int index) |
|
Time |
getTime(int index,
Calendar cal) |
|
Time |
getTime(String parameterName) |
|
Time |
getTime(String parameterName,
Calendar cal) |
|
Timestamp |
getTimestamp(int index) |
|
Timestamp |
getTimestamp(int index,
Calendar cal) |
|
Timestamp |
getTimestamp(String parameterName) |
|
Timestamp |
getTimestamp(String name,
Calendar cal) |
|
URL |
getURL(int parameterIndex) |
|
URL |
getURL(String parameterName) |
|
void |
registerOutParameter(int index,
int sqlType) |
|
void |
registerOutParameter(int index,
int sqlType,
int scale) |
|
void |
registerOutParameter(int index,
int sqlType,
int precision,
int scale) |
Registers the parameter in ordinal position index to be of JDBC type sqlType.
|
void |
registerOutParameter(int index,
int sqlType,
String typeName) |
|
void |
registerOutParameter(int paramterIndex,
SQLType sqlType) |
|
void |
registerOutParameter(int paramterIndex,
SQLType sqlType,
int scale) |
|
void |
registerOutParameter(int paramterIndex,
SQLType sqlType,
int precision,
int scale) |
Registers the parameter in ordinal position index to be of JDBC type sqlType.
|
void |
registerOutParameter(int paramterIndex,
SQLType sqlType,
String typeName) |
|
void |
registerOutParameter(String parameterName,
int sqlType) |
|
void |
registerOutParameter(String parameterName,
int sqlType,
int scale) |
|
void |
registerOutParameter(String parameterName,
int sqlType,
int precision,
int scale) |
Registers the parameter in ordinal position index to be of JDBC type sqlType.
|
void |
registerOutParameter(String parameterName,
int sqlType,
String typeName) |
|
void |
registerOutParameter(String parameterName,
SQLType sqlType) |
|
void |
registerOutParameter(String parameterName,
SQLType sqlType,
int scale) |
|
void |
registerOutParameter(String parameterName,
SQLType sqlType,
int precision,
int scale) |
Registers the parameter in ordinal position index to be of JDBC type sqlType.
|
void |
registerOutParameter(String parameterName,
SQLType sqlType,
String typeName) |
|
void |
setAsciiStream(String parameterName,
InputStream value) |
|
void |
setAsciiStream(String parameterName,
InputStream value,
int length) |
|
void |
setAsciiStream(String parameterName,
InputStream value,
long length) |
|
void |
setBigDecimal(String parameterName,
BigDecimal value) |
|
void |
setBigDecimal(String parameterName,
BigDecimal value,
int precision,
int scale) |
Sets the designated parameter to the given
java.math.BigDecimal value. |
void |
setBigDecimal(String parameterName,
BigDecimal value,
int precision,
int scale,
boolean forceEncrypt) |
Sets the designated parameter to the given
java.math.BigDecimal value. |
void |
setBinaryStream(String parameterName,
InputStream value) |
|
void |
setBinaryStream(String parameterName,
InputStream value,
int length) |
|
void |
setBinaryStream(String parameterName,
InputStream value,
long length) |
|
void |
setBlob(String parameterName,
InputStream value) |
|
void |
setBlob(String parameterName,
InputStream inputStream,
long length) |
|
void |
setBlob(String parameterName,
Blob inputStream) |
|
void |
setBoolean(String parameterName,
boolean value) |
|
void |
setBoolean(String parameterName,
boolean value,
boolean forceEncrypt) |
Sets the designated parameter to the given Java
boolean value. |
void |
setByte(String parameterName,
byte value) |
|
void |
setByte(String parameterName,
byte value,
boolean forceEncrypt) |
Sets the designated parameter to the given Java
byte value. |
void |
setBytes(String parameterName,
byte[] value) |
|
void |
setBytes(String parameterName,
byte[] value,
boolean forceEncrypt) |
Sets the designated parameter to the given Java array of bytes.
|
void |
setCharacterStream(String parameterName,
Reader reader) |
|
void |
setCharacterStream(String parameterName,
Reader value,
int length) |
|
void |
setCharacterStream(String parameterName,
Reader reader,
long length) |
|
void |
setClob(String parameterName,
Reader reader) |
|
void |
setClob(String parameterName,
Reader value,
long length) |
|
void |
setClob(String parameterName,
Clob value) |
|
void |
setDate(String parameterName,
Date value) |
|
void |
setDate(String parameterName,
Date value,
Calendar calendar) |
|
void |
setDate(String parameterName,
Date value,
Calendar calendar,
boolean forceEncrypt) |
Sets the designated parameter to the given
java.sql.Date value, using the given
Calendar object. |
void |
setDateTime(String parameterName,
Timestamp value) |
Sets the designated parameter to the given
java.sql.Timestamp value. |
void |
setDateTime(String parameterName,
Timestamp value,
boolean forceEncrypt) |
Sets the designated parameter to the given
java.sql.Timestamp value. |
void |
setDateTimeOffset(String parameterName,
DateTimeOffset value) |
Sets parameter parameterName to DateTimeOffset value.
|
void |
setDateTimeOffset(String parameterName,
DateTimeOffset value,
int scale) |
Sets parameter parameterName to DateTimeOffset value.
|
void |
setDateTimeOffset(String parameterName,
DateTimeOffset value,
int scale,
boolean forceEncrypt) |
Sets parameter parameterName to DateTimeOffset value.
|
void |
setDouble(String parameterName,
double value) |
|
void |
setDouble(String parameterName,
double value,
boolean forceEncrypt) |
Sets the designated parameter to the given Java
double value. |
void |
setFloat(String parameterName,
float value) |
|
void |
setFloat(String parameterName,
float value,
boolean forceEncrypt) |
Sets the designated parameter to the given Java
float value. |
void |
setInt(String parameterName,
int value) |
|
void |
setInt(String parameterName,
int value,
boolean forceEncrypt) |
Sets the designated parameter to the given Java
int value. |
void |
setLong(String parameterName,
long value) |
|
void |
setLong(String parameterName,
long value,
boolean forceEncrypt) |
Sets the designated parameter to the given Java
long value. |
void |
setMoney(String parameterName,
BigDecimal value) |
Sets the designated parameter to the given Java
java.math.BigDecimal value. |
void |
setMoney(String parameterName,
BigDecimal value,
boolean forceEncrypt) |
Sets the designated parameter to the given Java
java.math.BigDecimal value. |
void |
setNCharacterStream(String parameterName,
Reader value) |
|
void |
setNCharacterStream(String parameterName,
Reader value,
long length) |
|
void |
setNClob(String parameterName,
Reader reader) |
|
void |
setNClob(String parameterName,
Reader reader,
long length) |
|
void |
setNClob(String parameterName,
NClob value) |
|
void |
setNString(String parameterName,
String value) |
|
void |
setNString(String parameterName,
String value,
boolean forceEncrypt) |
Sets the designated parameter to the given
String object. |
void |
setNull(String parameterName,
int nType) |
|
void |
setNull(String parameterName,
int nType,
String sTypeName) |
|
void |
setObject(String parameterName,
Object value) |
|
void |
setObject(String parameterName,
Object value,
int sqlType) |
|
void |
setObject(String parameterName,
Object value,
int sqlType,
int decimals) |
|
void |
setObject(String parameterName,
Object value,
int sqlType,
int decimals,
boolean forceEncrypt) |
Sets the value of the designated parameter with the given object.
|
void |
setObject(String parameterName,
Object value,
int targetSqlType,
Integer precision,
int scale) |
Sets the value of the designated parameter with the given object.
|
void |
setObject(String parameterName,
Object value,
SQLType jdbcType) |
|
void |
setObject(String parameterName,
Object value,
SQLType jdbcType,
int scale) |
|
void |
setObject(String parameterName,
Object value,
SQLType jdbcType,
int scale,
boolean forceEncrypt) |
Sets the value of the designated parameter with the given object.
|
void |
setRowId(String parameterName,
RowId value) |
|
void |
setShort(String parameterName,
short value) |
|
void |
setShort(String parameterName,
short value,
boolean forceEncrypt) |
Sets the designated parameter to the given Java
short value. |
void |
setSmallDateTime(String parameterName,
Timestamp value) |
Sets the designated parameter to the given
java.sql.Timestamp value. |
void |
setSmallDateTime(String parameterName,
Timestamp value,
boolean forceEncrypt) |
Sets the designated parameter to the given
java.sql.Timestamp value. |
void |
setSmallMoney(String parameterName,
BigDecimal value) |
Sets the designated parameter to the given Java
java.math.BigDecimal value. |
void |
setSmallMoney(String parameterName,
BigDecimal value,
boolean forceEncrypt) |
Sets the designated parameter to the given Java
java.math.BigDecimal value. |
void |
setSQLXML(String parameterName,
SQLXML xmlObject) |
|
void |
setString(String parameterName,
String value) |
|
void |
setString(String parameterName,
String value,
boolean forceEncrypt) |
Sets the designated parameter to the given Java
String value. |
void |
setStructured(String parameterName,
String tvpName,
ISQLServerDataRecord tvpDataRecord) |
Populates a table valued parameter passed to a stored procedure with an ISQLServerDataRecord object.
|
void |
setStructured(String parameterName,
String tvpName,
SQLServerDataTable tvpDataTable) |
Populates a table valued parameter passed to a stored procedure with a data table.
|
void |
setStructured(String parameterName,
String tvpName,
ResultSet tvpResultSet) |
Populates a table valued parameter passed to a stored procedure with a ResultSet retrieved from another table
|
void |
setTime(String parameterName,
Time value) |
|
void |
setTime(String parameterName,
Time value,
int scale) |
Sets the designated parameter to the given
java.sql.Time value. |
void |
setTime(String parameterName,
Time value,
int scale,
boolean forceEncrypt) |
Sets the designated parameter to the given
java.sql.Time value. |
void |
setTime(String parameterName,
Time value,
Calendar calendar) |
|
void |
setTime(String parameterName,
Time value,
Calendar calendar,
boolean forceEncrypt) |
Sets the designated parameter to the given
java.sql.Time value, using the given
Calendar object. |
void |
setTimestamp(String parameterName,
Timestamp value) |
|
void |
setTimestamp(String parameterName,
Timestamp value,
int scale) |
Sets the designated parameter to the given
java.sql.Timestamp value. |
void |
setTimestamp(String parameterName,
Timestamp value,
int scale,
boolean forceEncrypt) |
Sets the designated parameter to the given
java.sql.Timestamp value. |
void |
setTimestamp(String parameterName,
Timestamp value,
Calendar calendar) |
|
void |
setTimestamp(String parameterName,
Timestamp value,
Calendar calendar,
boolean forceEncrypt) |
Sets the designated parameter to the given
java.sql.Timestamp value. |
void |
setUniqueIdentifier(String parameterName,
String guid) |
Sets the designated parameter to the given
String value. |
void |
setUniqueIdentifier(String parameterName,
String guid,
boolean forceEncrypt) |
Sets the designated parameter to the given
String value. |
void |
setURL(String parameterName,
URL url) |
|
boolean |
wasNull() |
getParameterMetaData, getPreparedStatementHandle, 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, setUniqueIdentifiergetCancelQueryTimeout, getResponseBuffering, setCancelQueryTimeout, setResponseBufferingclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddBatch, 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, setURLaddBatch, addBatch, clearBatch, clearParameters, execute, execute, executeBatch, executeLargeBatch, executeLargeUpdate, executeQuery, executeQuery, executeUpdate, executeUpdate, getMetaData, getParameterMetaData, getParameterMetaData, getPreparedStatementHandle, 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, setURLcancel, 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, unwrapaddBatch, 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, setQueryTimeoutisWrapperFor, unwrappublic void registerOutParameter(int index,
int sqlType)
throws SQLServerException
registerOutParameter in interface CallableStatementSQLServerExceptionpublic void registerOutParameter(int index,
int sqlType,
String typeName)
throws SQLServerException
registerOutParameter in interface CallableStatementSQLServerExceptionpublic void registerOutParameter(int index,
int sqlType,
int scale)
throws SQLServerException
registerOutParameter in interface CallableStatementSQLServerExceptionpublic void registerOutParameter(int index,
int sqlType,
int precision,
int scale)
throws SQLServerException
ISQLServerCallableStatementThe 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.
registerOutParameter in interface ISQLServerCallableStatementindex - 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.SQLServerException - If any errors occur.public int getInt(int index)
throws SQLServerException
getInt in interface CallableStatementSQLServerExceptionpublic int getInt(String parameterName) throws SQLServerException
getInt in interface CallableStatementSQLServerExceptionpublic String getString(int index) throws SQLServerException
getString in interface CallableStatementSQLServerExceptionpublic String getString(String parameterName) throws SQLServerException
getString in interface CallableStatementSQLServerExceptionpublic final String getNString(int parameterIndex) throws SQLException
getNString in interface CallableStatementSQLExceptionpublic final String getNString(String parameterName) throws SQLException
getNString in interface CallableStatementSQLException@Deprecated public BigDecimal getBigDecimal(int parameterIndex, int scale) throws SQLException
getBigDecimal in interface CallableStatementSQLException@Deprecated public BigDecimal getBigDecimal(String parameterName, int scale) throws SQLServerException
getBigDecimal in interface ISQLServerCallableStatementSQLServerExceptionpublic boolean getBoolean(int index)
throws SQLServerException
getBoolean in interface CallableStatementSQLServerExceptionpublic boolean getBoolean(String parameterName) throws SQLServerException
getBoolean in interface CallableStatementSQLServerExceptionpublic byte getByte(int index)
throws SQLServerException
getByte in interface CallableStatementSQLServerExceptionpublic byte getByte(String parameterName) throws SQLServerException
getByte in interface CallableStatementSQLServerExceptionpublic byte[] getBytes(int index)
throws SQLServerException
getBytes in interface CallableStatementSQLServerExceptionpublic byte[] getBytes(String parameterName) throws SQLServerException
getBytes in interface CallableStatementSQLServerExceptionpublic Date getDate(int index) throws SQLServerException
getDate in interface CallableStatementSQLServerExceptionpublic Date getDate(String parameterName) throws SQLServerException
getDate in interface CallableStatementSQLServerExceptionpublic Date getDate(int index, Calendar cal) throws SQLServerException
getDate in interface CallableStatementSQLServerExceptionpublic Date getDate(String parameterName, Calendar cal) throws SQLServerException
getDate in interface CallableStatementSQLServerExceptionpublic double getDouble(int index)
throws SQLServerException
getDouble in interface CallableStatementSQLServerExceptionpublic double getDouble(String parameterName) throws SQLServerException
getDouble in interface CallableStatementSQLServerExceptionpublic float getFloat(int index)
throws SQLServerException
getFloat in interface CallableStatementSQLServerExceptionpublic float getFloat(String parameterName) throws SQLServerException
getFloat in interface CallableStatementSQLServerExceptionpublic long getLong(int index)
throws SQLServerException
getLong in interface CallableStatementSQLServerExceptionpublic long getLong(String parameterName) throws SQLServerException
getLong in interface CallableStatementSQLServerExceptionpublic Object getObject(int index) throws SQLServerException
getObject in interface CallableStatementSQLServerExceptionpublic <T> T getObject(int index,
Class<T> type)
throws SQLException
getObject in interface CallableStatementSQLExceptionpublic Object getObject(String parameterName) throws SQLServerException
getObject in interface CallableStatementSQLServerExceptionpublic <T> T getObject(String parameterName, Class<T> type) throws SQLException
getObject in interface CallableStatementSQLExceptionpublic short getShort(int index)
throws SQLServerException
getShort in interface CallableStatementSQLServerExceptionpublic short getShort(String parameterName) throws SQLServerException
getShort in interface CallableStatementSQLServerExceptionpublic Time getTime(int index) throws SQLServerException
getTime in interface CallableStatementSQLServerExceptionpublic Time getTime(String parameterName) throws SQLServerException
getTime in interface CallableStatementSQLServerExceptionpublic Time getTime(int index, Calendar cal) throws SQLServerException
getTime in interface CallableStatementSQLServerExceptionpublic Time getTime(String parameterName, Calendar cal) throws SQLServerException
getTime in interface CallableStatementSQLServerExceptionpublic Timestamp getTimestamp(int index) throws SQLServerException
getTimestamp in interface CallableStatementSQLServerExceptionpublic Timestamp getTimestamp(String parameterName) throws SQLServerException
getTimestamp in interface CallableStatementSQLServerExceptionpublic Timestamp getTimestamp(int index, Calendar cal) throws SQLServerException
getTimestamp in interface CallableStatementSQLServerExceptionpublic Timestamp getTimestamp(String name, Calendar cal) throws SQLServerException
getTimestamp in interface CallableStatementSQLServerExceptionpublic Timestamp getDateTime(int index) throws SQLServerException
ISQLServerCallableStatementgetDateTime in interface ISQLServerCallableStatementindex - the first column is 1, the second is 2, ...SQLServerException - when an error occurspublic Timestamp getDateTime(String parameterName) throws SQLServerException
ISQLServerCallableStatementgetDateTime in interface ISQLServerCallableStatementparameterName - 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 columnSQLServerException - when an error occurspublic Timestamp getDateTime(int index, Calendar cal) throws SQLServerException
ISQLServerCallableStatementgetDateTime in interface ISQLServerCallableStatementindex - the first column is 1, the second is 2, ...cal - the java.util.Calendar object to use in constructing the dateTimeSQLServerException - when an error occurspublic Timestamp getDateTime(String name, Calendar cal) throws SQLServerException
ISQLServerCallableStatementgetDateTime in interface ISQLServerCallableStatementname - the name of the columncal - the java.util.Calendar object to use in constructing the dateTimeSQLServerException - when an error occurspublic Timestamp getSmallDateTime(int index) throws SQLServerException
ISQLServerCallableStatementgetSmallDateTime in interface ISQLServerCallableStatementindex - the first column is 1, the second is 2, ...SQLServerException - when an error occurspublic Timestamp getSmallDateTime(String parameterName) throws SQLServerException
ISQLServerCallableStatementgetSmallDateTime in interface ISQLServerCallableStatementparameterName - The name of a column.SQLServerException - when an error occurspublic Timestamp getSmallDateTime(int index, Calendar cal) throws SQLServerException
ISQLServerCallableStatementgetSmallDateTime in interface ISQLServerCallableStatementindex - the first column is 1, the second is 2, ...cal - the java.util.Calendar object to use in constructing the smalldateTimeSQLServerException - when an error occurspublic Timestamp getSmallDateTime(String name, Calendar cal) throws SQLServerException
ISQLServerCallableStatementgetSmallDateTime in interface ISQLServerCallableStatementname - The name of a columncal - the java.util.Calendar object to use in constructing the smalldateTimeSQLServerException - when an error occurspublic DateTimeOffset getDateTimeOffset(int index) throws SQLServerException
ISQLServerCallableStatementgetDateTimeOffset in interface ISQLServerCallableStatementindex - the first parameter is 1, the second is 2, and so onSQLServerException - if parameterIndex is out of range; if a database access error occurs or this method is called on a closed
CallableStatementpublic DateTimeOffset getDateTimeOffset(String parameterName) throws SQLServerException
ISQLServerCallableStatementgetDateTimeOffset in interface ISQLServerCallableStatementparameterName - the name of the parameterSQLServerException - if parameterName does not correspond to a named parameter; if a database access error occurs or this
method is called on a closed CallableStatementpublic boolean wasNull()
throws SQLServerException
wasNull in interface CallableStatementSQLServerExceptionpublic final InputStream getAsciiStream(int parameterIndex) throws SQLServerException
ISQLServerCallableStatementResultSet object as a stream
of ASCII characters. The value can then be read in chunks from the stream. This method is particularly suitable
for retrieving large LONGVARCHAR values. 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 0 when the
method InputStream.available is called whether there is data available or not.
getAsciiStream in interface ISQLServerCallableStatementparameterIndex - the first column is 1, the second is 2, ...NULL, the value returned is nullSQLServerException - if the columnIndex is not valid; if a database access error occurs or this method is called on a closed
result setpublic final InputStream getAsciiStream(String parameterName) throws SQLServerException
ISQLServerCallableStatementResultSet object as a stream
of ASCII characters. The value can then be read in chunks from the stream. This method is particularly suitable
for retrieving large LONGVARCHAR values. 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 0 when the
method available is called whether there is data available or not.
getAsciiStream in interface ISQLServerCallableStatementparameterName - the name of the parameterNULL, the value returned is null.SQLServerException - if the columnLabel is not valid; if a database access error occurs or this method is called on a closed
result setpublic BigDecimal getBigDecimal(int parameterIndex) throws SQLServerException
getBigDecimal in interface CallableStatementSQLServerExceptionpublic BigDecimal getBigDecimal(String parameterName) throws SQLServerException
getBigDecimal in interface CallableStatementSQLServerExceptionpublic BigDecimal getMoney(int parameterIndex) throws SQLServerException
ISQLServerCallableStatementgetMoney in interface ISQLServerCallableStatementparameterIndex - The zero-based ordinal of a column.SQLServerException - when an error occurspublic BigDecimal getMoney(String parameterName) throws SQLServerException
ISQLServerCallableStatementgetMoney in interface ISQLServerCallableStatementparameterName - The name of a column.SQLServerException - when an error occurspublic BigDecimal getSmallMoney(int parameterIndex) throws SQLServerException
ISQLServerCallableStatementgetSmallMoney in interface ISQLServerCallableStatementparameterIndex - The zero-based ordinal of a column.SQLServerException - when an error occurspublic BigDecimal getSmallMoney(String parameterName) throws SQLServerException
ISQLServerCallableStatementgetSmallMoney in interface ISQLServerCallableStatementparameterName - The name of a column.SQLServerException - when an error occurspublic final InputStream getBinaryStream(int parameterIndex) throws SQLServerException
ISQLServerCallableStatementResultSet object as a stream
of uninterpreted bytes. The value can then be read in chunks from the stream. This method is particularly
suitable for retrieving large LONGVARBINARY values.
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 0 when the
method InputStream.available is called whether there is data available or not.
getBinaryStream in interface ISQLServerCallableStatementparameterIndex - the first column is 1, the second is 2, ...NULL, the value returned is nullSQLServerException - if the columnIndex is not valid; if a database access error occurs or this method is called on a closed
result setpublic final InputStream getBinaryStream(String parameterName) throws SQLServerException
ISQLServerCallableStatementResultSet object as a stream
of uninterpreted bytes. The value can then be read in chunks from the stream. This method is
particularly suitable for retrieving large LONGVARBINARY values.
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 0 when the
method available is called whether there is data available or not.
getBinaryStream in interface ISQLServerCallableStatementparameterName - the name of the parameterNULL, the result is nullSQLServerException - if the columnLabel is not valid; if a database access error occurs or this method is called on a closed
result setpublic Blob getBlob(int parameterIndex) throws SQLServerException
getBlob in interface CallableStatementSQLServerExceptionpublic Blob getBlob(String parameterName) throws SQLServerException
getBlob in interface CallableStatementSQLServerExceptionpublic final Reader getCharacterStream(int parameterIndex) throws SQLServerException
getCharacterStream in interface CallableStatementSQLServerExceptionpublic final Reader getCharacterStream(String parameterName) throws SQLException
getCharacterStream in interface CallableStatementSQLExceptionpublic final Reader getNCharacterStream(int parameterIndex) throws SQLException
getNCharacterStream in interface CallableStatementSQLExceptionpublic final Reader getNCharacterStream(String parameterName) throws SQLException
getNCharacterStream in interface CallableStatementSQLExceptionpublic Clob getClob(int parameterIndex) throws SQLServerException
getClob in interface CallableStatementSQLServerExceptionpublic Clob getClob(String parameterName) throws SQLServerException
getClob in interface CallableStatementSQLServerExceptionpublic NClob getNClob(int parameterIndex) throws SQLException
getNClob in interface CallableStatementSQLExceptionpublic NClob getNClob(String parameterName) throws SQLException
getNClob in interface CallableStatementSQLExceptionpublic Object getObject(int parameterIndex, Map<String,Class<?>> map) throws SQLException
getObject in interface CallableStatementSQLExceptionpublic Object getObject(String parameterName, Map<String,Class<?>> m) throws SQLException
getObject in interface CallableStatementSQLExceptionpublic Ref getRef(int parameterIndex) throws SQLException
getRef in interface CallableStatementSQLExceptionpublic Ref getRef(String parameterName) throws SQLException
getRef in interface CallableStatementSQLExceptionpublic Array getArray(int parameterIndex) throws SQLException
getArray in interface CallableStatementSQLExceptionpublic Array getArray(String parameterName) throws SQLException
getArray in interface CallableStatementSQLExceptionpublic void setTimestamp(String parameterName, Timestamp value, Calendar calendar) throws SQLServerException
setTimestamp in interface CallableStatementSQLServerExceptionpublic void setTimestamp(String parameterName, Timestamp value, Calendar calendar, boolean forceEncrypt) throws SQLServerException
ISQLServerCallableStatementjava.sql.Timestamp value. The driver converts this to an
SQL TIMESTAMP value when it sends it to the database.setTimestamp in interface ISQLServerCallableStatementparameterName - 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.SQLServerException - if parameterName does not correspond to a named parameter; if a database access error occurs or this
method is called on a closed CallableStatementCallableStatement.getTimestamp(int)public void setTime(String parameterName, Time value, Calendar calendar) throws SQLServerException
setTime in interface CallableStatementSQLServerExceptionpublic void setTime(String parameterName, Time value, Calendar calendar, boolean forceEncrypt) throws SQLServerException
ISQLServerCallableStatementjava.sql.Time value, using the given
Calendar object. The driver uses the Calendar object to construct an SQL
TIME value, which the driver then sends to the database. With a a Calendar object, the
driver can calculate the time taking into account a custom timezone. If no Calendar object is
specified, the driver uses the default timezone, which is that of the virtual machine running the application.setTime in interface ISQLServerCallableStatementparameterName - the name of the parametervalue - the parameter valuecalendar - the Calendar object 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.SQLServerException - if parameterName does not correspond to a named parameter; if a database access error occurs or this
method is called on a closed CallableStatementCallableStatement.getTime(int)public void setDate(String parameterName, Date value, Calendar calendar) throws SQLServerException
setDate in interface CallableStatementSQLServerExceptionpublic void setDate(String parameterName, Date value, Calendar calendar, boolean forceEncrypt) throws SQLServerException
ISQLServerCallableStatementjava.sql.Date value, using the given
Calendar object. The driver uses the Calendar object to construct an SQL
DATE value, which the driver then sends to the database. With a a Calendar object, the
driver can calculate the date taking into account a custom timezone. If no Calendar object is
specified, the driver uses the default timezone, which is that of the virtual machine running the application.setDate in interface ISQLServerCallableStatementparameterName - the name of the parametervalue - the parameter valuecalendar - the Calendar object 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.SQLServerException - if parameterName does not correspond to a named parameter; if a database access error occurs or this
method is called on a closed CallableStatementCallableStatement.getDate(int)public final void setCharacterStream(String parameterName, Reader reader) throws SQLException
setCharacterStream in interface CallableStatementSQLExceptionpublic final void setCharacterStream(String parameterName, Reader value, int length) throws SQLException
setCharacterStream in interface CallableStatementSQLExceptionpublic final void setCharacterStream(String parameterName, Reader reader, long length) throws SQLException
setCharacterStream in interface CallableStatementSQLExceptionpublic final void setNCharacterStream(String parameterName, Reader value) throws SQLException
setNCharacterStream in interface CallableStatementSQLExceptionpublic final void setNCharacterStream(String parameterName, Reader value, long length) throws SQLException
setNCharacterStream in interface CallableStatementSQLExceptionpublic final void setClob(String parameterName, Clob value) throws SQLException
setClob in interface CallableStatementSQLExceptionpublic final void setClob(String parameterName, Reader reader) throws SQLException
setClob in interface CallableStatementSQLExceptionpublic final void setClob(String parameterName, Reader value, long length) throws SQLException
setClob in interface CallableStatementSQLExceptionpublic final void setNClob(String parameterName, NClob value) throws SQLException
setNClob in interface CallableStatementSQLExceptionpublic final void setNClob(String parameterName, Reader reader) throws SQLException
setNClob in interface CallableStatementSQLExceptionpublic final void setNClob(String parameterName, Reader reader, long length) throws SQLException
setNClob in interface CallableStatementSQLExceptionpublic final void setNString(String parameterName, String value) throws SQLException
setNString in interface CallableStatementSQLExceptionpublic final void setNString(String parameterName, String value, boolean forceEncrypt) throws SQLServerException
ISQLServerCallableStatementString object. The driver converts this to a SQL
NCHAR or NVARCHAR or LONGNVARCHARsetNString in interface ISQLServerCallableStatementparameterName - 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.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 closed CallableStatementpublic void setObject(String parameterName, Object value) throws SQLServerException
setObject in interface CallableStatementSQLServerExceptionpublic void setObject(String parameterName, Object value, int sqlType) throws SQLServerException
setObject in interface CallableStatementSQLServerExceptionpublic void setObject(String parameterName, Object value, int sqlType, int decimals) throws SQLServerException
setObject in interface CallableStatementSQLServerExceptionpublic void setObject(String parameterName, Object value, int sqlType, int decimals, boolean forceEncrypt) throws SQLServerException
ISQLServerCallableStatement
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 method SQLData.writeSQL to write it to the SQL data stream. If, on the other
hand, the object is of a class implementing Ref, Blob, Clob,
NClob, Struct, java.net.URL, or Array, 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.
setObject in interface ISQLServerCallableStatementparameterName - 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.SQLServerException - if parameterName does not correspond to a named parameter; if a database access error occurs or this
method is called on a closed CallableStatementTypes,
CallableStatement.getObject(int)public final void setObject(String parameterName, Object value, int targetSqlType, Integer precision, int scale) throws SQLServerException
ISQLServerCallableStatement
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 method SQLData.writeSQL to write it to the SQL data stream. If, on the other
hand, the object is of a class implementing Ref, Blob, Clob,
NClob, Struct, java.net.URL, or Array, 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.
setObject in interface ISQLServerCallableStatementparameterName - 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.SQLServerException - if parameterName does not correspond to a named parameter; if a database access error occurs or this
method is called on a closed CallableStatementTypes,
CallableStatement.getObject(int)public final void setAsciiStream(String parameterName, InputStream value) throws SQLException
setAsciiStream in interface CallableStatementSQLExceptionpublic final void setAsciiStream(String parameterName, InputStream value, int length) throws SQLException
setAsciiStream in interface CallableStatementSQLExceptionpublic final void setAsciiStream(String parameterName, InputStream value, long length) throws SQLException
setAsciiStream in interface CallableStatementSQLExceptionpublic final void setBinaryStream(String parameterName, InputStream value) throws SQLException
setBinaryStream in interface CallableStatementSQLExceptionpublic final void setBinaryStream(String parameterName, InputStream value, int length) throws SQLException
setBinaryStream in interface CallableStatementSQLExceptionpublic final void setBinaryStream(String parameterName, InputStream value, long length) throws SQLException
setBinaryStream in interface CallableStatementSQLExceptionpublic final void setBlob(String parameterName, Blob inputStream) throws SQLException
setBlob in interface CallableStatementSQLExceptionpublic final void setBlob(String parameterName, InputStream value) throws SQLException
setBlob in interface CallableStatementSQLExceptionpublic final void setBlob(String parameterName, InputStream inputStream, long length) throws SQLException
setBlob in interface CallableStatementSQLExceptionpublic void setTimestamp(String parameterName, Timestamp value) throws SQLServerException
setTimestamp in interface CallableStatementSQLServerExceptionpublic void setTimestamp(String parameterName, Timestamp value, int scale) throws SQLServerException
ISQLServerCallableStatementjava.sql.Timestamp value. The driver converts this to an
SQL TIMESTAMP value when it sends it to the database.setTimestamp in interface ISQLServerCallableStatementparameterName - the name of the parametervalue - the parameter valuescale - the scale of the parameterSQLServerException - if parameterName does not correspond to a named parameter; if a database access error occurs or this
method is called on a closed CallableStatementCallableStatement.getTimestamp(int)public void setTimestamp(String parameterName, Timestamp value, int scale, boolean forceEncrypt) throws SQLServerException
ISQLServerCallableStatementjava.sql.Timestamp value. The driver converts this to an
SQL TIMESTAMP value when it sends it to the database.setTimestamp in interface ISQLServerCallableStatementparameterName - 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.SQLServerException - if parameterName does not correspond to a named parameter; if a database access error occurs or this
method is called on a closed CallableStatementCallableStatement.getTimestamp(int)public void setDateTimeOffset(String parameterName, DateTimeOffset value) throws SQLServerException
ISQLServerCallableStatementsetDateTimeOffset in interface ISQLServerCallableStatementparameterName - the name of the parametervalue - DateTimeOffset valueSQLServerException - if an error occurspublic void setDateTimeOffset(String parameterName, DateTimeOffset value, int scale) throws SQLServerException
ISQLServerCallableStatementsetDateTimeOffset in interface ISQLServerCallableStatementparameterName - the name of the parametervalue - DateTimeOffset valuescale - the scale of the parameterSQLServerException - if an error occurspublic void setDateTimeOffset(String parameterName, DateTimeOffset value, int scale, boolean forceEncrypt) throws SQLServerException
ISQLServerCallableStatementsetDateTimeOffset in interface ISQLServerCallableStatementparameterName - 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.SQLServerException - if an error occurspublic void setDate(String parameterName, Date value) throws SQLServerException
setDate in interface CallableStatementSQLServerExceptionpublic void setTime(String parameterName, Time value) throws SQLServerException
setTime in interface CallableStatementSQLServerExceptionpublic void setTime(String parameterName, Time value, int scale) throws SQLServerException
ISQLServerCallableStatementjava.sql.Time value. The driver converts this to an SQL
TIME value when it sends it to the database.setTime in interface ISQLServerCallableStatementparameterName - the name of the parametervalue - the parameter valuescale - the scale of the columnSQLServerException - if parameterName does not correspond to a named parameter; if a database access error occurs or this
method is called on a closed CallableStatementCallableStatement.getTime(int)public void setTime(String parameterName, Time value, int scale, boolean forceEncrypt) throws SQLServerException
ISQLServerCallableStatementjava.sql.Time value. The driver converts this to an SQL
TIME value when it sends it to the database.setTime in interface ISQLServerCallableStatementparameterName - 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.SQLServerException - if parameterName does not correspond to a named parameter; if a database access error occurs or this
method is called on a closed CallableStatementCallableStatement.getTime(int)public void setDateTime(String parameterName, Timestamp value) throws SQLServerException
ISQLServerCallableStatementjava.sql.Timestamp value. The driver converts this to an
SQL DATETIME value when it sends it to the database.setDateTime in interface ISQLServerCallableStatementparameterName - the name of the parametervalue - the parameter valueSQLServerException - if parameterName does not correspond to a named parameter; if a database access error occurs or this
method is called on a closed CallableStatementpublic void setDateTime(String parameterName, Timestamp value, boolean forceEncrypt) throws SQLServerException
ISQLServerCallableStatementjava.sql.Timestamp value. The driver converts this to an
SQL DATETIME value when it sends it to the database.setDateTime in interface ISQLServerCallableStatementparameterName - 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.SQLServerException - if parameterName does not correspond to a named parameter; if a database access error occurs or this
method is called on a closed CallableStatementpublic void setSmallDateTime(String parameterName, Timestamp value) throws SQLServerException
ISQLServerCallableStatementjava.sql.Timestamp value. The driver converts this to an
SQL SMALLDATETIME value when it sends it to the database.setSmallDateTime in interface ISQLServerCallableStatementparameterName - the name of the parametervalue - the parameter valueSQLServerException - if parameterName does not correspond to a named parameter; if a database access error occurs or this
method is called on a closed CallableStatementpublic void setSmallDateTime(String parameterName, Timestamp value, boolean forceEncrypt) throws SQLServerException
ISQLServerCallableStatementjava.sql.Timestamp value. The driver converts this to an
SQL SMALLDATETIME value when it sends it to the database.setSmallDateTime in interface ISQLServerCallableStatementparameterName - 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.SQLServerException - if parameterName does not correspond to a named parameter; if a database access error occurs or this
method is called on a closed CallableStatementpublic void setUniqueIdentifier(String parameterName, String guid) throws SQLServerException
ISQLServerCallableStatementString value. The driver converts this to an SQL
uniqueIdentifier value when it sends it to the database.setUniqueIdentifier in interface ISQLServerCallableStatementparameterName - the name of the parameterguid - the parameter valueSQLServerException - if parameterName does not correspond to a named parameter; if a database access error occurs or this
method is called on a closed CallableStatementpublic void setUniqueIdentifier(String parameterName, String guid, boolean forceEncrypt) throws SQLServerException
ISQLServerCallableStatementString value. The driver converts this to an SQL
uniqueIdentifier value when it sends it to the database.setUniqueIdentifier in interface ISQLServerCallableStatementparameterName - 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.SQLServerException - if parameterName does not correspond to a named parameter; if a database access error occurs or this
method is called on a closed CallableStatementpublic void setBytes(String parameterName, byte[] value) throws SQLServerException
setBytes in interface CallableStatementSQLServerExceptionpublic void setBytes(String parameterName, byte[] value, boolean forceEncrypt) throws SQLServerException
ISQLServerCallableStatementVARBINARY or LONGVARBINARY (depending on the argument's size relative to the driver's
limits on VARBINARY values) when it sends it to the database.setBytes in interface ISQLServerCallableStatementparameterName - 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.SQLServerException - if parameterName does not correspond to a named parameter; if a database access error occurs or this
method is called on a closed CallableStatementpublic void setByte(String parameterName, byte value) throws SQLServerException
setByte in interface CallableStatementSQLServerExceptionpublic void setByte(String parameterName, byte value, boolean forceEncrypt) throws SQLServerException
ISQLServerCallableStatementbyte value. The driver converts this to an SQL
TINYINT value when it sends it to the database.setByte in interface ISQLServerCallableStatementparameterName - 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.SQLServerException - if parameterName does not correspond to a named parameter; if a database access error occurs or this
method is called on a closed CallableStatementpublic void setString(String parameterName, String value) throws SQLServerException
setString in interface CallableStatementSQLServerExceptionpublic void setString(String parameterName, String value, boolean forceEncrypt) throws SQLServerException
ISQLServerCallableStatementString value. The driver converts this to an SQL
VARCHAR or LONGVARCHAR value (depending on the argument's size relative to the driver's
limits on VARCHAR values) when it sends it to the database.setString in interface ISQLServerCallableStatementparameterName - 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.SQLServerException - if parameterName does not correspond to a named parameter; if a database access error occurs or this
method is called on a closed CallableStatementpublic void setMoney(String parameterName, BigDecimal value) throws SQLServerException
ISQLServerCallableStatementjava.math.BigDecimal value. The driver converts this
to an SQL Money value.setMoney in interface ISQLServerCallableStatementparameterName - the name of the parametervalue - the parameter valueSQLServerException - if parameterName does not correspond to a named parameter; if a database access error occurs or this
method is called on a closed CallableStatementpublic void setMoney(String parameterName, BigDecimal value, boolean forceEncrypt) throws SQLServerException
ISQLServerCallableStatementjava.math.BigDecimal value. The driver converts this
to an SQL Money value.setMoney in interface ISQLServerCallableStatementparameterName - 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.SQLServerException - if parameterName does not correspond to a named parameter; if a database access error occurs or this
method is called on a closed CallableStatementpublic void setSmallMoney(String parameterName, BigDecimal value) throws SQLServerException
ISQLServerCallableStatementjava.math.BigDecimal value. The driver converts this
to an SQL smallMoney value.setSmallMoney in interface ISQLServerCallableStatementparameterName - the name of the parametervalue - the parameter valueSQLServerException - if parameterName does not correspond to a named parameter; if a database access error occurs or this
method is called on a closed CallableStatementpublic void setSmallMoney(String parameterName, BigDecimal value, boolean forceEncrypt) throws SQLServerException
ISQLServerCallableStatementjava.math.BigDecimal value. The driver converts this
to an SQL smallMoney value.setSmallMoney in interface ISQLServerCallableStatementparameterName - 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.SQLServerException - if parameterName does not correspond to a named parameter; if a database access error occurs or this
method is called on a closed CallableStatementpublic void setBigDecimal(String parameterName, BigDecimal value) throws SQLServerException
setBigDecimal in interface CallableStatementSQLServerExceptionpublic void setBigDecimal(String parameterName, BigDecimal value, int precision, int scale) throws SQLServerException
ISQLServerCallableStatementjava.math.BigDecimal value. The driver converts this to
an SQL NUMERIC value when it sends it to the database.setBigDecimal in interface ISQLServerCallableStatementparameterName - the name of the parametervalue - the parameter valueprecision - the precision of the columnscale - the scale of the columnSQLServerException - if parameterName does not correspond to a named parameter; if a database access error occurs or this
method is called on a closed CallableStatementpublic void setBigDecimal(String parameterName, BigDecimal value, int precision, int scale, boolean forceEncrypt) throws SQLServerException
ISQLServerCallableStatementjava.math.BigDecimal value. The driver converts this to
an SQL NUMERIC value when it sends it to the database.setBigDecimal in interface ISQLServerCallableStatementparameterName - 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.SQLServerException - if parameterName does not correspond to a named parameter; if a database access error occurs or this
method is called on a closed CallableStatementpublic void setDouble(String parameterName, double value) throws SQLServerException
setDouble in interface CallableStatementSQLServerExceptionpublic void setDouble(String parameterName, double value, boolean forceEncrypt) throws SQLServerException
ISQLServerCallableStatementdouble value. The driver converts this to an SQL
DOUBLE value when it sends it to the database.setDouble in interface ISQLServerCallableStatementparameterName - 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.SQLServerException - if parameterName does not correspond to a named parameter; if a database access error occurs or this
method is called on a closed CallableStatementpublic void setFloat(String parameterName, float value) throws SQLServerException
setFloat in interface CallableStatementSQLServerExceptionpublic void setFloat(String parameterName, float value, boolean forceEncrypt) throws SQLServerException
ISQLServerCallableStatementfloat value. The driver converts this to an SQL
FLOAT value when it sends it to the database.setFloat in interface ISQLServerCallableStatementparameterName - 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.SQLServerException - if parameterName does not correspond to a named parameter; if a database access error occurs or this
method is called on a closed CallableStatementpublic void setInt(String parameterName, int value) throws SQLServerException
setInt in interface CallableStatementSQLServerExceptionpublic void setInt(String parameterName, int value, boolean forceEncrypt) throws SQLServerException
ISQLServerCallableStatementint value. The driver converts this to an SQL
INTEGER value when it sends it to the database.setInt in interface ISQLServerCallableStatementparameterName - 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.SQLServerException - if parameterName does not correspond to a named parameter; if a database access error occurs or this
method is called on a closed CallableStatementpublic void setLong(String parameterName, long value) throws SQLServerException
setLong in interface CallableStatementSQLServerExceptionpublic void setLong(String parameterName, long value, boolean forceEncrypt) throws SQLServerException
ISQLServerCallableStatementlong value. The driver converts this to an SQL
BIGINT value when it sends it to the database.setLong in interface ISQLServerCallableStatementparameterName - 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.SQLServerException - if parameterName does not correspond to a named parameter; if a database access error occurs or this
method is called on a closed CallableStatementpublic void setShort(String parameterName, short value) throws SQLServerException
setShort in interface CallableStatementSQLServerExceptionpublic void setShort(String parameterName, short value, boolean forceEncrypt) throws SQLServerException
ISQLServerCallableStatementshort value. The driver converts this to an SQL
SMALLINT value when it sends it to the database.setShort in interface ISQLServerCallableStatementparameterName - 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.SQLServerException - if parameterName does not correspond to a named parameter; if a database access error occurs or this
method is called on a closed CallableStatementpublic void setBoolean(String parameterName, boolean value) throws SQLServerException
setBoolean in interface CallableStatementSQLServerExceptionpublic void setBoolean(String parameterName, boolean value, boolean forceEncrypt) throws SQLServerException
ISQLServerCallableStatementboolean value. The driver converts this to an SQL
BIT or BOOLEAN value when it sends it to the database.setBoolean in interface ISQLServerCallableStatementparameterName - 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.SQLServerException - if parameterName does not correspond to a named parameter; if a database access error occurs or this
method is called on a closed CallableStatementpublic void setNull(String parameterName, int nType) throws SQLServerException
setNull in interface CallableStatementSQLServerExceptionpublic void setNull(String parameterName, int nType, String sTypeName) throws SQLServerException
setNull in interface CallableStatementSQLServerExceptionpublic void setURL(String parameterName, URL url) throws SQLException
setURL in interface CallableStatementSQLExceptionpublic final void setStructured(String parameterName, String tvpName, SQLServerDataTable tvpDataTable) throws SQLServerException
ISQLServerCallableStatementsetStructured in interface ISQLServerCallableStatementparameterName - the name of the parametertvpName - the name of the type TVPtvpDataTable - the data table objectSQLServerException - when an error occurspublic final void setStructured(String parameterName, String tvpName, ResultSet tvpResultSet) throws SQLServerException
ISQLServerCallableStatementsetStructured in interface ISQLServerCallableStatementparameterName - the name of the parametertvpName - the name of the type TVPtvpResultSet - the source result set objectSQLServerException - when an error occurspublic final void setStructured(String parameterName, String tvpName, ISQLServerDataRecord tvpDataRecord) throws SQLServerException
ISQLServerCallableStatementsetStructured in interface ISQLServerCallableStatementparameterName - 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 objectSQLServerException - when an error occurspublic URL getURL(int parameterIndex) throws SQLException
getURL in interface CallableStatementSQLExceptionpublic URL getURL(String parameterName) throws SQLException
getURL in interface CallableStatementSQLExceptionpublic final void setSQLXML(String parameterName, SQLXML xmlObject) throws SQLException
setSQLXML in interface CallableStatementSQLExceptionpublic final SQLXML getSQLXML(int parameterIndex) throws SQLException
getSQLXML in interface CallableStatementSQLExceptionpublic final SQLXML getSQLXML(String parameterName) throws SQLException
getSQLXML in interface CallableStatementSQLExceptionpublic final void setRowId(String parameterName, RowId value) throws SQLException
setRowId in interface CallableStatementSQLExceptionpublic final RowId getRowId(int parameterIndex) throws SQLException
getRowId in interface CallableStatementSQLExceptionpublic final RowId getRowId(String parameterName) throws SQLException
getRowId in interface CallableStatementSQLExceptionpublic void registerOutParameter(String parameterName, int sqlType, String typeName) throws SQLServerException
registerOutParameter in interface CallableStatementSQLServerExceptionpublic void registerOutParameter(String parameterName, int sqlType, int scale) throws SQLServerException
registerOutParameter in interface CallableStatementSQLServerExceptionpublic void registerOutParameter(String parameterName, int sqlType, int precision, int scale) throws SQLServerException
ISQLServerCallableStatementThe 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.
registerOutParameter in interface ISQLServerCallableStatementparameterName - 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.SQLServerException - If any errors occur.public void registerOutParameter(String parameterName, int sqlType) throws SQLServerException
registerOutParameter in interface CallableStatementSQLServerExceptionpublic void registerOutParameter(int paramterIndex,
SQLType sqlType)
throws SQLServerException
registerOutParameter in interface CallableStatementSQLServerExceptionpublic void registerOutParameter(int paramterIndex,
SQLType sqlType,
String typeName)
throws SQLServerException
registerOutParameter in interface CallableStatementSQLServerExceptionpublic void registerOutParameter(int paramterIndex,
SQLType sqlType,
int scale)
throws SQLServerException
registerOutParameter in interface CallableStatementSQLServerExceptionpublic void registerOutParameter(int paramterIndex,
SQLType sqlType,
int precision,
int scale)
throws SQLServerException
ISQLServerCallableStatementThe 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.
registerOutParameter in interface ISQLServerCallableStatementparamterIndex - 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.SQLServerException - If any errors occur.public void setObject(String parameterName, Object value, SQLType jdbcType) throws SQLServerException
setObject in interface CallableStatementSQLServerExceptionpublic void setObject(String parameterName, Object value, SQLType jdbcType, int scale) throws SQLServerException
setObject in interface CallableStatementSQLServerExceptionpublic void setObject(String parameterName, Object value, SQLType jdbcType, int scale, boolean forceEncrypt) throws SQLServerException
ISQLServerCallableStatement
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 method SQLData.writeSQL to write it to the SQL data stream. If, on the other
hand, the object is of a class implementing Ref, Blob, Clob,
NClob, Struct, java.net.URL, or Array, 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.
setObject in interface ISQLServerCallableStatementparameterName - 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.SQLServerException - if parameterName does not correspond to a named parameter; if a database access error occurs or this
method is called on a closed CallableStatementTypes,
CallableStatement.getObject(int)public void registerOutParameter(String parameterName, SQLType sqlType, String typeName) throws SQLServerException
registerOutParameter in interface CallableStatementSQLServerExceptionpublic void registerOutParameter(String parameterName, SQLType sqlType, int scale) throws SQLServerException
registerOutParameter in interface CallableStatementSQLServerExceptionpublic void registerOutParameter(String parameterName, SQLType sqlType, int precision, int scale) throws SQLServerException
ISQLServerCallableStatementThe 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.
registerOutParameter in interface ISQLServerCallableStatementparameterName - 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.SQLServerException - If any errors occur.public void registerOutParameter(String parameterName, SQLType sqlType) throws SQLServerException
registerOutParameter in interface CallableStatementSQLServerExceptionCopyright © 2018 Microsoft Corporation. All rights reserved.