- All Superinterfaces:
AutoCloseable,ResultSet,Wrapper
- All Known Subinterfaces:
ReadOnlySingleResult
A
ResultSet from a query that only returns a single row and the cursor is already positioned.
Cursor navigation methods are marked deprecated to discourage their use, since this is a result set from a query
that only returns a single row and the cursor is already positioned. Calling these methods will still pass-through
to the wrapped ResultSet, though.
- Author:
- AO Industries, Inc.
-
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 -
Method Summary
Modifier and TypeMethodDescriptionbooleanabsolute(int row) Deprecated.This query only returns a single row and the cursor is already positioned.voidDeprecated.This query only returns a single row and the cursor is already positioned.voidDeprecated.This query only returns a single row and the cursor is already positioned.voidclose()booleanfirst()Deprecated.This query only returns a single row and the cursor is already positioned.intDeprecated.This query only returns a single row and the cursor is already positioned.intDeprecated.This query only returns a single row and the cursor is already positioned.intgetRow()Deprecated.This query only returns a single row and the cursor is already positioned.booleanDeprecated.This query only returns a single row and the cursor is already positioned.booleanDeprecated.This query only returns a single row and the cursor is already positioned.booleanisFirst()Deprecated.This query only returns a single row and the cursor is already positioned.booleanisLast()Deprecated.This query only returns a single row and the cursor is already positioned.booleanlast()Deprecated.This query only returns a single row and the cursor is already positioned.booleannext()Deprecated.This query only returns a single row and the cursor is already positioned.booleanprevious()Deprecated.This query only returns a single row and the cursor is already positioned.booleanrelative(int rows) Deprecated.This query only returns a single row and the cursor is already positioned.voidsetFetchDirection(int direction) Deprecated.This query only returns a single row and the cursor is already positioned.voidsetFetchSize(int rows) Deprecated.This query only returns a single row and the cursor is already positioned.Methods inherited from interface java.sql.ResultSet
cancelRowUpdates, clearWarnings, deleteRow, findColumn, getArray, getArray, getAsciiStream, getAsciiStream, getBigDecimal, getBigDecimal, getBigDecimal, getBigDecimal, getBinaryStream, getBinaryStream, getBlob, getBlob, getBoolean, getBoolean, getByte, getByte, getBytes, getBytes, getCharacterStream, getCharacterStream, getClob, getClob, getConcurrency, getCursorName, getDate, getDate, getDate, getDate, getDouble, getDouble, getFloat, getFloat, getHoldability, getInt, getInt, getLong, getLong, getMetaData, getNCharacterStream, getNCharacterStream, getNClob, getNClob, getNString, getNString, getObject, getObject, getObject, getObject, getObject, getObject, getRef, getRef, getRowId, getRowId, getShort, getShort, getSQLXML, getSQLXML, getStatement, getString, getString, getTime, getTime, getTime, getTime, getTimestamp, getTimestamp, getTimestamp, getTimestamp, getType, getUnicodeStream, getUnicodeStream, getURL, getURL, getWarnings, insertRow, isClosed, moveToCurrentRow, moveToInsertRow, refreshRow, rowDeleted, rowInserted, rowUpdated, updateArray, updateArray, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateBigDecimal, updateBigDecimal, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBlob, updateBlob, updateBlob, updateBlob, updateBlob, updateBlob, updateBoolean, updateBoolean, updateByte, updateByte, updateBytes, updateBytes, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateClob, updateClob, updateClob, updateClob, updateClob, updateClob, updateDate, updateDate, updateDouble, updateDouble, updateFloat, updateFloat, updateInt, updateInt, updateLong, updateLong, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNString, updateNString, updateNull, updateNull, updateObject, updateObject, updateObject, updateObject, updateObject, updateObject, updateObject, updateObject, updateRef, updateRef, updateRow, updateRowId, updateRowId, updateShort, updateShort, updateSQLXML, updateSQLXML, updateString, updateString, updateTime, updateTime, updateTimestamp, updateTimestamp, wasNullMethods inherited from interface java.sql.Wrapper
isWrapperFor, unwrap
-
Method Details
-
next
Deprecated.This query only returns a single row and the cursor is already positioned.- Specified by:
nextin interfaceResultSet- Throws:
SQLException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceResultSet- Throws:
ExtraRowException- when more rows are retrieved than expected.ResultSet.next()will be called once upon close. If it returnstrue, it indicates multiple rows were returned while only a single one is expected.SQLException
-
isBeforeFirst
Deprecated.This query only returns a single row and the cursor is already positioned.- Specified by:
isBeforeFirstin interfaceResultSet- Throws:
SQLException
-
isAfterLast
Deprecated.This query only returns a single row and the cursor is already positioned.- Specified by:
isAfterLastin interfaceResultSet- Throws:
SQLException
-
isFirst
Deprecated.This query only returns a single row and the cursor is already positioned.- Specified by:
isFirstin interfaceResultSet- Throws:
SQLException
-
isLast
Deprecated.This query only returns a single row and the cursor is already positioned.- Specified by:
isLastin interfaceResultSet- Throws:
SQLException
-
beforeFirst
Deprecated.This query only returns a single row and the cursor is already positioned.- Specified by:
beforeFirstin interfaceResultSet- Throws:
SQLException
-
afterLast
Deprecated.This query only returns a single row and the cursor is already positioned.- Specified by:
afterLastin interfaceResultSet- Throws:
SQLException
-
first
Deprecated.This query only returns a single row and the cursor is already positioned.- Specified by:
firstin interfaceResultSet- Throws:
SQLException
-
last
Deprecated.This query only returns a single row and the cursor is already positioned.- Specified by:
lastin interfaceResultSet- Throws:
SQLException
-
getRow
Deprecated.This query only returns a single row and the cursor is already positioned.- Specified by:
getRowin interfaceResultSet- Throws:
SQLException
-
absolute
Deprecated.This query only returns a single row and the cursor is already positioned.- Specified by:
absolutein interfaceResultSet- Throws:
SQLException
-
relative
Deprecated.This query only returns a single row and the cursor is already positioned.- Specified by:
relativein interfaceResultSet- Throws:
SQLException
-
previous
Deprecated.This query only returns a single row and the cursor is already positioned.- Specified by:
previousin interfaceResultSet- Throws:
SQLException
-
setFetchDirection
Deprecated.This query only returns a single row and the cursor is already positioned.- Specified by:
setFetchDirectionin interfaceResultSet- Throws:
SQLException
-
getFetchDirection
Deprecated.This query only returns a single row and the cursor is already positioned.- Specified by:
getFetchDirectionin interfaceResultSet- Throws:
SQLException
-
setFetchSize
Deprecated.This query only returns a single row and the cursor is already positioned.- Specified by:
setFetchSizein interfaceResultSet- Throws:
SQLException
-
getFetchSize
Deprecated.This query only returns a single row and the cursor is already positioned.- Specified by:
getFetchSizein interfaceResultSet- Throws:
SQLException
-
