Class AbstractFlatFile
- All Implemented Interfaces:
AutoCloseable,ResultSet,Wrapper
- Direct Known Subclasses:
FlatFile
ResultSet.
In Java, the result of a database query is normally returned as a
ResultSet object. This class is intended to support reading of
text or binary flat files and returning them as a ResultSet.
A flat file is a rectangular data set where each row is an observation and each column is a variable. The data type in any one column is the same for all of the rows.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classASQLExceptionthrown by theAbstractFlatFileclass.protected static classASQLFeatureNotSupportedExceptionthrown by theAbstractFlatFileclass. -
Field Summary
Fields 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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanabsolute(int row) Moves the cursor to the given row number in thisResultSetobject.voidMoves the cursor to the end of thisResultSetobject, just after the last row.voidMoves the cursor to the front of thisResultSetobject, just before the first row.protected voidbeginGet()This method should be called at the start of everygetType method.voidCancels the updates made to the current row in thisResultSetobject.voidClears all warnings reported on thisResultSetobject.voidclose()Releases thisResultSetobject's database and JDBC resources immediately instead of waiting for this to happen when it is automatically closed.voidDeletes the current row from thisResultSetobject and from the underlying database.protected abstract byte[]doGetBytes(int columnIndex) Implements the actualgetBytes().protected abstract booleandoNext()Implements the operations on the file required by the method next().intfindColumn(String columnLabel) Maps the givenResultSetcolumn name to itsResultSetcolumn index.protected StringfindColumnName(int columnIndex) Maps the given columnIndex into its column name.booleanfirst()Moves the cursor to the first row in thisResultSetobject.getArray(int columnIndex) Deprecated.Returns the value of the designated column in the current row of thisResultSetobject as anArrayobject in the Java programming language.getAsciiStream(int columnIndex) Gets the value of the designated column in the current row of thisResultSetobject as a stream of ASCII characters.getAsciiStream(String columnLabel) Gets the value of the designated column in the current row of thisResultSetobject as a stream of ASCII characters.getBigDecimal(int columnIndex) Gets the value of the designated column in the current row of thisResultSetobject as ajava.math.BigDecimalwith full precision.getBigDecimal(int columnIndex, int scale) Deprecated.getBigDecimal(String columnLabel) Gets the value of the designated column in the current row of thisResultSetobject as ajava.math.BigDecimalwith full precision.getBigDecimal(String columnLabel, int scale) Deprecated.getBinaryStream(int columnIndex) Gets the value of the designated column in the current row of thisResultSetobject as a binary stream of uninterpreted bytes.getBinaryStream(String columnLabel) Gets the value of the designated column in the current row of thisResultSetobject as a stream of uninterpretedbytes.getBlob(int columnIndex) Returns the value of the designated column in the current row of thisResultSetobject as aBlobobject in the Java programming language.Returns the value of the designated column in the current row of thisResultSetobject as aBlobobject in the Java programming language.booleangetBoolean(int columnIndex) Gets the value of the designated column in the current row of thisResultSetobject as abooleanin the Java programming language.booleangetBoolean(String columnLabel) Gets the value of the designated column in the current row of thisResultSetobject as abooleanin the Java programming language.bytegetByte(int columnIndex) Gets the value of the designated column in the current row of thisResultSetobject as abytein the Java programming language.byteGets the value of the designated column in the current row of thisResultSetobject as abytein the Java programming language.byte[]getBytes(int columnIndex) Gets the value of the designated column in the current row of thisResultSetobject as abytearray in the Java programming language.byte[]Gets the value of the designated column in the current row of thisResultSetobject as abytearray in the Java programming language.getCharacterStream(int columnIndex) Gets the value of the designated column in the current row of thisResultSetobject as ajava.io.Readerobject.getCharacterStream(String columnLabel) Gets the value of the designated column in the current row of thisResultSetobject as ajava.io.Readerobject.getClob(int columnIndex) Returns the value of the designated column in the current row of thisResultSetobject as aClobobject in the Java programming language.Returns the value of the designated column in the current row of thisResultSetobject as aClobobject in the Java programming language.getColumnClass(int columnIndex) Returns the class of the items in the specified column.abstract intReturns the number of columns in thisResultSetobject.intReturns the concurrency mode of thisResultSetobject.Gets the name of the SQL cursor used by thisResultSetobject.getDate(int columnIndex) Gets the value of the designated column in the current row of thisResultSetobject as ajava.sql.Dateobject in the Java programming language.Returns the value of the designated column in the current row of thisResultSetobject as ajava.sql.Dateobject in the Java programming language.Gets the value of the designated column in the current row of thisResultSetobject as ajava.sql.Dateobject in the Java programming language.Returns the value of the designated column in the current row of thisResultSetobject as ajava.sql.Dateobject in the Java programming language.doublegetDouble(int columnIndex) Gets the value of the designated column in the current row of thisResultSetobject as adoublein the Java programming language.doubleGets the value of the designated column in the current row of thisResultSetobject as adoublein the Java programming language.intReturns the fetch direction for thisResultSetobject.intReturns the fetch size for thisResultSetobject.floatgetFloat(int columnIndex) Gets the value of the designated column in the current row of thisResultSetobject as afloatin the Java programming language.floatGets the value of the designated column in the current row of thisResultSetobject as afloatin the Java programming language.intgetInt(int columnIndex) Gets the value of the designated column in the current row of thisResultSetobject as anintin the Java programming language.intGets the value of the designated column in the current row of thisResultSetobject as anintin the Java programming language.longgetLong(int columnIndex) Gets the value of the designated column in the current row of thisResultSetobject as alongin the Java programming language.longGets the value of the designated column in the current row of thisResultSetobject as alongin the Java programming language.Retrieves the number, types and properties of thisResultSetobject's columns.abstract ObjectgetObject(int columnIndex) Gets the value of the designated column in the current row of thisResultSetobject as anObjectin the Java programming language.<T> TReturns the value of the designated column in the current row of thisResultSetobject converted to the requested data type in the Java programming language.Returns the value of the designated column in the current row of thisResultSetobject as anObjectin the Java programming language.Gets the value of the designated column in the current row of thisResultSetobject as anObjectin the Java programming language.<T> TReturns the value of the designated column in the current row of thisResultSetobject converted to the requested data type in the Java programming language.Returns the value of the designated column in the current row of thisResultSetobject as anObjectin the Java programming language.getRef(int columnIndex) Returns the value of the designated column in the current row of thisResultSetobject as aRefobject in the Java programming language.Returns the value of the designated column in the current row of thisResultSetobject as aRefobject in the Java programming language.intgetRow()Retrieves the current row number.shortgetShort(int columnIndex) Gets the value of the designated column in the current row of thisResultSetobject as ashortin the Java programming language.shortGets the value of the designated column in the current row of thisResultSetobject as ashortin the Java programming language.Returns theStatementobject that produced thisResultSetobject.getString(int columnIndex) Gets the value of the designated column in the current row of thisResultSetobject as aStringin the Java programming language.Gets the value of the designated column in the current row of thisResultSetobject as aStringin the Java programming language.getTime(int columnIndex) Gets the value of the designated column in the current row of thisResultSetobject as ajava.sql.Timeobject in the Java programming language.Returns the value of the designated column in the current row of thisResultSetobject as ajava.sql.Timeobject in the Java programming language.Gets the value of the designated column in the current row of thisResultSetobject as ajava.sql.Timeobject in the Java programming language.Returns the value of the designated column in the current row of thisResultSetobject as ajava.sql.Timeobject in the Java programming language.getTimestamp(int columnIndex) Gets the value of the designated column in the current row of thisResultSetobject as ajava.sql.Timestampobject in the Java programming language.getTimestamp(int columnIndex, Calendar cal) Returns the value of the designated column in the current row of thisResultSetobject as ajava.sql.Timestampobject in the Java programming language.getTimestamp(String columnLabel) Gets the value of the designated column in the current row of thisResultSetobject as ajava.sql.Timestampobject.getTimestamp(String columnLabel, Calendar cal) Returns the value of the designated column in the current row of thisResultSetobject as ajava.sql.Timestampobject in the Java programming language.intgetType()Returns the type of thisResultSetobject.getUnicodeStream(int columnIndex) Deprecated.getUnicodeStream(String columnLabel) Deprecated.UsegetCharacterStream(String)instead.getURL(int columnIndex) Retrieves the value of the designated column in the current row of thisResultSetobject as ajava.net.URLobject.Retrieves the value of the designated column in the current row of thisResultSetobject as ajava.net.URLobject.Returns the first warning reported by calls on thisResultSetobject.voidInserts the contents of the insert row into thisResultSetobject and into the database.booleanIndicates whether the cursor is after the last row in thisResultSetobject.booleanIndicates whether the cursor is before the first row in thisResultSetobject.booleanisFirst()Indicates whether the cursor is on the first row of thisResultSetobject.booleanisLast()Indicates whether the cursor is on the last row of thisResultSetobject.booleanlast()Moves the cursor to the last row in thisResultSetobject.voidMoves the cursor to the remembered cursor position, usually the current row.voidMoves the cursor to the insert row.booleannext()Moves the cursor down one row from its current position.booleanprevious()Moves the cursor to the previous row in thisResultSetobject.voidRefreshes the current row with its most recent value in the database.booleanrelative(int rows) Moves the cursor a relative number of rows, either positive or negative.booleanIndicates whether a row has been deleted.booleanIndicates whether the current row has had an insertion.booleanIndicates whether the current row has been updated.protected voidsetColumnClass(int columnIndex, Class columnClass) Sets a column class.protected voidsetColumnName(int columnIndex, String columnName) Sets a column name.voidsetFetchDirection(int direction) Gives a hint as to the direction in which the rows in thisResultSetobject is processed.voidsetFetchSize(int rows) Gives the JDBC driver a hint as to the number of rows that should be fetched from the database when more rows are needed for thisResultSetobject.protected voidsetWarning(SQLWarning warning) Sets aSQLWarning.voidupdateArray(int column, Array x) Updates the designated column with anArrayvalue.voidupdateArray(String columnLabel, Array x) Updates the designated column with anArrayvalue.voidupdateAsciiStream(int columnIndex, InputStream x, int length) Updates the designated column with an ASCII stream value.voidupdateAsciiStream(String columnLabel, InputStream x, int length) Updates the designated column with an ASCII stream value.voidupdateBigDecimal(int columnIndex, BigDecimal x) Updates the designated column with ajava.math.BigDecimalvalue.voidupdateBigDecimal(String columnLabel, BigDecimal x) Updates the designated column with ajava.sql.BigDecimalvalue.voidupdateBinaryStream(int columnIndex, InputStream x, int length) Updates the designated column with a binary stream value.voidupdateBinaryStream(String columnLabel, InputStream x, int length) Updates the designated column with a binary stream value.voidupdateBlob(int column, Blob x) Updates the designated column with anjava.sql.Blobvalue.voidupdateBlob(String columnLabel, Blob x) Updates the designated column with anjava.sql.Blobvalue.voidupdateBoolean(int columnIndex, boolean x) Updates the designated column with abooleanvalue.voidupdateBoolean(String columnLabel, boolean x) Updates the designated column with abooleanvalue.voidupdateByte(int columnIndex, byte x) Updates the designated column with abytevalue.voidupdateByte(String columnLabel, byte x) Updates the designated column with abytevalue.voidupdateBytes(int columnIndex, byte[] x) Updates the designated column with abytearray value.voidupdateBytes(String columnLabel, byte[] x) Updates the designated column with abytevalue.voidupdateCharacterStream(int columnIndex, Reader x, int length) Updates the designated column with a character stream value.voidupdateCharacterStream(String columnLabel, Reader reader, int length) Updates the designated column with a character stream value.voidupdateClob(int column, Clob x) Updates the designated column with anjava.sql.Clobvalue.voidupdateClob(String columnLabel, Clob x) Updates the designated column with anjava.sql.Clobvalue.voidupdateDate(int columnIndex, Date x) Updates the designated column with ajava.sql.Datevalue.voidupdateDate(String columnLabel, Date x) Updates the designated column with ajava.sql.Datevalue.voidupdateDouble(int columnIndex, double x) Updates the designated column with adoublevalue.voidupdateDouble(String columnLabel, double x) Updates the designated column with adoublevalue.voidupdateFloat(int columnIndex, float x) Updates the designated column with afloatvalue.voidupdateFloat(String columnLabel, float x) Updates the designated column with afloatvalue.voidupdateInt(int columnIndex, int x) Updates the designated column with anintvalue.voidUpdates the designated column with anintvalue.voidupdateLong(int columnIndex, long x) Updates the designated column with alongvalue.voidupdateLong(String columnLabel, long x) Updates the designated column with alongvalue.voidupdateNull(int columnIndex) Gives a nullable column anullvalue.voidupdateNull(String columnLabel) Updates the designated column with anullvalue.voidupdateObject(int columnIndex, Object x) Updates the designated column with anObjectvalue.voidupdateObject(int columnIndex, Object x, int scale) Updates the designated column with anObjectvalue.voidupdateObject(String columnLabel, Object x) Updates the designated column with anObjectvalue.voidupdateObject(String columnLabel, Object x, int scale) Updates the designated column with anObjectvalue.voidUpdates the designated column with anjava.sql.Refvalue.voidUpdates the designated column with anjava.sql.Refvalue.voidUpdates the underlying database with the new contents of the current row of thisResultSetobject.voidupdateShort(int columnIndex, short x) Updates the designated column with ashortvalue.voidupdateShort(String columnLabel, short x) Updates the designated column with ashortvalue.voidupdateString(int columnIndex, String x) Updates the designated column with aStringvalue.voidupdateString(String columnLabel, String x) Updates the designated column with aStringvalue.voidupdateTime(int columnIndex, Time x) Updates the designated column with ajava.sql.Timevalue.voidupdateTime(String columnLabel, Time x) Updates the designated column with ajava.sql.Timevalue.voidupdateTimestamp(int columnIndex, Timestamp x) Updates the designated column with ajava.sql.Timestampvalue.voidupdateTimestamp(String columnLabel, Timestamp x) Updates the designated column with ajava.sql.Timestampvalue.booleanwasNull()Reports whether the last column read had a value of SQLNULL.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.sql.ResultSet
getHoldability, getNCharacterStream, getNCharacterStream, getNClob, getNClob, getNString, getNString, getRowId, getRowId, getSQLXML, getSQLXML, isClosed, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBlob, updateBlob, updateBlob, updateBlob, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateClob, updateClob, updateClob, updateClob, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNString, updateNString, updateObject, updateObject, updateObject, updateObject, updateRowId, updateRowId, updateSQLXML, updateSQLXMLMethods inherited from interface java.sql.Wrapper
isWrapperFor, unwrap
-
Constructor Details
-
AbstractFlatFile
public AbstractFlatFile()Initializes anAbstractFlatFile. SinceAbstractFlatFileis abstract, it cannot be directly instantiated.
-
-
Method Details
-
setColumnName
Sets a column name. A subclass can define its own mechanism for naming columns. An alternate mechanism would require overriding the methodsfindColumnandfindColumnName.- Parameters:
columnIndex- anintspecifying the column index of the column to be namedcolumnName- aStringspecifying the name of the column- See Also:
-
setColumnClass
Sets a column class.- Parameters:
columnIndex- anintspecifying the index of a columncolumnClass- aClassobject used to specify the class of the data in the column
-
findColumn
Maps the givenResultSetcolumn name to itsResultSetcolumn index.- Specified by:
findColumnin interfaceResultSet- Parameters:
columnLabel- aStringthat indicates the label for the column specified with the SQLASclause. If the SQLASclause was not specified, then the label is the name of the column.- Returns:
- an
intspecifying the column index of the given column name - Throws:
SQLException- if theResultSetobject does not containcolumnLabelor a database access error occurs
-
findColumnName
Maps the given columnIndex into its column name.- Parameters:
columnIndex- anintspecifying the index of a column for which the name is to be found- Returns:
- a
Stringcontaining the name of the column - Throws:
SQLException- if a database access error occurs
-
beginGet
protected void beginGet()This method should be called at the start of everygetType method. It closes anyInputStreamsorReaderscreated by get methods in this object. It also resets thewasNullflag tofalse. -
next
Moves the cursor down one row from its current position. AResultSetcursor is initially positioned before the first row, the first call to the methodnextmakes the first row the current row, the second call makes the second row the current row, and so on.If an input stream is open for the current row, a call to the method
nextwill implicitly close it. AResultSetobject's warning chain is cleared when a new row is read.- Specified by:
nextin interfaceResultSet- Returns:
- a
boolean,trueif the new current row is valid,falseif there are no more rows - Throws:
SQLException- if a database access error occurs or this method is called on a closed result set
-
doNext
Implements the operations on the file required by the method next().- Returns:
- a
boolean,trueif the new current row is valid,falseif there are no more rows - Throws:
SQLException- if a database access error occurs
-
getColumnCount
Returns the number of columns in thisResultSetobject.- Returns:
- an
intthat specifies the number of columns - Throws:
SQLException- if a database access error occurs
-
close
Releases thisResultSetobject's database and JDBC resources immediately instead of waiting for this to happen when it is automatically closed.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceResultSet- Throws:
SQLException- if a database access error occurs
-
getColumnClass
Returns the class of the items in the specified column. The default implementation returns theClassset usinggetColumnClass. If no class type is set the default implementation returnsObject.class.- Parameters:
columnIndex- anintthat specifies the column. The first column is 1, the second is 2, and so on.- Returns:
- a
Classobject used to specify the class of the data in the column - Throws:
SQLException- if a database access error occurs- See Also:
-
wasNull
Reports whether the last column read had a value of SQLNULL. Note that you must first call one of thegetType methods on a column to try to read its value and then call the methodwasNullto see if the value read was SQLNULL.- Specified by:
wasNullin interfaceResultSet- Returns:
- a
boolean,trueif the last column value read was SQLNULLotherwisefalse - Throws:
SQLException- if a database access error occurs
-
getString
Gets the value of the designated column in the current row of thisResultSetobject as aStringin the Java programming language.- Specified by:
getStringin interfaceResultSet- Parameters:
columnIndex- anintthat specifies the column. The first column is 1, the second is 2, and so on.- Returns:
- a
Stringrepresentation of the column value. If the value is SQLNULL, the value returned isnull. - Throws:
SQLException- if a database access error occurs
-
getBoolean
Gets the value of the designated column in the current row of thisResultSetobject as abooleanin the Java programming language.- Specified by:
getBooleanin interfaceResultSet- Parameters:
columnIndex- anintthat specifies the column. The first column is 1, the second is 2, and so on.- Returns:
- a
booleanrepresentation of the column value. If the value is SQLNULL, the value returned isfalse. - Throws:
SQLException- if a conversion or database access error occurs
-
getByte
Gets the value of the designated column in the current row of thisResultSetobject as abytein the Java programming language.- Specified by:
getBytein interfaceResultSet- Parameters:
columnIndex- anintthat specifies the column. The first column is 1, the second is 2, and so on.- Returns:
- a
byterepresentation of the column value. If the value is SQLNULL, the value returned is0. - Throws:
SQLException- if a conversion or database access error occurs
-
getShort
Gets the value of the designated column in the current row of thisResultSetobject as ashortin the Java programming language.- Specified by:
getShortin interfaceResultSet- Parameters:
columnIndex- anintthat specifies the column. The first column is 1, the second is 2, and so on.- Returns:
- a
shortrepresentation of the column value. If the value is SQLNULL, the value returned is0. - Throws:
SQLException- if a conversion or database access error occurs
-
getInt
Gets the value of the designated column in the current row of thisResultSetobject as anintin the Java programming language.- Specified by:
getIntin interfaceResultSet- Parameters:
columnIndex- anintthat specifies the column. The first column is 1, the second is 2, and so on.- Returns:
- an
intrepresentation of the column value. If the value is SQLNULL, the value returned is0. - Throws:
SQLException- if a conversion or database access error occurs
-
getLong
Gets the value of the designated column in the current row of thisResultSetobject as alongin the Java programming language.- Specified by:
getLongin interfaceResultSet- Parameters:
columnIndex- anintthat specifies the column. The first column is 1, the second is 2, and so on.- Returns:
- a
longrepresentation of the column value. If the value is SQLNULL, the value returned is0. - Throws:
SQLException- if a conversion or database access error occurs
-
getFloat
Gets the value of the designated column in the current row of thisResultSetobject as afloatin the Java programming language.- Specified by:
getFloatin interfaceResultSet- Parameters:
columnIndex- anintthat specifies the column. The first column is 1, the second is 2, and so on.- Returns:
- a
floatrepresentation of the column value. If the value is SQLNULL, the value returned is0. - Throws:
SQLException- if a conversion or database access error occurs
-
getDouble
Gets the value of the designated column in the current row of thisResultSetobject as adoublein the Java programming language.- Specified by:
getDoublein interfaceResultSet- Parameters:
columnIndex- anintthat specifies the column. The first column is 1, the second is 2, and so on.- Returns:
- a
doublerepresentation of the column value. If the value is SQLNULL, the value returned is0. - Throws:
SQLException- if a conversion or database access error occurs
-
getBigDecimal
Deprecated.Gets the value of the designated column in the current row of thisResultSetobject as ajava.sql.BigDecimalin the Java programming language.- Specified by:
getBigDecimalin interfaceResultSet- Parameters:
columnIndex- anintthat specifies the column. The first column is 1, the second is 2, and so on.scale- anintthat specifies the number of digits to the right of the decimal point- Returns:
- a
java.sql.BigDecimalrepresentation of the column value. If the value is SQLNULL, the value returned isnull. - Throws:
SQLException- if a database access error occurs
-
getBytes
Gets the value of the designated column in the current row of thisResultSetobject as abytearray in the Java programming language. The bytes represent the raw values returned by the driver.- Specified by:
getBytesin interfaceResultSet- Parameters:
columnIndex- anintthat specifies the column. The first column is 1, the second is 2, and so on.- Returns:
- a
bytearray representation of the column value. If the value is SQLNULL, the value returned isnull. - Throws:
SQLException- if a database access error occurs
-
doGetBytes
Implements the actualgetBytes(). The bytes represent the raw values returned by the driver.- Parameters:
columnIndex- anintthat specifies the column. The first column is 1, the second is 2, and so on.- Returns:
- a
bytearray representation of the column value. If the value is SQLnull, the value returned isnull. - Throws:
SQLException- if a database access error occurs
-
getDate
Gets the value of the designated column in the current row of thisResultSetobject as ajava.sql.Dateobject in the Java programming language.- Specified by:
getDatein interfaceResultSet- Parameters:
columnIndex- anintthat specifies the column. The first column is 1, the second is 2, and so on.- Returns:
- a
java.sql.Daterepresentation of the column value. If the value is SQLNULL, the value returned isnull. - Throws:
SQLException- if a conversion or database access error occurs
-
getTime
Gets the value of the designated column in the current row of thisResultSetobject as ajava.sql.Timeobject in the Java programming language.- Specified by:
getTimein interfaceResultSet- Parameters:
columnIndex- anintthat specifies the column. The first column is 1, the second is 2, and so on.- Returns:
- a
java.sql.Timerepresentation of the column value. If the value is SQLNULL, the value returned isnull. - Throws:
SQLException- if a conversion or database access error occurs
-
getTimestamp
Gets the value of the designated column in the current row of thisResultSetobject as ajava.sql.Timestampobject in the Java programming language.- Specified by:
getTimestampin interfaceResultSet- Parameters:
columnIndex- anintthat specifies the column. The first column is 1, the second is 2, and so on.- Returns:
- a
java.sql.Timestamprepresentation of the column value. If the value is SQLNULL, the value returned isnull. - Throws:
SQLException- if a conversion or database access error occurs
-
getAsciiStream
Gets the value of the designated column in the current row of thisResultSetobject as a stream of ASCII characters. The value can then be read in chunks from the stream. This method is particularly suitable for retrieving largeLONGVARCHARvalues. The JDBC driver does any necessary conversion from the database format into ASCII.Note: All the data in the returned stream must be read prior to getting the value of any other column. The next call to a
getType method implicitly closes the stream. Also, a stream may return0when the methodInputStream.availableis called whether there is data available or not.- Specified by:
getAsciiStreamin interfaceResultSet- Parameters:
columnIndex- anintthat specifies the column. The first column is 1, the second is 2, and so on.- Returns:
- a
java.io.InputStreamthat delivers the database column value as a stream of one-byte ASCII characters. If the value is SQLNULL, the value returned isnull. - Throws:
SQLException- if a database access error occurs
-
getUnicodeStream
Deprecated.UsegetCharacterStream(int)instead.Gets the value of the designated column in the current row of thisResultSetobject as as a stream of Unicode characters. The value can then be read in chunks from the stream. This method is particularly suitable for retrieving largeLONGVARCHARvalues. The JDBC driver does any necessary conversion from the database format into Unicode. The byte format of the Unicode stream must be Java UTF-8, as specified in the Java virtual machine specification.Note: All the data in the returned stream must be read prior to getting the value of any other column. The next call to a
getType method implicitly closes the stream. Also, a stream may return0when the methodInputStream.availableis called whether there is data available or not.- Specified by:
getUnicodeStreamin interfaceResultSet- Parameters:
columnIndex- anintthat specifies the column. The first column is 1, the second is 2, and so on.- Returns:
- a
java.io.InputStreamthat delivers the database column value as a stream in Java UTF-8 byte format. If the value is SQLNULL, the value returned isnull. - Throws:
SQLException- if a database access error occurs
-
getBinaryStream
Gets the value of the designated column in the current row of thisResultSetobject as a binary stream of uninterpreted bytes. The value can then be read in chunks from the stream. This method is particularly suitable for retrieving largeLONGVARBINARYvalues.Note: All the data in the returned stream must be read prior to getting the value of any other column. The next call to a
getType method implicitly closes the stream. Also, a stream may return0when the methodInputStream.availableis called whether there is data available or not.- Specified by:
getBinaryStreamin interfaceResultSet- Parameters:
columnIndex- anintthat specifies the column. The first column is 1, the second is 2, and so on.- Returns:
- a
java.io.InputStreamthat delivers the database column value as a stream of uninterpreted bytes. If the value is SQLNULL, the value returned isnull. - Throws:
SQLException- if a database access error occurs
-
getString
Gets the value of the designated column in the current row of thisResultSetobject as aStringin the Java programming language.- Specified by:
getStringin interfaceResultSet- Parameters:
columnLabel- aStringthat indicates the label for the column specified with the SQLASclause. If the SQLASclause was not specified, then the label is the name of the column.- Returns:
- a
Stringrepresentation of the column value. If the value is SQLNULL, the value returned isnull. - Throws:
SQLException- if a database access error occurs
-
getBoolean
Gets the value of the designated column in the current row of thisResultSetobject as abooleanin the Java programming language.- Specified by:
getBooleanin interfaceResultSet- Parameters:
columnLabel- aStringthat indicates the label for the column specified with the SQLASclause. If the SQLASclause was not specified, then the label is the name of the column.- Returns:
- a
booleanrepresentation of the column value. If the value is SQLNULL, the value returned isfalse. - Throws:
SQLException- if a database access error occurs
-
getByte
Gets the value of the designated column in the current row of thisResultSetobject as abytein the Java programming language.- Specified by:
getBytein interfaceResultSet- Parameters:
columnLabel- aStringthat indicates the label for the column specified with the SQLASclause. If the SQLASclause was not specified, then the label is the name of the column.- Returns:
- a
byterepresentation of the column value. If the value is SQLNULL, the value returned is0. - Throws:
SQLException- if a database access error occurs
-
getShort
Gets the value of the designated column in the current row of thisResultSetobject as ashortin the Java programming language.- Specified by:
getShortin interfaceResultSet- Parameters:
columnLabel- aStringthat indicates the label for the column specified with the SQLASclause. If the SQLASclause was not specified, then the label is the name of the column.- Returns:
- a
shortrepresentation of the column value. If the value is SQLNULL, the value returned is0. - Throws:
SQLException- if a database access error occurs
-
getInt
Gets the value of the designated column in the current row of thisResultSetobject as anintin the Java programming language.- Specified by:
getIntin interfaceResultSet- Parameters:
columnLabel- aStringthat indicates the label for the column specified with the SQLASclause. If the SQLASclause was not specified, then the label is the name of the column.- Returns:
- an
intrepresentation of the column value. If the value is SQLNULL, the value returned is0. - Throws:
SQLException- if a database access error occurs
-
getLong
Gets the value of the designated column in the current row of thisResultSetobject as alongin the Java programming language.- Specified by:
getLongin interfaceResultSet- Parameters:
columnLabel- aStringthat indicates the label for the column specified with the SQLASclause. If the SQLASclause was not specified, then the label is the name of the column.- Returns:
- a
longrepresentation of the column value. If the value is SQLNULL, the value returned is0. - Throws:
SQLException- if a database access error occurs
-
getFloat
Gets the value of the designated column in the current row of thisResultSetobject as afloatin the Java programming language.- Specified by:
getFloatin interfaceResultSet- Parameters:
columnLabel- aStringthat indicates the label for the column specified with the SQLASclause. If the SQLASclause was not specified, then the label is the name of the column.- Returns:
- a
floatrepresentation of the column value. If the value is SQLNULL, the value returned is0. - Throws:
SQLException- if a database access error occurs
-
getDouble
Gets the value of the designated column in the current row of thisResultSetobject as adoublein the Java programming language.- Specified by:
getDoublein interfaceResultSet- Parameters:
columnLabel- aStringthat indicates the label for the column specified with the SQLASclause. If the SQLASclause was not specified, then the label is the name of the column.- Returns:
- a
doublerepresentation of the column value. If the value is SQLNULL, the value returned is0. - Throws:
SQLException- if a database access error occurs
-
getBigDecimal
Deprecated.Gets the value of the designated column in the current row of thisResultSetobject as ajava.math.BigDecimalin the Java programming language.- Specified by:
getBigDecimalin interfaceResultSet- Parameters:
columnLabel- aStringthat indicates the label for the column specified with the SQLASclause. If the SQLASclause was not specified, then the label is the name of the column.scale- anintthat specifies the number of digits to the right of the decimal point- Returns:
- a
java.math.BigDecimalrepresentation of the column value. If the value is SQLNULL, the value returned isnull. - Throws:
SQLException- if a database access error occurs
-
getBytes
Gets the value of the designated column in the current row of thisResultSetobject as abytearray in the Java programming language. The bytes represent the raw values returned by the driver.- Specified by:
getBytesin interfaceResultSet- Parameters:
columnLabel- aStringthat indicates the label for the column specified with the SQLASclause. If the SQLASclause was not specified, then the label is the name of the column.- Returns:
- a
bytearray representation of the column value. If the value is SQLNULL, the value returned isnull. - Throws:
SQLException- if a database access error occurs
-
getDate
Gets the value of the designated column in the current row of thisResultSetobject as ajava.sql.Dateobject in the Java programming language.- Specified by:
getDatein interfaceResultSet- Parameters:
columnLabel- aStringthat indicates the label for the column specified with the SQLASclause. If the SQLASclause was not specified, then the label is the name of the column.- Returns:
- a
java.sql.Daterepresentation of the column value. If the value is SQLNULL, the value returned isnull. - Throws:
SQLException- if a database access error occurs
-
getTime
Gets the value of the designated column in the current row of thisResultSetobject as ajava.sql.Timeobject in the Java programming language.- Specified by:
getTimein interfaceResultSet- Parameters:
columnLabel- aStringthat indicates the label for the column specified with the SQLASclause. If the SQLASclause was not specified, then the label is the name of the column.- Returns:
- a
java.sql.Timerepresentation of the column value. If the value is SQLNULL, the value returned isnull. - Throws:
SQLException- if a database access error occurs
-
getTimestamp
Gets the value of the designated column in the current row of thisResultSetobject as ajava.sql.Timestampobject.- Specified by:
getTimestampin interfaceResultSet- Parameters:
columnLabel- aStringthat indicates the label for the column specified with the SQLASclause. If the SQLASclause was not specified, then the label is the name of the column.- Returns:
- a
java.sql.Timestamprepresentation of the column value, if the value is SQLNULL, the value returned isnull - Throws:
SQLException- if a database access error occurs
-
getAsciiStream
Gets the value of the designated column in the current row of thisResultSetobject as a stream of ASCII characters. The value can then be read in chunks from the stream. This method is particularly suitable for retrieving largeLONGVARCHARvalues. The JDBC driver does any necessary conversion from the database format into ASCII.Note: All the data in the returned stream must be read prior to getting the value of any other column. The next call to a
getType method implicitly closes the stream. Also, a stream may return0when the methodavailableis called whether there is data available or not.- Specified by:
getAsciiStreamin interfaceResultSet- Parameters:
columnLabel- aStringthat indicates the label for the column specified with the SQLASclause. If the SQLASclause was not specified, then the label is the name of the column.- Returns:
- a
java.io.InputStreamthat delivers the database column value as a stream of one-byte ASCII characters. If the value is SQLNULL, the value returned isnull. - Throws:
SQLException- if a database access error occurs
-
getUnicodeStream
Deprecated.UsegetCharacterStream(String)instead.Gets the value of the designated column in the current row of thisResultSetobject as a stream of Unicode characters. The value can then be read in chunks from the stream. This method is particularly suitable for retrieving largeLONGVARCHARvalues. The JDBC driver does any necessary conversion from the database format into Unicode. The byte format of the Unicode stream must be Java UTF-8, as defined in the Java virtual machine specification.Note: All the data in the returned stream must be read prior to getting the value of any other column. The next call to a
getType method implicitly closes the stream. Also, a stream may return0when the methodavailableis called whether there is data available or not.- Specified by:
getUnicodeStreamin interfaceResultSet- Parameters:
columnLabel- aStringthat indicates the label for the column specified with the SQLASclause. If the SQLASclause was not specified, then the label is the name of the column.- Returns:
- a
java.io.InputStreamthat delivers the database column value as a stream of two-byte Unicode characters. If the value is SQLNULL, the value returned isnull. - Throws:
SQLException- if a database access error occurs
-
getBinaryStream
Gets the value of the designated column in the current row of thisResultSetobject as a stream of uninterpretedbytes. The value can then be read in chunks from the stream. This method is particularly suitable for retrieving largeLONGVARBINARYvalues.Note: All the data in the returned stream must be read prior to getting the value of any other column. The next call to a
getType method implicitly closes the stream. Also, a stream may return0when the methodavailableis called whether there is data available or not.- Specified by:
getBinaryStreamin interfaceResultSet- Parameters:
columnLabel- aStringthat indicates the label for the column specified with the SQLASclause. If the SQLASclause was not specified, then the label is the name of the column.- Returns:
- a
java.io.InputStreamthat delivers the database column value as a stream of uninterpreted bytes. If the value is SQLNULL, the result isnull. - Throws:
SQLException- if a database access error occurs
-
getWarnings
Returns the first warning reported by calls on thisResultSetobject. Subsequent warnings on thisResultSetobject are chained to theSQLWarningobject that this method returns.The warning chain is automatically cleared each time a new row is read.
Note: This warning chain only covers warnings caused by
ResultSetmethods. Any warning caused byStatementmethods (such as reading OUT parameters) are chained on theStatementobject.- Specified by:
getWarningsin interfaceResultSet- Returns:
- the first
SQLWarningobject reported ornull - Throws:
SQLException- if a database access error occurs
-
clearWarnings
Clears all warnings reported on thisResultSetobject. After this method is called, the methodgetWarningsreturnsnulluntil a new warning is reported for thisResultSetobject.- Specified by:
clearWarningsin interfaceResultSet- Throws:
SQLException- if a database access error occurs
-
setWarning
Sets aSQLWarning.- Parameters:
warning- aSQLWarningthat is to be added to this object.
-
getCursorName
Gets the name of the SQL cursor used by thisResultSetobject. The default implementation throws aSQLException.- Specified by:
getCursorNamein interfaceResultSet- Returns:
- a
Stringthat specifies the SQL name for thisResultSetobject's cursor - Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented
-
getMetaData
Retrieves the number, types and properties of thisResultSetobject's columns.- Specified by:
getMetaDatain interfaceResultSet- Returns:
- a
ResultSetMetaDatawhich provides a description of thisResultSetobject's columns - Throws:
SQLException- if a database access error occurs
-
getObject
Gets the value of the designated column in the current row of this
ResultSetobject as anObjectin the Java programming language.This method returns the value of the given column as a Java object. The type of the Java object is the default Java object type corresponding to the column's SQL type, following the mapping for built-in types specified in the JDBC specification.
- Specified by:
getObjectin interfaceResultSet- Parameters:
columnIndex- anintthat specifies the column. The first column is 1, the second is 2, and so on.- Returns:
- a
java.lang.Objectrepresentation of the column value - Throws:
SQLException- if a database access error occurs
-
getObject
Gets the value of the designated column in the current row of this
ResultSetobject as anObjectin the Java programming language.This method returns the value of the given column as a Java object. The type of the Java object is the default Java object type corresponding to the column's SQL type, following the mapping for built-in types specified in the JDBC specification.
This method may also be used to read datatabase-specific abstract data types. In the JDBC 2.0 API, the behavior of the method
getObjectis extended to materialize data of SQL user-defined types. When a column contains a structured or distinct value, the behavior of this method is as if it were a call to:getObject(columnIndex, this.getStatement().getConnection().getTypeMap()).- Specified by:
getObjectin interfaceResultSet- Parameters:
columnLabel- aStringthat indicates the label for the column specified with the SQLASclause. If the SQLASclause was not specified, then the label is the name of the column.- Returns:
- a
java.lang.Objectrepresentation of the column value - Throws:
SQLException- if a database access error occurs
-
getCharacterStream
Gets the value of the designated column in the current row of thisResultSetobject as ajava.io.Readerobject.- Specified by:
getCharacterStreamin interfaceResultSet- Parameters:
columnIndex- anintthat specifies the column. The first column is 1, the second is 2, and so on.- 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- if a database access error occurs
-
getCharacterStream
Gets the value of the designated column in the current row of thisResultSetobject as ajava.io.Readerobject.- Specified by:
getCharacterStreamin interfaceResultSet- Parameters:
columnLabel- aStringthat indicates the label for the column specified with the SQLASclause. If the SQLASclause 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- if a database access error occurs
-
getBigDecimal
Gets the value of the designated column in the current row of thisResultSetobject as ajava.math.BigDecimalwith full precision.- Specified by:
getBigDecimalin interfaceResultSet- Parameters:
columnIndex- anintthat specifies the column. The first column is 1, the second is 2, and so on.- Returns:
- a
java.math.BigDecimalobject that contains the column value. If the value is SQLNULL, the value returned isnullin the Java programming language. - Throws:
SQLException- if a conversion or database access error occurs
-
getBigDecimal
Gets the value of the designated column in the current row of thisResultSetobject as ajava.math.BigDecimalwith full precision.- Specified by:
getBigDecimalin interfaceResultSet- Parameters:
columnLabel- aStringthat indicates the label for the column specified with the SQLASclause. If the SQLASclause was not specified, then the label is the name of the column.- Returns:
- a
java.math.BigDecimalobject that contains the column value. If the value is SQLNULL, the value returned isnullin the Java programming language. - Throws:
SQLException- if a database access error occurs
-
getURL
Retrieves the value of the designated column in the current row of thisResultSetobject as ajava.net.URLobject.- Specified by:
getURLin interfaceResultSet- Parameters:
columnLabel- aStringthat indicates the label for the column specified with the SQLASclause. If the SQLASclause was not specified, then the label is the name of the column.- Returns:
- a
java.net.URLobject that contains the column value. If the value is SQLNULL, the value returned isnullin the Java programming language. - Throws:
SQLException- if a database access error occurs
-
getURL
Retrieves the value of the designated column in the current row of thisResultSetobject as ajava.net.URLobject.- Specified by:
getURLin interfaceResultSet- Parameters:
columnIndex- anintthat specifies the column. The first column is 1, the second is 2, and so on.- Returns:
- a
java.net.URLobject that contains the column value. If the value is SQLNULL, the value returned isnullin the Java programming language. - Throws:
SQLException- if a conversion or database access error occurs
-
isBeforeFirst
Indicates whether the cursor is before the first row in thisResultSetobject.- Specified by:
isBeforeFirstin interfaceResultSet- Returns:
- a
booleanwhose value istrueif the cursor is before the first row,falseif the cursor is at any other position or theResultSetcontains no rows - Throws:
SQLException- if a database access error occurs
-
isAfterLast
Indicates whether the cursor is after the last row in thisResultSetobject.- Specified by:
isAfterLastin interfaceResultSet- Returns:
- a
booleanwhose value istrueif the cursor is after the last row,falseif the cursor is at any other position or theResultSetcontains no rows - Throws:
SQLException- if a database access error occurs
-
isFirst
Indicates whether the cursor is on the first row of thisResultSetobject.- Specified by:
isFirstin interfaceResultSet- Returns:
- a
booleanwhose value istrueif the cursor is on the first row,falseotherwise - Throws:
SQLException- if a database access error occurs
-
isLast
Indicates whether the cursor is on the last row of thisResultSetobject. Note: Calling the methodisLastmay be expensive because the JDBC driver might need to fetch ahead one row in order to determine whether the current row is the last row in the result set.- Specified by:
isLastin interfaceResultSet- Returns:
- a
booleanwhose value istrueif the cursor is on the last row,falseotherwise - Throws:
SQLException- if a database access error occurs
-
beforeFirst
Moves the cursor to the front of thisResultSetobject, just before the first row. This method has no effect if the result set contains no rows.- Specified by:
beforeFirstin interfaceResultSet- Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
afterLast
Moves the cursor to the end of thisResultSetobject, just after the last row. This method has no effect if the result set contains no rows.- Specified by:
afterLastin interfaceResultSet- Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
first
Moves the cursor to the first row in thisResultSetobject.- Specified by:
firstin interfaceResultSet- Returns:
- a
booleanwhose value istrueif the cursor is on the result set,falseotherwise - Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
last
Moves the cursor to the last row in thisResultSetobject.- Specified by:
lastin interfaceResultSet- Returns:
- a
booleanwhose value istrueif the cursor is on the result set,falseotherwise - Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
getRow
Retrieves the current row number. The first row is number 1, the second number 2, and so on.- Specified by:
getRowin interfaceResultSet- Returns:
- an
intthat specifies the current row number;0if there is no current row - Throws:
SQLException- if a database access error occurs
-
absolute
Moves the cursor to the given row number in thisResultSetobject.- Specified by:
absolutein interfaceResultSet- Parameters:
row- anintthat specifies a row, of theResultSetobject, where the cursor is to be moved- Returns:
- a
booleanwhose value istrueif the cursor is on the result set,falseotherwise - Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
relative
Moves the cursor a relative number of rows, either positive or negative.- Specified by:
relativein interfaceResultSet- Parameters:
rows- anintthat specifies the number of rows in theResultSetobject to advance or regress- Returns:
- a
booleanwhose value istrueif the cursor is on the result set,falseotherwise - Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
previous
Moves the cursor to the previous row in thisResultSetobject.- Specified by:
previousin interfaceResultSet- Returns:
- a
booleanwhose value istrueif the cursor is on the result set,falseotherwise - Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
setFetchDirection
Gives a hint as to the direction in which the rows in thisResultSetobject is processed.- Specified by:
setFetchDirectionin interfaceResultSet- Parameters:
direction- anintthat specifies the expected direction thisResultSetobject is to be processed- Throws:
SQLException- if the fetch direction is notFETCH_FORWARD- See Also:
-
getFetchDirection
Returns the fetch direction for thisResultSetobject.- Specified by:
getFetchDirectionin interfaceResultSet- Returns:
- an
intthat specifies the current fetch direction for thisResultSetobject. Always returnsFETCH_FORWARD. - Throws:
SQLException- if a database access error occurs
-
setFetchSize
Gives the JDBC driver a hint as to the number of rows that should be fetched from the database when more rows are needed for thisResultSetobject. If the fetch size specified is zero, the JDBC driver ignores the value and is free to make its own best guess as to what the fetch size should be. The default value is set by theStatementobject that created the result set. The fetch size may be changed at any time.- Specified by:
setFetchSizein interfaceResultSet- Parameters:
rows- anintthat specifies the number of rows to fetch- Throws:
SQLException- if a database access error occurs or the condition0 <= rows <= this.getMaxRows()is not satisfied
-
getFetchSize
Returns the fetch size for thisResultSetobject.- Specified by:
getFetchSizein interfaceResultSet- Returns:
- an
intthat specifies the current fetch size for thisResultSetobject - Throws:
SQLException- if a database access error occurs
-
getType
Returns the type of thisResultSetobject. The type is determined by theStatementobject that created the result set.- Specified by:
getTypein interfaceResultSet- Returns:
- an
intthat specifies the type of thisResultSetobject. Always returnsTYPE_FORWARD_ONLY. - Throws:
SQLException- if a database access error occurs
-
getConcurrency
Returns the concurrency mode of thisResultSetobject.- Specified by:
getConcurrencyin interfaceResultSet- Returns:
- an
intthat specifies whether concurrency is read only or an update processes as well. Always returnsCONCUR_READ_ONLY. - Throws:
SQLException- if a database access error occurs
-
rowUpdated
Indicates whether the current row has been updated. Since updates are not allowed, this always returnsfalse.- Specified by:
rowUpdatedin interfaceResultSet- Returns:
- a
booleanwhich indicates whether a row has been updated. Always returnsfalsesince updates are not allowed. - Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
rowInserted
Indicates whether the current row has had an insertion. Since updates are not allowed, this always returnsfalse.- Specified by:
rowInsertedin interfaceResultSet- Returns:
- a
booleanwhich indicates whether the current row had an insertion. Always returnsfalsesince updates are not allowed. - Throws:
SQLException- if a database access error occurs
-
rowDeleted
Indicates whether a row has been deleted. Since updates are not allowed, this always returnsfalse.- Specified by:
rowDeletedin interfaceResultSet- Returns:
- a
booleanwhich indicates whether a row has been deleted. Always returnsfalsesince updates are not allowed. - Throws:
SQLException- if a database access error occurs
-
updateNull
public void updateNull(int columnIndex) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException Gives a nullable column anullvalue. Since updates are not allowed, this method always throws aSQLException.- Specified by:
updateNullin interfaceResultSet- Parameters:
columnIndex- anintthat specifies the column. The first column is 1, the second is 2, and so on.- Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
updateBoolean
public void updateBoolean(int columnIndex, boolean x) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException Updates the designated column with abooleanvalue. Since updates are not allowed, this method always throws aSQLException.- Specified by:
updateBooleanin interfaceResultSet- Parameters:
columnIndex- anintthat specifies the column. The first column is 1, the second is 2, and so on.x- abooleanthat specifies the new column value- Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
updateByte
public void updateByte(int columnIndex, byte x) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException Updates the designated column with abytevalue. Since updates are not allowed, this method always throws aSQLException.- Specified by:
updateBytein interfaceResultSet- Parameters:
columnIndex- anintthat specifies the column. The first column is 1, the second is 2, and so on.x- abytethat specifies the new column value- Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
updateShort
public void updateShort(int columnIndex, short x) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException Updates the designated column with ashortvalue. Since updates are not allowed, this method always throws aSQLException.- Specified by:
updateShortin interfaceResultSet- Parameters:
columnIndex- anintthat specifies the column. The first column is 1, the second is 2, and so on.x- ashortthat specifies the new column value- Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
updateInt
public void updateInt(int columnIndex, int x) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException Updates the designated column with anintvalue. Since updates are not allowed, this method always throws aSQLException.- Specified by:
updateIntin interfaceResultSet- Parameters:
columnIndex- anintthat specifies the column. The first column is 1, the second is 2, and so on.x- anintthat specifies the new column value- Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
updateLong
public void updateLong(int columnIndex, long x) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException Updates the designated column with alongvalue. Since updates are not allowed, this method always throws aSQLException.- Specified by:
updateLongin interfaceResultSet- Parameters:
columnIndex- anintthat specifies the column. The first column is 1, the second is 2, and so on.x- alongthat specifies the new column value- Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
updateFloat
public void updateFloat(int columnIndex, float x) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException Updates the designated column with afloatvalue. Since updates are not allowed, this method always throws aSQLException.- Specified by:
updateFloatin interfaceResultSet- Parameters:
columnIndex- anintthat specifies the column. The first column is 1, the second is 2, and so on.x- afloatthat specifies the new column value- Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
updateDouble
public void updateDouble(int columnIndex, double x) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException Updates the designated column with adoublevalue. Since updates are not allowed, this method always throws aSQLException.- Specified by:
updateDoublein interfaceResultSet- Parameters:
columnIndex- anintthat specifies the column. The first column is 1, the second is 2, and so on.x- adoublethat specifies the new column value- Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
updateBigDecimal
public void updateBigDecimal(int columnIndex, BigDecimal x) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException Updates the designated column with ajava.math.BigDecimalvalue. Since updates are not allowed, this method always throws aSQLException.- Specified by:
updateBigDecimalin interfaceResultSet- Parameters:
columnIndex- anintthat specifies the column. The first column is 1, the second is 2, and so on.x- ajava.math.BigDecimalthat specifies the new column value- Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
updateString
public void updateString(int columnIndex, String x) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException Updates the designated column with aStringvalue. Since updates are not allowed, this method always throws aSQLException.- Specified by:
updateStringin interfaceResultSet- Parameters:
columnIndex- anintthat specifies the column. The first column is 1, the second is 2, and so on.x- aStringthat specifies the new column value- Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
updateBytes
Updates the designated column with abytearray value. Since updates are not allowed, this method always throws aSQLException.- Specified by:
updateBytesin interfaceResultSet- Parameters:
columnIndex- anintthat specifies the column. The first column is 1, the second is 2, and so on.x- abytearray that specifies the new column value- Throws:
SQLException- is always thrown since updates are not allowed
-
updateDate
public void updateDate(int columnIndex, Date x) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException Updates the designated column with ajava.sql.Datevalue. Since updates are not allowed, this method always throws aSQLException.- Specified by:
updateDatein interfaceResultSet- Parameters:
columnIndex- anintthat specifies the column. The first column is 1, the second is 2, and so on.x- ajava.sql.Datethat specifies the new column value- Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
updateTime
public void updateTime(int columnIndex, Time x) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException Updates the designated column with ajava.sql.Timevalue. Since updates are not allowed, this method always throws aSQLException.- Specified by:
updateTimein interfaceResultSet- Parameters:
columnIndex- anintthat specifies the column. The first column is 1, the second is 2, and so on.x- ajava.sql.Timethat specifies the new column value- Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
updateTimestamp
public void updateTimestamp(int columnIndex, Timestamp x) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException Updates the designated column with ajava.sql.Timestampvalue. Since updates are not allowed, this method always throws aSQLException.- Specified by:
updateTimestampin interfaceResultSet- Parameters:
columnIndex- anintthat specifies the column. The first column is 1, the second is 2, and so on.x- ajava.sql.Timestampthat specifies the new column value- Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
updateAsciiStream
public void updateAsciiStream(int columnIndex, InputStream x, int length) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException Updates the designated column with an ASCII stream value. Since updates are not allowed, this method always throws aSQLException.- Specified by:
updateAsciiStreamin interfaceResultSet- Parameters:
columnIndex- anintthat specifies the column. The first column is 1, the second is 2, and so on.x- anInputStreamthat specifies the new column valuelength- anintthat specifies the stream length- Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
updateBinaryStream
public void updateBinaryStream(int columnIndex, InputStream x, int length) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException Updates the designated column with a binary stream value. Since updates are not allowed, this method always throws aSQLException.- Specified by:
updateBinaryStreamin interfaceResultSet- Parameters:
columnIndex- anintthat specifies the column. The first column is 1, the second is 2, and so on.x- anInputStreamthat specifies the new column valuelength- anintthat specifies the stream length- Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
updateCharacterStream
public void updateCharacterStream(int columnIndex, Reader x, int length) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException Updates the designated column with a character stream value. Since updates are not allowed, this method always throws aSQLException.- Specified by:
updateCharacterStreamin interfaceResultSet- Parameters:
columnIndex- anintthat specifies the column. The first column is 1, the second is 2, and so on.x- aReaderthat specifies the new column valuelength- anintthat specifies the stream length- Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
updateObject
public void updateObject(int columnIndex, Object x, int scale) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException Updates the designated column with anObjectvalue. Since updates are not allowed, this method always throws aSQLException.- Specified by:
updateObjectin interfaceResultSet- Parameters:
columnIndex- anintthat specifies the column. The first column is 1, the second is 2, and so on.x- anObjectthat specifies the new column valuescale- forjava.sql.Types.DECIMALorjava.sql.Types.NUMERICtypes, this is the number of digits after the decimal point. For all other types this value is ignored.- Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
updateObject
public void updateObject(int columnIndex, Object x) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException Updates the designated column with anObjectvalue. Since updates are not allowed, this method always throws aSQLException.- Specified by:
updateObjectin interfaceResultSet- Parameters:
columnIndex- anintthat specifies the column. The first column is 1, the second is 2, and so on.x- anObjectthat specifies the new column value- Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
updateNull
public void updateNull(String columnLabel) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException Updates the designated column with anullvalue. Since updates are not allowed, this method always throws aSQLException.- Specified by:
updateNullin interfaceResultSet- Parameters:
columnLabel- aStringthat indicates the label for the column specified with the SQLASclause. If the SQLASclause was not specified, then the label is the name of the column.- Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
updateBoolean
public void updateBoolean(String columnLabel, boolean x) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException Updates the designated column with abooleanvalue. Since updates are not allowed, this method always throws aSQLException.- Specified by:
updateBooleanin interfaceResultSet- Parameters:
columnLabel- aStringthat indicates the label for the column specified with the SQLASclause. If the SQLASclause was not specified, then the label is the name of the column.x- abooleanthat specifies the new column value- Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
updateByte
public void updateByte(String columnLabel, byte x) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException Updates the designated column with abytevalue. Since updates are not allowed, this method always throws aSQLException.- Specified by:
updateBytein interfaceResultSet- Parameters:
columnLabel- aStringthat indicates the label for the column specified with the SQLASclause. If the SQLASclause was not specified, then the label is the name of the column.x- abytethat specifies the new column value- Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
updateShort
public void updateShort(String columnLabel, short x) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException Updates the designated column with ashortvalue. Since updates are not allowed, this method always throws aSQLException.- Specified by:
updateShortin interfaceResultSet- Parameters:
columnLabel- aStringthat indicates the label for the column specified with the SQLASclause. If the SQLASclause was not specified, then the label is the name of the column.x- ashortthat specifies the new column value- Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
updateInt
public void updateInt(String columnLabel, int x) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException Updates the designated column with anintvalue. Since updates are not allowed, this method always throws aSQLException.- Specified by:
updateIntin interfaceResultSet- Parameters:
columnLabel- aStringthat indicates the label for the column specified with the SQLASclause. If the SQLASclause was not specified, then the label is the name of the column.x- anintthat specifies the new column value- Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
updateLong
public void updateLong(String columnLabel, long x) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException Updates the designated column with alongvalue. Since updates are not allowed, this method always throws aSQLException.- Specified by:
updateLongin interfaceResultSet- Parameters:
columnLabel- aStringthat indicates the label for the column specified with the SQLASclause. If the SQLASclause was not specified, then the label is the name of the column.x- alongthat specifies the new column value- Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
updateFloat
public void updateFloat(String columnLabel, float x) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException Updates the designated column with afloatvalue. Since updates are not allowed, this method always throws aSQLException.- Specified by:
updateFloatin interfaceResultSet- Parameters:
columnLabel- aStringthat indicates the label for the column specified with the SQLASclause. If the SQLASclause was not specified, then the label is the name of the column.x- afloatthat specifies the new column value- Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
updateDouble
public void updateDouble(String columnLabel, double x) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException Updates the designated column with adoublevalue. Since updates are not allowed, this method always throws aSQLException.- Specified by:
updateDoublein interfaceResultSet- Parameters:
columnLabel- aStringthat indicates the label for the column specified with the SQLASclause. If the SQLASclause was not specified, then the label is the name of the column.x- adoublethat specifies the new column value- Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
updateBigDecimal
public void updateBigDecimal(String columnLabel, BigDecimal x) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException Updates the designated column with ajava.sql.BigDecimalvalue. Since updates are not allowed, this method always throws aSQLException.- Specified by:
updateBigDecimalin interfaceResultSet- Parameters:
columnLabel- aStringthat indicates the label for the column specified with the SQLASclause. If the SQLASclause was not specified, then the label is the name of the column.x- ajava.sql.BigDecimalthat specifies the new column value- Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
updateString
public void updateString(String columnLabel, String x) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException Updates the designated column with aStringvalue. Since updates are not allowed, this method always throws aSQLException.- Specified by:
updateStringin interfaceResultSet- Parameters:
columnLabel- aStringthat indicates the label for the column specified with the SQLASclause. If the SQLASclause was not specified, then the label is the name of the column.x- aStringthat specifies the new column value- Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
updateBytes
public void updateBytes(String columnLabel, byte[] x) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException Updates the designated column with abytevalue. Since updates are not allowed, this method always throws aSQLException.- Specified by:
updateBytesin interfaceResultSet- Parameters:
columnLabel- aStringthat indicates the label for the column specified with the SQLASclause. If the SQLASclause was not specified, then the label is the name of the column.x- abytearray that specifies the new column value- Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
updateDate
public void updateDate(String columnLabel, Date x) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException Updates the designated column with ajava.sql.Datevalue. Since updates are not allowed, this method always throws aSQLException.- Specified by:
updateDatein interfaceResultSet- Parameters:
columnLabel- aStringthat indicates the label for the column specified with the SQLASclause. If the SQLASclause was not specified, then the label is the name of the column.x- ajava.sql.Datethat specifies the new column value- Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
updateTime
public void updateTime(String columnLabel, Time x) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException Updates the designated column with ajava.sql.Timevalue. Since updates are not allowed, this method always throws aSQLException.- Specified by:
updateTimein interfaceResultSet- Parameters:
columnLabel- aStringthat indicates the label for the column specified with the SQLASclause. If the SQLASclause was not specified, then the label is the name of the column.x- ajava.sql.Timethat specifies the new column value- Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
updateTimestamp
public void updateTimestamp(String columnLabel, Timestamp x) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException Updates the designated column with ajava.sql.Timestampvalue. Since updates are not allowed, this method always throws aSQLException.- Specified by:
updateTimestampin interfaceResultSet- Parameters:
columnLabel- aStringthat indicates the label for the column specified with the SQLASclause. If the SQLASclause was not specified, then the label is the name of the column.x- ajava.sql.Timestampthat specifies the new column value- Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
updateAsciiStream
public void updateAsciiStream(String columnLabel, InputStream x, int length) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException Updates the designated column with an ASCII stream value. Since updates are not allowed, this method always throws aSQLException.- Specified by:
updateAsciiStreamin interfaceResultSet- Parameters:
columnLabel- aStringthat indicates the label for the column specified with the SQLASclause. If the SQLASclause was not specified, then the label is the name of the column.x- anInputStreamthat specifies the new column valuelength- anintthat specifies the stream length- Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
updateBinaryStream
public void updateBinaryStream(String columnLabel, InputStream x, int length) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException Updates the designated column with a binary stream value. Since updates are not allowed, this method always throws aSQLException.- Specified by:
updateBinaryStreamin interfaceResultSet- Parameters:
columnLabel- aStringthat indicates the label for the column specified with the SQLASclause. If the SQLASclause was not specified, then the label is the name of the column.x- anInputStreamthat specifies the new column valuelength- anintthat specifies the stream length- Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
updateCharacterStream
public void updateCharacterStream(String columnLabel, Reader reader, int length) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException Updates the designated column with a character stream value. Since updates are not allowed, this method always throws aSQLException.- Specified by:
updateCharacterStreamin interfaceResultSet- Parameters:
columnLabel- aStringthat indicates the label for the column specified with the SQLASclause. If the SQLASclause was not specified, then the label is the name of the column.reader- aReaderthat specifies the new column valuelength- anintthat specifies the stream length- Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
updateObject
public void updateObject(String columnLabel, Object x, int scale) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException Updates the designated column with anObjectvalue. Since updates are not allowed, this method always throws aSQLException.- Specified by:
updateObjectin interfaceResultSet- Parameters:
columnLabel- aStringthat indicates the label for the column specified with the SQLASclause. If the SQLASclause was not specified, then the label is the name of the column.x- anObjectthat specifies the new column valuescale- forjava.sql.Types.DECIMALorjava.sql.Types.NUMERICtypes, this is the number of digits after the decimal point. For all other types this value is ignored.- Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
updateObject
public void updateObject(String columnLabel, Object x) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException Updates the designated column with anObjectvalue. Since updates are not allowed, this method always throws aSQLException.- Specified by:
updateObjectin interfaceResultSet- Parameters:
columnLabel- aStringthat indicates the label for the column specified with the SQLASclause. If the SQLASclause was not specified, then the label is the name of the column.x- ajava.sql.Objectthat specifies the new column value- Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
updateArray
public void updateArray(String columnLabel, Array x) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException Updates the designated column with anArrayvalue. Since updates are not allowed, this method always throws aSQLException.- Specified by:
updateArrayin interfaceResultSet- Parameters:
columnLabel- aStringthat indicates the label for the column specified with the SQLASclause. If the SQLASclause was not specified, then the label is the name of the column.x- ajava.sql.Arraythat specifies the new column value- Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
updateArray
public void updateArray(int column, Array x) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException Updates the designated column with anArrayvalue. Since updates are not allowed, this method always throws aSQLException.- Specified by:
updateArrayin interfaceResultSet- Parameters:
column- anintthat specifies the column. The first column is 1, the second is 2, and so on.x- ajava.sql.Arraythat specifies the new column value- Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
updateClob
public void updateClob(String columnLabel, Clob x) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException Updates the designated column with anjava.sql.Clobvalue. Since updates are not allowed, this method always throws aSQLException.- Specified by:
updateClobin interfaceResultSet- Parameters:
columnLabel- aStringthat indicates the label for the column specified with the SQLASclause. If the SQLASclause was not specified, then the label is the name of the column.x- ajava.sql.Clobthat specifies the new column value- Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
updateBlob
public void updateBlob(int column, Blob x) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException Updates the designated column with anjava.sql.Blobvalue. Since updates are not allowed, this method always throws aSQLException.- Specified by:
updateBlobin interfaceResultSet- Parameters:
column- anintthat specifies the column. The first column is 1, the second is 2, and so on.x- ajava.sql.Blobthat specifies the new column value- Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
updateBlob
public void updateBlob(String columnLabel, Blob x) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException Updates the designated column with anjava.sql.Blobvalue. Since updates are not allowed, this method always throws aSQLException.- Specified by:
updateBlobin interfaceResultSet- Parameters:
columnLabel- aStringthat indicates the label for the column specified with the SQLASclause. If the SQLASclause was not specified, then the label is the name of the column.x- ajava.sql.Blobthat specifies the new column value- Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
updateClob
public void updateClob(int column, Clob x) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException Updates the designated column with anjava.sql.Clobvalue. Since updates are not allowed, this method always throws aSQLException.- Specified by:
updateClobin interfaceResultSet- Parameters:
column- anintthat specifies the column. The first column is 1, the second is 2, and so on.x- ajava.sql.Clobthat specifies the new column value- Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
updateRef
public void updateRef(String columnLabel, Ref x) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException Updates the designated column with anjava.sql.Refvalue. Since updates are not allowed, this method always throws aSQLException.- Specified by:
updateRefin interfaceResultSet- Parameters:
columnLabel- aStringthat indicates the label for the column specified with the SQLASclause. If the SQLASclause was not specified, then the label is the name of the column.x- ajava.sql.Refthat specifies the new column value- Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
updateRef
public void updateRef(int column, Ref x) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException Updates the designated column with anjava.sql.Refvalue. Since updates are not allowed, this method always throws aSQLException.- Specified by:
updateRefin interfaceResultSet- Parameters:
column- anintthat specifies the column. The first column is 1, the second is 2, and so on.x- ajava.sql.Refthat specifies the new column value- Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
insertRow
Inserts the contents of the insert row into thisResultSetobject and into the database. Since updates are not allowed, this method always throws aSQLException.- Specified by:
insertRowin interfaceResultSet- Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
updateRow
Updates the underlying database with the new contents of the current row of thisResultSetobject. Since updates are not allowed, this method always throws aSQLException.- Specified by:
updateRowin interfaceResultSet- Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
deleteRow
Deletes the current row from thisResultSetobject and from the underlying database. Since updates are not allowed, this method always throws aSQLException.- Specified by:
deleteRowin interfaceResultSet- Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
refreshRow
Refreshes the current row with its most recent value in the database. Since updates are not allowed, this method always throws aSQLException.- Specified by:
refreshRowin interfaceResultSet- Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
cancelRowUpdates
Cancels the updates made to the current row in thisResultSetobject. Since updates are not allowed, this method always throws aSQLException.- Specified by:
cancelRowUpdatesin interfaceResultSet- Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
moveToInsertRow
Moves the cursor to the insert row. Since updates are not allowed, this method always throws aSQLException.- Specified by:
moveToInsertRowin interfaceResultSet- Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
moveToCurrentRow
Moves the cursor to the remembered cursor position, usually the current row. Since updates are not allowed, this method always throws aSQLException.- Specified by:
moveToCurrentRowin interfaceResultSet- Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
getStatement
Returns theStatementobject that produced thisResultSetobject. Since there is nojava.sqlStatement, this method always throws aSQLException.- Specified by:
getStatementin interfaceResultSet- Returns:
- the
Statmentobject that produced thisResultSetobject ornullif the result set was produced some other way - Throws:
SQLException- is always thrown since updates are not allowed
-
getObject
public Object getObject(int columnIndex, Map map) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException Returns the value of the designated column in the current row of thisResultSetobject as anObjectin the Java programming language. This method uses the givenMapobject for the custom mapping of the SQL structured or distinct type that is being retrieved.- Specified by:
getObjectin interfaceResultSet- Parameters:
columnIndex- anintthat specifies the column. The first column is 1, the second is 2, and so on.map- ajava.util.Mapobject that contains the mapping from SQL type names to classes in the Java programming language- Returns:
- an
Objectin the Java programming language representing the SQL value - Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
getObject
public <T> T getObject(String columnLabel, Class<T> type) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException Returns the value of the designated column in the current row of thisResultSetobject converted to the requested data type in the Java programming language.- Specified by:
getObjectin interfaceResultSet- Type Parameters:
T- the argument type that to be unwrapped- Parameters:
columnLabel- aStringthat indicates the label for the column specified with the SQLASclause. If the SQLASclause was not specified, then the label is the name of the column.type- a Java data type to convert to- Returns:
- an
Objectrepresenting the SQL value in the specified column - Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
getObject
public <T> T getObject(int columnIndex, Class<T> type) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException Returns the value of the designated column in the current row of thisResultSetobject converted to the requested data type in the Java programming language.- Specified by:
getObjectin interfaceResultSet- Type Parameters:
T- the argument type that to be unwrapped- Parameters:
columnIndex- anintthat specifies the column. The first column is 1, the second is 2, and so on.type- a Java data type to convert to- Returns:
- an
Objectrepresenting the SQL value in the specified column - Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
getRef
Returns the value of the designated column in the current row of thisResultSetobject as aRefobject in the Java programming language.- Specified by:
getRefin interfaceResultSet- Parameters:
columnIndex- anintthat specifies the column. The first column is 1, the second is 2, and so on.- Returns:
- a
Refobject representing the SQLREFvalue in the specified column - Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
getBlob
Returns the value of the designated column in the current row of thisResultSetobject as aBlobobject in the Java programming language.NOTE:
java.sql.Blob.free()has not been implemented (they are empty methods) in the instance returned.java.sql.Blob.getBinaryStream(long, long)returnsnullandjava.sql.Blob.setBinaryStream(long)throws aSQLException.- Specified by:
getBlobin interfaceResultSet- Parameters:
columnIndex- anintthat specifies the column. The first column is 1, the second is 2, and so on.- Returns:
- a
Blobobject representing the SQLBLOBvalue in the specified column - Throws:
SQLException- if a database access error occurs
-
getClob
Returns the value of the designated column in the current row of thisResultSetobject as aClobobject in the Java programming language.NOTE:
java.sql.Clob.free()has not been implemented (they are empty methods) in the instance returned.java.sql.Clob.getCharacterStream(long, long)returnsnull.java.sql.Clob.position(Clob, long),java.sql.Clob.setAsciiStream(long),java.sql.Clob.setCharacterStream(long),java.sql.Clob.setString(long, String), andjava.sql.Clob.setString(long, String, int, int)throw aSQLException.- Specified by:
getClobin interfaceResultSet- Parameters:
columnIndex- anintthat specifies the column. The first column is 1, the second is 2, and so on.- Returns:
- a
Clobobject representing an SQLClobvalue in the specified column - Throws:
SQLException- if a database access error occurs
-
getArray
public Array getArray(int columnIndex) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException Deprecated.Returns the value of the designated column in the current row of thisResultSetobject as anArrayobject in the Java programming language.- Specified by:
getArrayin interfaceResultSet- Parameters:
columnIndex- anintthat specifies the column. The first column is 1, the second is 2, and so on.- Returns:
- an
Arrayobject representing an SQLArrayvalue in the specified column - Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
getObject
public Object getObject(String columnLabel, Map map) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException Returns the value of the designated column in the current row of thisResultSetobject as anObjectin the Java programming language. This method uses the specifiedMapobject for custom mapping if appropriate.- Specified by:
getObjectin interfaceResultSet- Parameters:
columnLabel- aStringthat indicates the label for the column specified with the SQLASclause. If the SQLASclause was not specified, then the label is the name of the column.map- ajava.util.Mapobject that contains the mapping from SQL type names to classes in the Java programming language- Returns:
- an
Objectrepresenting the SQL value in the specified column - Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
getRef
public Ref getRef(String columnLabel) throws AbstractFlatFile.FlatFileSQLFeatureNotSupportedException Returns the value of the designated column in the current row of thisResultSetobject as aRefobject in the Java programming language.- Specified by:
getRefin interfaceResultSet- Parameters:
columnLabel- aStringthat indicates the label for the column specified with the SQLASclause. If the SQLASclause was not specified, then the label is the name of the column.- Returns:
- a
Refobject representing the SQLREFvalue in the specified column - Throws:
AbstractFlatFile.FlatFileSQLFeatureNotSupportedException- this feature has not been implemented.
-
getBlob
Returns the value of the designated column in the current row of thisResultSetobject as aBlobobject in the Java programming language.- Specified by:
getBlobin interfaceResultSet- Parameters:
columnLabel- aStringthat indicates the label for the column specified with the SQLASclause. If the SQLASclause was not specified, then the label is the name of the column.- Returns:
- a
Blobobject representing the SQLBLOBvalue in the specified column - Throws:
SQLException- if a database access error occurs
-
getClob
Returns the value of the designated column in the current row of thisResultSetobject as aClobobject in the Java programming language.- Specified by:
getClobin interfaceResultSet- Parameters:
columnLabel- aStringthat indicates the label for the column specified with the SQLASclause. If the SQLASclause was not specified, then the label is the name of the column.- Returns:
- a
Clobobject representing the SQLCLOBvalue in the specified column - Throws:
SQLException- if a database access error occurs
-
getArray
Returns the value of the designated column in the current row of thisResultSetobject as anArrayobject in the Java programming language.- Specified by:
getArrayin interfaceResultSet- Parameters:
columnLabel- aStringthat indicates the label for the column specified with the SQLASclause. If the SQLASclause was not specified, then the label is the name of the column.- Returns:
- an
Arrayobject representing the SQLARRAYvalue in the specified column - Throws:
SQLException- if a database access error occurs
-
getDate
Returns the value of the designated column in the current row of thisResultSetobject as ajava.sql.Dateobject in the Java programming language. This method uses the given calendar to construct an appropriate millisecond value for the date if the underlying database does not store timezone information.- Specified by:
getDatein interfaceResultSet- Parameters:
columnIndex- anintthat specifies the column. The first column is 1, the second is 2, and so on.cal- thejava.util.Calendarobject to use in constructing the date- Returns:
- the column value as a
java.sql.Dateobject. If the value is SQLNULL, the value returned isnullin the Java programming language. - Throws:
SQLException- if a database access error occurs
-
getDate
Returns the value of the designated column in the current row of thisResultSetobject as ajava.sql.Dateobject in the Java programming language. This method uses the given calendar to construct an appropriate millisecond value for the date if the underlying database does not store timezone information.- Specified by:
getDatein interfaceResultSet- Parameters:
columnLabel- aStringthat indicates the label for the column specified with the SQLASclause. If the SQLASclause was not specified, then the label is the name of the column.cal- thejava.util.Calendarobject to use in constructing the date- Returns:
- the column value as a
java.sql.Dateobject. If the value is SQLNULL, the value returned isnullin the Java programming language. - Throws:
SQLException- if a database access error occurs
-
getTime
Returns the value of the designated column in the current row of thisResultSetobject as ajava.sql.Timeobject in the Java programming language. This method uses the given calendar to construct an appropriate millisecond value for the time if the underlying database does not store timezone information.- Specified by:
getTimein interfaceResultSet- Parameters:
columnIndex- anintthat specifies the column. The first column is 1, the second is 2, and so on.cal- thejava.util.Calendarobject to use in constructing the time- Returns:
- the column value as a
java.sql.Timeobject. If the value is SQLNULL, the value returned isnullin the Java programming language. - Throws:
SQLException- if a database access error occurs
-
getTime
Returns the value of the designated column in the current row of thisResultSetobject as ajava.sql.Timeobject in the Java programming language. This method uses the given calendar to construct an appropriate millisecond value for the time if the underlying database does not store timezone information.- Specified by:
getTimein interfaceResultSet- Parameters:
columnLabel- aStringthat indicates the label for the column specified with the SQLASclause. If the SQLASclause was not specified, then the label is the name of the column.cal- thejava.util.Calendarobject to use in constructing the time- Returns:
- the column value as a
java.sql.Timeobject. If the value is SQLNULL, the value returned isnullin the Java programming language. - Throws:
SQLException- if a database access error occurs
-
getTimestamp
Returns the value of the designated column in the current row of thisResultSetobject as ajava.sql.Timestampobject in the Java programming language. This method uses the given calendar to construct an appropriate millisecond value for the timestamp if the underlying database does not store timezone information.- Specified by:
getTimestampin interfaceResultSet- Parameters:
columnIndex- anintthat specifies the column. The first column is 1, the second is 2, and so on.cal- thejava.util.Calendarobject to use in constructing the timestamp- Returns:
- the column value as a
java.sql.Timestampobject. If the value is SQLNULL, the value returned isnullin the Java programming language. - Throws:
SQLException- if a database access error occurs
-
getTimestamp
Returns the value of the designated column in the current row of thisResultSetobject as ajava.sql.Timestampobject in the Java programming language. This method uses the given calendar to construct an appropriate millisecond value for the timestamp if the underlying database does not store timezone information.- Specified by:
getTimestampin interfaceResultSet- Parameters:
columnLabel- aStringthat indicates the label for the column specified with the SQLASclause. If the SQLASclause was not specified, then the label is the name of the column.cal- thejava.util.Calendarobject to use in constructing the timestamp- Returns:
- the column value as a
java.sql.Timestampobject. If the value is SQLNULL, the value returned isnullin the Java programming language. - Throws:
SQLException- if a database access error occurs
-
getCharacterStream(int)instead.