- All Implemented Interfaces:
ISQLServerResultSet,Serializable,AutoCloseable,ResultSet,Wrapper
- See Also:
-
Field Summary
Fields inherited from interface com.microsoft.sqlserver.jdbc.ISQLServerResultSet
CONCUR_SS_OPTIMISTIC_CC, CONCUR_SS_OPTIMISTIC_CCVAL, CONCUR_SS_SCROLL_LOCKS, TYPE_SS_DIRECT_FORWARD_ONLY, TYPE_SS_SCROLL_DYNAMIC, TYPE_SS_SCROLL_KEYSET, TYPE_SS_SCROLL_STATIC, TYPE_SS_SERVER_CURSOR_FORWARD_ONLYFields inherited from interface java.sql.ResultSet
CLOSE_CURSORS_AT_COMMIT, CONCUR_READ_ONLY, CONCUR_UPDATABLE, FETCH_FORWARD, FETCH_REVERSE, FETCH_UNKNOWN, HOLD_CURSORS_OVER_COMMIT, TYPE_FORWARD_ONLY, TYPE_SCROLL_INSENSITIVE, TYPE_SCROLL_SENSITIVE -
Method Summary
Modifier and TypeMethodDescriptionbooleanabsolute(int row) Moves the cursor to the given row number in thisResultSetobject.voidvoidvoidvoidClears result set warnings.voidclose()voidintfindColumn(String userProvidedColumnName) Finds a column index given a column name.booleanfirst()Moves the cursor to the first row in thisResultSetobject.getArray(int i) getAsciiStream(int columnIndex) getAsciiStream(String columnName) getBigDecimal(int columnIndex) getBigDecimal(int columnIndex, int scale) Deprecated.getBigDecimal(String columnName) getBigDecimal(String columnName, int scale) Deprecated.getBinaryStream(int columnIndex) getBinaryStream(String columnName) getBlob(int i) booleangetBoolean(int columnIndex) booleangetBoolean(String columnName) bytegetByte(int columnIndex) bytebyte[]getBytes(int columnIndex) byte[]getCharacterStream(int columnIndex) getCharacterStream(String columnName) getClob(int columnIndex) intgetDate(int columnIndex) getDateTime(int columnIndex) 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.getDateTime(int columnIndex, 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.getDateTime(String columnName) 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.getDateTime(String colName, 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.getDateTimeOffset(int columnIndex) Returns the value of the designated column as a microsoft.sql.DateTimeOffset object, given a zero-based column ordinal.getDateTimeOffset(String columnName) Returns the value of the column specified as a microsoft.sql.DateTimeOffset object, given a column name.doublegetDouble(int columnIndex) doubleintintfloatgetFloat(int columnIndex) floatgetGeography(int columnIndex) Returns the value of the designated column in the current row of this ResultSet object as a com.microsoft.sqlserver.jdbc.Geography object in the Java programming language.getGeography(String columnName) Returns the value of the designated column in the current row of this ResultSet object as a com.microsoft.sqlserver.jdbc.Geography object in the Java programming language.getGeometry(int columnIndex) Returns the value of the designated column in the current row of this ResultSet object as a com.microsoft.sqlserver.jdbc.Geometry object in the Java programming language.getGeometry(String columnName) Returns the value of the designated column in the current row of this ResultSet object as a com.microsoft.sqlserver.jdbc.Geometry object in the Java programming language.intintgetInt(int columnIndex) intlonggetLong(int columnIndex) longgetMoney(int columnIndex) Returns the value of the column specified as a java.math.BigDecimal object.Returns the value of the column specified as a java.math.BigDecimal object.getNCharacterStream(int columnIndex) getNCharacterStream(String columnLabel) getNClob(int columnIndex) getNString(int columnIndex) getNString(String columnLabel) getObject(int columnIndex) <T> T<T> TgetRef(int i) intgetRow()getRowId(int columnIndex) Returns the Data Classification information for the current ResultSet For SQL Servers that do not support Data Classification or results that do not fetch any classified columns, this data can be null.protected intReturns the server cursor idshortgetShort(int columnIndex) shortgetSmallDateTime(int columnIndex) 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.getSmallDateTime(int columnIndex, 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.getSmallDateTime(String columnName) 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.getSmallDateTime(String colName, 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.getSmallMoney(int columnIndex) Returns the value of the column specified as a java.math.BigDecimal object.getSmallMoney(String columnName) Returns the value of the column specified as a java.math.BigDecimal object.getSQLXML(int columnIndex) getString(int columnIndex) getTime(int columnIndex) getTimestamp(int columnIndex) getTimestamp(int columnIndex, Calendar cal) getTimestamp(String columnName) getTimestamp(String colName, Calendar cal) intgetType()getUnicodeStream(int columnIndex) Deprecated.getUnicodeStream(String columnName) Deprecated.getUniqueIdentifier(int columnIndex) Returns the value of the designated column in the current row of this ResultSet object as a String object in the Java programming language.getUniqueIdentifier(String columnLabel) Returns the value of the designated column in the current row of this ResultSet object as a String object in the Java programming language.getURL(int columnIndex) voidbooleanbooleanReturns if the cursor is before the first row in this result set.booleanisClosed()booleanisFirst()Returns whether the cursor is on the first row of thisResultSetobject.protected booleanCheck if type is ForwardOnlybooleanisLast()Returns whether the cursor is on the last row of thisResultSetobject.booleanisWrapperFor(Class<?> iface) booleanlast()Moves the cursor to the last row in thisResultSetobject.voidvoidbooleannext()Moves the cursor to the first row of this ResultSet object initially, then subsequent calls move the cursor to the second row, the third row, and so on.booleanprevious()Moves the cursor to the previous row in thisResultSetobject.voidbooleanrelative(int rows) booleanbooleanbooleanvoidsetFetchDirection(int direction) voidsetFetchSize(int rows) toString()<T> TvoidupdateArray(int columnIndex, Array x) voidupdateArray(String columnName, Array x) voidupdateAsciiStream(int columnIndex, InputStream x) voidupdateAsciiStream(int index, InputStream x, int length) voidupdateAsciiStream(int columnIndex, InputStream x, long length) voidupdateAsciiStream(String columnLabel, InputStream x) voidupdateAsciiStream(String columnName, InputStream x, int length) voidupdateAsciiStream(String columnName, InputStream streamValue, long length) voidupdateBigDecimal(int index, BigDecimal x) voidupdateBigDecimal(int index, BigDecimal x, Integer precision, Integer scale) Updates the designated column with ajava.math.BigDecimalvalue.voidupdateBigDecimal(int index, BigDecimal x, Integer precision, Integer scale, boolean forceEncrypt) Updates the designated column with ajava.math.BigDecimalvalue.voidupdateBigDecimal(String columnName, BigDecimal x) voidupdateBigDecimal(String columnName, BigDecimal x, boolean forceEncrypt) Updates the designated column with ajava.sql.BigDecimalvalue.voidupdateBigDecimal(String columnName, BigDecimal x, Integer precision, Integer scale) Updates the designated column with ajava.sql.BigDecimalvalue.voidupdateBigDecimal(String columnName, BigDecimal x, Integer precision, Integer scale, boolean forceEncrypt) Updates the designated column with ajava.sql.BigDecimalvalue.voidupdateBinaryStream(int columnIndex, InputStream x) voidupdateBinaryStream(int columnIndex, InputStream streamValue, int length) voidupdateBinaryStream(int columnIndex, InputStream x, long length) voidupdateBinaryStream(String columnLabel, InputStream x) voidupdateBinaryStream(String columnName, InputStream streamValue, int length) voidupdateBinaryStream(String columnLabel, InputStream x, long length) voidupdateBlob(int columnIndex, InputStream inputStream) voidupdateBlob(int columnIndex, InputStream inputStream, long length) voidupdateBlob(int columnIndex, Blob blobValue) voidupdateBlob(String columnLabel, InputStream inputStream) voidupdateBlob(String columnLabel, InputStream inputStream, long length) voidupdateBlob(String columnName, Blob blobValue) voidupdateBoolean(int index, boolean x) voidupdateBoolean(int index, boolean x, boolean forceEncrypt) Updates the designated column with abooleanvalue.voidupdateBoolean(String columnName, boolean x) voidupdateBoolean(String columnName, boolean x, boolean forceEncrypt) Updates the designated column with abooleanvalue.voidupdateByte(int index, byte x) voidupdateByte(int index, byte x, boolean forceEncrypt) Updates the designated column with abytevalue.voidupdateByte(String columnName, byte x) voidupdateByte(String columnName, byte x, boolean forceEncrypt) Updates the designated column with abytevalue.voidupdateBytes(int index, byte[] x) voidupdateBytes(int index, byte[] x, boolean forceEncrypt) Updates the designated column with abytearray value.voidupdateBytes(String columnName, byte[] x) voidupdateBytes(String columnName, byte[] x, boolean forceEncrypt) Updates the designated column with a byte array value.voidupdateCharacterStream(int columnIndex, Reader x) voidupdateCharacterStream(int columnIndex, Reader readerValue, int length) voidupdateCharacterStream(int columnIndex, Reader x, long length) voidupdateCharacterStream(String columnLabel, Reader reader) voidupdateCharacterStream(String columnName, Reader readerValue, int length) voidupdateCharacterStream(String columnLabel, Reader reader, long length) voidupdateClob(int columnIndex, Reader reader) voidupdateClob(int columnIndex, Reader reader, long length) voidupdateClob(int columnIndex, Clob clobValue) voidupdateClob(String columnLabel, Reader reader) voidupdateClob(String columnLabel, Reader reader, long length) voidupdateClob(String columnName, Clob clobValue) voidupdateDate(int index, Date x) voidupdateDate(int index, Date x, boolean forceEncrypt) Updates the designated column with ajava.sql.Datevalue.voidupdateDate(String columnName, Date x) voidupdateDate(String columnName, Date x, boolean forceEncrypt) Updates the designated column with ajava.sql.Datevalue.voidupdateDateTime(int index, Timestamp x) Updates the designated column with ajava.sql.Timestampvalue.voidupdateDateTime(int index, Timestamp x, Integer scale) Updates the designated column with ajava.sql.Timestampvalue.voidupdateDateTime(int index, Timestamp x, Integer scale, boolean forceEncrypt) Updates the designated column with ajava.sql.Timestampvalue.voidupdateDateTime(String columnName, Timestamp x) Updates the designated column with ajava.sql.Timestampvalue.voidupdateDateTime(String columnName, Timestamp x, int scale) Updates the designated column with ajava.sql.Timestampvalue.voidupdateDateTime(String columnName, Timestamp x, int scale, boolean forceEncrypt) Updates the designated column with ajava.sql.Timestampvalue.voidupdateDateTimeOffset(int index, DateTimeOffset x) Updates the value of the column specified to the DateTimeOffset Class value, given a zero-based column ordinal.voidupdateDateTimeOffset(int index, DateTimeOffset x, Integer scale) Updates the value of the column specified to the DateTimeOffset Class value, given a zero-based column ordinal.voidupdateDateTimeOffset(int index, DateTimeOffset x, Integer scale, boolean forceEncrypt) Updates the value of the column specified to the DateTimeOffset Class value, given a zero-based column ordinal.voidupdateDateTimeOffset(String columnName, DateTimeOffset x) Updates the value of the column specified to the DateTimeOffset Class value, given a column name.voidupdateDateTimeOffset(String columnName, DateTimeOffset x, int scale) Updates the value of the column specified to the DateTimeOffset Class value, given a column name.voidupdateDateTimeOffset(String columnName, DateTimeOffset x, int scale, boolean forceEncrypt) Updates the value of the column specified to the DateTimeOffset Class value, given a column name.voidupdateDouble(int index, double x) voidupdateDouble(int index, double x, boolean forceEncrypt) Updates the designated column with adoublevalue.voidupdateDouble(String columnName, double x) voidupdateDouble(String columnName, double x, boolean forceEncrypt) Updates the designated column with adoublevalue.voidupdateFloat(int index, float x) voidupdateFloat(int index, float x, boolean forceEncrypt) Updates the designated column with afloatvalue.voidupdateFloat(String columnName, float x) voidupdateFloat(String columnName, float x, boolean forceEncrypt) Updates the designated column with afloatvalue.voidupdateInt(int index, int x) voidupdateInt(int index, int x, boolean forceEncrypt) Updates the designated column with anintvalue.voidvoidUpdates the designated column with anintvalue.voidupdateLong(int index, long x) voidupdateLong(int index, long x, boolean forceEncrypt) Updates the designated column with alongvalue.voidupdateLong(String columnName, long x) voidupdateLong(String columnName, long x, boolean forceEncrypt) Updates the designated column with alongvalue.voidupdateMoney(int index, BigDecimal x) Updates the designated column with amoneyvalue.voidupdateMoney(int index, BigDecimal x, boolean forceEncrypt) Updates the designated column with amoneyvalue.voidupdateMoney(String columnName, BigDecimal x) Updates the designated column with amoneyvalue.voidupdateMoney(String columnName, BigDecimal x, boolean forceEncrypt) Updates the designated column with amoneyvalue.voidupdateNCharacterStream(int columnIndex, Reader x) voidupdateNCharacterStream(int columnIndex, Reader x, long length) voidupdateNCharacterStream(String columnLabel, Reader reader) voidupdateNCharacterStream(String columnLabel, Reader reader, long length) voidupdateNClob(int columnIndex, Reader reader) voidupdateNClob(int columnIndex, Reader reader, long length) voidupdateNClob(int columnIndex, NClob nClob) voidupdateNClob(String columnLabel, Reader reader) voidupdateNClob(String columnLabel, Reader reader, long length) voidupdateNClob(String columnLabel, NClob nClob) voidupdateNString(int columnIndex, String nString) voidupdateNString(int columnIndex, String nString, boolean forceEncrypt) Updates the designated column with aStringvalue.voidupdateNString(String columnLabel, String nString) voidupdateNString(String columnLabel, String nString, boolean forceEncrypt) Updates the designated column with aStringvalue.voidupdateNull(int index) voidupdateNull(String columnName) voidupdateObject(int index, Object obj) voidupdateObject(int index, Object x, int scale) voidupdateObject(int index, Object x, int precision, int scale) Updates the designated column with anObjectvalue.voidupdateObject(int index, Object x, int precision, int scale, boolean forceEncrypt) Updates the designated column with anObjectvalue.voidupdateObject(int index, Object obj, SQLType targetSqlType) voidupdateObject(int index, Object obj, SQLType targetSqlType, int scale) voidupdateObject(int index, Object obj, SQLType targetSqlType, int scale, boolean forceEncrypt) Updates the designated column with an Object value.voidupdateObject(String columnName, Object x) voidupdateObject(String columnName, Object x, int scale) voidupdateObject(String columnName, Object x, int precision, int scale) Updates the designated column with anObjectvalue.voidupdateObject(String columnName, Object x, int precision, int scale, boolean forceEncrypt) Updates the designated column with anObjectvalue.voidupdateObject(String columnName, Object obj, SQLType targetSqlType) voidupdateObject(String columnName, Object obj, SQLType targetSqlType, int scale) voidupdateObject(String columnName, Object obj, SQLType targetSqlType, int scale, boolean forceEncrypt) Updates the designated column with an Object value.voidvoidvoidvoidupdateRowId(int columnIndex, RowId x) voidupdateRowId(String columnLabel, RowId x) voidupdateShort(int index, short x) voidupdateShort(int index, short x, boolean forceEncrypt) Updates the designated column with ashortvalue.voidupdateShort(String columnName, short x) voidupdateShort(String columnName, short x, boolean forceEncrypt) Updates the designated column with ashortvalue.voidupdateSmallDateTime(int index, Timestamp x) Updates the designated column with ajava.sql.Timestampvalue.voidupdateSmallDateTime(int index, Timestamp x, Integer scale) Updates the designated column with ajava.sql.Timestampvalue.voidupdateSmallDateTime(int index, Timestamp x, Integer scale, boolean forceEncrypt) Updates the designated column with ajava.sql.Timestampvalue.voidupdateSmallDateTime(String columnName, Timestamp x) Updates the designated column with ajava.sql.Timestampvalue.voidupdateSmallDateTime(String columnName, Timestamp x, int scale) Updates the designated column with ajava.sql.Timestampvalue.voidupdateSmallDateTime(String columnName, Timestamp x, int scale, boolean forceEncrypt) Updates the designated column with ajava.sql.Timestampvalue.voidupdateSmallMoney(int index, BigDecimal x) Updates the designated column with asmallmoneyvalue.voidupdateSmallMoney(int index, BigDecimal x, boolean forceEncrypt) Updates the designated column with asmallmoneyvalue.voidupdateSmallMoney(String columnName, BigDecimal x) Updates the designated column with asmallmoneyvalue.voidupdateSmallMoney(String columnName, BigDecimal x, boolean forceEncrypt) Updates the designated column with asmallmoneyvalue.voidupdateSQLXML(int columnIndex, SQLXML xmlObject) voidupdateSQLXML(String columnLabel, SQLXML x) voidupdateString(int columnIndex, String stringValue) voidupdateString(int columnIndex, String stringValue, boolean forceEncrypt) Updates the designated column with aStringvalue.voidupdateString(String columnName, String x) voidupdateString(String columnName, String x, boolean forceEncrypt) Updates the designated column with aStringvalue.voidupdateTime(int index, Time x) voidupdateTime(int index, Time x, Integer scale) Updates the designated column with ajava.sql.Timevalue.voidupdateTime(int index, Time x, Integer scale, boolean forceEncrypt) Updates the designated column with ajava.sql.Timevalue.voidupdateTime(String columnName, Time x) voidupdateTime(String columnName, Time x, int scale) Updates the designated column with ajava.sql.Timevalue.voidupdateTime(String columnName, Time x, int scale, boolean forceEncrypt) Updates the designated column with ajava.sql.Timevalue.voidupdateTimestamp(int index, Timestamp x) voidupdateTimestamp(int index, Timestamp x, int scale) Updates the designated column with ajava.sql.Timestampvalue.voidupdateTimestamp(int index, Timestamp x, int scale, boolean forceEncrypt) Updates the designated column with ajava.sql.Timestampvalue.voidupdateTimestamp(String columnName, Timestamp x) voidupdateTimestamp(String columnName, Timestamp x, int scale) Updates the designated column with ajava.sql.Timestampvalue.voidupdateTimestamp(String columnName, Timestamp x, int scale, boolean forceEncrypt) Updates the designated column with ajava.sql.Timestampvalue.voidupdateUniqueIdentifier(int index, String x) Updates the designated column with aStringvalue.voidupdateUniqueIdentifier(int index, String x, boolean forceEncrypt) Updates the designated column with aStringvalue.voidupdateUniqueIdentifier(String columnName, String x) Updates the designated column with aStringvalue.voidupdateUniqueIdentifier(String columnName, String x, boolean forceEncrypt) Updates the designated column with aStringvalue.booleanwasNull()
-
Method Details
-
toString
-
getServerCursorId
protected int getServerCursorId()Returns the server cursor id- Returns:
- server cursor id
-
getSensitivityClassification
Description copied from interface:ISQLServerResultSetReturns the Data Classification information for the current ResultSet For SQL Servers that do not support Data Classification or results that do not fetch any classified columns, this data can be null.- Specified by:
getSensitivityClassificationin interfaceISQLServerResultSet- Returns:
- SensitivityClassification
-
isWrapperFor
- Specified by:
isWrapperForin interfaceWrapper- Throws:
SQLException
-
unwrap
- Specified by:
unwrapin interfaceWrapper- Throws:
SQLException
-
isClosed
- Specified by:
isClosedin interfaceResultSet- Throws:
SQLException
-
isForwardOnly
protected boolean isForwardOnly()Check if type is ForwardOnly- Returns:
- if type is ForwardOnly
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceResultSet- Throws:
SQLServerException
-
findColumn
Finds a column index given a column name.- Specified by:
findColumnin interfaceResultSet- Parameters:
userProvidedColumnName- the name of the column- Returns:
- the column index
- Throws:
SQLServerException- If any errors occur.
-
clearWarnings
Clears result set warnings.- Specified by:
clearWarningsin interfaceResultSet- Throws:
SQLServerException- when an error occurs
-
relative
- Specified by:
relativein interfaceResultSet- Throws:
SQLException
-
next
Moves the cursor to the first row of this ResultSet object initially, then subsequent calls move the cursor to the second row, the third row, and so on.- Specified by:
nextin interfaceResultSet- Returns:
- false when there are no more rows to read
- Throws:
SQLServerException
-
wasNull
- Specified by:
wasNullin interfaceResultSet- Throws:
SQLServerException
-
isBeforeFirst
Returns if the cursor is before the first row in this result set.- Specified by:
isBeforeFirstin interfaceResultSet- Returns:
- true if the cursor is before the first row in this result set, returns false otherwise or if the result set contains no rows.
- Throws:
SQLException
-
isAfterLast
- Specified by:
isAfterLastin interfaceResultSet- Throws:
SQLException
-
isFirst
Returns whether the cursor is on the first row of thisResultSetobject. This method should be called only on ResultSet objects that are scrollable: TYPE_SCROLL_SENSITIVE, TYPE_SCROLL_INSENSITIVE, TYPE_SS_SCROLL_STATIC, TYPE_SS_SCROLL_KEYSET, TYPE_SS_SCROLL_DYNAMIC.Note:Support for the
isFirstmethod is optional forResultSets with a result set type ofTYPE_FORWARD_ONLY- Specified by:
isFirstin interfaceResultSet- Returns:
trueif the cursor is on the first row;falseotherwise- Throws:
SQLException- if a database access error occurs or this method is called on a closed result set- Since:
- 1.2
-
isLast
Returns whether the cursor is on the last row of thisResultSetobject. Note: Calling the methodisLastmay be expensive because the JDBC driver might need to fetch ahead one row in order to determine whether the current row is the last row in the result set.This method should be called only on ResultSet objects that are scrollable: TYPE_SCROLL_SENSITIVE, TYPE_SCROLL_INSENSITIVE, TYPE_SS_SCROLL_STATIC, TYPE_SS_SCROLL_KEYSET, TYPE_SS_SCROLL_DYNAMIC.
Note: Support for theisLastmethod is optional forResultSets with a result set type ofTYPE_FORWARD_ONLY- Specified by:
isLastin interfaceResultSet- Returns:
trueif the cursor is on the last row;falseotherwise- Throws:
SQLException- if a database access error occurs or this method is called on a closed result set- Since:
- 1.2
-
beforeFirst
- Specified by:
beforeFirstin interfaceResultSet- Throws:
SQLException
-
afterLast
- Specified by:
afterLastin interfaceResultSet- Throws:
SQLException
-
first
Moves the cursor to the first row in thisResultSetobject.This method should be called only on ResultSet objects that are scrollable: TYPE_SCROLL_SENSITIVE, TYPE_SCROLL_INSENSITIVE, TYPE_SS_SCROLL_STATIC, TYPE_SS_SCROLL_KEYSET, TYPE_SS_SCROLL_DYNAMIC.
- Specified by:
firstin interfaceResultSet- Returns:
trueif the cursor is on a valid row;falseif there are no rows in the result set- Throws:
SQLException- if a database access error occurs; this method is called on a closed result set or the result set type isTYPE_FORWARD_ONLY- Since:
- 1.2
-
last
Moves the cursor to the last row in thisResultSetobject. This method should be called only on ResultSet objects that are scrollable: TYPE_SCROLL_SENSITIVE, TYPE_SCROLL_INSENSITIVE, TYPE_SS_SCROLL_STATIC, TYPE_SS_SCROLL_KEYSET, TYPE_SS_SCROLL_DYNAMIC.- Specified by:
lastin interfaceResultSet- Returns:
trueif the cursor is on a valid row;falseif there are no rows in the result set- Throws:
SQLException- if a database access error occurs; this method is called on a closed result set or the result set type isTYPE_FORWARD_ONLY- Since:
- 1.2
-
getRow
- Specified by:
getRowin interfaceResultSet- Throws:
SQLException
-
absolute
Moves the cursor to the given row number in thisResultSetobject.This method should be called only on ResultSet objects that are scrollable: TYPE_SCROLL_SENSITIVE, TYPE_SCROLL_INSENSITIVE, TYPE_SS_SCROLL_STATIC, TYPE_SS_SCROLL_KEYSET, TYPE_SS_SCROLL_DYNAMIC.
If the row number is positive, the cursor moves to the given row number with respect to the beginning of the result set. The first row is row 1, the second is row 2, and so on.
If the given row number is negative, the cursor moves to an absolute row position with respect to the end of the result set. For example, calling the method
absolute(-1)positions the cursor on the last row; calling the methodabsolute(-2)moves the cursor to the next-to-last row, and so on.If the row number specified is zero, the cursor is moved to before the first row.
An attempt to position the cursor beyond the first/last row in the result set leaves the cursor before the first row or after the last row.
Note: Calling
absolute(1)is the same as callingfirst(). Callingabsolute(-1)is the same as callinglast().- Specified by:
absolutein interfaceResultSet- Parameters:
row- the number of the row to which the cursor should move. A value of zero indicates that the cursor will be positioned before the first row; a positive number indicates the row number counting from the beginning of the result set; a negative number indicates the row number counting from the end of the result set- Returns:
trueif the cursor is moved to a position in thisResultSetobject;falseif the cursor is before the first row or after the last row- Throws:
SQLException- if a database access error occurs; this method is called on a closed result set or the result set type isTYPE_FORWARD_ONLY- Since:
- 1.2
-
previous
Moves the cursor to the previous row in thisResultSetobject. This method should be called only on ResultSet objects that are scrollable: TYPE_SCROLL_SENSITIVE, TYPE_SCROLL_INSENSITIVE, TYPE_SS_SCROLL_STATIC, TYPE_SS_SCROLL_KEYSET, TYPE_SS_SCROLL_DYNAMIC.- Specified by:
previousin interfaceResultSet- Returns:
trueif the cursor is now positioned on a valid row;falseif the cursor is positioned before the first row- Throws:
SQLException- if a database access error occurs; this method is called on a closed result set or the result set type isTYPE_FORWARD_ONLY- Since:
- 1.2
-
getWarnings
- Specified by:
getWarningsin interfaceResultSet- Throws:
SQLException
-
setFetchDirection
- Specified by:
setFetchDirectionin interfaceResultSet- Throws:
SQLException
-
getFetchDirection
- Specified by:
getFetchDirectionin interfaceResultSet- Throws:
SQLException
-
setFetchSize
- Specified by:
setFetchSizein interfaceResultSet- Throws:
SQLServerException
-
getFetchSize
- Specified by:
getFetchSizein interfaceResultSet- Throws:
SQLException
-
getType
- Specified by:
getTypein interfaceResultSet- Throws:
SQLServerException
-
getConcurrency
- Specified by:
getConcurrencyin interfaceResultSet- Throws:
SQLServerException
-
getAsciiStream
- Specified by:
getAsciiStreamin interfaceResultSet- Throws:
SQLServerException
-
getAsciiStream
- Specified by:
getAsciiStreamin interfaceResultSet- Throws:
SQLServerException
-
getBigDecimal
Deprecated.- Specified by:
getBigDecimalin interfaceResultSet- Throws:
SQLServerException
-
getBigDecimal
Deprecated.- Specified by:
getBigDecimalin interfaceResultSet- Throws:
SQLServerException
-
getBinaryStream
- Specified by:
getBinaryStreamin interfaceResultSet- Throws:
SQLServerException
-
getBinaryStream
- Specified by:
getBinaryStreamin interfaceResultSet- Throws:
SQLServerException
-
getBoolean
- Specified by:
getBooleanin interfaceResultSet- Throws:
SQLServerException
-
getBoolean
- Specified by:
getBooleanin interfaceResultSet- Throws:
SQLServerException
-
getByte
- Specified by:
getBytein interfaceResultSet- Throws:
SQLServerException
-
getByte
- Specified by:
getBytein interfaceResultSet- Throws:
SQLServerException
-
getBytes
- Specified by:
getBytesin interfaceResultSet- Throws:
SQLServerException
-
getBytes
- Specified by:
getBytesin interfaceResultSet- Throws:
SQLServerException
-
getDate
- Specified by:
getDatein interfaceResultSet- Throws:
SQLServerException
-
getDate
- Specified by:
getDatein interfaceResultSet- Throws:
SQLServerException
-
getDate
- Specified by:
getDatein interfaceResultSet- Throws:
SQLServerException
-
getDate
- Specified by:
getDatein interfaceResultSet- Throws:
SQLServerException
-
getDouble
- Specified by:
getDoublein interfaceResultSet- Throws:
SQLServerException
-
getDouble
- Specified by:
getDoublein interfaceResultSet- Throws:
SQLServerException
-
getFloat
- Specified by:
getFloatin interfaceResultSet- Throws:
SQLServerException
-
getFloat
- Specified by:
getFloatin interfaceResultSet- Throws:
SQLServerException
-
getGeometry
Description copied from interface:ISQLServerResultSetReturns the value of the designated column in the current row of this ResultSet object as a com.microsoft.sqlserver.jdbc.Geometry object in the Java programming language.- Specified by:
getGeometryin interfaceISQLServerResultSet- Parameters:
columnIndex- 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
-
getGeometry
Description copied from interface:ISQLServerResultSetReturns the value of the designated column in the current row of this ResultSet object as a com.microsoft.sqlserver.jdbc.Geometry object in the Java programming language.- Specified by:
getGeometryin interfaceISQLServerResultSet- Parameters:
columnName- 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
-
getGeography
Description copied from interface:ISQLServerResultSetReturns the value of the designated column in the current row of this ResultSet object as a com.microsoft.sqlserver.jdbc.Geography object in the Java programming language.- Specified by:
getGeographyin interfaceISQLServerResultSet- Parameters:
columnIndex- 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
-
getGeography
Description copied from interface:ISQLServerResultSetReturns the value of the designated column in the current row of this ResultSet object as a com.microsoft.sqlserver.jdbc.Geography object in the Java programming language.- Specified by:
getGeographyin interfaceISQLServerResultSet- Parameters:
columnName- 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
-
getInt
- Specified by:
getIntin interfaceResultSet- Throws:
SQLServerException
-
getInt
- Specified by:
getIntin interfaceResultSet- Throws:
SQLServerException
-
getLong
- Specified by:
getLongin interfaceResultSet- Throws:
SQLServerException
-
getLong
- Specified by:
getLongin interfaceResultSet- Throws:
SQLServerException
-
getMetaData
- Specified by:
getMetaDatain interfaceResultSet- Throws:
SQLServerException
-
getObject
- Specified by:
getObjectin interfaceResultSet- Throws:
SQLServerException
-
getObject
- Specified by:
getObjectin interfaceResultSet- Throws:
SQLException
-
getObject
- Specified by:
getObjectin interfaceResultSet- Throws:
SQLServerException
-
getObject
- Specified by:
getObjectin interfaceResultSet- Throws:
SQLException
-
getShort
- Specified by:
getShortin interfaceResultSet- Throws:
SQLServerException
-
getShort
- Specified by:
getShortin interfaceResultSet- Throws:
SQLServerException
-
getString
- Specified by:
getStringin interfaceResultSet- Throws:
SQLServerException
-
getString
- Specified by:
getStringin interfaceResultSet- Throws:
SQLServerException
-
getNString
- Specified by:
getNStringin interfaceResultSet- Throws:
SQLException
-
getNString
- Specified by:
getNStringin interfaceResultSet- Throws:
SQLException
-
getUniqueIdentifier
Description copied from interface:ISQLServerResultSetReturns the value of the designated column in the current row of this ResultSet object as a String object in the Java programming language.- Specified by:
getUniqueIdentifierin interfaceISQLServerResultSet- Parameters:
columnIndex- 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
-
getUniqueIdentifier
Description copied from interface:ISQLServerResultSetReturns the value of the designated column in the current row of this ResultSet object as a String object in the Java programming language.- Specified by:
getUniqueIdentifierin interfaceISQLServerResultSet- Parameters:
columnLabel- 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
-
getTime
- Specified by:
getTimein interfaceResultSet- Throws:
SQLServerException
-
getTime
- Specified by:
getTimein interfaceResultSet- Throws:
SQLServerException
-
getTime
- Specified by:
getTimein interfaceResultSet- Throws:
SQLServerException
-
getTime
- Specified by:
getTimein interfaceResultSet- Throws:
SQLServerException
-
getTimestamp
- Specified by:
getTimestampin interfaceResultSet- Throws:
SQLServerException
-
getTimestamp
- Specified by:
getTimestampin interfaceResultSet- Throws:
SQLServerException
-
getTimestamp
- Specified by:
getTimestampin interfaceResultSet- Throws:
SQLServerException
-
getTimestamp
- Specified by:
getTimestampin interfaceResultSet- Throws:
SQLServerException
-
getDateTime
Description copied from interface:ISQLServerResultSetReturns 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 interfaceISQLServerResultSet- Parameters:
columnIndex- 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:ISQLServerResultSetReturns 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 interfaceISQLServerResultSet- Parameters:
columnName- is the name of the column- Returns:
- the column value; if the value is SQL NULL, the value returned is null
- Throws:
SQLServerException- If any errors occur.
-
getDateTime
Description copied from interface:ISQLServerResultSetReturns 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 interfaceISQLServerResultSet- Parameters:
columnIndex- 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- If any errors occur.
-
getDateTime
Description copied from interface:ISQLServerResultSetReturns 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 interfaceISQLServerResultSet- Parameters:
colName- 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 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- If any errors occur.
-
getSmallDateTime
Description copied from interface:ISQLServerResultSetReturns 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 interfaceISQLServerResultSet- Parameters:
columnIndex- 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
Description copied from interface:ISQLServerResultSetReturns 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 interfaceISQLServerResultSet- Parameters:
columnName- is the name of a column.- Returns:
- the column value; if the value is SQL NULL, the value returned is null
- Throws:
SQLServerException- If any errors occur.
-
getSmallDateTime
Description copied from interface:ISQLServerResultSetReturns 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 interfaceISQLServerResultSet- Parameters:
columnIndex- 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- If any errors occur.
-
getSmallDateTime
Description copied from interface:ISQLServerResultSetReturns 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 interfaceISQLServerResultSet- Parameters:
colName- 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- If any errors occur.
-
getDateTimeOffset
Description copied from interface:ISQLServerResultSetReturns the value of the designated column as a microsoft.sql.DateTimeOffset object, given a zero-based column ordinal.- Specified by:
getDateTimeOffsetin interfaceISQLServerResultSet- Parameters:
columnIndex- The zero-based ordinal of a column.- Returns:
- A DateTimeOffset Class object.
- Throws:
SQLServerException- when an error occurs
-
getDateTimeOffset
Description copied from interface:ISQLServerResultSetReturns the value of the column specified as a microsoft.sql.DateTimeOffset object, given a column name.- Specified by:
getDateTimeOffsetin interfaceISQLServerResultSet- Parameters:
columnName- The name of a column.- Returns:
- A DateTimeOffset Class object.
- Throws:
SQLServerException- when an error occurs
-
getUnicodeStream
Deprecated.- Specified by:
getUnicodeStreamin interfaceResultSet- Throws:
SQLException
-
getUnicodeStream
Deprecated.- Specified by:
getUnicodeStreamin interfaceResultSet- Throws:
SQLException
-
getObject
- Specified by:
getObjectin interfaceResultSet- Throws:
SQLException
-
getRef
- Specified by:
getRefin interfaceResultSet- Throws:
SQLException
-
getBlob
- Specified by:
getBlobin interfaceResultSet- Throws:
SQLServerException
-
getBlob
- Specified by:
getBlobin interfaceResultSet- Throws:
SQLServerException
-
getClob
- Specified by:
getClobin interfaceResultSet- Throws:
SQLServerException
-
getClob
- Specified by:
getClobin interfaceResultSet- Throws:
SQLServerException
-
getNClob
- Specified by:
getNClobin interfaceResultSet- Throws:
SQLException
-
getNClob
- Specified by:
getNClobin interfaceResultSet- Throws:
SQLException
-
getArray
- Specified by:
getArrayin interfaceResultSet- Throws:
SQLException
-
getObject
- Specified by:
getObjectin interfaceResultSet- Throws:
SQLException
-
getRef
- Specified by:
getRefin interfaceResultSet- Throws:
SQLException
-
getArray
- Specified by:
getArrayin interfaceResultSet- Throws:
SQLException
-
getCursorName
- Specified by:
getCursorNamein interfaceResultSet- Throws:
SQLException
-
getCharacterStream
- Specified by:
getCharacterStreamin interfaceResultSet- Throws:
SQLException
-
getCharacterStream
- Specified by:
getCharacterStreamin interfaceResultSet- Throws:
SQLException
-
getNCharacterStream
- Specified by:
getNCharacterStreamin interfaceResultSet- Throws:
SQLException
-
getNCharacterStream
- Specified by:
getNCharacterStreamin interfaceResultSet- Throws:
SQLException
-
getBigDecimal
- Specified by:
getBigDecimalin interfaceResultSet- Throws:
SQLException
-
getBigDecimal
- Specified by:
getBigDecimalin interfaceResultSet- Throws:
SQLException
-
getMoney
Description copied from interface:ISQLServerResultSetReturns the value of the column specified as a java.math.BigDecimal object.- Specified by:
getMoneyin interfaceISQLServerResultSet- Parameters:
columnIndex- 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:ISQLServerResultSetReturns the value of the column specified as a java.math.BigDecimal object.- Specified by:
getMoneyin interfaceISQLServerResultSet- Parameters:
columnName- is the name of a column.- Returns:
- the column value; if the value is SQL NULL, the value returned is null.
- Throws:
SQLServerException- If any errors occur.
-
getSmallMoney
Description copied from interface:ISQLServerResultSetReturns the value of the column specified as a java.math.BigDecimal object.- Specified by:
getSmallMoneyin interfaceISQLServerResultSet- Parameters:
columnIndex- The zero-based ordinal of a column.- Returns:
- the column value; if the value is SQL NULL, the value returned is null
- Throws:
SQLServerException- If any errors occur.
-
getSmallMoney
Description copied from interface:ISQLServerResultSetReturns the value of the column specified as a java.math.BigDecimal object.- Specified by:
getSmallMoneyin interfaceISQLServerResultSet- Parameters:
columnName- is the name of a column.- Returns:
- the column value; if the value is SQL NULL, the value returned is null.
- Throws:
SQLServerException- If any errors occur.
-
getRowId
- Specified by:
getRowIdin interfaceResultSet- Throws:
SQLException
-
getRowId
- Specified by:
getRowIdin interfaceResultSet- Throws:
SQLException
-
getSQLXML
- Specified by:
getSQLXMLin interfaceResultSet- Throws:
SQLException
-
getSQLXML
- Specified by:
getSQLXMLin interfaceResultSet- Throws:
SQLException
-
rowUpdated
- Specified by:
rowUpdatedin interfaceResultSet- Throws:
SQLServerException
-
rowInserted
- Specified by:
rowInsertedin interfaceResultSet- Throws:
SQLServerException
-
rowDeleted
- Specified by:
rowDeletedin interfaceResultSet- Throws:
SQLServerException
-
updateNull
- Specified by:
updateNullin interfaceResultSet- Throws:
SQLServerException
-
updateBoolean
- Specified by:
updateBooleanin interfaceResultSet- Throws:
SQLException
-
updateBoolean
Description copied from interface:ISQLServerResultSetUpdates the designated column with abooleanvalue. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateBooleanin interfaceISQLServerResultSet- Parameters:
index- the first column is 1, the second is 2, ...x- the new column 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- when an error occurs
-
updateByte
- Specified by:
updateBytein interfaceResultSet- Throws:
SQLException
-
updateByte
Description copied from interface:ISQLServerResultSetUpdates the designated column with abytevalue. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateBytein interfaceISQLServerResultSet- Parameters:
index- the first column is 1, the second is 2, ...x- the new column 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- when an error occurs
-
updateShort
- Specified by:
updateShortin interfaceResultSet- Throws:
SQLException
-
updateShort
Description copied from interface:ISQLServerResultSetUpdates the designated column with ashortvalue. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateShortin interfaceISQLServerResultSet- Parameters:
index- the first column is 1, the second is 2, ...x- the new column 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- when an error occurs
-
updateInt
- Specified by:
updateIntin interfaceResultSet- Throws:
SQLException
-
updateInt
Description copied from interface:ISQLServerResultSetUpdates the designated column with anintvalue. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateIntin interfaceISQLServerResultSet- Parameters:
index- the first column is 1, the second is 2, ...x- the new column 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- when an error occurs
-
updateLong
- Specified by:
updateLongin interfaceResultSet- Throws:
SQLException
-
updateLong
Description copied from interface:ISQLServerResultSetUpdates the designated column with alongvalue. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateLongin interfaceISQLServerResultSet- Parameters:
index- the first column is 1, the second is 2, ...x- the new column 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- when an error occurs
-
updateFloat
- Specified by:
updateFloatin interfaceResultSet- Throws:
SQLException
-
updateFloat
Description copied from interface:ISQLServerResultSetUpdates the designated column with afloatvalue. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateFloatin interfaceISQLServerResultSet- Parameters:
index- the first column is 1, the second is 2, ...x- the new column 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- when an error occurs
-
updateDouble
- Specified by:
updateDoublein interfaceResultSet- Throws:
SQLException
-
updateDouble
Description copied from interface:ISQLServerResultSetUpdates the designated column with adoublevalue. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateDoublein interfaceISQLServerResultSet- Parameters:
index- the first column is 1, the second is 2, ...x- the new column 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- when an error occurs
-
updateMoney
Description copied from interface:ISQLServerResultSetUpdates the designated column with amoneyvalue. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateMoneyin interfaceISQLServerResultSet- Parameters:
index- the first column is 1, the second is 2, ...x- the new column value- Throws:
SQLServerException- when an error occurs
-
updateMoney
Description copied from interface:ISQLServerResultSetUpdates the designated column with amoneyvalue. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateMoneyin interfaceISQLServerResultSet- Parameters:
index- the first column is 1, the second is 2, ...x- the new column 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- when an error occurs
-
updateMoney
Description copied from interface:ISQLServerResultSetUpdates the designated column with amoneyvalue. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateMoneyin interfaceISQLServerResultSet- Parameters:
columnName- the column namex- the new column value- Throws:
SQLServerException- If any errors occur.
-
updateMoney
public void updateMoney(String columnName, BigDecimal x, boolean forceEncrypt) throws SQLServerException Description copied from interface:ISQLServerResultSetUpdates the designated column with amoneyvalue. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateMoneyin interfaceISQLServerResultSet- Parameters:
columnName- the column namex- the new column 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 any errors occur.
-
updateSmallMoney
Description copied from interface:ISQLServerResultSetUpdates the designated column with asmallmoneyvalue. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateSmallMoneyin interfaceISQLServerResultSet- Parameters:
index- the first column is 1, the second is 2, ...x- the new column value- Throws:
SQLServerException- when an error occurs
-
updateSmallMoney
public void updateSmallMoney(int index, BigDecimal x, boolean forceEncrypt) throws SQLServerException Description copied from interface:ISQLServerResultSetUpdates the designated column with asmallmoneyvalue. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateSmallMoneyin interfaceISQLServerResultSet- Parameters:
index- the first column is 1, the second is 2, ...x- the new column 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- when an error occurs
-
updateSmallMoney
Description copied from interface:ISQLServerResultSetUpdates the designated column with asmallmoneyvalue. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateSmallMoneyin interfaceISQLServerResultSet- Parameters:
columnName- the column namex- the new column value- Throws:
SQLServerException- If any errors occur.
-
updateSmallMoney
public void updateSmallMoney(String columnName, BigDecimal x, boolean forceEncrypt) throws SQLServerException Description copied from interface:ISQLServerResultSetUpdates the designated column with asmallmoneyvalue. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateSmallMoneyin interfaceISQLServerResultSet- Parameters:
columnName- the column namex- the new column 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 any errors occur.
-
updateBigDecimal
- Specified by:
updateBigDecimalin interfaceResultSet- Throws:
SQLServerException
-
updateBigDecimal
public void updateBigDecimal(int index, BigDecimal x, Integer precision, Integer scale) throws SQLServerException Description copied from interface:ISQLServerResultSetUpdates the designated column with ajava.math.BigDecimalvalue. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateBigDecimalin interfaceISQLServerResultSet- Parameters:
index- the first column is 1, the second is 2, ...x- the new column valueprecision- the precision of the columnscale- the scale of the column- Throws:
SQLServerException- when an error occurs
-
updateBigDecimal
public void updateBigDecimal(int index, BigDecimal x, Integer precision, Integer scale, boolean forceEncrypt) throws SQLServerException Description copied from interface:ISQLServerResultSetUpdates the designated column with ajava.math.BigDecimalvalue. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateBigDecimalin interfaceISQLServerResultSet- Parameters:
index- the first column is 1, the second is 2, ...x- the new column 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- when an error occurs
-
updateString
- Specified by:
updateStringin interfaceResultSet- Throws:
SQLServerException
-
updateString
public void updateString(int columnIndex, String stringValue, boolean forceEncrypt) throws SQLServerException Description copied from interface:ISQLServerResultSetUpdates the designated column with aStringvalue. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateStringin interfaceISQLServerResultSet- Parameters:
columnIndex- the first column is 1, the second is 2, ...stringValue- the new column 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- when an error occurs
-
updateNString
- Specified by:
updateNStringin interfaceResultSet- Throws:
SQLException
-
updateNString
public void updateNString(int columnIndex, String nString, boolean forceEncrypt) throws SQLServerException Description copied from interface:ISQLServerResultSetUpdates the designated column with aStringvalue. It is intended for use when updatingNCHAR,NVARCHARandLONGNVARCHARcolumns. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateNStringin interfaceISQLServerResultSet- Parameters:
columnIndex- the first column is 1, the second 2, ...nString- the value for the column to be updatedforceEncrypt- 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- when an error occurs
-
updateNString
- Specified by:
updateNStringin interfaceResultSet- Throws:
SQLException
-
updateNString
public void updateNString(String columnLabel, String nString, boolean forceEncrypt) throws SQLServerException Description copied from interface:ISQLServerResultSetUpdates the designated column with aStringvalue. It is intended for use when updatingNCHAR,NVARCHARandLONGNVARCHARcolumns. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateNStringin interfaceISQLServerResultSet- Parameters:
columnLabel- 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 columnnString- the value for the column to be updatedforceEncrypt- 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- when an error occurs
-
updateBytes
- Specified by:
updateBytesin interfaceResultSet- Throws:
SQLException
-
updateBytes
Description copied from interface:ISQLServerResultSetUpdates the designated column with abytearray value. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateBytesin interfaceISQLServerResultSet- Parameters:
index- the first column is 1, the second is 2, ...x- the new column 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- when an error occurs
-
updateDate
- Specified by:
updateDatein interfaceResultSet- Throws:
SQLServerException
-
updateDate
Description copied from interface:ISQLServerResultSetUpdates the designated column with ajava.sql.Datevalue. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateDatein interfaceISQLServerResultSet- Parameters:
index- the first column is 1, the second is 2, ...x- the new column 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- when an error occurs
-
updateTime
- Specified by:
updateTimein interfaceResultSet- Throws:
SQLServerException
-
updateTime
Description copied from interface:ISQLServerResultSetUpdates the designated column with ajava.sql.Timevalue. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateTimein interfaceISQLServerResultSet- Parameters:
index- the first column is 1, the second is 2, ...x- the new column valuescale- the scale of the column- Throws:
SQLServerException- when an error occurs
-
updateTime
public void updateTime(int index, Time x, Integer scale, boolean forceEncrypt) throws SQLServerException Description copied from interface:ISQLServerResultSetUpdates the designated column with ajava.sql.Timevalue. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateTimein interfaceISQLServerResultSet- Parameters:
index- the first column is 1, the second is 2, ...x- the new column 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- when an error occurs
-
updateTimestamp
- Specified by:
updateTimestampin interfaceResultSet- Throws:
SQLServerException
-
updateTimestamp
Description copied from interface:ISQLServerResultSetUpdates the designated column with ajava.sql.Timestampvalue. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateTimestampin interfaceISQLServerResultSet- Parameters:
index- the first column is 1, the second is 2, ...x- the new column valuescale- the scale of the column- Throws:
SQLServerException- when an error occurs
-
updateTimestamp
public void updateTimestamp(int index, Timestamp x, int scale, boolean forceEncrypt) throws SQLServerException Description copied from interface:ISQLServerResultSetUpdates the designated column with ajava.sql.Timestampvalue. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateTimestampin interfaceISQLServerResultSet- Parameters:
index- the first column is 1, the second is 2, ...x- the new column 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- when an error occurs
-
updateDateTime
Description copied from interface:ISQLServerResultSetUpdates the designated column with ajava.sql.Timestampvalue. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateDateTimein interfaceISQLServerResultSet- Parameters:
index- the first column is 1, the second is 2, ...x- the new column value- Throws:
SQLServerException- when an error occurs
-
updateDateTime
Description copied from interface:ISQLServerResultSetUpdates the designated column with ajava.sql.Timestampvalue. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateDateTimein interfaceISQLServerResultSet- Parameters:
index- the first column is 1, the second is 2, ...x- the new column valuescale- the scale of the column- Throws:
SQLServerException- when an error occurs
-
updateDateTime
public void updateDateTime(int index, Timestamp x, Integer scale, boolean forceEncrypt) throws SQLServerException Description copied from interface:ISQLServerResultSetUpdates the designated column with ajava.sql.Timestampvalue. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateDateTimein interfaceISQLServerResultSet- Parameters:
index- the first column is 1, the second is 2, ...x- the new column 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- when an error occurs
-
updateSmallDateTime
Description copied from interface:ISQLServerResultSetUpdates the designated column with ajava.sql.Timestampvalue. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateSmallDateTimein interfaceISQLServerResultSet- Parameters:
index- the first column is 1, the second is 2, ...x- the new column value- Throws:
SQLServerException- when an error occurs
-
updateSmallDateTime
Description copied from interface:ISQLServerResultSetUpdates the designated column with ajava.sql.Timestampvalue. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateSmallDateTimein interfaceISQLServerResultSet- Parameters:
index- the first column is 1, the second is 2, ...x- the new column valuescale- the scale of the column- Throws:
SQLServerException- when an error occurs
-
updateSmallDateTime
public void updateSmallDateTime(int index, Timestamp x, Integer scale, boolean forceEncrypt) throws SQLServerException Description copied from interface:ISQLServerResultSetUpdates the designated column with ajava.sql.Timestampvalue. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateSmallDateTimein interfaceISQLServerResultSet- Parameters:
index- the first column is 1, the second is 2, ...x- the new column 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- when an error occurs
-
updateDateTimeOffset
Description copied from interface:ISQLServerResultSetUpdates the value of the column specified to the DateTimeOffset Class value, given a zero-based column ordinal.- Specified by:
updateDateTimeOffsetin interfaceISQLServerResultSet- Parameters:
index- The zero-based ordinal of a column.x- A DateTimeOffset Class object.- Throws:
SQLServerException- when an error occurs
-
updateDateTimeOffset
public void updateDateTimeOffset(int index, DateTimeOffset x, Integer scale) throws SQLServerException Description copied from interface:ISQLServerResultSetUpdates the value of the column specified to the DateTimeOffset Class value, given a zero-based column ordinal.- Specified by:
updateDateTimeOffsetin interfaceISQLServerResultSet- Parameters:
index- The zero-based ordinal of a column.x- A DateTimeOffset Class object.scale- scale of the column- Throws:
SQLServerException- when an error occurs
-
updateDateTimeOffset
public void updateDateTimeOffset(int index, DateTimeOffset x, Integer scale, boolean forceEncrypt) throws SQLServerException Description copied from interface:ISQLServerResultSetUpdates the value of the column specified to the DateTimeOffset Class value, given a zero-based column ordinal.- Specified by:
updateDateTimeOffsetin interfaceISQLServerResultSet- Parameters:
index- The zero-based ordinal of a column.x- A DateTimeOffset Class object.scale- 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- when an error occurs
-
updateUniqueIdentifier
Description copied from interface:ISQLServerResultSetUpdates the designated column with aStringvalue. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateUniqueIdentifierin interfaceISQLServerResultSet- Parameters:
index- The zero-based ordinal of a column.x- the new column value- Throws:
SQLServerException- when an error occurs
-
updateUniqueIdentifier
public void updateUniqueIdentifier(int index, String x, boolean forceEncrypt) throws SQLServerException Description copied from interface:ISQLServerResultSetUpdates the designated column with aStringvalue. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateUniqueIdentifierin interfaceISQLServerResultSet- Parameters:
index- The zero-based ordinal of a column.x- the new column 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- when an error occurs
-
updateAsciiStream
- Specified by:
updateAsciiStreamin interfaceResultSet- Throws:
SQLException
-
updateAsciiStream
- Specified by:
updateAsciiStreamin interfaceResultSet- Throws:
SQLServerException
-
updateAsciiStream
- Specified by:
updateAsciiStreamin interfaceResultSet- Throws:
SQLException
-
updateAsciiStream
- Specified by:
updateAsciiStreamin interfaceResultSet- Throws:
SQLException
-
updateAsciiStream
public void updateAsciiStream(String columnName, InputStream x, int length) throws SQLServerException - Specified by:
updateAsciiStreamin interfaceResultSet- Throws:
SQLServerException
-
updateAsciiStream
public void updateAsciiStream(String columnName, InputStream streamValue, long length) throws SQLException - Specified by:
updateAsciiStreamin interfaceResultSet- Throws:
SQLException
-
updateBinaryStream
- Specified by:
updateBinaryStreamin interfaceResultSet- Throws:
SQLException
-
updateBinaryStream
public void updateBinaryStream(int columnIndex, InputStream streamValue, int length) throws SQLException - Specified by:
updateBinaryStreamin interfaceResultSet- Throws:
SQLException
-
updateBinaryStream
- Specified by:
updateBinaryStreamin interfaceResultSet- Throws:
SQLException
-
updateBinaryStream
- Specified by:
updateBinaryStreamin interfaceResultSet- Throws:
SQLException
-
updateBinaryStream
public void updateBinaryStream(String columnName, InputStream streamValue, int length) throws SQLException - Specified by:
updateBinaryStreamin interfaceResultSet- Throws:
SQLException
-
updateBinaryStream
- Specified by:
updateBinaryStreamin interfaceResultSet- Throws:
SQLException
-
updateCharacterStream
- Specified by:
updateCharacterStreamin interfaceResultSet- Throws:
SQLException
-
updateCharacterStream
public void updateCharacterStream(int columnIndex, Reader readerValue, int length) throws SQLServerException - Specified by:
updateCharacterStreamin interfaceResultSet- Throws:
SQLServerException
-
updateCharacterStream
- Specified by:
updateCharacterStreamin interfaceResultSet- Throws:
SQLException
-
updateCharacterStream
- Specified by:
updateCharacterStreamin interfaceResultSet- Throws:
SQLException
-
updateCharacterStream
public void updateCharacterStream(String columnName, Reader readerValue, int length) throws SQLServerException - Specified by:
updateCharacterStreamin interfaceResultSet- Throws:
SQLServerException
-
updateCharacterStream
public void updateCharacterStream(String columnLabel, Reader reader, long length) throws SQLException - Specified by:
updateCharacterStreamin interfaceResultSet- Throws:
SQLException
-
updateNCharacterStream
- Specified by:
updateNCharacterStreamin interfaceResultSet- Throws:
SQLException
-
updateNCharacterStream
- Specified by:
updateNCharacterStreamin interfaceResultSet- Throws:
SQLException
-
updateNCharacterStream
- Specified by:
updateNCharacterStreamin interfaceResultSet- Throws:
SQLException
-
updateNCharacterStream
public void updateNCharacterStream(String columnLabel, Reader reader, long length) throws SQLException - Specified by:
updateNCharacterStreamin interfaceResultSet- Throws:
SQLException
-
updateObject
- Specified by:
updateObjectin interfaceResultSet- Throws:
SQLServerException
-
updateObject
- Specified by:
updateObjectin interfaceResultSet- Throws:
SQLServerException
-
updateObject
Description copied from interface:ISQLServerResultSetUpdates the designated column with anObjectvalue. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateObjectin interfaceISQLServerResultSet- Parameters:
index- the first column is 1, the second is 2, ...x- the new column valueprecision- the precision of the columnscale- the scale of the column- Throws:
SQLServerException- when an error occurs
-
updateObject
public void updateObject(int index, Object x, int precision, int scale, boolean forceEncrypt) throws SQLServerException Description copied from interface:ISQLServerResultSetUpdates the designated column with anObjectvalue. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateObjectin interfaceISQLServerResultSet- Parameters:
index- the first column is 1, the second is 2, ...x- the new column 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- when an error occurs
-
updateNull
- Specified by:
updateNullin interfaceResultSet- Throws:
SQLServerException
-
updateBoolean
- Specified by:
updateBooleanin interfaceResultSet- Throws:
SQLServerException
-
updateBoolean
public void updateBoolean(String columnName, boolean x, boolean forceEncrypt) throws SQLServerException Description copied from interface:ISQLServerResultSetUpdates the designated column with abooleanvalue. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateBooleanin interfaceISQLServerResultSet- Parameters:
columnName- the name of the columnx- the new column 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- when an error occurs
-
updateByte
- Specified by:
updateBytein interfaceResultSet- Throws:
SQLServerException
-
updateByte
Description copied from interface:ISQLServerResultSetUpdates the designated column with abytevalue. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateBytein interfaceISQLServerResultSet- Parameters:
columnName- the name of the columnx- the new column 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 any errors occur.
-
updateShort
- Specified by:
updateShortin interfaceResultSet- Throws:
SQLServerException
-
updateShort
Description copied from interface:ISQLServerResultSetUpdates the designated column with ashortvalue. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateShortin interfaceISQLServerResultSet- Parameters:
columnName- the name of the columnx- the new column 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 any errors occur.
-
updateInt
- Specified by:
updateIntin interfaceResultSet- Throws:
SQLServerException
-
updateInt
Description copied from interface:ISQLServerResultSetUpdates the designated column with anintvalue. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateIntin interfaceISQLServerResultSet- Parameters:
columnName- is the name of the columnx- the new column 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 any errors occur.
-
updateLong
- Specified by:
updateLongin interfaceResultSet- Throws:
SQLServerException
-
updateLong
Description copied from interface:ISQLServerResultSetUpdates the designated column with alongvalue. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateLongin interfaceISQLServerResultSet- Parameters:
columnName- is the name of the columnx- the new column 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 any errors occur.
-
updateFloat
- Specified by:
updateFloatin interfaceResultSet- Throws:
SQLServerException
-
updateFloat
Description copied from interface:ISQLServerResultSetUpdates the designated column with afloatvalue. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateFloatin interfaceISQLServerResultSet- Parameters:
columnName- is the name of the columnx- the new column 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 any errors occur.
-
updateDouble
- Specified by:
updateDoublein interfaceResultSet- Throws:
SQLServerException
-
updateDouble
public void updateDouble(String columnName, double x, boolean forceEncrypt) throws SQLServerException Description copied from interface:ISQLServerResultSetUpdates the designated column with adoublevalue. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateDoublein interfaceISQLServerResultSet- Parameters:
columnName- is the name of the columnx- the new column 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 any errors occur.
-
updateBigDecimal
- Specified by:
updateBigDecimalin interfaceResultSet- Throws:
SQLServerException
-
updateBigDecimal
public void updateBigDecimal(String columnName, BigDecimal x, boolean forceEncrypt) throws SQLServerException Description copied from interface:ISQLServerResultSetUpdates the designated column with ajava.sql.BigDecimalvalue. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateBigDecimalin interfaceISQLServerResultSet- Parameters:
columnName- is the name of the columnx- the new column 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 any errors occur.
-
updateBigDecimal
public void updateBigDecimal(String columnName, BigDecimal x, Integer precision, Integer scale) throws SQLServerException Description copied from interface:ISQLServerResultSetUpdates the designated column with ajava.sql.BigDecimalvalue. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateBigDecimalin interfaceISQLServerResultSet- Parameters:
columnName- is the name of the column 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.x- BigDecimal valueprecision- the precision of the columnscale- the scale of the column- Throws:
SQLServerException- If any errors occur.
-
updateBigDecimal
public void updateBigDecimal(String columnName, BigDecimal x, Integer precision, Integer scale, boolean forceEncrypt) throws SQLServerException Description copied from interface:ISQLServerResultSetUpdates the designated column with ajava.sql.BigDecimalvalue. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateBigDecimalin interfaceISQLServerResultSet- Parameters:
columnName- is the name of the column 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.x- BigDecimal 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 any errors occur.
-
updateString
- Specified by:
updateStringin interfaceResultSet- Throws:
SQLServerException
-
updateString
public void updateString(String columnName, String x, boolean forceEncrypt) throws SQLServerException Description copied from interface:ISQLServerResultSetUpdates the designated column with aStringvalue. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateStringin interfaceISQLServerResultSet- Parameters:
columnName- is the name of the columnx- the new column 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 any errors occur.
-
updateBytes
- Specified by:
updateBytesin interfaceResultSet- Throws:
SQLServerException
-
updateBytes
public void updateBytes(String columnName, byte[] x, boolean forceEncrypt) throws SQLServerException Description copied from interface:ISQLServerResultSetUpdates the designated column with a byte array value. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateBytesin interfaceISQLServerResultSet- Parameters:
columnName- is the name of the columnx- the new column 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 any errors occur.
-
updateDate
- Specified by:
updateDatein interfaceResultSet- Throws:
SQLServerException
-
updateDate
Description copied from interface:ISQLServerResultSetUpdates the designated column with ajava.sql.Datevalue. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateDatein interfaceISQLServerResultSet- Parameters:
columnName- is the name of the columnx- the new column 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 any errors occur.
-
updateTime
- Specified by:
updateTimein interfaceResultSet- Throws:
SQLServerException
-
updateTime
Description copied from interface:ISQLServerResultSetUpdates the designated column with ajava.sql.Timevalue. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateTimein interfaceISQLServerResultSet- Parameters:
columnName- is the name of the columnx- the new column valuescale- the scale of the column- Throws:
SQLServerException- If any errors occur.
-
updateTime
public void updateTime(String columnName, Time x, int scale, boolean forceEncrypt) throws SQLServerException Description copied from interface:ISQLServerResultSetUpdates the designated column with ajava.sql.Timevalue. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateTimein interfaceISQLServerResultSet- Parameters:
columnName- is the name of the columnx- the new column 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 any errors occur.
-
updateTimestamp
- Specified by:
updateTimestampin interfaceResultSet- Throws:
SQLServerException
-
updateTimestamp
Description copied from interface:ISQLServerResultSetUpdates the designated column with ajava.sql.Timestampvalue. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateTimestampin interfaceISQLServerResultSet- Parameters:
columnName- is the name of the columnx- the new column valuescale- the scale of the column- Throws:
SQLServerException- If any errors occur.
-
updateTimestamp
public void updateTimestamp(String columnName, Timestamp x, int scale, boolean forceEncrypt) throws SQLServerException Description copied from interface:ISQLServerResultSetUpdates the designated column with ajava.sql.Timestampvalue. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateTimestampin interfaceISQLServerResultSet- Parameters:
columnName- is the name of the columnx- the new column 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 any errors occur.
-
updateDateTime
Description copied from interface:ISQLServerResultSetUpdates the designated column with ajava.sql.Timestampvalue. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateDateTimein interfaceISQLServerResultSet- Parameters:
columnName- is the name of the columnx- the new column value- Throws:
SQLServerException- If any errors occur.
-
updateDateTime
Description copied from interface:ISQLServerResultSetUpdates the designated column with ajava.sql.Timestampvalue. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateDateTimein interfaceISQLServerResultSet- Parameters:
columnName- is the name of the columnx- the new column valuescale- the scale of the column- Throws:
SQLServerException- If any errors occur.
-
updateDateTime
public void updateDateTime(String columnName, Timestamp x, int scale, boolean forceEncrypt) throws SQLServerException Description copied from interface:ISQLServerResultSetUpdates the designated column with ajava.sql.Timestampvalue. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateDateTimein interfaceISQLServerResultSet- Parameters:
columnName- is the name of the columnx- the new column 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 any errors occur.
-
updateSmallDateTime
Description copied from interface:ISQLServerResultSetUpdates the designated column with ajava.sql.Timestampvalue. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateSmallDateTimein interfaceISQLServerResultSet- Parameters:
columnName- is the name of the columnx- the new column value- Throws:
SQLServerException- If any errors occur.
-
updateSmallDateTime
public void updateSmallDateTime(String columnName, Timestamp x, int scale) throws SQLServerException Description copied from interface:ISQLServerResultSetUpdates the designated column with ajava.sql.Timestampvalue. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateSmallDateTimein interfaceISQLServerResultSet- Parameters:
columnName- is the name of the columnx- the new column valuescale- the scale of the column- Throws:
SQLServerException- If any errors occur.
-
updateSmallDateTime
public void updateSmallDateTime(String columnName, Timestamp x, int scale, boolean forceEncrypt) throws SQLServerException Description copied from interface:ISQLServerResultSetUpdates the designated column with ajava.sql.Timestampvalue. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateSmallDateTimein interfaceISQLServerResultSet- Parameters:
columnName- is the name of the columnx- the new column 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 any errors occur.
-
updateDateTimeOffset
Description copied from interface:ISQLServerResultSetUpdates the value of the column specified to the DateTimeOffset Class value, given a column name.- Specified by:
updateDateTimeOffsetin interfaceISQLServerResultSet- Parameters:
columnName- The name of a column.x- A DateTimeOffset Class object.- Throws:
SQLServerException- when an error occurs
-
updateDateTimeOffset
public void updateDateTimeOffset(String columnName, DateTimeOffset x, int scale) throws SQLServerException Description copied from interface:ISQLServerResultSetUpdates the value of the column specified to the DateTimeOffset Class value, given a column name.- Specified by:
updateDateTimeOffsetin interfaceISQLServerResultSet- Parameters:
columnName- The name of a column.x- A DateTimeOffset Class object.scale- the scale of the column- Throws:
SQLServerException- If any errors occur.
-
updateDateTimeOffset
public void updateDateTimeOffset(String columnName, DateTimeOffset x, int scale, boolean forceEncrypt) throws SQLServerException Description copied from interface:ISQLServerResultSetUpdates the value of the column specified to the DateTimeOffset Class value, given a column name.- Specified by:
updateDateTimeOffsetin interfaceISQLServerResultSet- Parameters:
columnName- The name of a column.x- A DateTimeOffset Class object.scale- 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 any errors occur.
-
updateUniqueIdentifier
Description copied from interface:ISQLServerResultSetUpdates the designated column with aStringvalue. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateUniqueIdentifierin interfaceISQLServerResultSet- Parameters:
columnName- The name of a column.x- the new column value- Throws:
SQLServerException- If any errors occur.
-
updateUniqueIdentifier
public void updateUniqueIdentifier(String columnName, String x, boolean forceEncrypt) throws SQLServerException Description copied from interface:ISQLServerResultSetUpdates the designated column with aStringvalue. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateUniqueIdentifierin interfaceISQLServerResultSet- Parameters:
columnName- The name of a column.x- the new column 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 any errors occur.
-
updateObject
- Specified by:
updateObjectin interfaceResultSet- Throws:
SQLServerException
-
updateObject
public void updateObject(String columnName, Object x, int precision, int scale) throws SQLServerException Description copied from interface:ISQLServerResultSetUpdates the designated column with anObjectvalue. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateObjectin interfaceISQLServerResultSet- Parameters:
columnName- The name of a column.x- the new column valueprecision- the precision of the columnscale- the scale of the column- Throws:
SQLServerException- If any errors occur.
-
updateObject
public void updateObject(String columnName, Object x, int precision, int scale, boolean forceEncrypt) throws SQLServerException Description copied from interface:ISQLServerResultSetUpdates the designated column with anObjectvalue. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.- Specified by:
updateObjectin interfaceISQLServerResultSet- Parameters:
columnName- The name of a column.x- the new column 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 any errors occur.
-
updateObject
- Specified by:
updateObjectin interfaceResultSet- Throws:
SQLServerException
-
updateRowId
- Specified by:
updateRowIdin interfaceResultSet- Throws:
SQLException
-
updateRowId
- Specified by:
updateRowIdin interfaceResultSet- Throws:
SQLException
-
updateSQLXML
- Specified by:
updateSQLXMLin interfaceResultSet- Throws:
SQLException
-
updateSQLXML
- Specified by:
updateSQLXMLin interfaceResultSet- Throws:
SQLException
-
getHoldability
- Specified by:
getHoldabilityin interfaceResultSet- Throws:
SQLException
-
insertRow
- Specified by:
insertRowin interfaceResultSet- Throws:
SQLException
-
updateRow
- Specified by:
updateRowin interfaceResultSet- Throws:
SQLException
-
deleteRow
- Specified by:
deleteRowin interfaceResultSet- Throws:
SQLException
-
refreshRow
- Specified by:
refreshRowin interfaceResultSet- Throws:
SQLException
-
cancelRowUpdates
- Specified by:
cancelRowUpdatesin interfaceResultSet- Throws:
SQLServerException
-
moveToInsertRow
- Specified by:
moveToInsertRowin interfaceResultSet- Throws:
SQLServerException
-
moveToCurrentRow
- Specified by:
moveToCurrentRowin interfaceResultSet- Throws:
SQLServerException
-
getStatement
- Specified by:
getStatementin interfaceResultSet- Throws:
SQLServerException
-
updateClob
- Specified by:
updateClobin interfaceResultSet- Throws:
SQLException
-
updateClob
- Specified by:
updateClobin interfaceResultSet- Throws:
SQLException
-
updateClob
- Specified by:
updateClobin interfaceResultSet- Throws:
SQLException
-
updateClob
- Specified by:
updateClobin interfaceResultSet- Throws:
SQLException
-
updateClob
- Specified by:
updateClobin interfaceResultSet- Throws:
SQLException
-
updateClob
- Specified by:
updateClobin interfaceResultSet- Throws:
SQLException
-
updateNClob
- Specified by:
updateNClobin interfaceResultSet- Throws:
SQLException
-
updateNClob
- Specified by:
updateNClobin interfaceResultSet- Throws:
SQLException
-
updateNClob
- Specified by:
updateNClobin interfaceResultSet- Throws:
SQLException
-
updateNClob
- Specified by:
updateNClobin interfaceResultSet- Throws:
SQLException
-
updateNClob
- Specified by:
updateNClobin interfaceResultSet- Throws:
SQLException
-
updateNClob
- Specified by:
updateNClobin interfaceResultSet- Throws:
SQLException
-
updateBlob
- Specified by:
updateBlobin interfaceResultSet- Throws:
SQLException
-
updateBlob
- Specified by:
updateBlobin interfaceResultSet- Throws:
SQLException
-
updateBlob
- Specified by:
updateBlobin interfaceResultSet- Throws:
SQLException
-
updateBlob
- Specified by:
updateBlobin interfaceResultSet- Throws:
SQLException
-
updateBlob
- Specified by:
updateBlobin interfaceResultSet- Throws:
SQLException
-
updateBlob
public void updateBlob(String columnLabel, InputStream inputStream, long length) throws SQLException - Specified by:
updateBlobin interfaceResultSet- Throws:
SQLException
-
updateArray
- Specified by:
updateArrayin interfaceResultSet- Throws:
SQLException
-
updateArray
- Specified by:
updateArrayin interfaceResultSet- Throws:
SQLException
-
updateRef
- Specified by:
updateRefin interfaceResultSet- Throws:
SQLException
-
updateRef
- Specified by:
updateRefin interfaceResultSet- Throws:
SQLException
-
getURL
- Specified by:
getURLin interfaceResultSet- Throws:
SQLException
-
getURL
- Specified by:
getURLin interfaceResultSet- Throws:
SQLException
-
updateObject
- Specified by:
updateObjectin interfaceResultSet- Throws:
SQLServerException
-
updateObject
public void updateObject(int index, Object obj, SQLType targetSqlType, int scale) throws SQLServerException - Specified by:
updateObjectin interfaceResultSet- Throws:
SQLServerException
-
updateObject
public void updateObject(int index, Object obj, SQLType targetSqlType, int scale, boolean forceEncrypt) throws SQLServerException Description copied from interface:ISQLServerResultSetUpdates the designated column with an Object value. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database. If the second argument is an InputStream then the stream must contain the number of bytes specified by scaleOrLength. If the second argument is a Reader then the reader must contain the number of characters specified by scaleOrLength. If these conditions are not true the driver will generate a SQLServerException when the statement is executed. The default implementation will throw SQLFeatureNotSupportedException- Specified by:
updateObjectin interfaceISQLServerResultSet- Parameters:
index- the first column is 1, the second is 2, ...obj- the new column valuetargetSqlType- the SQL type to be sent to the databasescale- for an object of java.math.BigDecimal , this is the number of digits after the decimal point. For Java Object types InputStream and Reader, this is the length of the data in the stream or reader. 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 any errors occur.
-
updateObject
public void updateObject(String columnName, Object obj, SQLType targetSqlType, int scale) throws SQLServerException - Specified by:
updateObjectin interfaceResultSet- Throws:
SQLServerException
-
updateObject
public void updateObject(String columnName, Object obj, SQLType targetSqlType, int scale, boolean forceEncrypt) throws SQLServerException Description copied from interface:ISQLServerResultSetUpdates the designated column with an Object value. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database. If the second argument is an InputStream then the stream must contain the number of bytes specified by scaleOrLength. If the second argument is a Reader then the reader must contain the number of characters specified by scaleOrLength. If these conditions are not true the driver will generate a SQLServerException when the statement is executed. The default implementation will throw SQLFeatureNotSupportedException.- Specified by:
updateObjectin interfaceISQLServerResultSet- Parameters:
columnName- 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 columnobj- the new column valuetargetSqlType- the SQL type to be sent to the databasescale- for an object of java.math.BigDecimal , this is the number of digits after the decimal point. For Java Object types InputStream and Reader, this is the length of the data in the stream or reader. 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 any errors occur.
-
updateObject
public void updateObject(String columnName, Object obj, SQLType targetSqlType) throws SQLServerException - Specified by:
updateObjectin interfaceResultSet- Throws:
SQLServerException
-