SQLServerResultSet Class
- java.
lang. Object - com.
microsoft. sqlserver. jdbc. SQLServerResultSet
- com.
Implements
public class SQLServerResultSet
implements ISQLServerResultSet, java.io.Serializable
Defines the Top-level JDBC ResultSet implementation.
Method Summary
Methods inherited from java.lang.Object
Method Details
getObject
public T
Parameters:
Throws:
getObject
public T
Parameters:
Throws:
unwrap
public T
Parameters:
Throws:
absolute
public boolean absolute(int row)
Moves the cursor to the given row number in this ResultSet object.
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 method absolute(-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 calling first(). Calling absolute(-1) is the same as calling last().
Parameters:
Returns:
true if the cursor is moved to a position in this ResultSet object;
false if the cursor is before the first row or after the last rowThrows:
afterLast
public void afterLast()
Throws:
beforeFirst
public void beforeFirst()
Throws:
cancelRowUpdates
clearWarnings
public void clearWarnings()
Clears result set warnings.
Throws:
close
deleteRow
public void deleteRow()
Throws:
findColumn
public int findColumn(String userProvidedColumnName)
Finds a column index given a column name.
Parameters:
Returns:
Throws:
first
public boolean first()
Moves the cursor to the first row in this ResultSet object.
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.
Returns:
true if the cursor is on a valid row; false if there are no rows in the result
setThrows:
getArray
public Array getArray(int i)
Parameters:
Throws:
getArray
public Array getArray(String colName)
Parameters:
Throws:
getAsciiStream
public InputStream getAsciiStream(int columnIndex)
Parameters:
Throws:
getAsciiStream
public InputStream getAsciiStream(String columnName)
Parameters:
Throws:
getBigDecimal
public BigDecimal getBigDecimal(int columnIndex)
Parameters:
Throws:
getBigDecimal
(=6.5.4)
public BigDecimal getBigDecimal(int columnIndex, int scale)
Deprecated
Parameters:
Throws:
getBigDecimal
public BigDecimal getBigDecimal(String columnName)
Parameters:
Throws:
getBigDecimal
(=6.5.4)
public BigDecimal getBigDecimal(String columnName, int scale)
Deprecated
Parameters:
Throws:
getBinaryStream
public InputStream getBinaryStream(int columnIndex)
Parameters:
Throws:
getBinaryStream
public InputStream getBinaryStream(String columnName)
Parameters:
Throws:
getBlob
getBlob
getBoolean
getBoolean
getByte
getByte
getBytes
getBytes
getCharacterStream
public Reader getCharacterStream(int columnIndex)
Parameters:
Throws:
getCharacterStream
public Reader getCharacterStream(String columnName)
Parameters:
Throws:
getClob
getClob
getConcurrency
getCursorName
public String getCursorName()
Throws:
getDate
getDate
public Date getDate(int columnIndex, Calendar cal)
Parameters:
Throws:
getDate
getDate
public Date getDate(String colName, Calendar cal)
Parameters:
Throws:
getDateTime
public Timestamp 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.
Parameters:
Throws:
getDateTime
public Timestamp 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. This method uses the given calendar to construct an appropriate millisecond value for the timestamp if the underlying database does not store timezone information.
Parameters:
Throws:
getDateTime
public Timestamp 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.
Parameters:
Throws:
getDateTime
public Timestamp 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. This method uses the given calendar to construct an appropriate millisecond value for the timestamp if the underlying database does not store timezone information.
Parameters:
Throws:
getDateTimeOffset
public DateTimeOffset getDateTimeOffset(int columnIndex)
Returns the value of the designated column as a microsoft.sql.DateTimeOffset object, given a zero-based column ordinal.
Parameters:
Throws:
getDateTimeOffset
public DateTimeOffset getDateTimeOffset(String columnName)
Returns the value of the column specified as a microsoft.sql.DateTimeOffset object, given a column name.
Parameters:
Throws:
getDouble
getDouble
getFetchDirection
public int getFetchDirection()
Throws:
getFetchSize
public int getFetchSize()
Throws:
getFloat
getFloat
getGeography
public Geography getGeography(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.
Parameters:
Throws:
getGeography
public Geography 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.
Parameters:
Throws:
getGeometry
public Geometry 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.
Parameters:
Throws:
getGeometry
public Geometry 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.
Parameters:
Throws:
getHoldability
public int getHoldability()
Throws:
getInt
getInt
getLong
getLong
getMetaData
getMoney
public BigDecimal getMoney(int columnIndex)
Returns the value of the column specified as a java.math.BigDecimal object.
Parameters:
Throws:
getMoney
public BigDecimal getMoney(String columnName)
Returns the value of the column specified as a java.math.BigDecimal object.
Parameters:
Throws:
getNCharacterStream
public Reader getNCharacterStream(int columnIndex)
Parameters:
Throws:
getNCharacterStream
public Reader getNCharacterStream(String columnLabel)
Parameters:
Throws:
getNClob
public NClob getNClob(int columnIndex)
Parameters:
Throws:
getNClob
public NClob getNClob(String columnLabel)
Parameters:
Throws:
getNString
public String getNString(int columnIndex)
Parameters:
Throws:
getNString
public String getNString(String columnLabel)
Parameters:
Throws:
getObject
getObject
public Object getObject(int i, Map
Parameters:
Throws:
getObject
getObject
public Object getObject(String colName, Map
Parameters:
Throws:
getRef
public Ref getRef(int i)
Parameters:
Throws:
getRef
public Ref getRef(String colName)
Parameters:
Throws:
getRow
public int getRow()
Throws:
getRowId
public RowId getRowId(int columnIndex)
Parameters:
Throws:
getRowId
public RowId getRowId(String columnLabel)
Parameters:
Throws:
getSQLXML
public SQLXML getSQLXML(int columnIndex)
Parameters:
Throws:
getSQLXML
public SQLXML getSQLXML(String columnLabel)
Parameters:
Throws:
getSensitivityClassification
public SensitivityClassification getSensitivityClassification()
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.
getServerCursorId
protected int getServerCursorId()
Returns the server cursor id
Returns:
getShort
getShort
getSmallDateTime
public Timestamp getSmallDateTime(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.
Parameters:
Throws:
getSmallDateTime
public Timestamp 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.
Parameters:
Throws:
getSmallDateTime
public Timestamp 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.
Parameters:
Throws:
getSmallDateTime
public Timestamp 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.
Parameters:
Throws:
getSmallMoney
public BigDecimal getSmallMoney(int columnIndex)
Returns the value of the column specified as a java.math.BigDecimal object.
Parameters:
Throws:
getSmallMoney
public BigDecimal getSmallMoney(String columnName)
Returns the value of the column specified as a java.math.BigDecimal object.
Parameters:
Throws:
getStatement
getString
getString
getTime
getTime
public Time getTime(int columnIndex, Calendar cal)
Parameters:
Throws:
getTime
getTime
public Time getTime(String colName, Calendar cal)
Parameters:
Throws:
getTimestamp
getTimestamp
public Timestamp getTimestamp(int columnIndex, Calendar cal)
Parameters:
Throws:
getTimestamp
getTimestamp
public Timestamp getTimestamp(String colName, Calendar cal)
Parameters:
Throws:
getType
getURL
public URL getURL(int columnIndex)
Parameters:
Throws:
getURL
public URL getURL(String sColumn)
Parameters:
Throws:
getUnicodeStream
(=6.5.4)
public InputStream getUnicodeStream(int columnIndex)
Deprecated
Parameters:
Throws:
getUnicodeStream
(=6.5.4)
public InputStream getUnicodeStream(String columnName)
Deprecated
Parameters:
Throws:
getUniqueIdentifier
public String 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.
Parameters:
Throws:
getUniqueIdentifier
public String 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.
Parameters:
Throws:
getWarnings
public SQLWarning getWarnings()
Throws:
insertRow
public void insertRow()
Throws:
isAfterLast
public boolean isAfterLast()
Throws:
isBeforeFirst
public boolean isBeforeFirst()
Returns if the cursor is before the first row in this result set.
Returns:
Throws:
isClosed
public boolean isClosed()
Throws:
isFirst
public boolean isFirst()
Returns whether the cursor is on the first row of this ResultSet object. 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 isFirst method is optional for ResultSets with a result set type of TYPE_FORWARD_ONLY
Returns:
true if the cursor is on the first row; false otherwiseThrows:
isForwardOnly
protected boolean isForwardOnly()
Check if type is ForwardOnly
Returns:
isLast
public boolean isLast()
Returns whether the cursor is on the last row of this ResultSet object. Note: Calling the method isLast may 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 the isLast method is optional for ResultSets with a result set type of TYPE_FORWARD_ONLY
Returns:
true if the cursor is on the last row; false otherwiseThrows:
isWrapperFor
public boolean isWrapperFor(Class iface)
Parameters:
Throws:
last
public boolean last()
Moves the cursor to the last row in this ResultSet object. 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.
Returns:
true if the cursor is on a valid row; false if there are no rows in the result
setThrows:
moveToCurrentRow
moveToInsertRow
next
public boolean 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.
Returns:
Throws:
previous
public boolean previous()
Moves the cursor to the previous row in this ResultSet object. 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.
Returns:
true if the cursor is now positioned on a valid row; false if the cursor is
positioned before the first rowThrows:
refreshRow
public void refreshRow()
Throws:
relative
public boolean relative(int rows)
Parameters:
Throws:
rowDeleted
rowInserted
rowUpdated
setFetchDirection
public void setFetchDirection(int direction)
Parameters:
Throws:
setFetchSize
toString
public String toString()
Overrides:
SQLServerResultSet.toString()updateArray
public void updateArray(int columnIndex, Array x)
Parameters:
Throws:
updateArray
public void updateArray(String columnName, Array x)
Parameters:
Throws:
updateAsciiStream
public void updateAsciiStream(int columnIndex, InputStream x)
Parameters:
Throws:
updateAsciiStream
public void updateAsciiStream(int index, InputStream x, int length)
Parameters:
Throws:
updateAsciiStream
public void updateAsciiStream(int columnIndex, InputStream x, long length)
Parameters:
Throws:
updateAsciiStream
public void updateAsciiStream(String columnLabel, InputStream x)
Parameters:
Throws:
updateAsciiStream
public void updateAsciiStream(String columnName, InputStream x, int length)
Parameters:
Throws:
updateAsciiStream
public void updateAsciiStream(String columnName, InputStream streamValue, long length)
Parameters:
Throws:
updateBigDecimal
public void updateBigDecimal(int index, BigDecimal x)
Parameters:
Throws:
updateBigDecimal
public void updateBigDecimal(int index, BigDecimal x, Integer precision, Integer scale)
Updates the designated column with a java.math.BigDecimal 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.
Parameters:
Throws:
updateBigDecimal
public void updateBigDecimal(int index, BigDecimal x, Integer precision, Integer scale, boolean forceEncrypt)
Updates the designated column with a java.math.BigDecimal 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.
Parameters:
Throws:
updateBigDecimal
public void updateBigDecimal(String columnName, BigDecimal x)
Parameters:
Throws:
updateBigDecimal
public void updateBigDecimal(String columnName, BigDecimal x, boolean forceEncrypt)
Updates the designated column with a java.sql.BigDecimal 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.
Parameters:
Throws:
updateBigDecimal
public void updateBigDecimal(String columnName, BigDecimal x, Integer precision, Integer scale)
Updates the designated column with a java.sql.BigDecimal 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.
Parameters:
Throws:
updateBigDecimal
public void updateBigDecimal(String columnName, BigDecimal x, Integer precision, Integer scale, boolean forceEncrypt)
Updates the designated column with a java.sql.BigDecimal 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.
Parameters:
Throws:
updateBinaryStream
public void updateBinaryStream(int columnIndex, InputStream x)
Parameters:
Throws:
updateBinaryStream
public void updateBinaryStream(int columnIndex, InputStream streamValue, int length)
Parameters:
Throws:
updateBinaryStream
public void updateBinaryStream(int columnIndex, InputStream x, long length)
Parameters:
Throws:
updateBinaryStream
public void updateBinaryStream(String columnLabel, InputStream x)
Parameters:
Throws:
updateBinaryStream
public void updateBinaryStream(String columnName, InputStream streamValue, int length)
Parameters:
Throws:
updateBinaryStream
public void updateBinaryStream(String columnLabel, InputStream x, long length)
Parameters:
Throws:
updateBlob
public void updateBlob(int columnIndex, InputStream inputStream)
Parameters:
Throws:
updateBlob
public void updateBlob(int columnIndex, InputStream inputStream, long length)
Parameters:
Throws:
updateBlob
public void updateBlob(int columnIndex, Blob blobValue)
Parameters:
Throws:
updateBlob
public void updateBlob(String columnLabel, InputStream inputStream)
Parameters:
Throws:
updateBlob
public void updateBlob(String columnLabel, InputStream inputStream, long length)
Parameters:
Throws:
updateBlob
public void updateBlob(String columnName, Blob blobValue)
Parameters:
Throws:
updateBoolean
public void updateBoolean(int index, boolean x)
Parameters:
Throws:
updateBoolean
public void updateBoolean(int index, boolean x, boolean forceEncrypt)
Updates the designated column with a boolean 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.
Parameters:
Throws:
updateBoolean
public void updateBoolean(String columnName, boolean x)
Parameters:
Throws:
updateBoolean
public void updateBoolean(String columnName, boolean x, boolean forceEncrypt)
Updates the designated column with a boolean 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.
Parameters:
Throws:
updateByte
public void updateByte(int index, byte x)
Parameters:
Throws:
updateByte
public void updateByte(int index, byte x, boolean forceEncrypt)
Updates the designated column with a byte 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.
Parameters:
Throws:
updateByte
public void updateByte(String columnName, byte x)
Parameters:
Throws:
updateByte
public void updateByte(String columnName, byte x, boolean forceEncrypt)
Updates the designated column with a byte 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.
Parameters:
Throws:
updateBytes
public void updateBytes(int index, byte[] x)
Parameters:
Throws:
updateBytes
public void updateBytes(int index, byte[] x, boolean forceEncrypt)
Updates 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 the updateRow or insertRow methods are called to update the database.
Parameters:
Throws:
updateBytes
public void updateBytes(String columnName, byte[] x)
Parameters:
Throws:
updateBytes
public void updateBytes(String columnName, byte[] x, boolean forceEncrypt)
Updates 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 the updateRow or insertRow methods are called to update the database.
Parameters:
Throws:
updateCharacterStream
public void updateCharacterStream(int columnIndex, Reader x)
Parameters:
Throws:
updateCharacterStream
public void updateCharacterStream(int columnIndex, Reader readerValue, int length)
Parameters:
Throws:
updateCharacterStream
public void updateCharacterStream(int columnIndex, Reader x, long length)
Parameters:
Throws:
updateCharacterStream
public void updateCharacterStream(String columnLabel, Reader reader)
Parameters:
Throws:
updateCharacterStream
public void updateCharacterStream(String columnName, Reader readerValue, int length)
Parameters:
Throws:
updateCharacterStream
public void updateCharacterStream(String columnLabel, Reader reader, long length)
Parameters:
Throws:
updateClob
public void updateClob(int columnIndex, Reader reader)
Parameters:
Throws:
updateClob
public void updateClob(int columnIndex, Reader reader, long length)
Parameters:
Throws:
updateClob
public void updateClob(int columnIndex, Clob clobValue)
Parameters:
Throws:
updateClob
public void updateClob(String columnLabel, Reader reader)
Parameters:
Throws:
updateClob
public void updateClob(String columnLabel, Reader reader, long length)
Parameters:
Throws:
updateClob
public void updateClob(String columnName, Clob clobValue)
Parameters:
Throws:
updateDate
updateDate
public void updateDate(int index, Date x, boolean forceEncrypt)
Updates the designated column with a java.sql.Date 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.
Parameters:
Throws:
updateDate
public void updateDate(String columnName, Date x)
Parameters:
Throws:
updateDate
public void updateDate(String columnName, Date x, boolean forceEncrypt)
Updates the designated column with a java.sql.Date 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.
Parameters:
Throws:
updateDateTime
public void updateDateTime(int index, Timestamp x)
Updates the designated column with a java.sql.Timestamp 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.
Parameters:
Throws:
updateDateTime
public void updateDateTime(int index, Timestamp x, Integer scale)
Updates the designated column with a java.sql.Timestamp 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.
Parameters:
Throws:
updateDateTime
public void updateDateTime(int index, Timestamp x, Integer scale, boolean forceEncrypt)
Updates the designated column with a java.sql.Timestamp 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.
Parameters:
Throws:
updateDateTime
public void updateDateTime(String columnName, Timestamp x)
Updates the designated column with a java.sql.Timestamp 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.
Parameters:
Throws:
updateDateTime
public void updateDateTime(String columnName, Timestamp x, int scale)
Updates the designated column with a java.sql.Timestamp 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.
Parameters:
Throws:
updateDateTime
public void updateDateTime(String columnName, Timestamp x, int scale, boolean forceEncrypt)
Updates the designated column with a java.sql.Timestamp 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.
Parameters:
Throws:
updateDateTimeOffset
public void updateDateTimeOffset(int index, DateTimeOffset x)
Updates the value of the column specified to the DateTimeOffset Class value, given a zero-based column ordinal.
Parameters:
Throws:
updateDateTimeOffset
public void updateDateTimeOffset(int index, DateTimeOffset x, Integer scale)
Updates the value of the column specified to the DateTimeOffset Class value, given a zero-based column ordinal.
Parameters:
Throws:
updateDateTimeOffset
public void updateDateTimeOffset(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.
Parameters:
Throws:
updateDateTimeOffset
public void updateDateTimeOffset(String columnName, DateTimeOffset x)
Updates the value of the column specified to the DateTimeOffset Class value, given a column name.
Parameters:
Throws:
updateDateTimeOffset
public void updateDateTimeOffset(String columnName, DateTimeOffset x, int scale)
Updates the value of the column specified to the DateTimeOffset Class value, given a column name.
Parameters:
Throws:
updateDateTimeOffset
public void updateDateTimeOffset(String columnName, DateTimeOffset x, int scale, boolean forceEncrypt)
Updates the value of the column specified to the DateTimeOffset Class value, given a column name.
Parameters:
Throws:
updateDouble
public void updateDouble(int index, double x)
Parameters:
Throws:
updateDouble
public void updateDouble(int index, double x, boolean forceEncrypt)
Updates the designated column with a double 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.
Parameters:
Throws:
updateDouble
public void updateDouble(String columnName, double x)
Parameters:
Throws:
updateDouble
public void updateDouble(String columnName, double x, boolean forceEncrypt)
Updates the designated column with a double 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.
Parameters:
Throws:
updateFloat
public void updateFloat(int index, float x)
Parameters:
Throws:
updateFloat
public void updateFloat(int index, float x, boolean forceEncrypt)
Updates the designated column with a float 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.
Parameters:
Throws:
updateFloat
public void updateFloat(String columnName, float x)
Parameters:
Throws:
updateFloat
public void updateFloat(String columnName, float x, boolean forceEncrypt)
Updates the designated column with a float 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.
Parameters:
Throws:
updateInt
public void updateInt(int index, int x)
Parameters:
Throws:
updateInt
public void updateInt(int index, int x, boolean forceEncrypt)
Updates the designated column with an int 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.
Parameters:
Throws:
updateInt
updateInt
public void updateInt(String columnName, int x, boolean forceEncrypt)
Updates the designated column with an int 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.
Parameters:
Throws:
updateLong
public void updateLong(int index, long x)
Parameters:
Throws:
updateLong
public void updateLong(int index, long x, boolean forceEncrypt)
Updates the designated column with a long 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.
Parameters:
Throws:
updateLong
public void updateLong(String columnName, long x)
Parameters:
Throws:
updateLong
public void updateLong(String columnName, long x, boolean forceEncrypt)
Updates the designated column with a long 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.
Parameters:
Throws:
updateMoney
public void updateMoney(int index, BigDecimal x)
Updates the designated column with a money 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.
Parameters:
Throws:
updateMoney
public void updateMoney(int index, BigDecimal x, boolean forceEncrypt)
Updates the designated column with a money 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.
Parameters:
Throws:
updateMoney
public void updateMoney(String columnName, BigDecimal x)
Updates the designated column with a money 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.
Parameters:
Throws:
updateMoney
public void updateMoney(String columnName, BigDecimal x, boolean forceEncrypt)
Updates the designated column with a money 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.
Parameters:
Throws:
updateNCharacterStream
public void updateNCharacterStream(int columnIndex, Reader x)
Parameters:
Throws:
updateNCharacterStream
public void updateNCharacterStream(int columnIndex, Reader x, long length)
Parameters:
Throws:
updateNCharacterStream
public void updateNCharacterStream(String columnLabel, Reader reader)
Parameters:
Throws:
updateNCharacterStream
public void updateNCharacterStream(String columnLabel, Reader reader, long length)
Parameters:
Throws:
updateNClob
public void updateNClob(int columnIndex, Reader reader)
Parameters:
Throws:
updateNClob
public void updateNClob(int columnIndex, Reader reader, long length)
Parameters:
Throws:
updateNClob
public void updateNClob(int columnIndex, NClob nClob)
Parameters:
Throws:
updateNClob
public void updateNClob(String columnLabel, Reader reader)
Parameters:
Throws:
updateNClob
public void updateNClob(String columnLabel, Reader reader, long length)
Parameters:
Throws:
updateNClob
public void updateNClob(String columnLabel, NClob nClob)
Parameters:
Throws:
updateNString
public void updateNString(int columnIndex, String nString)
Parameters:
Throws:
updateNString
public void updateNString(int columnIndex, String nString, boolean forceEncrypt)
Updates the designated column with a String value. It is intended for use when updating NCHAR,NVARCHAR and LONGNVARCHAR columns. 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.
Parameters:
Throws:
updateNString
public void updateNString(String columnLabel, String nString)
Parameters:
Throws:
updateNString
public void updateNString(String columnLabel, String nString, boolean forceEncrypt)
Updates the designated column with a String value. It is intended for use when updating NCHAR,NVARCHAR and LONGNVARCHAR columns. 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.
Parameters:
Throws:
updateNull
updateNull
updateObject
updateObject
public void updateObject(int index, Object x, int scale)
Parameters:
Throws:
updateObject
public void updateObject(int index, Object x, int precision, int scale)
Updates 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.
Parameters:
Throws:
updateObject
public void updateObject(int index, Object x, int precision, int scale, boolean forceEncrypt)
Updates 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.
Parameters:
Throws:
updateObject
public void updateObject(int index, Object obj, SQLType targetSqlType)
Parameters:
Throws:
updateObject
public void updateObject(int index, Object obj, SQLType targetSqlType, int scale)
Parameters:
Throws:
updateObject
public void updateObject(int index, Object obj, SQLType targetSqlType, int scale, boolean forceEncrypt)
Updates 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
Parameters:
Throws:
updateObject
public void updateObject(String columnName, Object x)
Parameters:
Throws:
updateObject
public void updateObject(String columnName, Object x, int scale)
Parameters:
Throws:
updateObject
public void updateObject(String columnName, Object x, int precision, int scale)
Updates 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.
Parameters:
Throws:
updateObject
public void updateObject(String columnName, Object x, int precision, int scale, boolean forceEncrypt)
Updates 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.
Parameters:
Throws:
updateObject
public void updateObject(String columnName, Object obj, SQLType targetSqlType)
Parameters:
Throws:
updateObject
public void updateObject(String columnName, Object obj, SQLType targetSqlType, int scale)
Parameters:
Throws:
updateObject
public void updateObject(String columnName, Object obj, SQLType targetSqlType, int scale, boolean forceEncrypt)
Updates 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.
Parameters:
Throws:
updateRef
public void updateRef(int columnIndex, Ref x)
Parameters:
Throws:
updateRef
public void updateRef(String columnName, Ref x)
Parameters:
Throws:
updateRow
public void updateRow()
Throws:
updateRowId
public void updateRowId(int columnIndex, RowId x)
Parameters:
Throws:
updateRowId
public void updateRowId(String columnLabel, RowId x)
Parameters:
Throws:
updateSQLXML
public void updateSQLXML(int columnIndex, SQLXML xmlObject)
Parameters:
Throws:
updateSQLXML
public void updateSQLXML(String columnLabel, SQLXML x)
Parameters:
Throws:
updateShort
public void updateShort(int index, short x)
Parameters:
Throws:
updateShort
public void updateShort(int index, short x, boolean forceEncrypt)
Updates the designated column with a short 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.
Parameters:
Throws:
updateShort
public void updateShort(String columnName, short x)
Parameters:
Throws:
updateShort
public void updateShort(String columnName, short x, boolean forceEncrypt)
Updates the designated column with a short 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.
Parameters:
Throws:
updateSmallDateTime
public void updateSmallDateTime(int index, Timestamp x)
Updates the designated column with a java.sql.Timestamp 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.
Parameters:
Throws:
updateSmallDateTime
public void updateSmallDateTime(int index, Timestamp x, Integer scale)
Updates the designated column with a java.sql.Timestamp 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.
Parameters:
Throws:
updateSmallDateTime
public void updateSmallDateTime(int index, Timestamp x, Integer scale, boolean forceEncrypt)
Updates the designated column with a java.sql.Timestamp 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.
Parameters:
Throws:
updateSmallDateTime
public void updateSmallDateTime(String columnName, Timestamp x)
Updates the designated column with a java.sql.Timestamp 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.
Parameters:
Throws:
updateSmallDateTime
public void updateSmallDateTime(String columnName, Timestamp x, int scale)
Updates the designated column with a java.sql.Timestamp 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.
Parameters:
Throws:
updateSmallDateTime
public void updateSmallDateTime(String columnName, Timestamp x, int scale, boolean forceEncrypt)
Updates the designated column with a java.sql.Timestamp 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.
Parameters:
Throws:
updateSmallMoney
public void updateSmallMoney(int index, BigDecimal x)
Updates the designated column with a smallmoney 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.
Parameters:
Throws:
updateSmallMoney
public void updateSmallMoney(int index, BigDecimal x, boolean forceEncrypt)
Updates the designated column with a smallmoney 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.
Parameters:
Throws:
updateSmallMoney
public void updateSmallMoney(String columnName, BigDecimal x)
Updates the designated column with a smallmoney 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.
Parameters:
Throws:
updateSmallMoney
public void updateSmallMoney(String columnName, BigDecimal x, boolean forceEncrypt)
Updates the designated column with a smallmoney 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.
Parameters:
Throws:
updateString
public void updateString(int columnIndex, String stringValue)
Parameters:
Throws:
updateString
public void updateString(int columnIndex, String stringValue, boolean forceEncrypt)
Updates the designated column with a String 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.
Parameters:
Throws:
updateString
public void updateString(String columnName, String x)
Parameters:
Throws:
updateString
public void updateString(String columnName, String x, boolean forceEncrypt)
Updates the designated column with a String 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.
Parameters:
Throws:
updateTime
updateTime
public void updateTime(int index, Time x, Integer scale)
Updates the designated column with a java.sql.Time 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.
Parameters:
Throws:
updateTime
public void updateTime(int index, Time x, Integer scale, boolean forceEncrypt)
Updates the designated column with a java.sql.Time 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.
Parameters:
Throws:
updateTime
public void updateTime(String columnName, Time x)
Parameters:
Throws:
updateTime
public void updateTime(String columnName, Time x, int scale)
Updates the designated column with a java.sql.Time 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.
Parameters:
Throws:
updateTime
public void updateTime(String columnName, Time x, int scale, boolean forceEncrypt)
Updates the designated column with a java.sql.Time 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.
Parameters:
Throws:
updateTimestamp
updateTimestamp
public void updateTimestamp(int index, Timestamp x, int scale)
Updates the designated column with a java.sql.Timestamp 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.
Parameters:
Throws:
updateTimestamp
public void updateTimestamp(int index, Timestamp x, int scale, boolean forceEncrypt)
Updates the designated column with a java.sql.Timestamp 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.
Parameters:
Throws:
updateTimestamp
public void updateTimestamp(String columnName, Timestamp x)
Parameters:
Throws:
updateTimestamp
public void updateTimestamp(String columnName, Timestamp x, int scale)
Updates the designated column with a java.sql.Timestamp 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.
Parameters:
Throws:
updateTimestamp
public void updateTimestamp(String columnName, Timestamp x, int scale, boolean forceEncrypt)
Updates the designated column with a java.sql.Timestamp 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.
Parameters:
Throws:
updateUniqueIdentifier
public void updateUniqueIdentifier(int index, String x)
Updates the designated column with a String 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.
Parameters:
Throws:
updateUniqueIdentifier
public void updateUniqueIdentifier(int index, String x, boolean forceEncrypt)
Updates the designated column with a String 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.
Parameters:
Throws:
updateUniqueIdentifier
public void updateUniqueIdentifier(String columnName, String x)
Updates the designated column with a Stringvalue. 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.
Parameters:
Throws:
updateUniqueIdentifier
public void updateUniqueIdentifier(String columnName, String x, boolean forceEncrypt)
Updates the designated column with a Stringvalue. 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.
Parameters:
Throws: