Class DbResultSet
- All Implemented Interfaces:
AutoCloseable,Cloneable,ResultSet,Wrapper
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected booleanprotected ResultSetprotected DbStatementFields inherited from interface java.sql.ResultSet
CLOSE_CURSORS_AT_COMMIT, CONCUR_READ_ONLY, CONCUR_UPDATABLE, FETCH_FORWARD, FETCH_REVERSE, FETCH_UNKNOWN, HOLD_CURSORS_OVER_COMMIT, TYPE_FORWARD_ONLY, TYPE_SCROLL_INSENSITIVE, TYPE_SCROLL_SENSITIVE -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanabsolute(int row) final voidfinal voidfinal voidfinal voidclone()Simply clones the instance with the default clone method.final voidclose()final voidfinal intfindColumn(String columnName) final booleanfirst()final ArraygetArray(int i) final Arrayfinal InputStreamgetAsciiStream(int columnIndex) final InputStreamgetAsciiStream(String columnName) final BigDecimalgetBigDecimal(int columnIndex) final BigDecimalgetBigDecimal(int columnIndex, int scale) final BigDecimalgetBigDecimal(String columnName) final BigDecimalgetBigDecimal(String columnName, int scale) final InputStreamgetBinaryStream(int columnIndex) final InputStreamgetBinaryStream(String columnName) final BlobgetBlob(int i) final Blobfinal booleangetBoolean(int columnIndex) final booleangetBoolean(String columnName) final bytegetByte(int columnIndex) final bytefinal byte[]getBytes(int columnIndex) final byte[]final ReadergetCharacterStream(int columnIndex) final ReadergetCharacterStream(String columnName) final ClobgetClob(int i) final Clobfinal intfinal Stringfinal DategetDate(int columnIndex) final Datefinal Datefinal Datefinal doublegetDouble(int columnIndex) final doublefinal intfinal intRetrieves the first field of the first row of thisDbResultSetobject as an ascii stream.Retrieves the first field of the first row of thisDbResultSetobject as a big decimal.Retrieves the first field of the first row of thisDbResultSetobject as a binary stream.booleanRetrieves the first field of the first row of thisDbResultSetobject as a boolean.byteRetrieves the first field of the first row of thisDbResultSetobject as a byte.byte[]Retrieves the first field of the first row of thisDbResultSetobject as an array of bytes.Retrieves the first field of the first row of thisDbResultSetobject as a character stream.Retrieves the first field of the first row of thisDbResultSetobject as a sql date.getFirstDate(Calendar cal) Retrieves the first field of the first row of thisDbResultSetobject as a sql date.doubleRetrieves the first field of the first row of thisDbResultSetobject as a double.floatRetrieves the first field of the first row of thisDbResultSetobject as a float.intRetrieves the first field of the first row of thisDbResultSetobject as an integer.longRetrieves the first field of the first row of thisDbResultSetobject as a long.shortRetrieves the first field of the first row of thisDbResultSetobject as a short.Retrieves the first field of the first row of thisDbResultSetobject as a string.Retrieves the first field of the first row of thisDbResultSetobject as a sql time.getFirstTime(Calendar cal) Retrieves the first field of the first row of thisDbResultSetobject as a sql time.Retrieves the first field of the first row of thisDbResultSetobject as a sql timestamo.Retrieves the first field of the first row of thisDbResultSetobject as a sql timestamp.final floatgetFloat(int columnIndex) final floatintfinal intgetInt(int columnIndex) final intfinal longgetLong(int columnIndex) final longfinal ResultSetMetaDatagetNCharacterStream(int columnIndex) getNCharacterStream(String columnLabel) getNClob(int columnIndex) getNString(int columnIndex) getNString(String columnLabel) final ObjectgetObject(int columnIndex) final <T> Tfinal Objectfinal Objectfinal <T> Tfinal Objectfinal RefgetRef(int i) final Reffinal intgetRow()getRowId(int columnIndex) final shortgetShort(int columnIndex) final shortgetSQLXML(int columnIndex) final Statementfinal StringgetString(int columnIndex) final Stringfinal TimegetTime(int columnIndex) final Timefinal Timefinal Timefinal TimestampgetTimestamp(int columnIndex) final TimestampgetTimestamp(int columnIndex, Calendar cal) final TimestampgetTimestamp(String columnName) final TimestampgetTimestamp(String columnName, Calendar cal) final intgetType()final InputStreamgetUnicodeStream(int columnIndex) final InputStreamgetUnicodeStream(String columnName) final URLgetURL(int columnIndex) final URLfinal SQLWarningbooleanDetermines if there are rows available in theResultSetobject that was returned by anexecutemethod.final voidfinal booleanfinal booleanbooleanisClosed()final booleanisFirst()final booleanisLast()booleanisWrapperFor(Class<?> iface) final booleanlast()final voidfinal voidfinal booleannext()final booleanprevious()final voidfinal booleanrelative(int rows) final booleanfinal booleanfinal booleanfinal voidsetFetchDirection(int direction) final voidsetFetchSize(int rows) <T> Tfinal voidupdateArray(int columnIndex, Array x) final voidupdateArray(String columnName, Array x) voidupdateAsciiStream(int columnIndex, InputStream x) final voidupdateAsciiStream(int columnIndex, InputStream x, int length) voidupdateAsciiStream(int columnIndex, InputStream x, long length) voidupdateAsciiStream(String columnLabel, InputStream x) final voidupdateAsciiStream(String columnName, InputStream x, int length) voidupdateAsciiStream(String columnLabel, InputStream x, long length) final voidupdateBigDecimal(int columnIndex, BigDecimal x) final voidupdateBigDecimal(String columnName, BigDecimal x) voidupdateBinaryStream(int columnIndex, InputStream x) final voidupdateBinaryStream(int columnIndex, InputStream x, int length) voidupdateBinaryStream(int columnIndex, InputStream x, long length) voidupdateBinaryStream(String columnLabel, InputStream x) final voidupdateBinaryStream(String columnName, InputStream x, int length) voidupdateBinaryStream(String columnLabel, InputStream x, long length) voidupdateBlob(int columnIndex, InputStream inputStream) voidupdateBlob(int columnIndex, InputStream inputStream, long length) final voidupdateBlob(int columnIndex, Blob x) voidupdateBlob(String columnLabel, InputStream inputStream) voidupdateBlob(String columnLabel, InputStream inputStream, long length) final voidupdateBlob(String columnName, Blob x) final voidupdateBoolean(int columnIndex, boolean x) final voidupdateBoolean(String columnName, boolean x) final voidupdateByte(int columnIndex, byte x) final voidupdateByte(String columnName, byte x) final voidupdateBytes(int columnIndex, byte[] x) final voidupdateBytes(String columnName, byte[] x) voidupdateCharacterStream(int columnIndex, Reader x) final voidupdateCharacterStream(int columnIndex, Reader x, int length) voidupdateCharacterStream(int columnIndex, Reader x, long length) voidupdateCharacterStream(String columnLabel, Reader reader) final voidupdateCharacterStream(String columnName, Reader reader, int length) voidupdateCharacterStream(String columnLabel, Reader reader, long length) voidupdateClob(int columnIndex, Reader reader) voidupdateClob(int columnIndex, Reader reader, long length) final voidupdateClob(int columnIndex, Clob x) voidupdateClob(String columnLabel, Reader reader) voidupdateClob(String columnLabel, Reader reader, long length) final voidupdateClob(String columnName, Clob x) final voidupdateDate(int columnIndex, Date x) final voidupdateDate(String columnName, Date x) final voidupdateDouble(int columnIndex, double x) final voidupdateDouble(String columnName, double x) final voidupdateFloat(int columnIndex, float x) final voidupdateFloat(String columnName, float x) final voidupdateInt(int columnIndex, int x) final voidfinal voidupdateLong(int columnIndex, long x) final voidupdateLong(String columnName, long x) voidupdateNCharacterStream(int columnIndex, Reader x) voidupdateNCharacterStream(int columnIndex, Reader x, long length) voidupdateNCharacterStream(String columnLabel, Reader reader) voidupdateNCharacterStream(String columnLabel, Reader reader, long length) voidupdateNClob(int columnIndex, Reader reader) voidupdateNClob(int columnIndex, Reader reader, long length) voidupdateNClob(int columnIndex, NClob nClob) voidupdateNClob(String columnLabel, Reader reader) voidupdateNClob(String columnLabel, Reader reader, long length) voidupdateNClob(String columnLabel, NClob nClob) voidupdateNString(int columnIndex, String nString) voidupdateNString(String columnLabel, String nString) final voidupdateNull(int columnIndex) final voidupdateNull(String columnName) final voidupdateObject(int columnIndex, Object x) final voidupdateObject(int columnIndex, Object x, int scale) voidupdateObject(int columnIndex, Object x, SQLType targetSqlType) voidupdateObject(int columnIndex, Object x, SQLType targetSqlType, int scaleOrLength) final voidupdateObject(String columnName, Object x) final voidupdateObject(String columnName, Object x, int scale) voidupdateObject(String columnLabel, Object x, SQLType targetSqlType) voidupdateObject(String columnLabel, Object x, SQLType targetSqlType, int scaleOrLength) final voidfinal voidfinal voidvoidupdateRowId(int columnIndex, RowId x) voidupdateRowId(String columnLabel, RowId x) final voidupdateShort(int columnIndex, short x) final voidupdateShort(String columnName, short x) voidupdateSQLXML(int columnIndex, SQLXML xmlObject) voidupdateSQLXML(String columnLabel, SQLXML xmlObject) final voidupdateString(int columnIndex, String x) final voidupdateString(String columnName, String x) final voidupdateTime(int columnIndex, Time x) final voidupdateTime(String columnName, Time x) final voidupdateTimestamp(int columnIndex, Timestamp x) final voidupdateTimestamp(String columnName, Timestamp x) final booleanwasNull()
-
Field Details
-
statement_
-
resultSet_
-
firstRowSkew_
protected boolean firstRowSkew_ -
hasResultRows_
protected boolean hasResultRows_
-
-
Method Details
-
next
- Specified by:
nextin interfaceResultSet- Throws:
SQLException
-
previous
- Specified by:
previousin interfaceResultSet- Throws:
SQLException
-
absolute
- Specified by:
absolutein interfaceResultSet- Throws:
SQLException
-
relative
- Specified by:
relativein interfaceResultSet- Throws:
SQLException
-
beforeFirst
- Specified by:
beforeFirstin interfaceResultSet- Throws:
SQLException
-
first
- Specified by:
firstin interfaceResultSet- Throws:
SQLException
-
last
- Specified by:
lastin interfaceResultSet- Throws:
SQLException
-
afterLast
- Specified by:
afterLastin interfaceResultSet- Throws:
SQLException
-
moveToInsertRow
- Specified by:
moveToInsertRowin interfaceResultSet- Throws:
SQLException
-
moveToCurrentRow
- Specified by:
moveToCurrentRowin interfaceResultSet- Throws:
SQLException
-
isBeforeFirst
- Specified by:
isBeforeFirstin interfaceResultSet- Throws:
SQLException
-
isFirst
- Specified by:
isFirstin interfaceResultSet- Throws:
SQLException
-
isLast
- Specified by:
isLastin interfaceResultSet- Throws:
SQLException
-
isAfterLast
- Specified by:
isAfterLastin interfaceResultSet- Throws:
SQLException
-
getRow
- Specified by:
getRowin interfaceResultSet- Throws:
SQLException
-
refreshRow
- Specified by:
refreshRowin interfaceResultSet- Throws:
SQLException
-
insertRow
- Specified by:
insertRowin interfaceResultSet- Throws:
SQLException
-
updateRow
- Specified by:
updateRowin interfaceResultSet- Throws:
SQLException
-
deleteRow
- Specified by:
deleteRowin interfaceResultSet- Throws:
SQLException
-
rowInserted
- Specified by:
rowInsertedin interfaceResultSet- Throws:
SQLException
-
rowUpdated
- Specified by:
rowUpdatedin interfaceResultSet- Throws:
SQLException
-
rowDeleted
- Specified by:
rowDeletedin interfaceResultSet- Throws:
SQLException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceResultSet- Throws:
SQLException
-
wasNull
- Specified by:
wasNullin interfaceResultSet- Throws:
SQLException
-
setFetchDirection
- Specified by:
setFetchDirectionin interfaceResultSet- Throws:
SQLException
-
setFetchSize
- Specified by:
setFetchSizein interfaceResultSet- Throws:
SQLException
-
cancelRowUpdates
- Specified by:
cancelRowUpdatesin interfaceResultSet- Throws:
SQLException
-
getMetaData
- Specified by:
getMetaDatain interfaceResultSet- Throws:
SQLException
-
getConcurrency
- Specified by:
getConcurrencyin interfaceResultSet- Throws:
SQLException
-
getFetchDirection
- Specified by:
getFetchDirectionin interfaceResultSet- Throws:
SQLException
-
getFetchSize
- Specified by:
getFetchSizein interfaceResultSet- Throws:
SQLException
-
clearWarnings
- Specified by:
clearWarningsin interfaceResultSet- Throws:
SQLException
-
getWarnings
- Specified by:
getWarningsin interfaceResultSet- Throws:
SQLException
-
getCursorName
- Specified by:
getCursorNamein interfaceResultSet- Throws:
SQLException
-
getStatement
- Specified by:
getStatementin interfaceResultSet- Throws:
SQLException
-
getType
- Specified by:
getTypein interfaceResultSet- Throws:
SQLException
-
findColumn
- Specified by:
findColumnin interfaceResultSet- Throws:
SQLException
-
hasResultRows
Determines if there are rows available in theResultSetobject that was returned by anexecutemethod.If an exception is thrown, the related
DbStatementis automatically closed and an ongoing transaction will be automatically rolled back if it belongs to the executing thread.- Returns:
trueif there are result rows available; orfalseif noResultSetobject was available or it didn't have any result rows.- Throws:
DatabaseException- if a database access error occurs- Since:
- 1.0
-
getFirstString
Retrieves the first field of the first row of thisDbResultSetobject as a string. This method works both when thenextmethod has never been called or once been called.Therefore, it's thus perfectly usable after the
hasResultRowsmethod or alone where catching theMissingResultsExceptionis used to indicate the absence of results.If an exception is thrown, the related
DbStatementis automatically closed and an ongoing transaction will be automatically rolled back if it belongs to the executing thread.- Returns:
- the first
Stringobject in the results. - Throws:
DatabaseException- if a database access error occurs. If there are no results available the thrown exception isMissingResultsException.- Since:
- 1.0
- See Also:
-
getFirstBoolean
Retrieves the first field of the first row of thisDbResultSetobject as a boolean. This method works both when thenextmethod has never been called or once been called.Therefore, it's thus perfectly usable after the
hasResultRowsmethod or alone where catching theMissingResultsExceptionis used to indicate the absence of results.If an exception is thrown, the related
DbStatementis automatically closed and an ongoing transaction will be automatically rolled back if it belongs to the executing thread.- Returns:
- the first
booleanobject in the results. - Throws:
DatabaseException- if a database access error occurs. If there are no results available the thrown exception isMissingResultsException.- Since:
- 1.0
- See Also:
-
getFirstByte
Retrieves the first field of the first row of thisDbResultSetobject as a byte. This method works both when thenextmethod has never been called or once been called.Therefore, it's thus perfectly usable after the
hasResultRowsmethod or alone where catching theMissingResultsExceptionis used to indicate the absence of results.If an exception is thrown, the related
DbStatementis automatically closed and an ongoing transaction will be automatically rolled back if it belongs to the executing thread.- Returns:
- the first
byteobject in the results. - Throws:
DatabaseException- if a database access error occurs. If there are no results available the thrown exception isMissingResultsException.- Since:
- 1.0
- See Also:
-
getFirstShort
Retrieves the first field of the first row of thisDbResultSetobject as a short. This method works both when thenextmethod has never been called or once been called.Therefore, it's thus perfectly usable after the
hasResultRowsmethod or alone where catching theMissingResultsExceptionis used to indicate the absence of results.If an exception is thrown, the related
DbStatementis automatically closed and an ongoing transaction will be automatically rolled back if it belongs to the executing thread.- Returns:
- the first
shortobject in the results. - Throws:
DatabaseException- if a database access error occurs. If there are no results available the thrown exception isMissingResultsException.- Since:
- 1.0
- See Also:
-
getFirstInt
Retrieves the first field of the first row of thisDbResultSetobject as an integer. This method works both when thenextmethod has never been called or once been called.Therefore, it's thus perfectly usable after the
hasResultRowsmethod or alone where catching theMissingResultsExceptionis used to indicate the absence of results.If an exception is thrown, the related
DbStatementis automatically closed and an ongoing transaction will be automatically rolled back if it belongs to the executing thread.- Returns:
- the first
intobject in the results. - Throws:
DatabaseException- if a database access error occurs. If there are no results available the thrown exception isMissingResultsException.- Since:
- 1.0
- See Also:
-
getFirstLong
Retrieves the first field of the first row of thisDbResultSetobject as a long. This method works both when thenextmethod has never been called or once been called.Therefore, it's thus perfectly usable after the
hasResultRowsmethod or alone where catching theMissingResultsExceptionis used to indicate the absence of results.If an exception is thrown, the related
DbStatementis automatically closed and an ongoing transaction will be automatically rolled back if it belongs to the executing thread.- Returns:
- the first
longobject in the results. - Throws:
DatabaseException- if a database access error occurs. If there are no results available the thrown exception isMissingResultsException.- Since:
- 1.0
- See Also:
-
getFirstFloat
Retrieves the first field of the first row of thisDbResultSetobject as a float. This method works both when thenextmethod has never been called or once been called.Therefore, it's thus perfectly usable after the
hasResultRowsmethod or alone where catching theMissingResultsExceptionis used to indicate the absence of results.If an exception is thrown, the related
DbStatementis automatically closed and an ongoing transaction will be automatically rolled back if it belongs to the executing thread.- Returns:
- the first
floatobject in the results. - Throws:
DatabaseException- if a database access error occurs. If there are no results available the thrown exception isMissingResultsException.- Since:
- 1.0
- See Also:
-
getFirstDouble
Retrieves the first field of the first row of thisDbResultSetobject as a double. This method works both when thenextmethod has never been called or once been called.Therefore, it's thus perfectly usable after the
hasResultRowsmethod or alone where catching theMissingResultsExceptionis used to indicate the absence of results.If an exception is thrown, the related
DbStatementis automatically closed and an ongoing transaction will be automatically rolled back if it belongs to the executing thread.- Returns:
- the first
Stringobject in the results. - Throws:
DatabaseException- if a database access error occurs. If there are no results available the thrown exception isMissingResultsException.- Since:
- 1.0
- See Also:
-
getFirstBigDecimal
Retrieves the first field of the first row of thisDbResultSetobject as a big decimal. This method works both when thenextmethod has never been called or once been called.Therefore, it's thus perfectly usable after the
hasResultRowsmethod or alone where catching theMissingResultsExceptionis used to indicate the absence of results.If an exception is thrown, the related
DbStatementis automatically closed and an ongoing transaction will be automatically rolled back if it belongs to the executing thread.- Returns:
- the first
BigDecimalobject in the results. - Throws:
DatabaseException- if a database access error occurs. If there are no results available the thrown exception isMissingResultsException.- Since:
- 1.0
- See Also:
-
getFirstBytes
Retrieves the first field of the first row of thisDbResultSetobject as an array of bytes. This method works both when thenextmethod has never been called or once been called.Therefore, it's thus perfectly usable after the
hasResultRowsmethod or alone where catching theMissingResultsExceptionis used to indicate the absence of results.If an exception is thrown, the related
DbStatementis automatically closed and an ongoing transaction will be automatically rolled back if it belongs to the executing thread.- Returns:
- the first
byte[]object in the results. - Throws:
DatabaseException- if a database access error occurs. If there are no results available the thrown exception isMissingResultsException.- Since:
- 1.0
- See Also:
-
getFirstDate
Retrieves the first field of the first row of thisDbResultSetobject as a sql date. This method works both when thenextmethod has never been called or once been called.Therefore, it's thus perfectly usable after the
hasResultRowsmethod or alone where catching theMissingResultsExceptionis used to indicate the absence of results.If an exception is thrown, the related
DbStatementis automatically closed and an ongoing transaction will be automatically rolled back if it belongs to the executing thread.- Returns:
- the first
java.sql.Dateobject in the results. - Throws:
DatabaseException- if a database access error occurs. If there are no results available the thrown exception isMissingResultsException.- Since:
- 1.0
- See Also:
-
getFirstDate
Retrieves the first field of the first row of thisDbResultSetobject as a sql date. This method uses the given calendar to construct an appropriate millisecond value for the date if the underlying database does not store timezone information. This method works both when thenextmethod has never been called or once been called.Therefore, it's thus perfectly usable after the
hasResultRowsmethod or alone where catching theMissingResultsExceptionis used to indicate the absence of results.If an exception is thrown, the related
DbStatementis automatically closed and an ongoing transaction will be automatically rolled back if it belongs to the executing thread.- Parameters:
cal- thejava.util.Calendarobject to use in constructing the date- Returns:
- the first
java.sql.Dateobject in the resultsn; if the value is SQLNULL, the value returned isnullin the Java programming language - Throws:
DatabaseException- if a database access error occurs. If there are no results available the thrown exception isMissingResultsException.- Since:
- 1.0
-
getFirstTime
Retrieves the first field of the first row of thisDbResultSetobject as a sql time. This method works both when thenextmethod has never been called or once been called.Therefore, it's thus perfectly usable after the
hasResultRowsmethod or alone where catching theMissingResultsExceptionis used to indicate the absence of results.If an exception is thrown, the related
DbStatementis automatically closed and an ongoing transaction will be automatically rolled back if it belongs to the executing thread.- Returns:
- the first
java.sql.Timeobject in the results. - Throws:
DatabaseException- if a database access error occurs. If there are no results available the thrown exception isMissingResultsException.- Since:
- 1.0
- See Also:
-
getFirstTime
Retrieves the first field of the first row of thisDbResultSetobject as a sql time. This method works both when thenextmethod has never been called or once been called. This method uses the given calendar to construct an appropriate millisecond value for the time if the underlying database does not store timezone information. This method works both when thenextmethod has never been called or once been called.Therefore, it's thus perfectly usable after the
hasResultRowsmethod or alone where catching theMissingResultsExceptionis used to indicate the absence of results.If an exception is thrown, the related
DbStatementis automatically closed and an ongoing transaction will be automatically rolled back if it belongs to the executing thread.- Parameters:
cal- thejava.util.Calendarobject to use in constructing the time- Returns:
- the first
java.sql.Timeobject in the results. - Throws:
DatabaseException- if a database access error occurs. If there are no results available the thrown exception isMissingResultsException.- Since:
- 1.0
- See Also:
-
getFirstTimestamp
Retrieves the first field of the first row of thisDbResultSetobject as a sql timestamo. This method works both when thenextmethod has never been called or once been called.Therefore, it's thus perfectly usable after the
hasResultRowsmethod or alone where catching theMissingResultsExceptionis used to indicate the absence of results.If an exception is thrown, the related
DbStatementis automatically closed and an ongoing transaction will be automatically rolled back if it belongs to the executing thread.- Returns:
- the first
java.sql.Timestampobject in the results. - Throws:
DatabaseException- if a database access error occurs. If there are no results available the thrown exception isMissingResultsException.- Since:
- 1.0
- See Also:
-
getFirstTimestamp
Retrieves the first field of the first row of thisDbResultSetobject as a sql timestamp. This method uses the given calendar to construct an appropriate millisecond value for the timestamp if the underlying database does not store timezone information. This method works both when thenextmethod has never been called or once been called.It is perfectly usable after the
hasResultRowsmethod or alone where catching theMissingResultsExceptionis used to indicate the absence of results.If an exception is thrown, the related
DbStatementis automatically closed and an ongoing transaction will be automatically rolled back if it belongs to the executing thread.- Parameters:
cal- thejava.util.Calendarobject to use in constructing the date- Returns:
- the first
java.sql.Timestampobject in the results. - Throws:
DatabaseException- if a database access error occurs. If there are no results available the thrown exception isMissingResultsException.- Since:
- 1.0
- See Also:
-
getFirstAsciiStream
Retrieves the first field of the first row of thisDbResultSetobject as an ascii stream. This method works both when thenextmethod has never been called or once been called.Therefore, it's thus perfectly usable after the
hasResultRowsmethod or alone where catching theMissingResultsExceptionis used to indicate the absence of results.If an exception is thrown, the related
DbStatementis automatically closed and an ongoing transaction will be automatically rolled back if it belongs to the executing thread.- Returns:
- the first
java.io.InputStreamobject in the results. - Throws:
DatabaseException- if a database access error occurs. If there are no results available the thrown exception isMissingResultsException.- Since:
- 1.0
- See Also:
-
getFirstCharacterStream
Retrieves the first field of the first row of thisDbResultSetobject as a character stream. This method works both when thenextmethod has never been called or once been called.Therefore, it's thus perfectly usable after the
hasResultRowsmethod or alone where catching theMissingResultsExceptionis used to indicate the absence of results.If an exception is thrown, the related
DbStatementis automatically closed and an ongoing transaction will be automatically rolled back if it belongs to the executing thread.- Returns:
- the first
java.io.Readerobject in the results. - Throws:
DatabaseException- if a database access error occurs. If there are no results available the thrown exception isMissingResultsException.- Since:
- 1.0
- See Also:
-
getFirstBinaryStream
Retrieves the first field of the first row of thisDbResultSetobject as a binary stream. This method works hiboth when thenextmethod has never been called or once been called.Therefore, it's thus perfectly usable after the
hasResultRowsmethod or alone where catching theMissingResultsExceptionis used to indicate the absence of results.If an exception is thrown, the related
DbStatementis automatically closed and an ongoing transaction will be automatically rolled back if it belongs to the executing thread.- Returns:
- the first
java.io.InputStreamobject in the results. - Throws:
DatabaseException- if a database access error occurs. If there are no results available the thrown exception isMissingResultsException.- Since:
- 1.0
- See Also:
-
getString
- Specified by:
getStringin interfaceResultSet- Throws:
SQLException
-
getString
- Specified by:
getStringin interfaceResultSet- Throws:
SQLException
-
getBoolean
- Specified by:
getBooleanin interfaceResultSet- Throws:
SQLException
-
getBoolean
- Specified by:
getBooleanin interfaceResultSet- Throws:
SQLException
-
getByte
- Specified by:
getBytein interfaceResultSet- Throws:
SQLException
-
getByte
- Specified by:
getBytein interfaceResultSet- Throws:
SQLException
-
getShort
- Specified by:
getShortin interfaceResultSet- Throws:
SQLException
-
getShort
- Specified by:
getShortin interfaceResultSet- Throws:
SQLException
-
getInt
- Specified by:
getIntin interfaceResultSet- Throws:
SQLException
-
getInt
- Specified by:
getIntin interfaceResultSet- Throws:
SQLException
-
getLong
- Specified by:
getLongin interfaceResultSet- Throws:
SQLException
-
getLong
- Specified by:
getLongin interfaceResultSet- Throws:
SQLException
-
getFloat
- Specified by:
getFloatin interfaceResultSet- Throws:
SQLException
-
getFloat
- Specified by:
getFloatin interfaceResultSet- Throws:
SQLException
-
getDouble
- Specified by:
getDoublein interfaceResultSet- Throws:
SQLException
-
getDouble
- Specified by:
getDoublein interfaceResultSet- Throws:
SQLException
-
getBigDecimal
- Specified by:
getBigDecimalin interfaceResultSet- Throws:
SQLException
-
getBigDecimal
- Specified by:
getBigDecimalin interfaceResultSet- Throws:
SQLException
-
getBigDecimal
- Specified by:
getBigDecimalin interfaceResultSet- Throws:
SQLException
-
getBigDecimal
- Specified by:
getBigDecimalin interfaceResultSet- Throws:
SQLException
-
getBytes
- Specified by:
getBytesin interfaceResultSet- Throws:
SQLException
-
getBytes
- Specified by:
getBytesin interfaceResultSet- Throws:
SQLException
-
getDate
- Specified by:
getDatein interfaceResultSet- Throws:
SQLException
-
getDate
- Specified by:
getDatein interfaceResultSet- Throws:
SQLException
-
getDate
- Specified by:
getDatein interfaceResultSet- Throws:
SQLException
-
getDate
- Specified by:
getDatein interfaceResultSet- Throws:
SQLException
-
getTime
- Specified by:
getTimein interfaceResultSet- Throws:
SQLException
-
getTime
- Specified by:
getTimein interfaceResultSet- Throws:
SQLException
-
getTime
- Specified by:
getTimein interfaceResultSet- Throws:
SQLException
-
getTime
- Specified by:
getTimein interfaceResultSet- Throws:
SQLException
-
getTimestamp
- Specified by:
getTimestampin interfaceResultSet- Throws:
SQLException
-
getTimestamp
- Specified by:
getTimestampin interfaceResultSet- Throws:
SQLException
-
getTimestamp
- Specified by:
getTimestampin interfaceResultSet- Throws:
SQLException
-
getTimestamp
- Specified by:
getTimestampin interfaceResultSet- Throws:
SQLException
-
getAsciiStream
- Specified by:
getAsciiStreamin interfaceResultSet- Throws:
SQLException
-
getAsciiStream
- Specified by:
getAsciiStreamin interfaceResultSet- Throws:
SQLException
-
getUnicodeStream
- Specified by:
getUnicodeStreamin interfaceResultSet- Throws:
SQLException
-
getUnicodeStream
- Specified by:
getUnicodeStreamin interfaceResultSet- Throws:
SQLException
-
getCharacterStream
- Specified by:
getCharacterStreamin interfaceResultSet- Throws:
SQLException
-
getCharacterStream
- Specified by:
getCharacterStreamin interfaceResultSet- Throws:
SQLException
-
getBinaryStream
- Specified by:
getBinaryStreamin interfaceResultSet- Throws:
SQLException
-
getBinaryStream
- Specified by:
getBinaryStreamin interfaceResultSet- Throws:
SQLException
-
getRef
- Specified by:
getRefin interfaceResultSet- Throws:
SQLException
-
getRef
- Specified by:
getRefin interfaceResultSet- Throws:
SQLException
-
getObject
- Specified by:
getObjectin interfaceResultSet- Throws:
SQLException
-
getObject
- Specified by:
getObjectin interfaceResultSet- Throws:
SQLException
-
getObject
- Specified by:
getObjectin interfaceResultSet- Throws:
SQLException
-
getObject
- Specified by:
getObjectin interfaceResultSet- Throws:
SQLException
-
getObject
- Specified by:
getObjectin interfaceResultSet- Throws:
SQLException
-
getObject
- Specified by:
getObjectin interfaceResultSet- Throws:
SQLException
-
getBlob
- Specified by:
getBlobin interfaceResultSet- Throws:
SQLException
-
getBlob
- Specified by:
getBlobin interfaceResultSet- Throws:
SQLException
-
getClob
- Specified by:
getClobin interfaceResultSet- Throws:
SQLException
-
getClob
- Specified by:
getClobin interfaceResultSet- Throws:
SQLException
-
getArray
- Specified by:
getArrayin interfaceResultSet- Throws:
SQLException
-
getArray
- Specified by:
getArrayin interfaceResultSet- Throws:
SQLException
-
getURL
- Specified by:
getURLin interfaceResultSet- Throws:
SQLException
-
getURL
- Specified by:
getURLin interfaceResultSet- Throws:
SQLException
-
updateNull
- Specified by:
updateNullin interfaceResultSet- Throws:
SQLException
-
updateNull
- Specified by:
updateNullin interfaceResultSet- Throws:
SQLException
-
updateString
- Specified by:
updateStringin interfaceResultSet- Throws:
SQLException
-
updateString
- Specified by:
updateStringin interfaceResultSet- Throws:
SQLException
-
updateBoolean
- Specified by:
updateBooleanin interfaceResultSet- Throws:
SQLException
-
updateBoolean
- Specified by:
updateBooleanin interfaceResultSet- Throws:
SQLException
-
updateByte
- Specified by:
updateBytein interfaceResultSet- Throws:
SQLException
-
updateByte
- Specified by:
updateBytein interfaceResultSet- Throws:
SQLException
-
updateShort
- Specified by:
updateShortin interfaceResultSet- Throws:
SQLException
-
updateShort
- Specified by:
updateShortin interfaceResultSet- Throws:
SQLException
-
updateInt
- Specified by:
updateIntin interfaceResultSet- Throws:
SQLException
-
updateInt
- Specified by:
updateIntin interfaceResultSet- Throws:
SQLException
-
updateLong
- Specified by:
updateLongin interfaceResultSet- Throws:
SQLException
-
updateLong
- Specified by:
updateLongin interfaceResultSet- Throws:
SQLException
-
updateFloat
- Specified by:
updateFloatin interfaceResultSet- Throws:
SQLException
-
updateFloat
- Specified by:
updateFloatin interfaceResultSet- Throws:
SQLException
-
updateDouble
- Specified by:
updateDoublein interfaceResultSet- Throws:
SQLException
-
updateDouble
- Specified by:
updateDoublein interfaceResultSet- Throws:
SQLException
-
updateBigDecimal
- Specified by:
updateBigDecimalin interfaceResultSet- Throws:
SQLException
-
updateBigDecimal
- Specified by:
updateBigDecimalin interfaceResultSet- Throws:
SQLException
-
updateBytes
- Specified by:
updateBytesin interfaceResultSet- Throws:
SQLException
-
updateBytes
- Specified by:
updateBytesin interfaceResultSet- Throws:
SQLException
-
updateDate
- Specified by:
updateDatein interfaceResultSet- Throws:
SQLException
-
updateDate
- Specified by:
updateDatein interfaceResultSet- Throws:
SQLException
-
updateTime
- Specified by:
updateTimein interfaceResultSet- Throws:
SQLException
-
updateTime
- Specified by:
updateTimein interfaceResultSet- Throws:
SQLException
-
updateTimestamp
- Specified by:
updateTimestampin interfaceResultSet- Throws:
SQLException
-
updateTimestamp
- Specified by:
updateTimestampin interfaceResultSet- Throws:
SQLException
-
updateAsciiStream
- Specified by:
updateAsciiStreamin interfaceResultSet- Throws:
SQLException
-
updateAsciiStream
public final void updateAsciiStream(String columnName, InputStream x, int length) throws SQLException - Specified by:
updateAsciiStreamin interfaceResultSet- Throws:
SQLException
-
updateCharacterStream
- Specified by:
updateCharacterStreamin interfaceResultSet- Throws:
SQLException
-
updateCharacterStream
public final void updateCharacterStream(String columnName, Reader reader, int length) throws SQLException - Specified by:
updateCharacterStreamin interfaceResultSet- Throws:
SQLException
-
updateBinaryStream
public final void updateBinaryStream(int columnIndex, InputStream x, int length) throws SQLException - Specified by:
updateBinaryStreamin interfaceResultSet- Throws:
SQLException
-
updateBinaryStream
public final void updateBinaryStream(String columnName, InputStream x, int length) throws SQLException - Specified by:
updateBinaryStreamin interfaceResultSet- Throws:
SQLException
-
updateRef
- Specified by:
updateRefin interfaceResultSet- Throws:
SQLException
-
updateRef
- Specified by:
updateRefin interfaceResultSet- Throws:
SQLException
-
updateObject
- Specified by:
updateObjectin interfaceResultSet- Throws:
SQLException
-
updateObject
- Specified by:
updateObjectin interfaceResultSet- Throws:
SQLException
-
updateObject
- Specified by:
updateObjectin interfaceResultSet- Throws:
SQLException
-
updateObject
- Specified by:
updateObjectin interfaceResultSet- Throws:
SQLException
-
updateObject
public void updateObject(int columnIndex, Object x, SQLType targetSqlType, int scaleOrLength) throws SQLException - Specified by:
updateObjectin interfaceResultSet- Throws:
SQLException
-
updateObject
public void updateObject(String columnLabel, Object x, SQLType targetSqlType, int scaleOrLength) throws SQLException - Specified by:
updateObjectin interfaceResultSet- Throws:
SQLException
-
updateObject
- Specified by:
updateObjectin interfaceResultSet- Throws:
SQLException
-
updateObject
- Specified by:
updateObjectin interfaceResultSet- Throws:
SQLException
-
updateBlob
- Specified by:
updateBlobin interfaceResultSet- Throws:
SQLException
-
updateBlob
- Specified by:
updateBlobin interfaceResultSet- Throws:
SQLException
-
updateClob
- Specified by:
updateClobin interfaceResultSet- Throws:
SQLException
-
updateClob
- Specified by:
updateClobin interfaceResultSet- Throws:
SQLException
-
updateArray
- Specified by:
updateArrayin interfaceResultSet- Throws:
SQLException
-
updateArray
- Specified by:
updateArrayin interfaceResultSet- Throws:
SQLException
-
getRowId
- Specified by:
getRowIdin interfaceResultSet- Throws:
SQLException
-
getRowId
- Specified by:
getRowIdin interfaceResultSet- Throws:
SQLException
-
updateRowId
- Specified by:
updateRowIdin interfaceResultSet- Throws:
SQLException
-
updateRowId
- Specified by:
updateRowIdin interfaceResultSet- Throws:
SQLException
-
getHoldability
- Specified by:
getHoldabilityin interfaceResultSet- Throws:
SQLException
-
isClosed
- Specified by:
isClosedin interfaceResultSet- Throws:
SQLException
-
updateNString
- Specified by:
updateNStringin interfaceResultSet- Throws:
SQLException
-
updateNString
- Specified by:
updateNStringin interfaceResultSet- Throws:
SQLException
-
updateNClob
- Specified by:
updateNClobin interfaceResultSet- Throws:
SQLException
-
updateNClob
- Specified by:
updateNClobin interfaceResultSet- Throws:
SQLException
-
getNClob
- Specified by:
getNClobin interfaceResultSet- Throws:
SQLException
-
getNClob
- Specified by:
getNClobin interfaceResultSet- Throws:
SQLException
-
getSQLXML
- Specified by:
getSQLXMLin interfaceResultSet- Throws:
SQLException
-
getSQLXML
- Specified by:
getSQLXMLin interfaceResultSet- Throws:
SQLException
-
updateSQLXML
- Specified by:
updateSQLXMLin interfaceResultSet- Throws:
SQLException
-
updateSQLXML
- Specified by:
updateSQLXMLin interfaceResultSet- Throws:
SQLException
-
getNString
- Specified by:
getNStringin interfaceResultSet- Throws:
SQLException
-
getNString
- Specified by:
getNStringin interfaceResultSet- Throws:
SQLException
-
getNCharacterStream
- Specified by:
getNCharacterStreamin interfaceResultSet- Throws:
SQLException
-
getNCharacterStream
- Specified by:
getNCharacterStreamin interfaceResultSet- Throws:
SQLException
-
updateNCharacterStream
- Specified by:
updateNCharacterStreamin interfaceResultSet- Throws:
SQLException
-
updateNCharacterStream
- Specified by:
updateNCharacterStreamin interfaceResultSet- Throws:
SQLException
-
updateNCharacterStream
- Specified by:
updateNCharacterStreamin interfaceResultSet- Throws:
SQLException
-
updateNCharacterStream
public void updateNCharacterStream(String columnLabel, Reader reader, long length) throws SQLException - Specified by:
updateNCharacterStreamin interfaceResultSet- Throws:
SQLException
-
updateAsciiStream
- Specified by:
updateAsciiStreamin interfaceResultSet- Throws:
SQLException
-
updateAsciiStream
- Specified by:
updateAsciiStreamin interfaceResultSet- Throws:
SQLException
-
updateBinaryStream
- Specified by:
updateBinaryStreamin interfaceResultSet- Throws:
SQLException
-
updateBinaryStream
- Specified by:
updateBinaryStreamin interfaceResultSet- Throws:
SQLException
-
updateCharacterStream
- Specified by:
updateCharacterStreamin interfaceResultSet- Throws:
SQLException
-
updateCharacterStream
- Specified by:
updateCharacterStreamin interfaceResultSet- Throws:
SQLException
-
updateAsciiStream
- Specified by:
updateAsciiStreamin interfaceResultSet- Throws:
SQLException
-
updateAsciiStream
- Specified by:
updateAsciiStreamin interfaceResultSet- Throws:
SQLException
-
updateBinaryStream
- Specified by:
updateBinaryStreamin interfaceResultSet- Throws:
SQLException
-
updateBinaryStream
- Specified by:
updateBinaryStreamin interfaceResultSet- Throws:
SQLException
-
updateCharacterStream
- Specified by:
updateCharacterStreamin interfaceResultSet- Throws:
SQLException
-
updateCharacterStream
public void updateCharacterStream(String columnLabel, Reader reader, long length) throws SQLException - Specified by:
updateCharacterStreamin interfaceResultSet- Throws:
SQLException
-
updateBlob
- Specified by:
updateBlobin interfaceResultSet- Throws:
SQLException
-
updateBlob
- Specified by:
updateBlobin interfaceResultSet- Throws:
SQLException
-
updateBlob
- Specified by:
updateBlobin interfaceResultSet- Throws:
SQLException
-
updateBlob
public void updateBlob(String columnLabel, InputStream inputStream, long length) throws SQLException - Specified by:
updateBlobin interfaceResultSet- Throws:
SQLException
-
updateClob
- Specified by:
updateClobin interfaceResultSet- Throws:
SQLException
-
updateClob
- Specified by:
updateClobin interfaceResultSet- Throws:
SQLException
-
updateClob
- Specified by:
updateClobin interfaceResultSet- Throws:
SQLException
-
updateClob
- Specified by:
updateClobin interfaceResultSet- Throws:
SQLException
-
updateNClob
- Specified by:
updateNClobin interfaceResultSet- Throws:
SQLException
-
updateNClob
- Specified by:
updateNClobin interfaceResultSet- Throws:
SQLException
-
updateNClob
- Specified by:
updateNClobin interfaceResultSet- Throws:
SQLException
-
updateNClob
- Specified by:
updateNClobin interfaceResultSet- Throws:
SQLException
-
unwrap
- Specified by:
unwrapin interfaceWrapper- Throws:
SQLException
-
isWrapperFor
- Specified by:
isWrapperForin interfaceWrapper- Throws:
SQLException
-
clone
Simply clones the instance with the default clone method. This creates a shallow copy of all fields and the clone will in fact just be another reference to the same underlying data. The independence of each cloned instance is consciously not respected since they rely on resources that can't be cloned.
-