Class MVAResultSet
- All Implemented Interfaces:
AutoCloseable,ResultSet,Wrapper
- Direct Known Subclasses:
MVAAnnotatedResultSet,MVADualResultSet
A ResultSet maintains a cursor pointing to its current row of data. Initially the cursor is positioned before the first row. The 'next' method moves the cursor to the next row.
The getXXX methods retrieve column values for the current row. You can retrieve values either using the index number of the column, or by using the name of the column. In general using the column index will be more efficient. Columns are numbered from 1.
For maximum portability, ResultSet columns within each row should be read in left-to-right order and each column should be read only once.
For the getXXX methods, the JDBC driver attempts to convert the underlying data to the specified Java type and returns a suitable Java value. See the JDBC specification for allowable mappings from SQL types to Java types with the ResultSet.getXXX methods.
Column names used as input to getXXX methods are case insensitive. When performing a getXXX using a column name, if several columns have the same name, then the value of the first matching column will be returned. The column name option is designed to be used when column names are used in the SQL query. For columns that are NOT explicitly named in the query, it is best to use column numbers. If column names were used there is no way for the programmer to guarantee that they actually refer to the intended columns.
A ResultSet is automatically closed by the Statement that generated it when that Statement is closed, re-executed, or is used to retrieve the next result from a sequence of multiple results.
The number, types and properties of a ResultSet's columns are provided by the
ResulSetMetaData object returned by the getMetaData method.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final intprotected final intprotected SQLWarningprotected booleanstatic final intstatic final intstatic final intprotected intstatic final intprotected intprotected intprotected com.sas.rio.IRowCacheprotected final MVAStatementprotected static final intstatic final intstatic final intstatic final intstatic final intFields 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 rowIndex) voidvoidJDBC 2.0 Moves to the front of the result set, just before the first row.voidvoidAfter this call getWarnings returns null until a new warning is reported for this ResultSet.voidclose()Closes the ResultSet.voidintfindColumn(String columnName) Maps a Resultset column name to a ResultSet column index.booleanfirst()JDBC 2.0 Moves to the first row in the result set.ArraygetArray(int i) JDBC 2.0 Get an array column.ArraygetArray(String colName) JDBC 2.0 Get an array column.InputStreamgetAsciiStream(int columnIndex) Gets the value of a column in the current row as a Java InputStream.InputStreamgetAsciiStream(String columnName) Gets the value of a column in the current row as a Java InputStream.BigDecimalgetBigDecimal(int columnIndex) BigDecimalgetBigDecimal(int columnIndex, int scale) Deprecated.BigDecimalgetBigDecimal(String columnName) BigDecimalgetBigDecimal(String columnName, int scale) Deprecated.InputStreamgetBinaryStream(int columnIndex) TheMVAResultSetimplementation ofgetBinaryStream(int)only supports columns with a SQL type ofjava.sql.Types.CHARorjava.sql.Types.VARCHAR.InputStreamgetBinaryStream(String columnName) Gets the value of a column in the current row as a Java InputStream.BlobgetBlob(int i) JDBC 2.0 Get a BLOB column.BlobgetBlob(String colName) JDBC 2.0 Get a BLOB column.booleangetBoolean(int columnIndex) Gets the value of a column in the current row as a Java boolean.booleangetBoolean(String columnName) Gets the value of a column in the current row as a Java boolean.bytegetByte(int columnIndex) Gets the value of a column in the current row as a Java byte.bytegetByte(String columnName) Gets the value of a column in the current row as a Java byte.byte[]getBytes(int columnIndex) Gets the value of a column in the current row as a Java byte array.byte[]getBytes(String columnName) Gets the value of a column in the current row as a Java byte array.protected com.sas.rio.IRowCachegetCache()ReadergetCharacterStream(int columnIndex) JDBC 2.0 Gets the value of a column in the current row as a java.io.Reader.ReadergetCharacterStream(int columnIndex, String charsetName) JDBC 2.0 Proprietary Extension (S0678753) Gets the value of a column in the current row as a java.io.Reader using a specified character set.ReadergetCharacterStream(String columnName) JDBC 2.0 Gets the value of a column in the current row as a java.io.ReaderReadergetCharacterStream(String columnName, String charsetName) JDBC 2.0 Proprietary Extension (S0678753) Gets the value of a column in the current row as a java.io.Reader using a specified character set.ClobgetClob(int i) JDBC 2.0 Get a CLOB column.ClobgetClob(String colName) JDBC 2.0 Get a CLOB column.intJDBC 2.0 Gets the concurrency of this result set.StringGets the name of the SQL cursor used by this ResultSet.DategetDate(int columnIndex) Gets the value of a column in the current row as a Java java.sql.Date.DategetDate(int columnIndex, Calendar cal) JDBC 2.0 Gets the value of a column in the current row as a java.sql.Date object.DategetDate(String columnName) Gets the value of a column in the current row as a Java java.sql.Date.DategetDate(String columnName, Calendar cal) Gets the value of a column in the current row as a java.sql.Date object.doublegetDouble(int columnIndex) Gets the value of a column in the current row as a Java double.doublegetDouble(String columnName) Gets the value of a column in the current row as a Java double.intThe IOM JDBC driver always returnsResultSet.FETCH_FORWARDfor the fetch direction, as calls tosetFetchDirection(int)are silently ignored.intJDBC 2.0 Gets the fetch size.floatgetFloat(int columnIndex) Gets the value of a column in the current row as a Java float.floatgetFloat(String columnName) Gets the value of a column in the current row as a Java float.intTheMVAResultSetversion of#getHoldability()always returnsResultSet#CLOSE_CURSORS_AT_COMMIT.intgetInt(int columnIndex) Gets the value of a column in the current row as a Java int.intgetInt(String columnName) Gets the value of a column in the current row as a Java int.longgetLong(int columnIndex) Gets the value of a column in the current row as a Java long.longgetLong(String columnName) Gets the value of a column in the current row as a Java long.ResultSetMetaDataGets a ResultSetMetaData object that is associated with this ResultSet.ReadergetNCharacterStream(int columnIndex) Retrieves the value of the designated column in the current row of thisResultSetobject as ajava.io.Readerobject.ReadergetNCharacterStream(String columnLabel) Retrieves the value of the designated column in the current row of thisResultSetobject as ajava.io.Readerobject.NClobgetNClob(int columnIndex) Retrieves the value of the designated column in the current row of thisResultSetobject as aNClobobject in the Java programming language.NClobgetNClob(String columnLabel) Retrieves the value of the designated column in the current row of thisResultSetobject as aNClobobject in the Java programming language.StringgetNString(int columnIndex) Retrieves the value of the designated column in the current row of thisResultSetobject as aStringin the Java programming language.StringgetNString(String columnLabel) Retrieves the value of the designated column in the current row of thisResultSetobject as aStringin the Java programming language.ObjectgetObject(int columnIndex) Gets the value of a column in its default Java representation.<T> TgetObject(int arg0, Class<T> arg1) ObjectgetObject(int i, Map<String, Class<?>> map) JDBC 2.0 Returns the value of column i as a Java object.ObjectgetObject(String columnName) Gets the value of a column in its default Java representation.<T> TgetObject(String arg0, Class<T> arg1) ObjectgetObject(String colName, Map<String, Class<?>> map) JDBC 2.0 Returns the value of column i as a Java object.RefgetRef(int i) JDBC 2.0 Get a REF(<structured-type>) column.RefgetRef(String colName) JDBC 2.0 Get a REF(<structured-type>) column.intgetRow()RowIdgetRowId(int columnIndex) Retrieves the value of the designated column in the current row of thisResultSetobject as ajava.sql.RowIdobject in the Java programming language.RowIdgetRowId(String columnLabel) Retrieves the value of the designated column in the current row of thisResultSetobject as ajava.sql.RowIdobject in the Java programming language.shortgetShort(int columnIndex) Gets the value of a column in the current row as a Java short.shortgetShort(String columnName) Gets the value of a column in the current row as a Java short.SQLXMLgetSQLXML(int columnIndex) Retrieves the value of the designated column in the current row of thisResultSetas ajava.sql.SQLXMLobject in the Java programming language.SQLXMLgetSQLXML(String columnLabel) Retrieves the value of the designated column in the current row of thisResultSetas ajava.sql.SQLXMLobject in the Java programming language.StatementJDBC 2.0 Return the Statement that produced the ResultSet.StringgetString(int columnIndex) Gets the value of a column in the current row as a Java String.StringgetString(String columnName) Gets the value of a column in the current row as a Java String.TimegetTime(int columnIndex) Gets the value of a column in the current row as a Java java.sql.Time.TimegetTime(int columnIndex, Calendar cal) Gets the value of a column in the current row as a java.sql.Time object.TimegetTime(String columnName) Gets the value of a column in the current row as a Java java.sql.Time.TimegetTime(String columnName, Calendar cal) Gets the value of a column in the current row as a java.sql.Time object.TimestampgetTimestamp(int columnIndex) Gets the value of a column in the current row as a Java java.sql.Timestamp.TimestampgetTimestamp(int columnIndex, Calendar cal) Gets the value of a column in the current row as a java.sql.Timestamp object.TimestampgetTimestamp(String columnName) Gets the value of a column in the current row as a Java java.sql.Timestamp.TimestampgetTimestamp(String columnName, Calendar cal) Gets the value of a column in the current row as a java.sql.Timestamp object.intgetType()JDBC 2.0 Gets the result set type.InputStreamgetUnicodeStream(int columnIndex) TheMVAResultSetimplementation ofgetUnicodeStream(int)only supports columns with a SQL type ofjava.sql.Types.CHARorjava.sql.Types.VARCHAR.InputStreamgetUnicodeStream(String columnName) Deprecated.URLgetURL(int columnIndex) Retrieves the value of the designated column in the current row of this ResultSet object as a java.net.URL object in the Java programming language.URLgetURL(String columnName) Retrieves the value of the designated column in the current row of this ResultSet object as a java.net.URL object in the Java programming language.SQLWarningGets the SQLWarnings that are associated with this row.voidJDBC 2.0 Insert the contents of the insert row into the result set and the database.booleanJDBC 2.0 Determines if the cursor is after the last row in the result set.booleanJDBC 2.0 Determines if the cursor is before the first row in the result set.booleanisClosed()Retrieves whether thisResultSetobject has been closed.booleanisFirst()JDBC 2.0 Indicates whether the cursor is on the first row of thisResultSetobject.booleanisLast()booleanisWrapperFor(Class<?> iface) booleanlast()JDBC 2.0 Moves to the last row in the result set.voidJDBC 2.0 Move the cursor to the remembered cursor position, usually the current row.voidJDBC 2.0 Move to the insert row.booleannext()Proceeds to the next row in the ResultSet.booleanprevious()voidJDBC 2.0 Refresh the value of the current row with its current value in the database.booleanrelative(int rows) booleanJDBC 2.0 Determines if this row has been deleted.booleanJDBC 2.0 Determines if the current row has been inserted.booleanJDBC 2.0 Determine if the current row has been updated.voidsetFetchDirection(int direction) The IOM JDBC driver silently ignores the hint to set the fetch direction.voidsetFetchSize(int rows) <T> Tunwrap(Class<T> iface) voidupdateArray(int columnIndex, Array x) Updates the designated column with a java.sql.Array value.voidupdateArray(String columnName, Array x) Updates the designated column with a java.sql.Array value.voidupdateAsciiStream(int columnIndex, InputStream x) Updates the designated column with an ascii stream value.voidupdateAsciiStream(int columnIndex, InputStream x, int length) JDBC 2.0 Update a column with an ASCII stream value.voidupdateAsciiStream(int columnIndex, InputStream x, long length) Updates the designated column with an ascii stream value, which will have the specified number of bytes.voidupdateAsciiStream(String columnLabel, InputStream x) Updates the designated column with an ascii stream value.voidupdateAsciiStream(String columnName, InputStream x, int length) JDBC 2.0 Update a column with an ascii stream value.voidupdateAsciiStream(String columnLabel, InputStream x, long length) Updates the designated column with an ascii stream value, which will have the specified number of bytes.voidupdateBigDecimal(int columnIndex, BigDecimal x) JDBC 2.0 Update a column with a BigDecimal value.voidupdateBigDecimal(String columnName, BigDecimal x) JDBC 2.0 Update a column with a BigDecimal value.voidupdateBinaryStream(int columnIndex, InputStream x) Updates the designated column with a binary stream value.voidupdateBinaryStream(int columnIndex, InputStream x, int length) JDBC 2.0 Update a column with a binary stream value.voidupdateBinaryStream(int columnIndex, InputStream x, long length) Updates the designated column with a binary stream value, which will have the specified number of bytes.voidupdateBinaryStream(String columnLabel, InputStream x) Updates the designated column with a binary stream value.voidupdateBinaryStream(String columnName, InputStream x, int length) JDBC 2.0 Update a column with a binary stream value.voidupdateBinaryStream(String columnLabel, InputStream x, long length) Updates the designated column with a binary stream value, which will have the specified number of bytes.voidupdateBlob(int columnIndex, InputStream inputStream) Updates the designated column using the given input stream.voidupdateBlob(int columnIndex, InputStream inputStream, long length) Updates the designated column using the given input stream, which will have the specified number of bytes.voidupdateBlob(int columnIndex, Blob x) Updates the designated column with a java.sql.Blob value.voidupdateBlob(String columnLabel, InputStream inputStream) Updates the designated column using the given input stream.voidupdateBlob(String columnLabel, InputStream inputStream, long length) Updates the designated column using the given input stream, which will have the specified number of bytes.voidupdateBlob(String columnName, Blob x) Updates the designated column with a java.sql.Blob value.voidupdateBoolean(int columnIndex, boolean x) JDBC 2.0 Update a column with a boolean value.voidupdateBoolean(String columnName, boolean x) JDBC 2.0 Update a column with a boolean value.voidupdateByte(int columnIndex, byte x) JDBC 2.0 Update a column with a byte value.voidupdateByte(String columnName, byte x) JDBC 2.0 Update a column with a byte value.voidupdateBytes(int columnIndex, byte[] x) JDBC 2.0 Update a column with a byte array value.voidupdateBytes(String columnName, byte[] x) JDBC 2.0 Update a column with a byte array value.voidupdateCharacterStream(int columnIndex, Reader x) Updates the designated column with a character stream value.voidupdateCharacterStream(int columnIndex, Reader x, int length) JDBC 2.0 Update a column with a character stream value.voidupdateCharacterStream(int columnIndex, Reader x, long length) Updates the designated column with a character stream value, which will have the specified number of bytes.voidupdateCharacterStream(String columnLabel, Reader reader) Updates the designated column with a character stream value.voidupdateCharacterStream(String columnName, Reader reader, int length) JDBC 2.0 Update a column with a character stream value.voidupdateCharacterStream(String columnLabel, Reader reader, long length) Updates the designated column with a character stream value, which will have the specified number of bytes.voidupdateClob(int columnIndex, Reader reader) Updates the designated column using the givenReaderobject.voidupdateClob(int columnIndex, Reader reader, long length) Updates the designated column using the givenReaderobject, which is the given number of characters long.voidupdateClob(int columnIndex, Clob x) Updates the designated column with a java.sql.Clob value.voidupdateClob(String columnLabel, Reader reader) Updates the designated column using the givenReaderobject.voidupdateClob(String columnLabel, Reader reader, long length) Updates the designated column using the givenReaderobject, which is the given number of characters long.voidupdateClob(String columnName, Clob x) Updates the designated column with a java.sql.Clob value.voidupdateDate(int columnIndex, Date x) JDBC 2.0 Update a column with a Date value.voidupdateDate(String columnName, Date x) JDBC 2.0 Update a column with a Date value.voidupdateDouble(int columnIndex, double x) JDBC 2.0 Update a column with a Double value.voidupdateDouble(String columnName, double x) JDBC 2.0 Update a column with a double value.voidupdateFloat(int columnIndex, float x) JDBC 2.0 Update a column with a float value.voidupdateFloat(String columnName, float x) JDBC 2.0 Update a column with a float value.voidupdateInt(int columnIndex, int x) JDBC 2.0 Update a column with an integer value.voidupdateInt(String columnName, int x) JDBC 2.0 Update a column with an integer value.voidupdateLong(int columnIndex, long x) JDBC 2.0 Update a column with a long value.voidupdateLong(String columnName, long x) JDBC 2.0 Update a column with a long value.voidupdateNCharacterStream(int columnIndex, Reader x) Updates the designated column with a character stream value.voidupdateNCharacterStream(int columnIndex, Reader x, long length) Updates the designated column with a character stream value, which will have the specified number of bytes.voidupdateNCharacterStream(String columnLabel, Reader reader) Updates the designated column with a character stream value.voidupdateNCharacterStream(String columnLabel, Reader reader, long length) Updates the designated column with a character stream value, which will have the specified number of bytes.voidupdateNClob(int columnIndex, Reader reader) Updates the designated column using the givenReaderThe data will be read from the stream as needed until end-of-stream is reached.voidupdateNClob(int columnIndex, Reader reader, long length) Updates the designated column using the givenReaderobject, which is the given number of characters long.voidupdateNClob(int columnIndex, NClob nClob) Updates the designated column with ajava.sql.NClobvalue.voidupdateNClob(String columnLabel, Reader reader) Updates the designated column using the givenReaderobject.voidupdateNClob(String columnLabel, Reader reader, long length) Updates the designated column using the givenReaderobject, which is the given number of characters long.voidupdateNClob(String columnLabel, NClob nClob) Updates the designated column with ajava.sql.NClobvalue.voidupdateNString(int columnIndex, String nString) Updates the designated column with aStringvalue.voidupdateNString(String columnLabel, String nString) Updates the designated column with aStringvalue.voidupdateNull(int columnIndex) JDBC 2.0 Give a nullable column a null value.voidupdateNull(String columnName) JDBC 2.0 Update a column with a null value.voidupdateObject(int columnIndex, Object x) JDBC 2.0 Update a column with an Object value.voidupdateObject(int columnIndex, Object x, int scale) JDBC 2.0 Update a column with an Object value.voidupdateObject(String columnName, Object x) JDBC 2.0 Update a column with an Object value.voidupdateObject(String columnName, Object x, int scale) JDBC 2.0 Update a column with an Object value.voidupdateRef(int columnIndex, Ref x) Updates the designated column with a java.sql.Ref value Empty method implementation for JDK1.4 compliance.voidupdateRef(String columnName, Ref x) Updates the designated column with a java.sql.Ref value Empty method implementation for JDK1.4 compliance.voidJDBC 2.0 Update the underlying database with the new contents of the current row.voidupdateRowId(int columnIndex, RowId x) Updates the designated column with aRowIdvalue.voidupdateRowId(String columnLabel, RowId x) Updates the designated column with aRowIdvalue.voidupdateShort(int columnIndex, short x) JDBC 2.0 Update a column with a short value.voidupdateShort(String columnName, short x) JDBC 2.0 Update a column with a short value.voidupdateSQLXML(int columnIndex, SQLXML xmlObject) Updates the designated column with ajava.sql.SQLXMLvalue.voidupdateSQLXML(String columnLabel, SQLXML xmlObject) Updates the designated column with ajava.sql.SQLXMLvalue.voidupdateString(int columnIndex, String x) JDBC 2.0 Update a column with a String value.voidupdateString(String columnName, String x) JDBC 2.0 Update a column with a String value.voidupdateTime(int columnIndex, Time x) JDBC 2.0 Update a column with a Time value.voidupdateTime(String columnName, Time x) JDBC 2.0 Update a column with a Time value.voidupdateTimestamp(int columnIndex, Timestamp x) JDBC 2.0 Update a column with a Timestamp value.voidupdateTimestamp(String columnName, Timestamp x) JDBC 2.0 Update a column with a Timestamp value.booleanwasNull()TheMVAResultSetimplementation ofwasNullwill return true if the last column read contained a numeric SAS missing value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.sql.ResultSet
updateObject, updateObject, updateObject, updateObject
-
Field Details
-
NOSUBTYPE
public static final int NOSUBTYPE- See Also:
-
DATE
public static final int DATE- See Also:
-
TIME
public static final int TIME- See Also:
-
DATETIME
public static final int DATETIME- See Also:
-
INTEGER
public static final int INTEGER- See Also:
-
MAYBE_INTEGER
public static final int MAYBE_INTEGER- See Also:
-
NUMERIC
public static final int NUMERIC- See Also:
-
CHARACTER
public static final int CHARACTER- See Also:
-
MAX_FIELD_SIZE
protected static final int MAX_FIELD_SIZE- See Also:
-
_warnings
protected SQLWarning _warnings -
_concurrency
protected final int _concurrency -
_type
protected final int _type -
m_statement
-
m_rowCache
protected com.sas.rio.IRowCache m_rowCache -
_wasNull
protected boolean _wasNull -
m_columnCount
protected int m_columnCount -
m_maxRows
protected int m_maxRows -
initialFetchSize
protected int initialFetchSize
-
-
Method Details
-
absolute
public boolean absolute(int rowIndex) throws SQLException - Specified by:
absolutein interfaceResultSet- Throws:
SQLException
-
relative
public boolean relative(int rows) throws SQLException - Specified by:
relativein interfaceResultSet- Throws:
SQLException
-
beforeFirst
public void beforeFirst() throws SQLExceptionJDBC 2.0 Moves to the front of the result set, just before the first row. Has no effect if the result set contains no rows.- Specified by:
beforeFirstin interfaceResultSet- Throws:
SQLException- This exception is thrown if the result set type is TYPE_FORWARD_ONLY.
-
afterLast
public void afterLast() throws SQLException- Specified by:
afterLastin interfaceResultSet- Throws:
SQLException
-
first
public boolean first() throws SQLExceptionJDBC 2.0 Moves to the first row in the result set.- Specified by:
firstin interfaceResultSet- Returns:
- True if on a valid row, False if no rows in the result set.
- Throws:
SQLException- This exception is thrown if a server error is detected or if the result set type is TYPE_FORWARD_ONLY.
-
last
public boolean last() throws SQLExceptionJDBC 2.0 Moves to the last row in the result set.- Specified by:
lastin interfaceResultSet- Returns:
- True if on a valid row, False if no rows in the result set.
- Throws:
SQLException- This exception is thrown if an MvaException is detected or result set type is TYPE_FORWARD_ONLY.
-
isBeforeFirst
public boolean isBeforeFirst() throws SQLExceptionJDBC 2.0 Determines if the cursor is before the first row in the result set.- Specified by:
isBeforeFirstin interfaceResultSet- Returns:
- True if before the first row, False otherwise. Returns false when the result set contains no rows.
- Throws:
SQLException- This exception is required by the interface but it is never thrown.
-
isAfterLast
public boolean isAfterLast() throws SQLExceptionJDBC 2.0 Determines if the cursor is after the last row in the result set. NOTE: Indicates EOF (status flag from last ReadRecords())- Specified by:
isAfterLastin interfaceResultSet- Returns:
- True if after the last row, False otherwise. Returns false when the result set contains no rows.
- Throws:
SQLException- This exception is required by the interface but it is never thrown.
-
isFirst
public boolean isFirst() throws SQLExceptionJDBC 2.0 Indicates whether the cursor is on the first row of thisResultSetobject.- Specified by:
isFirstin interfaceResultSet- Returns:
- boolean - true if cursor in on first row, false if not.
- Throws:
SQLException- - If a data access error occurs.
-
isLast
public boolean isLast() throws SQLException- Specified by:
isLastin interfaceResultSet- Throws:
SQLException
-
next
public boolean next() throws SQLExceptionProceeds to the next row in the ResultSet.- Specified by:
nextin interfaceResultSet- Returns:
- True if the next row is valid and False if not valid.
- Throws:
SQLException- This exception is thrown if a server error is detected.
-
previous
public boolean previous() throws SQLException- Specified by:
previousin interfaceResultSet- Throws:
SQLException
-
close
public void close() throws SQLExceptionCloses the ResultSet.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceResultSet- Throws:
SQLException- This exception is thrown if a server error is detected.
-
wasNull
public boolean wasNull() throws SQLExceptionTheMVAResultSetimplementation ofwasNullwill return true if the last column read contained a numeric SAS missing value. In the case where the last column read contained a character SAS missing valuefalseis always returned.To determine if the value was character missing you can use the SAS SQL "IS [NOT] MISSING extension to the SQL language. Alternatively, you can call
String#trim().length()and check for zero length.- Specified by:
wasNullin interfaceResultSet- Throws:
SQLException
-
getString
public String getString(int columnIndex) throws SQLException Gets the value of a column in the current row as a Java String.- Specified by:
getStringin interfaceResultSet- Parameters:
columnIndex- The first column is 1, the second is 2, and so on.- Returns:
- The column value. If the value is SQL NULL, the result is null.
- Throws:
SQLException- This exception is thrown if the column value is not valid.
-
getBoolean
public boolean getBoolean(int columnIndex) throws SQLException Gets the value of a column in the current row as a Java boolean.- Specified by:
getBooleanin interfaceResultSet- Parameters:
columnIndex- The first column is 1, the second is 2, and so on.- Returns:
- The column value. If the value is SQL NULL, then the result is FALSE.
- Throws:
SQLException- This exception is thrown if the column value is not valid or the SQL type cannot be converted to a boolean value.
-
getByte
public byte getByte(int columnIndex) throws SQLException Gets the value of a column in the current row as a Java byte.- Specified by:
getBytein interfaceResultSet- Parameters:
columnIndex- The first column is 1, the second is 2, and so on.- Returns:
- The column value. If the value is SQL NULL, then result is 0.
- Throws:
SQLException- This exception is thrown if the column value is not valid or the SQL type cannot be converted to byte representation.
-
getShort
public short getShort(int columnIndex) throws SQLException Gets the value of a column in the current row as a Java short.- Specified by:
getShortin interfaceResultSet- Parameters:
columnIndex- The first column is 1, the second is 2, and so on.- Returns:
- The column value. If the value is SQL NULL, then result is 0.
- Throws:
SQLException- This exception is thrown if the column value is not valid or the SQL type cannot be converted to byte representation.
-
getInt
public int getInt(int columnIndex) throws SQLException Gets the value of a column in the current row as a Java int.- Specified by:
getIntin interfaceResultSet- Parameters:
columnIndex- The first column is 1, the second column is 2, and so on.- Returns:
- The column value. If the value is SQL NULL, then the result is 0.
- Throws:
SQLException- This exception is thrown if the column value is not valid or the SQL type cannot be converted to a valid int value.
-
getLong
public long getLong(int columnIndex) throws SQLException Gets the value of a column in the current row as a Java long.- Specified by:
getLongin interfaceResultSet- Parameters:
columnIndex- The first column is 1, the second column is 2, and so on.- Returns:
- The column value. If the value is SQL NULL, then the result is 0.
- Throws:
SQLException- This exception is thrown if the column value is not valid or the SQL type cannot be converted to a valid long value.
-
getFloat
public float getFloat(int columnIndex) throws SQLException Gets the value of a column in the current row as a Java float.- Specified by:
getFloatin interfaceResultSet- Parameters:
columnIndex- The first column is 1, the second column is 2, and so on.- Returns:
- The column value. If the value is SQL NULL, then the result is 0.
- Throws:
SQLException- This exception is thrown if the column value is not valid or the SQL type cannot be converted to a valid float value.
-
getDouble
public double getDouble(int columnIndex) throws SQLException Gets the value of a column in the current row as a Java double.- Specified by:
getDoublein interfaceResultSet- Parameters:
columnIndex- The first column is 1, the second column is 2, and so on.- Returns:
- The column value. If the value is SQL NULL, then the result is 0.
- Throws:
SQLException- This exception is thrown if the column value is not valid or the SQL type cannot be converted to a valid double value.
-
getBigDecimal
@Deprecated public BigDecimal getBigDecimal(int columnIndex, int scale) throws SQLException Deprecated.Gets the value of a column in the current row as a Java BigDecimal.- Specified by:
getBigDecimalin interfaceResultSet- Parameters:
columnIndex- The first column is 1, the second column is 2, and so on.- Returns:
- The column value. If the value is SQL NULL, then the result is NULL.
- Throws:
SQLException- This exception is thrown if the column value is not valid or the SQL type cannot be converted to a valid BigDecimal value.
-
getBytes
public byte[] getBytes(int columnIndex) throws SQLException Gets the value of a column in the current row as a Java byte array. This method is not supported.- Specified by:
getBytesin interfaceResultSet- Throws:
SQLException- This exception is always thrown because SAS software does not support conversions to binary representation.
-
getDate
public Date getDate(int columnIndex) throws SQLException Gets the value of a column in the current row as a Java java.sql.Date.- Specified by:
getDatein interfaceResultSet- Parameters:
columnIndex- The first column is 1, the second column is 2, and so on.- Returns:
- The column value. If the value is SQL NULL, then the result is NULL.
- Throws:
SQLException- This exception is thrown if the column value is not valid or the SQL type cannot be converted to a valid java.sql.Date value.
-
getTime
public Time getTime(int columnIndex) throws SQLException Gets the value of a column in the current row as a Java java.sql.Time.- Specified by:
getTimein interfaceResultSet- Parameters:
columnIndex- The first column is 1, the second column is 2, and so on.- Returns:
- The column value. If the value is SQL NULL, then the result is NULL.
- Throws:
SQLException- This exception is thrown if the column value is not valid or the SQL type cannot be converted to a valid java.sql.Time value.
-
getTimestamp
public Timestamp getTimestamp(int columnIndex) throws SQLException Gets the value of a column in the current row as a Java java.sql.Timestamp.- Specified by:
getTimestampin interfaceResultSet- Parameters:
columnIndex- The first column is 1, the second column is 2, and so on.- Returns:
- The column value. If the value is SQL NULL, then the result is NULL.
- Throws:
SQLException- This exception is thrown if the column value is not valid or the SQL type cannot be converted to a valid java.sql.Timestamp value.
-
getAsciiStream
public InputStream getAsciiStream(int columnIndex) throws SQLException Gets the value of a column in the current row as a Java InputStream.- Specified by:
getAsciiStreamin interfaceResultSet- Parameters:
columnIndex- The first column is 1, the second column is 2, and so on.- Returns:
- The column value.
- Throws:
SQLException- This exception is thrown if the column value is not valid or the SQL type cannot be converted to a valid java.sql.Type.VARCHAR value. SAS software does not support other conversions.
-
getUnicodeStream
public InputStream getUnicodeStream(int columnIndex) throws SQLException TheMVAResultSetimplementation ofgetUnicodeStream(int)only supports columns with a SQL type ofjava.sql.Types.CHARorjava.sql.Types.VARCHAR.- Specified by:
getUnicodeStreamin interfaceResultSet- Throws:
SQLException
-
getBinaryStream
public InputStream getBinaryStream(int columnIndex) throws SQLException TheMVAResultSetimplementation ofgetBinaryStream(int)only supports columns with a SQL type ofjava.sql.Types.CHARorjava.sql.Types.VARCHAR.- Specified by:
getBinaryStreamin interfaceResultSet- Throws:
SQLException
-
getString
public String getString(String columnName) throws SQLException Gets the value of a column in the current row as a Java String.- Specified by:
getStringin interfaceResultSet- Parameters:
columnName- The name of the column that is returned by the ResultSetMetaData object.- Returns:
- The column value. If the value is SQL NULL, then the result is NULL.
- Throws:
SQLException- This exception is thrown if the column value is not valid.
-
getBoolean
public boolean getBoolean(String columnName) throws SQLException Gets the value of a column in the current row as a Java boolean.- Specified by:
getBooleanin interfaceResultSet- Parameters:
columnName- The name of the column that is returned by the ResultSetMetaData object.- Returns:
- The column value. If the value is SQL NULL, then the result is False.
- Throws:
SQLException- This exception is thrown if the column value is not valid or the SQL type cannot be converted into a boolean value.
-
getByte
public byte getByte(String columnName) throws SQLException Gets the value of a column in the current row as a Java byte.- Specified by:
getBytein interfaceResultSet- Parameters:
columnName- The name of the column that is returned by the ResultSetMetaData object.- Returns:
- The column value. If the value is SQL NULL, then the result is 0.
- Throws:
SQLException- This exception is thrown if the column value is not valid or the SQL type cannot be converted to byte representation.
-
getShort
public short getShort(String columnName) throws SQLException Gets the value of a column in the current row as a Java short.- Specified by:
getShortin interfaceResultSet- Parameters:
columnName- The name of the column that is returned by the ResultSetMetaData object.- Returns:
- The column value. If the value is SQL NULL, then the result is 0.
- Throws:
SQLException- This exception is thrown if the column value is not valid or the SQL type cannot be converted into a valid short value.
-
getInt
public int getInt(String columnName) throws SQLException Gets the value of a column in the current row as a Java int.- Specified by:
getIntin interfaceResultSet- Parameters:
columnName- The name of the column that is returned by the ResultSetMetaData object.- Returns:
- The column value. If the value is SQL NULL, then the result is 0.
- Throws:
SQLException- This exception is thrown if the column value is not valid or the SQL type cannot be converted into a valid int value.
-
getLong
public long getLong(String columnName) throws SQLException Gets the value of a column in the current row as a Java long.- Specified by:
getLongin interfaceResultSet- Parameters:
columnName- The name of the column that is returned by the ResultSetMetaData object.- Returns:
- The column value. If the value is SQL NULL, then the result is 0.
- Throws:
SQLException- This exception is thrown if the column value is not valid or the SQL type cannot be converted into a valid long value.
-
getFloat
public float getFloat(String columnName) throws SQLException Gets the value of a column in the current row as a Java float.- Specified by:
getFloatin interfaceResultSet- Parameters:
columnName- The name of the column that is returned by the ResultSetMetaData object.- Returns:
- The column value. If the value is SQL NULL, then the result is 0.
- Throws:
SQLException- This exception is thrown if the column value is not valid or the SQL type cannot be converted into a valid float value.
-
getDouble
public double getDouble(String columnName) throws SQLException Gets the value of a column in the current row as a Java double.- Specified by:
getDoublein interfaceResultSet- Parameters:
columnName- The name of the column that is returned by the ResultSetMetaData object.- Returns:
- The column value. If the value is SQL NULL, then the result is 0.
- Throws:
SQLException- This exception is thrown if the column value is not valid or the SQL type cannot be converted into a valid double value.
-
getBigDecimal
@Deprecated public BigDecimal getBigDecimal(String columnName, int scale) throws SQLException Deprecated.Gets the value of a column in the current row as a Java BigDecimal.- Specified by:
getBigDecimalin interfaceResultSet- Parameters:
columnName- The name of the column that is returned by the ResultSetMetaData object.- Returns:
- The column value. If the value is SQL NULL, then the result is NULL.
- Throws:
SQLException- This exception is thrown if the column value is not valid or the SQL type cannot be converted into a valid BigDecimal value.
-
getBytes
public byte[] getBytes(String columnName) throws SQLException Gets the value of a column in the current row as a Java byte array. This method is not supported.- Specified by:
getBytesin interfaceResultSet- Throws:
SQLException- This exception is always thrown because SAS software does not support conversions to binary representation.
-
getDate
public Date getDate(String columnName) throws SQLException Gets the value of a column in the current row as a Java java.sql.Date.- Specified by:
getDatein interfaceResultSet- Parameters:
columnName- The name of the column that is returned by the ResultSetMetaData object.- Returns:
- The column value. If the value is SQL NULL, then the result is NULL.
- Throws:
SQLException- This exception is thrown if the column value is not valid or the SQL type cannot be converted into a valid java.sql.Date value.
-
getTime
public Time getTime(String columnName) throws SQLException Gets the value of a column in the current row as a Java java.sql.Time.- Specified by:
getTimein interfaceResultSet- Parameters:
columnName- The name of the column that is returned by the ResultSetMetaData object.- Returns:
- The column value. If the value is SQL NULL, then the result is NULL.
- Throws:
SQLException- This exception is thrown if the column value is not valid or the SQL type cannot be converted into a valid java.sql.Time value.
-
getTimestamp
public Timestamp getTimestamp(String columnName) throws SQLException Gets the value of a column in the current row as a Java java.sql.Timestamp.- Specified by:
getTimestampin interfaceResultSet- Parameters:
columnName- The name of the column that is returned by the ResultSetMetaData object.- Returns:
- The column value. If the value is SQL NULL, then the result is NULL.
- Throws:
SQLException- This exception is thrown if the column value is not valid or the SQL type cannot be converted into a valid java.sql.Timestamp value.
-
getAsciiStream
public InputStream getAsciiStream(String columnName) throws SQLException Gets the value of a column in the current row as a Java InputStream.- Specified by:
getAsciiStreamin interfaceResultSet- Parameters:
columnName- The name of the column that is returned by the ResultSetMetaData object.- Returns:
- The column value.
- Throws:
SQLException- This exception is thrown if the column value is not valid or the value is not java.sql.Type.VARCHAR. No other conversions are supported.
-
getUnicodeStream
@Deprecated public InputStream getUnicodeStream(String columnName) throws SQLException Deprecated.Gets the value of a column in the current row as a Java InputStream.- Specified by:
getUnicodeStreamin interfaceResultSet- Parameters:
columnName- The name of the column that is returned by the ResultSetMetaData object.- Returns:
- The column value.
- Throws:
SQLException- This exception is thrown if the column value is not valid or the value is not java.sql.Type.VARCHAR. No other conversions are supported.
-
getBinaryStream
public InputStream getBinaryStream(String columnName) throws SQLException Gets the value of a column in the current row as a Java InputStream.- Specified by:
getBinaryStreamin interfaceResultSet- Parameters:
columnName- The name of the column that is returned by the ResultSetMetaData object.- Returns:
- The column value. If the value is SQL NULL, then the result is NULL.
- Throws:
SQLException- This exception is thrown if the column value is not valid or the value is not java.sql.Type.VARCHAR. No other conversions are supported.
-
getWarnings
public SQLWarning getWarnings() throws SQLExceptionGets the SQLWarnings that are associated with this row.- Specified by:
getWarningsin interfaceResultSet- Returns:
- SQLWarning. All warnings for the current row.
- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
clearWarnings
public void clearWarnings() throws SQLExceptionAfter this call getWarnings returns null until a new warning is reported for this ResultSet.- Specified by:
clearWarningsin interfaceResultSet- Throws:
SQLException- This exception is required by the interface, but it is never thrown.
-
getCursorName
public String getCursorName() throws SQLExceptionGets the name of the SQL cursor used by this ResultSet.- Specified by:
getCursorNamein interfaceResultSet- Returns:
- the ResultSet's SQL cursor name
- Throws:
SQLException- if a database-access error occurs.
-
getMetaData
public ResultSetMetaData getMetaData() throws SQLExceptionGets a ResultSetMetaData object that is associated with this ResultSet.- Specified by:
getMetaDatain interfaceResultSet- Returns:
- A MVAResultSetMetaData object.
- Throws:
SQLException- This exception is thrown if an error condition is detected.
-
getObject
public Object getObject(int columnIndex) throws SQLException Gets the value of a column in its default Java representation.- Specified by:
getObjectin interfaceResultSet- Parameters:
columnIndex- The first column is 1, the second column is 2, and so on.- Returns:
- The column value as an Object. If the value is SQL NULL, then the result is NULL.
- Throws:
SQLException- This exception is thrown if the column index is not valid.
-
getObject
public Object getObject(String columnName) throws SQLException Gets the value of a column in its default Java representation.- Specified by:
getObjectin interfaceResultSet- Parameters:
columnName- The name of the column.- Returns:
- The column value as an Object. If the value is SQL NULL, then the result is NULL.
- Throws:
SQLException- This exception is thrown if the column index is not valid.
-
findColumn
public int findColumn(String columnName) throws SQLException Maps a Resultset column name to a ResultSet column index.- Specified by:
findColumnin interfaceResultSet- Parameters:
columnName- The name of the column.- Returns:
- The column index.
- Throws:
SQLException- This exception is thrown if the column name is not valid.
-
getCharacterStream
public Reader getCharacterStream(int columnIndex) throws SQLException JDBC 2.0 Gets the value of a column in the current row as a java.io.Reader.- Specified by:
getCharacterStreamin interfaceResultSet- Parameters:
columnIndex- The first column is 1, the second column is 2, and so on.- Returns:
- A java.io.Reader Object. If the value is SQL NULL, then the result is NULL.
- Throws:
SQLException- This exception is thrown if the column index is not valid.
-
getCharacterStream
public Reader getCharacterStream(int columnIndex, String charsetName) throws SQLException JDBC 2.0 Proprietary Extension (S0678753) Gets the value of a column in the current row as a java.io.Reader using a specified character set.- Parameters:
columnIndex- The first column is 1, the second column is 2, and so on.charsetName- The name of a supportedcharset- Returns:
- A java.io.Reader Object. If the value is SQL NULL, then the result is NULL.
- Throws:
SQLException- This exception is thrown if the column index or type, or file encoding is not valid.
-
getCharacterStream
public Reader getCharacterStream(String columnName, String charsetName) throws SQLException JDBC 2.0 Proprietary Extension (S0678753) Gets the value of a column in the current row as a java.io.Reader using a specified character set.- Parameters:
columnName- The name of the column.charsetName- The name of a supportedcharset- Returns:
- A java.io.Reader Object. If the value is SQL NULL, then the result is NULL.
- Throws:
SQLException- This exception is thrown if the column index is not valid.
-
getCharacterStream
public Reader getCharacterStream(String columnName) throws SQLException JDBC 2.0 Gets the value of a column in the current row as a java.io.Reader- Specified by:
getCharacterStreamin interfaceResultSet- Parameters:
columnName- The name of the column.- Returns:
- A java.io.Reader Object. If the value is SQL NULL, then the result is NULL.
- Throws:
SQLException- This exception is thrown if the column index is not valid.
-
getBigDecimal
public BigDecimal getBigDecimal(int columnIndex) throws SQLException - Specified by:
getBigDecimalin interfaceResultSet- Throws:
SQLException
-
getBigDecimal
public BigDecimal getBigDecimal(String columnName) throws SQLException - Specified by:
getBigDecimalin interfaceResultSet- Throws:
SQLException
-
getRow
public int getRow() throws SQLException- Specified by:
getRowin interfaceResultSet- Throws:
SQLException
-
setFetchDirection
public void setFetchDirection(int direction) throws SQLException The IOM JDBC driver silently ignores the hint to set the fetch direction.- Specified by:
setFetchDirectionin interfaceResultSet- Throws:
SQLException
-
getFetchDirection
public int getFetchDirection() throws SQLExceptionThe IOM JDBC driver always returnsResultSet.FETCH_FORWARDfor the fetch direction, as calls tosetFetchDirection(int)are silently ignored.- Specified by:
getFetchDirectionin interfaceResultSet- Throws:
SQLException
-
setFetchSize
public void setFetchSize(int rows) throws SQLException - Specified by:
setFetchSizein interfaceResultSet- Throws:
SQLException
-
getFetchSize
public int getFetchSize() throws SQLExceptionJDBC 2.0 Gets the fetch size.- Specified by:
getFetchSizein interfaceResultSet- Returns:
- An integer value indicating the number of rows fetched for this result set.
- Throws:
SQLException- This exception is required by the interface but it is never thrown.
-
getType
public int getType() throws SQLExceptionJDBC 2.0 Gets the result set type. The type is determined based on the statement that created the result set.- Specified by:
getTypein interfaceResultSet- Returns:
- The result set type, TYPE_SCROLL_INSENSITIVE or TYPE_FORWARD_ONLY based on the Statement object.
- Throws:
SQLException- This exception is required by the interface but it is never thrown.
-
getConcurrency
public int getConcurrency() throws SQLExceptionJDBC 2.0 Gets the concurrency of this result set. The concurrency used is determined by the statement that created the result set.- Specified by:
getConcurrencyin interfaceResultSet- Returns:
- The concurrency type, CONCUR_UPDATABLE or CONCUR_READ_ONLY based on the Statement object.
- Throws:
SQLException- This exception is required by the interface but it is never thrown.
-
rowUpdated
public boolean rowUpdated() throws SQLExceptionJDBC 2.0 Determine if the current row has been updated. This method is not supported.- Specified by:
rowUpdatedin interfaceResultSet- Throws:
SQLException- This exception is always thrown because SAS software does not detect row updated.- See Also:
-
rowInserted
public boolean rowInserted() throws SQLExceptionJDBC 2.0 Determines if the current row has been inserted. This method is not supported.- Specified by:
rowInsertedin interfaceResultSet- Throws:
SQLException- This exception is always thrown because SAS software does not detect row inserts.- See Also:
-
rowDeleted
public boolean rowDeleted() throws SQLExceptionJDBC 2.0 Determines if this row has been deleted. This method is not supported.- Specified by:
rowDeletedin interfaceResultSet- Throws:
SQLException- This exception is always thrown because SAS software does not detect row deletes.- See Also:
-
updateNull
public void updateNull(int columnIndex) throws SQLException JDBC 2.0 Give a nullable column a null value.- Specified by:
updateNullin interfaceResultSet- Parameters:
columnIndex- the first column is 1, the second is 2, ...- Throws:
SQLException- This exception is thrown if the column index is not valid.
-
updateBoolean
public void updateBoolean(int columnIndex, boolean x) throws SQLException JDBC 2.0 Update a column with a boolean value. The updateXXX() methods are used to update column values in the current row, or the insert row. The updateXXX() methods do not update the underlying database, instead the updateRow() or insertRow() methods are called to update the database.- Specified by:
updateBooleanin interfaceResultSet- Parameters:
columnIndex- the first column is 1, the second is 2, ...x- the new column value- Throws:
SQLException- This exception is thrown if the column index is not valid.
-
updateByte
public void updateByte(int columnIndex, byte x) throws SQLException JDBC 2.0 Update a column with a byte value. The updateXXX() methods are used to update column values in the current row, or the insert row. The updateXXX() methods do not update the underlying database, instead the updateRow() or insertRow() methods are called to update the database.- Specified by:
updateBytein interfaceResultSet- Parameters:
columnIndex- the first column is 1, the second is 2, ...x- the new column value- Throws:
SQLException- This exception is thrown if the column index is not valid.
-
updateShort
public void updateShort(int columnIndex, short x) throws SQLException JDBC 2.0 Update a column with a short value. The updateXXX() methods are used to update column values in the current row, or the insert row. The updateXXX() methods do not update the underlying database, instead the updateRow() or insertRow() methods are called to update the database.- Specified by:
updateShortin interfaceResultSet- Parameters:
columnIndex- the first column is 1, the second is 2, ...x- the new column value- Throws:
SQLException- This exception is thrown if the column index is not valid.
-
updateInt
public void updateInt(int columnIndex, int x) throws SQLException JDBC 2.0 Update a column with an integer value. The updateXXX() methods are used to update column values in the current row, or the insert row. The updateXXX() methods do not update the underlying database, instead the updateRow() or insertRow() methods are called to update the database.- Specified by:
updateIntin interfaceResultSet- Parameters:
columnIndex- the first column is 1, the second is 2, ...x- the new column value- Throws:
SQLException- This exception is thrown if the column index is not valid.
-
updateLong
public void updateLong(int columnIndex, long x) throws SQLException JDBC 2.0 Update a column with a long value. Method not yet supported. The updateXXX() methods are used to update column values in the current row, or the insert row. The updateXXX() methods do not update the underlying database, instead the updateRow() or insertRow() methods are called to update the database.- Specified by:
updateLongin interfaceResultSet- Parameters:
columnIndex- the first column is 1, the second is 2, ...x- the new column value- Throws:
SQLException- This exception is always thrown.
-
updateFloat
public void updateFloat(int columnIndex, float x) throws SQLException JDBC 2.0 Update a column with a float value. The updateXXX() methods are used to update column values in the current row, or the insert row. The updateXXX() methods do not update the underlying database, instead the updateRow() or insertRow() methods are called to update the database.- Specified by:
updateFloatin interfaceResultSet- Parameters:
columnIndex- the first column is 1, the second is 2, ...x- the new column value- Throws:
SQLException- This exception is thrown if the column index is not valid.
-
updateDouble
public void updateDouble(int columnIndex, double x) throws SQLException JDBC 2.0 Update a column with a Double value. The updateXXX() methods are used to update column values in the current row, or the insert row. The updateXXX() methods do not update the underlying database, instead the updateRow() or insertRow() methods are called to update the database.- Specified by:
updateDoublein interfaceResultSet- Parameters:
columnIndex- the first column is 1, the second is 2, ...x- the new column value- Throws:
SQLException- This exception is thrown if the column index is not valid.
-
updateBigDecimal
public void updateBigDecimal(int columnIndex, BigDecimal x) throws SQLException JDBC 2.0 Update a column with a BigDecimal value. The updateXXX() methods are used to update column values in the current row, or the insert row. The updateXXX() methods do not update the underlying database, instead the updateRow() or insertRow() methods are called to update the database.- Specified by:
updateBigDecimalin interfaceResultSet- Parameters:
columnIndex- the first column is 1, the second is 2, ...x- the new column value- Throws:
SQLException- This exception is thrown if the column index is not valid.
-
updateString
public void updateString(int columnIndex, String x) throws SQLException JDBC 2.0 Update a column with a String value. The updateXXX() methods are used to update column values in the current row, or the insert row. The updateXXX() methods do not update the underlying database, instead the updateRow() or insertRow() methods are called to update the database.- Specified by:
updateStringin interfaceResultSet- Parameters:
columnIndex- the first column is 1, the second is 2, ...x- the new column value- Throws:
SQLException- This exception is thrown if the column index is not valid.
-
updateBytes
public void updateBytes(int columnIndex, byte[] x) throws SQLException JDBC 2.0 Update a column with a byte array value. The updateXXX() methods are used to update column values in the current row, or the insert row. The updateXXX() methods do not update the underlying database, instead the updateRow() or insertRow() methods are called to update the database.- Specified by:
updateBytesin interfaceResultSet- Parameters:
columnIndex- the first column is 1, the second is 2, ...x- the new column value- Throws:
SQLException- This exception is thrown if the column index is not valid.
-
updateDate
public void updateDate(int columnIndex, Date x) throws SQLException JDBC 2.0 Update a column with a Date value. The updateXXX() methods are used to update column values in the current row, or the insert row. The updateXXX() methods do not update the underlying database, instead the updateRow() or insertRow() methods are called to update the database.- Specified by:
updateDatein interfaceResultSet- Parameters:
columnIndex- the first column is 1, the second is 2, ...x- the new column value- Throws:
SQLException- This exception is thrown if the column index is not valid.
-
updateTime
public void updateTime(int columnIndex, Time x) throws SQLException JDBC 2.0 Update a column with a Time value. The updateXXX() methods are used to update column values in the current row, or the insert row. The updateXXX() methods do not update the underlying database, instead the updateRow() or insertRow() methods are called to update the database.- Specified by:
updateTimein interfaceResultSet- Parameters:
columnIndex- the first column is 1, the second is 2, ...x- the new column value- Throws:
SQLException- This exception is thrown if the column index is not valid.
-
updateTimestamp
public void updateTimestamp(int columnIndex, Timestamp x) throws SQLException JDBC 2.0 Update a column with a Timestamp value. The updateXXX() methods are used to update column values in the current row, or the insert row. The updateXXX() methods do not update the underlying database, instead the updateRow() or insertRow() methods are called to update the database.- Specified by:
updateTimestampin interfaceResultSet- Parameters:
columnIndex- the first column is 1, the second is 2, ...x- the new column value- Throws:
SQLException- This exception is thrown if the column index is not valid.
-
updateAsciiStream
public void updateAsciiStream(int columnIndex, InputStream x, int length) throws SQLException JDBC 2.0 Update a column with an ASCII stream value. The updateXXX() methods are used to update column values in the current row, or the insert row. The updateXXX() methods do not update the underlying database, instead the updateRow() or insertRow() methods are called to update the database.- Specified by:
updateAsciiStreamin interfaceResultSet- Parameters:
columnIndex- the first column is 1, the second is 2, ...x- the new column valuelength- the length of the stream- Throws:
SQLException- This exception is thrown if the column index is not valid.
-
updateBinaryStream
public void updateBinaryStream(int columnIndex, InputStream x, int length) throws SQLException JDBC 2.0 Update a column with a binary stream value. The updateXXX() methods are used to update column values in the current row, or the insert row. The updateXXX() methods do not update the underlying database, instead the updateRow() or insertRow() methods are called to update the database.- Specified by:
updateBinaryStreamin interfaceResultSet- Parameters:
columnIndex- the first column is 1, the second is 2, ...x- the new column valuelength- the length of the stream- Throws:
SQLException- This exception is thrown if the column index is not valid.
-
updateCharacterStream
public void updateCharacterStream(int columnIndex, Reader x, int length) throws SQLException JDBC 2.0 Update a column with a character stream value. The updateXXX() methods are used to update column values in the current row, or the insert row. The updateXXX() methods do not update the underlying database, instead the updateRow() or insertRow() methods are called to update the database.- Specified by:
updateCharacterStreamin interfaceResultSet- Parameters:
columnIndex- the first column is 1, the second is 2, ...x- the new column valuelength- the length of the stream- Throws:
SQLException- This exception is thrown if the column index is not valid.
-
updateObject
public void updateObject(int columnIndex, Object x, int scale) throws SQLException JDBC 2.0 Update a column with an Object value. The updateXXX() methods are used to update column values in the current row, or the insert row. The updateXXX() methods do not update the underlying database, instead the updateRow() or insertRow() methods are called to update the database.- Specified by:
updateObjectin interfaceResultSet- Parameters:
columnIndex- the first column is 1, the second is 2, ...x- the new column valuescale- For java.sql.Types.DECIMAL or java.sql.Types.NUMERIC types this is the number of digits after the decimal. For all other types this value will be ignored.- Throws:
SQLException- This exception is thrown if the column index is not valid.
-
updateObject
public void updateObject(int columnIndex, Object x) throws SQLException JDBC 2.0 Update a column with an Object value. The updateXXX() methods are used to update column values in the current row, or the insert row. The updateXXX() methods do not update the underlying database, instead the updateRow() or insertRow() methods are called to update the database.- Specified by:
updateObjectin interfaceResultSet- Parameters:
columnIndex- the first column is 1, the second is 2, ...x- the new column value- Throws:
SQLException- This exception is thrown if the column index is not valid.
-
updateNull
public void updateNull(String columnName) throws SQLException JDBC 2.0 Update a column with a null value. The updateXXX() methods are used to update column values in the current row, or the insert row. The updateXXX() methods do not update the underlying database, instead the updateRow() or insertRow() methods are called to update the database.- Specified by:
updateNullin interfaceResultSet- Parameters:
columnName- the name of the column- Throws:
SQLException- if a database-access error occurs
-
updateBoolean
public void updateBoolean(String columnName, boolean x) throws SQLException JDBC 2.0 Update a column with a boolean value. The updateXXX() methods are used to update column values in the current row, or the insert row. The updateXXX() methods do not update the underlying database, instead the updateRow() or insertRow() methods are called to update the database.- Specified by:
updateBooleanin interfaceResultSet- Parameters:
columnName- the name of the columnx- the new column value- Throws:
SQLException- if a database-access error occurs
-
updateByte
public void updateByte(String columnName, byte x) throws SQLException JDBC 2.0 Update a column with a byte value. The updateXXX() methods are used to update column values in the current row, or the insert row. The updateXXX() methods do not update the underlying database, instead the updateRow() or insertRow() methods are called to update the database.- Specified by:
updateBytein interfaceResultSet- Parameters:
columnName- the name of the columnx- the new column value- Throws:
SQLException- if a database-access error occurs
-
updateShort
public void updateShort(String columnName, short x) throws SQLException JDBC 2.0 Update a column with a short value. The updateXXX() methods are used to update column values in the current row, or the insert row. The updateXXX() methods do not update the underlying database, instead the updateRow() or insertRow() methods are called to update the database.- Specified by:
updateShortin interfaceResultSet- Parameters:
columnName- the name of the columnx- the new column value- Throws:
SQLException- if a database-access error occurs
-
updateInt
public void updateInt(String columnName, int x) throws SQLException JDBC 2.0 Update a column with an integer value. The updateXXX() methods are used to update column values in the current row, or the insert row. The updateXXX() methods do not update the underlying database, instead the updateRow() or insertRow() methods are called to update the database.- Specified by:
updateIntin interfaceResultSet- Parameters:
columnName- the name of the columnx- the new column value- Throws:
SQLException- if a database-access error occurs
-
updateLong
public void updateLong(String columnName, long x) throws SQLException JDBC 2.0 Update a column with a long value. The updateXXX() methods are used to update column values in the current row, or the insert row. The updateXXX() methods do not update the underlying database, instead the updateRow() or insertRow() methods are called to update the database.- Specified by:
updateLongin interfaceResultSet- Parameters:
columnName- the name of the columnx- the new column value- Throws:
SQLException- if a database-access error occurs
-
updateFloat
public void updateFloat(String columnName, float x) throws SQLException JDBC 2.0 Update a column with a float value. The updateXXX() methods are used to update column values in the current row, or the insert row. The updateXXX() methods do not update the underlying database, instead the updateRow() or insertRow() methods are called to update the database.- Specified by:
updateFloatin interfaceResultSet- Parameters:
columnName- the name of the columnx- the new column value- Throws:
SQLException- if a database-access error occurs
-
updateDouble
public void updateDouble(String columnName, double x) throws SQLException JDBC 2.0 Update a column with a double value. The updateXXX() methods are used to update column values in the current row, or the insert row. The updateXXX() methods do not update the underlying database, instead the updateRow() or insertRow() methods are called to update the database.- Specified by:
updateDoublein interfaceResultSet- Parameters:
columnName- the name of the columnx- the new column value- Throws:
SQLException- if a database-access error occurs
-
updateBigDecimal
public void updateBigDecimal(String columnName, BigDecimal x) throws SQLException JDBC 2.0 Update a column with a BigDecimal value. The updateXXX() methods are used to update column values in the current row, or the insert row. The updateXXX() methods do not update the underlying database, instead the updateRow() or insertRow() methods are called to update the database.- Specified by:
updateBigDecimalin interfaceResultSet- Parameters:
columnName- the name of the columnx- the new column value- Throws:
SQLException- if a database-access error occurs
-
updateString
public void updateString(String columnName, String x) throws SQLException JDBC 2.0 Update a column with a String value. The updateXXX() methods are used to update column values in the current row, or the insert row. The updateXXX() methods do not update the underlying database, instead the updateRow() or insertRow() methods are called to update the database.- Specified by:
updateStringin interfaceResultSet- Parameters:
columnName- the name of the columnx- the new column value- Throws:
SQLException- if a database-access error occurs
-
updateBytes
public void updateBytes(String columnName, byte[] x) throws SQLException JDBC 2.0 Update a column with a byte array value. The updateXXX() methods are used to update column values in the current row, or the insert row. The updateXXX() methods do not update the underlying database, instead the updateRow() or insertRow() methods are called to update the database.- Specified by:
updateBytesin interfaceResultSet- Parameters:
columnName- the name of the columnx- the new column value- Throws:
SQLException- if a database-access error occurs
-
updateDate
public void updateDate(String columnName, Date x) throws SQLException JDBC 2.0 Update a column with a Date value. The updateXXX() methods are used to update column values in the current row, or the insert row. The updateXXX() methods do not update the underlying database, instead the updateRow() or insertRow() methods are called to update the database.- Specified by:
updateDatein interfaceResultSet- Parameters:
columnName- the name of the columnx- the new column value- Throws:
SQLException- if a database-access error occurs
-
updateTime
public void updateTime(String columnName, Time x) throws SQLException JDBC 2.0 Update a column with a Time value. The updateXXX() methods are used to update column values in the current row, or the insert row. The updateXXX() methods do not update the underlying database, instead the updateRow() or insertRow() methods are called to update the database.- Specified by:
updateTimein interfaceResultSet- Parameters:
columnName- the name of the columnx- the new column value- Throws:
SQLException- if a database-access error occurs
-
updateTimestamp
public void updateTimestamp(String columnName, Timestamp x) throws SQLException JDBC 2.0 Update a column with a Timestamp value. The updateXXX() methods are used to update column values in the current row, or the insert row. The updateXXX() methods do not update the underlying database, instead the updateRow() or insertRow() methods are called to update the database.- Specified by:
updateTimestampin interfaceResultSet- Parameters:
columnName- the name of the columnx- the new column value- Throws:
SQLException- if a database-access error occurs
-
updateAsciiStream
public void updateAsciiStream(String columnName, InputStream x, int length) throws SQLException JDBC 2.0 Update a column with an ascii stream value. The updateXXX() methods are used to update column values in the current row, or the insert row. The updateXXX() methods do not update the underlying database, instead the updateRow() or insertRow() methods are called to update the database.- Specified by:
updateAsciiStreamin interfaceResultSet- Parameters:
columnName- the name of the columnx- the new column valuelength- of the stream- Throws:
SQLException- if a database-access error occurs
-
updateBinaryStream
public void updateBinaryStream(String columnName, InputStream x, int length) throws SQLException JDBC 2.0 Update a column with a binary stream value. The updateXXX() methods are used to update column values in the current row, or the insert row. The updateXXX() methods do not update the underlying database, instead the updateRow() or insertRow() methods are called to update the database.- Specified by:
updateBinaryStreamin interfaceResultSet- Parameters:
columnName- the name of the columnx- the new column valuelength- of the stream- Throws:
SQLException- if a database-access error occurs
-
updateCharacterStream
public void updateCharacterStream(String columnName, Reader reader, int length) throws SQLException JDBC 2.0 Update a column with a character stream value. The updateXXX() methods are used to update column values in the current row, or the insert row. The updateXXX() methods do not update the underlying database, instead the updateRow() or insertRow() methods are called to update the database.- Specified by:
updateCharacterStreamin interfaceResultSet- Parameters:
columnName- the name of the columnreader- the new column valuelength- of the stream- Throws:
SQLException- if a database-access error occurs
-
updateObject
public void updateObject(String columnName, Object x, int scale) throws SQLException JDBC 2.0 Update a column with an Object value. The updateXXX() methods are used to update column values in the current row, or the insert row. The updateXXX() methods do not update the underlying database, instead the updateRow() or insertRow() methods are called to update the database.- Specified by:
updateObjectin interfaceResultSet- Parameters:
columnName- the name of the columnx- the new column valuescale- For java.sql.Types.DECIMAL or java.sql.Types.NUMERIC types this is the number of digits after the decimal. For all other types this value will be ignored.- Throws:
SQLException- if a database-access error occurs
-
updateObject
public void updateObject(String columnName, Object x) throws SQLException JDBC 2.0 Update a column with an Object value. The updateXXX() methods are used to update column values in the current row, or the insert row. The updateXXX() methods do not update the underlying database, instead the updateRow() or insertRow() methods are called to update the database.- Specified by:
updateObjectin interfaceResultSet- Parameters:
columnName- the name of the columnx- the new column value- Throws:
SQLException- if a database-access error occurs
-
insertRow
public void insertRow() throws SQLExceptionJDBC 2.0 Insert the contents of the insert row into the result set and the database. Must be on the insert row when this method is called. NOTE: SAS software does not support inserts, though inserts might be implemented as append.- Specified by:
insertRowin interfaceResultSet- Throws:
SQLException- This exception is always thrown. This function is available only on ResultSets generated from MVAStatement.getTable()
-
updateRow
public void updateRow() throws SQLExceptionJDBC 2.0 Update the underlying database with the new contents of the current row. Cannot be called when on the insert row.- Specified by:
updateRowin interfaceResultSet- Throws:
SQLException- if a database-access error occurs, or if called when on the insert row This function is available only on ResultSets generated from MVAStatement.getTable()
-
deleteRow
public void deleteRow() throws SQLException- Specified by:
deleteRowin interfaceResultSet- Throws:
SQLException
-
refreshRow
public void refreshRow() throws SQLExceptionJDBC 2.0 Refresh the value of the current row with its current value in the database. Cannot be called when on the insert row. The refreshRow() method provides a way for an application to explicitly tell the JDBC driver to refetch a row(s) from the database. An application may want to call refreshRow() when caching or prefetching is being done by the JDBC driver to fetch the latest value of a row from the database. The JDBC driver may actually refresh multiple rows at once if the fetch size is greater than one. All values are refetched subject to the transaction isolation level and cursor sensitivity. If refreshRow() is called after calling updateXXX(), but before calling updateRow() then the updates made to the row are lost. Calling refreshRow() frequently will likely slow performance.- Specified by:
refreshRowin interfaceResultSet- Throws:
SQLException- This exception is thrown if an MvaException is detected.
-
cancelRowUpdates
public void cancelRowUpdates() throws SQLException- Specified by:
cancelRowUpdatesin interfaceResultSet- Throws:
SQLException
-
moveToInsertRow
public void moveToInsertRow() throws SQLExceptionJDBC 2.0 Move to the insert row. The current cursor position is remembered while the cursor is positioned on the insert row. The insert row is a special row associated with an updatable result set. It is essentially a buffer where a new row may be constructed by calling the updateXXX() methods prior to inserting the row into the result set. Only the updateXXX(), getXXX(), and insertRow() methods may be called when the cursor is on the insert row. All of the columns in a result set must be given a value each time this method is called before calling insertRow(). UpdateXXX()must be called before getXXX() on a column. NOTE: SAS software does not support inserts, though inserts might be implemented as append.- Specified by:
moveToInsertRowin interfaceResultSet- Throws:
SQLException- This exception is always thrown.
-
moveToCurrentRow
public void moveToCurrentRow() throws SQLExceptionJDBC 2.0 Move the cursor to the remembered cursor position, usually the current row. Has no effect unless the cursor is on the insert row.- Specified by:
moveToCurrentRowin interfaceResultSet- Throws:
SQLException- if a database-access error occurs, or the result set is not updatable
-
getStatement
public Statement getStatement() throws SQLExceptionJDBC 2.0 Return the Statement that produced the ResultSet.- Specified by:
getStatementin interfaceResultSet- Returns:
- the Statement that produced the result set, or null if the result was produced some other way.
- Throws:
SQLException- if a database-access error occurs
-
getObject
public Object getObject(int i, Map<String, Class<?>> map) throws SQLExceptionJDBC 2.0 Returns the value of column i as a Java object. Use the map to determine the class from which to construct data of SQL structured and distinct types.- Specified by:
getObjectin interfaceResultSet- Parameters:
i- the first column is 1, the second is 2, ...map- the mapping from SQL type names to Java classes- Returns:
- an object representing the SQL value
- Throws:
SQLException
-
getRef
public Ref getRef(int i) throws SQLException JDBC 2.0 Get a REF(<structured-type>) column.- Specified by:
getRefin interfaceResultSet- Parameters:
i- the first column is 1, the second is 2, ...- Returns:
- an object representing data of an SQL REF type
- Throws:
SQLException
-
getBlob
public Blob getBlob(int i) throws SQLException JDBC 2.0 Get a BLOB column.- Specified by:
getBlobin interfaceResultSet- Parameters:
i- the first column is 1, the second is 2, ...- Returns:
- an object representing a BLOB
- Throws:
SQLException
-
getClob
public Clob getClob(int i) throws SQLException JDBC 2.0 Get a CLOB column.- Specified by:
getClobin interfaceResultSet- Parameters:
i- the first column is 1, the second is 2, ...- Returns:
- an object representing a CLOB
- Throws:
SQLException
-
getArray
public Array getArray(int i) throws SQLException JDBC 2.0 Get an array column.- Specified by:
getArrayin interfaceResultSet- Parameters:
i- the first column is 1, the second is 2, ...- Returns:
- an object representing an SQL array
- Throws:
SQLException
-
getObject
public Object getObject(String colName, Map<String, Class<?>> map) throws SQLExceptionJDBC 2.0 Returns the value of column i as a Java object. Use the map to determine the class from which to construct data of SQL structured and distinct types.- Specified by:
getObjectin interfaceResultSet- Parameters:
colName- the column namemap- the mapping from SQL type names to Java classes- Returns:
- an object representing the SQL value
- Throws:
SQLException
-
getRef
public Ref getRef(String colName) throws SQLException JDBC 2.0 Get a REF(<structured-type>) column.- Specified by:
getRefin interfaceResultSet- Parameters:
colName- the column name- Returns:
- an object representing data of an SQL REF type
- Throws:
SQLException
-
getBlob
public Blob getBlob(String colName) throws SQLException JDBC 2.0 Get a BLOB column.- Specified by:
getBlobin interfaceResultSet- Parameters:
colName- the column name- Returns:
- an object representing a BLOB
- Throws:
SQLException
-
getClob
public Clob getClob(String colName) throws SQLException JDBC 2.0 Get a CLOB column.- Specified by:
getClobin interfaceResultSet- Parameters:
colName- the column name- Returns:
- an object representing a CLOB
- Throws:
SQLException
-
getArray
public Array getArray(String colName) throws SQLException JDBC 2.0 Get an array column.- Specified by:
getArrayin interfaceResultSet- Parameters:
colName- the column name- Returns:
- an object representing an SQL array
- Throws:
SQLException
-
getDate
public Date getDate(int columnIndex, Calendar cal) throws SQLException JDBC 2.0 Gets the value of a column in the current row as a java.sql.Date object. Use the calendar to construct an appropriate millisecond value for the Date, if the underlying database doesn't store timezone information.- Specified by:
getDatein interfaceResultSet- Parameters:
columnIndex- The first column is 1, the second is 2, and so on.cal- The calendar to use in constructing the date. Ignored if cal is NULL.- Returns:
- The column value. If the value is SQL NULL, then the result is null.
- Throws:
SQLException- This exception is thrown if the column value is not valid or the SQL type cannot be converted to a valid java.sql.Date value.
-
getDate
public Date getDate(String columnName, Calendar cal) throws SQLException Gets the value of a column in the current row as a java.sql.Date object. Use the calendar to construct an appropriate millisecond value for the Date, if the underlying database doesn't store timezone information.- Specified by:
getDatein interfaceResultSet- Parameters:
columnName- The name of the column that is returned by the ResultSetMetaData object.cal- The calendar to use in constructing the date. Ignored if cal is NULL.- Returns:
- The column value. If the value is SQL NULL, then the result is NULL.
- Throws:
SQLException- This exception is thrown if the column value is not valid or the SQL type cannot be converted into a valid java.sql.Date value.
-
getTime
public Time getTime(int columnIndex, Calendar cal) throws SQLException Gets the value of a column in the current row as a java.sql.Time object. Use the calendar to construct an appropriate millisecond value for the Time, if the underlying database doesn't store timezone information.- Specified by:
getTimein interfaceResultSet- Parameters:
columnIndex- The first column is 1, the second is 2, and so on.cal- The calendar to use in constructing the date. Ignored if cal is NULL.- Returns:
- The column value. If the value is SQL NULL, then the result is null.
- Throws:
SQLException- This exception is thrown if the column value is not valid or the SQL type cannot be converted to a valid java.sql.Time value.
-
getTime
public Time getTime(String columnName, Calendar cal) throws SQLException Gets the value of a column in the current row as a java.sql.Time object. Use the calendar to construct an appropriate millisecond value for the Time, if the underlying database doesn't store timezone information.- Specified by:
getTimein interfaceResultSet- Parameters:
columnName- The name of the column that is returned by the ResultSetMetaData object.cal- The calendar to use in constructing the date. Ignored if cal is NULL.- Returns:
- The column value. If the value is SQL NULL, then the result is NULL.
- Throws:
SQLException- This exception is thrown if the column value is not valid or the SQL type cannot be converted into a valid java.sql.Time value.
-
getTimestamp
public Timestamp getTimestamp(int columnIndex, Calendar cal) throws SQLException Gets the value of a column in the current row as a java.sql.Timestamp object. Use the calendar to construct an appropriate millisecond value for the Timestamp, if the underlying database doesn't store timezone information.- Specified by:
getTimestampin interfaceResultSet- Parameters:
columnIndex- The first column is 1, the second is 2, and so on.cal- The calendar to use in constructing the date. Ignored if cal is NULL.- Returns:
- The column value. If the value is SQL NULL, then the result is null.
- Throws:
SQLException- This exception is thrown if the column value is not valid or the SQL type cannot be converted to a valid java.sql.Timestamp value.
-
getTimestamp
public Timestamp getTimestamp(String columnName, Calendar cal) throws SQLException Gets the value of a column in the current row as a java.sql.Timestamp object. Use the calendar to construct an appropriate millisecond value for the Timestamp, if the underlying database doesn't store timezone information.- Specified by:
getTimestampin interfaceResultSet- Parameters:
columnName- The name of the column that is returned by the ResultSetMetaData object.cal- The calendar to use in constructing the date. Ignored if cal is NULL.- Returns:
- The column value. If the value is SQL NULL, then the result is NULL.
- Throws:
SQLException- This exception is thrown if the column value is not valid or the SQL type cannot be converted into a valid java.sql.Timestamp value.
-
getCache
protected com.sas.rio.IRowCache getCache() -
getURL
public URL getURL(int columnIndex) throws SQLException Retrieves the value of the designated column in the current row of this ResultSet object as a java.net.URL object in the Java programming language. Empty method implementation for JDK1.4 compliance.- Specified by:
getURLin interfaceResultSet- Throws:
SQLException- Always thrown, to indicate that this method is not implemented.
-
getURL
public URL getURL(String columnName) throws SQLException Retrieves the value of the designated column in the current row of this ResultSet object as a java.net.URL object in the Java programming language. Empty method implementation for JDK1.4 compliance.- Specified by:
getURLin interfaceResultSet- Throws:
SQLException- Always thrown, to indicate that this method is not implemented.
-
updateArray
public void updateArray(int columnIndex, Array x) throws SQLException Updates the designated column with a java.sql.Array value. Empty method implementation for JDK1.4 compliance.- Specified by:
updateArrayin interfaceResultSet- Throws:
SQLException- Always thrown, to indicate that this method is not implemented.
-
updateArray
public void updateArray(String columnName, Array x) throws SQLException Updates the designated column with a java.sql.Array value. Empty method implementation for JDK1.4 compliance.- Specified by:
updateArrayin interfaceResultSet- Throws:
SQLException- Always thrown, to indicate that this method is not implemented.
-
updateBlob
public void updateBlob(int columnIndex, Blob x) throws SQLException Updates the designated column with a java.sql.Blob value. Empty method implementation for JDK1.4 compliance.- Specified by:
updateBlobin interfaceResultSet- Throws:
SQLException- Always thrown, to indicate that this method is not implemented.
-
updateBlob
public void updateBlob(String columnName, Blob x) throws SQLException Updates the designated column with a java.sql.Blob value. Empty method implementation for JDK1.4 compliance.- Specified by:
updateBlobin interfaceResultSet- Throws:
SQLException- Always thrown, to indicate that this method is not implemented.
-
updateClob
public void updateClob(int columnIndex, Clob x) throws SQLException Updates the designated column with a java.sql.Clob value. Empty method implementation for JDK1.4 compliance.- Specified by:
updateClobin interfaceResultSet- Throws:
SQLException- Always thrown, to indicate that this method is not implemented.
-
updateClob
public void updateClob(String columnName, Clob x) throws SQLException Updates the designated column with a java.sql.Clob value. Empty method implementation for JDK1.4 compliance.- Specified by:
updateClobin interfaceResultSet- Throws:
SQLException- Always thrown, to indicate that this method is not implemented.
-
updateRef
public void updateRef(int columnIndex, Ref x) throws SQLException Updates the designated column with a java.sql.Ref value Empty method implementation for JDK1.4 compliance.- Specified by:
updateRefin interfaceResultSet- Throws:
SQLException- Always thrown, to indicate that this method is not implemented.
-
updateRef
public void updateRef(String columnName, Ref x) throws SQLException Updates the designated column with a java.sql.Ref value Empty method implementation for JDK1.4 compliance.- Specified by:
updateRefin interfaceResultSet- Throws:
SQLException- Always thrown, to indicate that this method is not implemented.
-
getRowId
public RowId getRowId(int columnIndex) throws SQLException Retrieves the value of the designated column in the current row of thisResultSetobject as ajava.sql.RowIdobject in the Java programming language.- Specified by:
getRowIdin interfaceResultSet- Parameters:
columnIndex- the first column is 1, the second 2, ...- Throws:
SQLException- Always thrown, to indicate that this method is not implemented.- Since:
- 1.6
-
getRowId
public RowId getRowId(String columnLabel) throws SQLException Retrieves the value of the designated column in the current row of thisResultSetobject as ajava.sql.RowIdobject in the Java programming language.- Specified by:
getRowIdin interfaceResultSet- 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 column- Throws:
SQLException- Always thrown, to indicate that this method is not implemented.- Since:
- 1.6
-
updateRowId
public void updateRowId(int columnIndex, RowId x) throws SQLException Updates the designated column with aRowIdvalue. 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:
updateRowIdin interfaceResultSet- Parameters:
columnIndex- the first column is 1, the second 2, ...x- the column value- Throws:
SQLException- Always thrown, to indicate that this method is not implemented.- Since:
- 1.6
-
updateRowId
public void updateRowId(String columnLabel, RowId x) throws SQLException Updates the designated column with aRowIdvalue. 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:
updateRowIdin interfaceResultSet- 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 columnx- the column value- Throws:
SQLException- Always thrown, to indicate that this method is not implemented.- Since:
- 1.6
-
getHoldability
public int getHoldability() throws SQLExceptionTheMVAResultSetversion of#getHoldability()always returnsResultSet#CLOSE_CURSORS_AT_COMMIT. Transactions are not supported by the IOM JDBC driver.- Specified by:
getHoldabilityin interfaceResultSet- Throws:
SQLException
-
isClosed
public boolean isClosed() throws SQLExceptionRetrieves whether thisResultSetobject has been closed. AResultSetis closed if the method close has been called on it, or if it is automatically closed.- Specified by:
isClosedin interfaceResultSet- Throws:
SQLException- Always thrown, to indicate that this method is not implemented.- Since:
- 1.6
-
updateNString
public void updateNString(int columnIndex, String nString) throws SQLException Updates 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 interfaceResultSet- Parameters:
columnIndex- the first column is 1, the second 2, ...nString- the value for the column to be updated- Throws:
SQLException- Always thrown, to indicate that this method is not implemented.- Since:
- 1.6
-
updateNString
public void updateNString(String columnLabel, String nString) throws SQLException Updates 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 interfaceResultSet- 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 updated- Throws:
SQLException- Always thrown, to indicate that this method is not implemented.- Since:
- 1.6
-
updateNClob
public void updateNClob(int columnIndex, NClob nClob) throws SQLException Updates the designated column with ajava.sql.NClobvalue. 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:
updateNClobin interfaceResultSet- Parameters:
columnIndex- the first column is 1, the second 2, ...nClob- the value for the column to be updated- Throws:
SQLException- Always thrown, to indicate that this method is not implemented.- Since:
- 1.6
-
updateNClob
public void updateNClob(String columnLabel, NClob nClob) throws SQLException Updates the designated column with ajava.sql.NClobvalue. 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:
updateNClobin interfaceResultSet- 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 columnnClob- the value for the column to be updated- Throws:
SQLException- Always thrown, to indicate that this method is not implemented.- Since:
- 1.6
-
getNClob
public NClob getNClob(int columnIndex) throws SQLException Retrieves the value of the designated column in the current row of thisResultSetobject as aNClobobject in the Java programming language.- Specified by:
getNClobin interfaceResultSet- Parameters:
columnIndex- the first column is 1, the second is 2, ...- Throws:
SQLException- Always thrown, to indicate that this method is not implemented.- Since:
- 1.6
-
getNClob
public NClob getNClob(String columnLabel) throws SQLException Retrieves the value of the designated column in the current row of thisResultSetobject as aNClobobject in the Java programming language.- Specified by:
getNClobin interfaceResultSet- 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 column- Throws:
SQLException- Always thrown, to indicate that this method is not implemented.- Since:
- 1.6
-
getSQLXML
public SQLXML getSQLXML(int columnIndex) throws SQLException Retrieves the value of the designated column in the current row of thisResultSetas ajava.sql.SQLXMLobject in the Java programming language.- Specified by:
getSQLXMLin interfaceResultSet- Parameters:
columnIndex- the first column is 1, the second is 2, ...- Throws:
SQLException- Always thrown, to indicate that this method is not implemented.- Since:
- 1.6
-
getSQLXML
public SQLXML getSQLXML(String columnLabel) throws SQLException Retrieves the value of the designated column in the current row of thisResultSetas ajava.sql.SQLXMLobject in the Java programming language.- Specified by:
getSQLXMLin interfaceResultSet- 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 column- Throws:
SQLException- Always thrown, to indicate that this method is not implemented.- Since:
- 1.6
-
updateSQLXML
public void updateSQLXML(int columnIndex, SQLXML xmlObject) throws SQLException Updates the designated column with ajava.sql.SQLXMLvalue. 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:
updateSQLXMLin interfaceResultSet- Parameters:
columnIndex- the first column is 1, the second 2, ...xmlObject- the value for the column to be updated- Throws:
SQLException- Always thrown, to indicate that this method is not implemented.- Since:
- 1.6
-
updateSQLXML
public void updateSQLXML(String columnLabel, SQLXML xmlObject) throws SQLException Updates the designated column with ajava.sql.SQLXMLvalue. 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:
updateSQLXMLin interfaceResultSet- 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 columnxmlObject- the column value- Throws:
SQLException- Always thrown, to indicate that this method is not implemented.- Since:
- 1.6
-
getNString
public String getNString(int columnIndex) throws SQLException Retrieves the value of the designated column in the current row of thisResultSetobject as aStringin the Java programming language. It is intended for use when accessingNCHAR,NVARCHARandLONGNVARCHARcolumns.- Specified by:
getNStringin interfaceResultSet- Parameters:
columnIndex- the first column is 1, the second is 2, ...- Returns:
- the column value; if the value is SQL
NULL, the value returned isnull - Throws:
SQLException- Always thrown, to indicate that this method is not implemented.- Since:
- 1.6
-
getNString
public String getNString(String columnLabel) throws SQLException Retrieves the value of the designated column in the current row of thisResultSetobject as aStringin the Java programming language. It is intended for use when accessingNCHAR,NVARCHARandLONGNVARCHARcolumns.- Specified by:
getNStringin interfaceResultSet- 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 column- Returns:
- the column value; if the value is SQL
NULL, the value returned isnull - Throws:
SQLException- Always thrown, to indicate that this method is not implemented.- Since:
- 1.6
-
getNCharacterStream
public Reader getNCharacterStream(int columnIndex) throws SQLException Retrieves the value of the designated column in the current row of thisResultSetobject as ajava.io.Readerobject. It is intended for use when accessingNCHAR,NVARCHARandLONGNVARCHARcolumns.- Specified by:
getNCharacterStreamin interfaceResultSet- Parameters:
columnIndex- the first column is 1, the second is 2, ...- Returns:
- a
java.io.Readerobject that contains the column value; if the value is SQLNULL, the value returned isnullin the Java programming language. - Throws:
SQLException- Always thrown, to indicate that this method is not implemented.- Since:
- 1.6
-
getNCharacterStream
public Reader getNCharacterStream(String columnLabel) throws SQLException Retrieves the value of the designated column in the current row of thisResultSetobject as ajava.io.Readerobject. It is intended for use when accessingNCHAR,NVARCHARandLONGNVARCHARcolumns.- Specified by:
getNCharacterStreamin interfaceResultSet- 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 column- Returns:
- a
java.io.Readerobject that contains the column value; if the value is SQLNULL, the value returned isnullin the Java programming language - Throws:
SQLException- Always thrown, to indicate that this method is not implemented.- Since:
- 1.6
-
updateNCharacterStream
public void updateNCharacterStream(int columnIndex, Reader x, long length) throws SQLException Updates the designated column with a character stream value, which will have the specified number of bytes. The driver does the necessary conversion from Java character format to the national character set in the database. 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 the
updateRoworinsertRowmethods are called to update the database.- Specified by:
updateNCharacterStreamin interfaceResultSet- Parameters:
columnIndex- the first column is 1, the second is 2, ...x- the new column valuelength- the length of the stream- Throws:
SQLException- Always thrown, to indicate that this method is not implemented.- Since:
- 1.6
-
updateNCharacterStream
public void updateNCharacterStream(String columnLabel, Reader reader, long length) throws SQLException Updates the designated column with a character stream value, which will have the specified number of bytes. The driver does the necessary conversion from Java character format to the national character set in the database. 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 the
updateRoworinsertRowmethods are called to update the database.- Specified by:
updateNCharacterStreamin interfaceResultSet- 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 column.reader- thejava.io.Readerobject containing the new column valuelength- the length of the stream- Throws:
SQLException- Always thrown, to indicate that this method is not implemented.- Since:
- 1.6
-
updateAsciiStream
public void updateAsciiStream(int columnIndex, InputStream x, long length) throws SQLException Updates the designated column with an ascii stream value, which will have the specified number of bytes.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
updateRoworinsertRowmethods are called to update the database.- Specified by:
updateAsciiStreamin interfaceResultSet- Parameters:
columnIndex- the first column is 1, the second is 2, ...x- the new column valuelength- the length of the stream- Throws:
SQLException- Always thrown, to indicate that this method is not implemented.- Since:
- 1.6
-
updateBinaryStream
public void updateBinaryStream(int columnIndex, InputStream x, long length) throws SQLException Updates the designated column with a binary stream value, which will have the specified number of bytes.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
updateRoworinsertRowmethods are called to update the database.- Specified by:
updateBinaryStreamin interfaceResultSet- Parameters:
columnIndex- the first column is 1, the second is 2, ...x- the new column valuelength- the length of the stream- Throws:
SQLException- Always thrown, to indicate that this method is not implemented.- Since:
- 1.6
-
updateCharacterStream
public void updateCharacterStream(int columnIndex, Reader x, long length) throws SQLException Updates the designated column with a character stream value, which will have the specified number of bytes.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
updateRoworinsertRowmethods are called to update the database.- Specified by:
updateCharacterStreamin interfaceResultSet- Parameters:
columnIndex- the first column is 1, the second is 2, ...x- the new column valuelength- the length of the stream- Throws:
SQLException- Always thrown, to indicate that this method is not implemented.- Since:
- 1.6
-
updateAsciiStream
public void updateAsciiStream(String columnLabel, InputStream x, long length) throws SQLException Updates the designated column with an ascii stream value, which will have the specified number of bytes.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
updateRoworinsertRowmethods are called to update the database.- Specified by:
updateAsciiStreamin interfaceResultSet- 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 columnx- the new column valuelength- the length of the stream- Throws:
SQLException- Always thrown, to indicate that this method is not implemented.- Since:
- 1.6
-
updateBinaryStream
public void updateBinaryStream(String columnLabel, InputStream x, long length) throws SQLException Updates the designated column with a binary stream value, which will have the specified number of bytes.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
updateRoworinsertRowmethods are called to update the database.- Specified by:
updateBinaryStreamin interfaceResultSet- 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 columnx- the new column valuelength- the length of the stream- Throws:
SQLException- Always thrown, to indicate that this method is not implemented.- Since:
- 1.6
-
updateCharacterStream
public void updateCharacterStream(String columnLabel, Reader reader, long length) throws SQLException Updates the designated column with a character stream value, which will have the specified number of bytes.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
updateRoworinsertRowmethods are called to update the database.- Specified by:
updateCharacterStreamin interfaceResultSet- 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 columnreader- thejava.io.Readerobject containing the new column valuelength- the length of the stream- Throws:
SQLException- Always thrown, to indicate that this method is not implemented.- Since:
- 1.6
-
updateBlob
public void updateBlob(int columnIndex, InputStream inputStream, long length) throws SQLException Updates the designated column using the given input stream, which will have the specified number of bytes.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
updateRoworinsertRowmethods are called to update the database.- Specified by:
updateBlobin interfaceResultSet- Parameters:
columnIndex- the first column is 1, the second is 2, ...inputStream- An object that contains the data to set the parameter value to.length- the number of bytes in the parameter data.- Throws:
SQLException- Always thrown, to indicate that this method is not implemented.- Since:
- 1.6
-
updateBlob
public void updateBlob(String columnLabel, InputStream inputStream, long length) throws SQLException Updates the designated column using the given input stream, which will have the specified number of bytes.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
updateRoworinsertRowmethods are called to update the database.- Specified by:
updateBlobin interfaceResultSet- 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 columninputStream- An object that contains the data to set the parameter value to.length- the number of bytes in the parameter data.- Throws:
SQLException- Always thrown, to indicate that this method is not implemented.- Since:
- 1.6
-
updateClob
public void updateClob(int columnIndex, Reader reader, long length) throws SQLException Updates the designated column using the givenReaderobject, which is the given number of characters long. When a very large UNICODE value is input to aLONGVARCHARparameter, it may be more practical to send it via ajava.io.Readerobject. The JDBC driver will do any necessary conversion from UNICODE to the database char format.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
updateRoworinsertRowmethods are called to update the database.- Specified by:
updateClobin interfaceResultSet- Parameters:
columnIndex- the first column is 1, the second is 2, ...reader- An object that contains the data to set the parameter value to.length- the number of characters in the parameter data.- Throws:
SQLException- Always thrown, to indicate that this method is not implemented.- Since:
- 1.6
-
updateClob
public void updateClob(String columnLabel, Reader reader, long length) throws SQLException Updates the designated column using the givenReaderobject, which is the given number of characters long. When a very large UNICODE value is input to aLONGVARCHARparameter, it may be more practical to send it via ajava.io.Readerobject. The JDBC driver will do any necessary conversion from UNICODE to the database char format.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
updateRoworinsertRowmethods are called to update the database.- Specified by:
updateClobin interfaceResultSet- 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 columnreader- An object that contains the data to set the parameter value to.length- the number of characters in the parameter data.- Throws:
SQLException- Always thrown, to indicate that this method is not implemented.- Since:
- 1.6
-
updateNClob
public void updateNClob(int columnIndex, Reader reader, long length) throws SQLException Updates the designated column using the givenReaderobject, which is the given number of characters long. When a very large UNICODE value is input to aLONGVARCHARparameter, it may be more practical to send it via ajava.io.Readerobject. The JDBC driver will do any necessary conversion from UNICODE to the database char format.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
updateRoworinsertRowmethods are called to update the database.- Specified by:
updateNClobin interfaceResultSet- Parameters:
columnIndex- the first column is 1, the second 2, ...reader- An object that contains the data to set the parameter value to.length- the number of characters in the parameter data.- Throws:
SQLException- Always thrown, to indicate that this method is not implemented.- Since:
- 1.6
-
updateNClob
public void updateNClob(String columnLabel, Reader reader, long length) throws SQLException Updates the designated column using the givenReaderobject, which is the given number of characters long. When a very large UNICODE value is input to aLONGVARCHARparameter, it may be more practical to send it via ajava.io.Readerobject. The JDBC driver will do any necessary conversion from UNICODE to the database char format.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
updateRoworinsertRowmethods are called to update the database.- Specified by:
updateNClobin interfaceResultSet- 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 columnreader- An object that contains the data to set the parameter value to.length- the number of characters in the parameter data.- Throws:
SQLException- Always thrown, to indicate that this method is not implemented.- Since:
- 1.6
-
updateNCharacterStream
public void updateNCharacterStream(int columnIndex, Reader x) throws SQLException Updates the designated column with a character stream value. The data will be read from the stream as needed until end-of-stream is reached. The driver does the necessary conversion from Java character format to the national character set in the database. 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 the
updateRoworinsertRowmethods are called to update the database.Note: Consult your JDBC driver documentation to determine if it might be more efficient to use a version of
updateNCharacterStreamwhich takes a length parameter.- Specified by:
updateNCharacterStreamin interfaceResultSet- Parameters:
columnIndex- the first column is 1, the second is 2, ...x- the new column value- Throws:
SQLException- Always thrown, to indicate that this method is not implemented.- Since:
- 1.6
-
updateNCharacterStream
public void updateNCharacterStream(String columnLabel, Reader reader) throws SQLException Updates the designated column with a character stream value. The data will be read from the stream as needed until end-of-stream is reached. The driver does the necessary conversion from Java character format to the national character set in the database. 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 the
updateRoworinsertRowmethods are called to update the database.Note: Consult your JDBC driver documentation to determine if it might be more efficient to use a version of
updateNCharacterStreamwhich takes a length parameter.- Specified by:
updateNCharacterStreamin interfaceResultSet- 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 columnreader- thejava.io.Readerobject containing the new column value- Throws:
SQLException- Always thrown, to indicate that this method is not implemented.- Since:
- 1.6
-
updateAsciiStream
public void updateAsciiStream(int columnIndex, InputStream x) throws SQLException Updates the designated column with an ascii stream value. The data will be read from the stream as needed until end-of-stream is reached.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
updateRoworinsertRowmethods are called to update the database.Note: Consult your JDBC driver documentation to determine if it might be more efficient to use a version of
updateAsciiStreamwhich takes a length parameter.- Specified by:
updateAsciiStreamin interfaceResultSet- Parameters:
columnIndex- the first column is 1, the second is 2, ...x- the new column value- Throws:
SQLException- Always thrown, to indicate that this method is not implemented.- Since:
- 1.6
-
updateBinaryStream
public void updateBinaryStream(int columnIndex, InputStream x) throws SQLException Updates the designated column with a binary stream value. The data will be read from the stream as needed until end-of-stream is reached.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
updateRoworinsertRowmethods are called to update the database.Note: Consult your JDBC driver documentation to determine if it might be more efficient to use a version of
updateBinaryStreamwhich takes a length parameter.- Specified by:
updateBinaryStreamin interfaceResultSet- Parameters:
columnIndex- the first column is 1, the second is 2, ...x- the new column value- Throws:
SQLException- Always thrown, to indicate that this method is not implemented.- Since:
- 1.6
-
updateCharacterStream
public void updateCharacterStream(int columnIndex, Reader x) throws SQLException Updates the designated column with a character stream value. The data will be read from the stream as needed until end-of-stream is reached.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
updateRoworinsertRowmethods are called to update the database.Note: Consult your JDBC driver documentation to determine if it might be more efficient to use a version of
updateCharacterStreamwhich takes a length parameter.- Specified by:
updateCharacterStreamin interfaceResultSet- Parameters:
columnIndex- the first column is 1, the second is 2, ...x- the new column value- Throws:
SQLException- Always thrown, to indicate that this method is not implemented.- Since:
- 1.6
-
updateAsciiStream
public void updateAsciiStream(String columnLabel, InputStream x) throws SQLException Updates the designated column with an ascii stream value. The data will be read from the stream as needed until end-of-stream is reached.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
updateRoworinsertRowmethods are called to update the database.Note: Consult your JDBC driver documentation to determine if it might be more efficient to use a version of
updateAsciiStreamwhich takes a length parameter.- Specified by:
updateAsciiStreamin interfaceResultSet- 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 columnx- the new column value- Throws:
SQLException- Always thrown, to indicate that this method is not implemented.- Since:
- 1.6
-
updateBinaryStream
public void updateBinaryStream(String columnLabel, InputStream x) throws SQLException Updates the designated column with a binary stream value. The data will be read from the stream as needed until end-of-stream is reached.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
updateRoworinsertRowmethods are called to update the database.Note: Consult your JDBC driver documentation to determine if it might be more efficient to use a version of
updateBinaryStreamwhich takes a length parameter.- Specified by:
updateBinaryStreamin interfaceResultSet- 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 columnx- the new column value- Throws:
SQLException- Always thrown, to indicate that this method is not implemented.- Since:
- 1.6
-
updateCharacterStream
public void updateCharacterStream(String columnLabel, Reader reader) throws SQLException Updates the designated column with a character stream value. The data will be read from the stream as needed until end-of-stream is reached.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
updateRoworinsertRowmethods are called to update the database.Note: Consult your JDBC driver documentation to determine if it might be more efficient to use a version of
updateCharacterStreamwhich takes a length parameter.- Specified by:
updateCharacterStreamin interfaceResultSet- 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 columnreader- thejava.io.Readerobject containing the new column value- Throws:
SQLException- Always thrown, to indicate that this method is not implemented.- Since:
- 1.6
-
updateBlob
public void updateBlob(int columnIndex, InputStream inputStream) throws SQLException Updates the designated column using the given input stream. The data will be read from the stream as needed until end-of-stream is reached.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
updateRoworinsertRowmethods are called to update the database.Note: Consult your JDBC driver documentation to determine if it might be more efficient to use a version of
updateBlobwhich takes a length parameter.- Specified by:
updateBlobin interfaceResultSet- Parameters:
columnIndex- the first column is 1, the second is 2, ...inputStream- An object that contains the data to set the parameter value to.- Throws:
SQLException- Always thrown, to indicate that this method is not implemented.- Since:
- 1.6
-
updateBlob
public void updateBlob(String columnLabel, InputStream inputStream) throws SQLException Updates the designated column using the given input stream. The data will be read from the stream as needed until end-of-stream is reached.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
updateRoworinsertRowmethods are called to update the database.Note: Consult your JDBC driver documentation to determine if it might be more efficient to use a version of
updateBlobwhich takes a length parameter.- Specified by:
updateBlobin interfaceResultSet- 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 columninputStream- An object that contains the data to set the parameter value to.- Throws:
SQLException- Always thrown, to indicate that this method is not implemented.- Since:
- 1.6
-
updateClob
public void updateClob(int columnIndex, Reader reader) throws SQLException Updates the designated column using the givenReaderobject. The data will be read from the stream as needed until end-of-stream is reached. The JDBC driver will do any necessary conversion from UNICODE to the database char format.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
updateRoworinsertRowmethods are called to update the database.Note: Consult your JDBC driver documentation to determine if it might be more efficient to use a version of
updateClobwhich takes a length parameter.- Specified by:
updateClobin interfaceResultSet- Parameters:
columnIndex- the first column is 1, the second is 2, ...reader- An object that contains the data to set the parameter value to.- Throws:
SQLException- Always thrown, to indicate that this method is not implemented.- Since:
- 1.6
-
updateClob
public void updateClob(String columnLabel, Reader reader) throws SQLException Updates the designated column using the givenReaderobject. The data will be read from the stream as needed until end-of-stream is reached. The JDBC driver will do any necessary conversion from UNICODE to the database char format.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
updateRoworinsertRowmethods are called to update the database.Note: Consult your JDBC driver documentation to determine if it might be more efficient to use a version of
updateClobwhich takes a length parameter.- Specified by:
updateClobin interfaceResultSet- 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 columnreader- An object that contains the data to set the parameter value to.- Throws:
SQLException- Always thrown, to indicate that this method is not implemented.- Since:
- 1.6
-
updateNClob
public void updateNClob(int columnIndex, Reader reader) throws SQLException Updates the designated column using the givenReaderThe data will be read from the stream as needed until end-of-stream is reached. The JDBC driver will do any necessary conversion from UNICODE to the database char format.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
updateRoworinsertRowmethods are called to update the database.Note: Consult your JDBC driver documentation to determine if it might be more efficient to use a version of
updateNClobwhich takes a length parameter.- Specified by:
updateNClobin interfaceResultSet- Parameters:
columnIndex- the first column is 1, the second 2, ...reader- An object that contains the data to set the parameter value to.- Throws:
SQLException- Always thrown, to indicate that this method is not implemented.- Since:
- 1.6
-
updateNClob
public void updateNClob(String columnLabel, Reader reader) throws SQLException Updates the designated column using the givenReaderobject. The data will be read from the stream as needed until end-of-stream is reached. The JDBC driver will do any necessary conversion from UNICODE to the database char format.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
updateRoworinsertRowmethods are called to update the database.Note: Consult your JDBC driver documentation to determine if it might be more efficient to use a version of
updateNClobwhich takes a length parameter.- Specified by:
updateNClobin interfaceResultSet- 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 columnreader- An object that contains the data to set the parameter value to.- Throws:
SQLException- Always thrown, to indicate that this method is not implemented.- Since:
- 1.6
-
unwrap
public <T> T unwrap(Class<T> iface) throws SQLException - Specified by:
unwrapin interfaceWrapper- Throws:
SQLException
-
isWrapperFor
public boolean isWrapperFor(Class<?> iface) throws SQLException - Specified by:
isWrapperForin interfaceWrapper- Throws:
SQLException
-
getObject
public <T> T getObject(int arg0, Class<T> arg1) throws SQLException - Specified by:
getObjectin interfaceResultSet- Throws:
SQLException
-
getObject
public <T> T getObject(String arg0, Class<T> arg1) throws SQLException - Specified by:
getObjectin interfaceResultSet- Throws:
SQLException
-