Class DbResultSet
- All Implemented Interfaces:
AutoCloseable
,Cloneable
,ResultSet
,Wrapper
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected boolean
protected ResultSet
protected DbStatement
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 TypeMethodDescriptionfinal boolean
absolute
(int row) final void
final void
final void
final void
clone()
Simply clones the instance with the default clone method.final void
close()
final void
final int
findColumn
(String columnName) final boolean
first()
final Array
getArray
(int i) final Array
final InputStream
getAsciiStream
(int columnIndex) final InputStream
getAsciiStream
(String columnName) final BigDecimal
getBigDecimal
(int columnIndex) final BigDecimal
getBigDecimal
(int columnIndex, int scale) final BigDecimal
getBigDecimal
(String columnName) final BigDecimal
getBigDecimal
(String columnName, int scale) final InputStream
getBinaryStream
(int columnIndex) final InputStream
getBinaryStream
(String columnName) final Blob
getBlob
(int i) final Blob
final boolean
getBoolean
(int columnIndex) final boolean
getBoolean
(String columnName) final byte
getByte
(int columnIndex) final byte
final byte[]
getBytes
(int columnIndex) final byte[]
final Reader
getCharacterStream
(int columnIndex) final Reader
getCharacterStream
(String columnName) final Clob
getClob
(int i) final Clob
final int
final String
final Date
getDate
(int columnIndex) final Date
final Date
final Date
final double
getDouble
(int columnIndex) final double
final int
final int
Retrieves the first field of the first row of thisDbResultSet
object as an ascii stream.Retrieves the first field of the first row of thisDbResultSet
object as a big decimal.Retrieves the first field of the first row of thisDbResultSet
object as a binary stream.boolean
Retrieves the first field of the first row of thisDbResultSet
object as a boolean.byte
Retrieves the first field of the first row of thisDbResultSet
object as a byte.byte[]
Retrieves the first field of the first row of thisDbResultSet
object as an array of bytes.Retrieves the first field of the first row of thisDbResultSet
object as a character stream.Retrieves the first field of the first row of thisDbResultSet
object as a sql date.getFirstDate
(Calendar cal) Retrieves the first field of the first row of thisDbResultSet
object as a sql date.double
Retrieves the first field of the first row of thisDbResultSet
object as a double.float
Retrieves the first field of the first row of thisDbResultSet
object as a float.int
Retrieves the first field of the first row of thisDbResultSet
object as an integer.long
Retrieves the first field of the first row of thisDbResultSet
object as a long.short
Retrieves the first field of the first row of thisDbResultSet
object as a short.Retrieves the first field of the first row of thisDbResultSet
object as a string.Retrieves the first field of the first row of thisDbResultSet
object as a sql time.getFirstTime
(Calendar cal) Retrieves the first field of the first row of thisDbResultSet
object as a sql time.Retrieves the first field of the first row of thisDbResultSet
object as a sql timestamo.Retrieves the first field of the first row of thisDbResultSet
object as a sql timestamp.final float
getFloat
(int columnIndex) final float
int
final int
getInt
(int columnIndex) final int
final long
getLong
(int columnIndex) final long
final ResultSetMetaData
getNCharacterStream
(int columnIndex) getNCharacterStream
(String columnLabel) getNClob
(int columnIndex) getNString
(int columnIndex) getNString
(String columnLabel) final Object
getObject
(int columnIndex) final <T> T
final Object
final Object
final <T> T
final Object
final Ref
getRef
(int i) final Ref
final int
getRow()
getRowId
(int columnIndex) final short
getShort
(int columnIndex) final short
getSQLXML
(int columnIndex) final Statement
final String
getString
(int columnIndex) final String
final Time
getTime
(int columnIndex) final Time
final Time
final Time
final Timestamp
getTimestamp
(int columnIndex) final Timestamp
getTimestamp
(int columnIndex, Calendar cal) final Timestamp
getTimestamp
(String columnName) final Timestamp
getTimestamp
(String columnName, Calendar cal) final int
getType()
final InputStream
getUnicodeStream
(int columnIndex) final InputStream
getUnicodeStream
(String columnName) final URL
getURL
(int columnIndex) final URL
final SQLWarning
boolean
Determines if there are rows available in theResultSet
object that was returned by anexecute
method.final void
final boolean
final boolean
boolean
isClosed()
final boolean
isFirst()
final boolean
isLast()
boolean
isWrapperFor
(Class<?> iface) final boolean
last()
final void
final void
final boolean
next()
final boolean
previous()
final void
final boolean
relative
(int rows) final boolean
final boolean
final boolean
final void
setFetchDirection
(int direction) final void
setFetchSize
(int rows) <T> T
final void
updateArray
(int columnIndex, Array x) final void
updateArray
(String columnName, Array x) void
updateAsciiStream
(int columnIndex, InputStream x) final void
updateAsciiStream
(int columnIndex, InputStream x, int length) void
updateAsciiStream
(int columnIndex, InputStream x, long length) void
updateAsciiStream
(String columnLabel, InputStream x) final void
updateAsciiStream
(String columnName, InputStream x, int length) void
updateAsciiStream
(String columnLabel, InputStream x, long length) final void
updateBigDecimal
(int columnIndex, BigDecimal x) final void
updateBigDecimal
(String columnName, BigDecimal x) void
updateBinaryStream
(int columnIndex, InputStream x) final void
updateBinaryStream
(int columnIndex, InputStream x, int length) void
updateBinaryStream
(int columnIndex, InputStream x, long length) void
updateBinaryStream
(String columnLabel, InputStream x) final void
updateBinaryStream
(String columnName, InputStream x, int length) void
updateBinaryStream
(String columnLabel, InputStream x, long length) void
updateBlob
(int columnIndex, InputStream inputStream) void
updateBlob
(int columnIndex, InputStream inputStream, long length) final void
updateBlob
(int columnIndex, Blob x) void
updateBlob
(String columnLabel, InputStream inputStream) void
updateBlob
(String columnLabel, InputStream inputStream, long length) final void
updateBlob
(String columnName, Blob x) final void
updateBoolean
(int columnIndex, boolean x) final void
updateBoolean
(String columnName, boolean x) final void
updateByte
(int columnIndex, byte x) final void
updateByte
(String columnName, byte x) final void
updateBytes
(int columnIndex, byte[] x) final void
updateBytes
(String columnName, byte[] x) void
updateCharacterStream
(int columnIndex, Reader x) final void
updateCharacterStream
(int columnIndex, Reader x, int length) void
updateCharacterStream
(int columnIndex, Reader x, long length) void
updateCharacterStream
(String columnLabel, Reader reader) final void
updateCharacterStream
(String columnName, Reader reader, int length) void
updateCharacterStream
(String columnLabel, Reader reader, long length) void
updateClob
(int columnIndex, Reader reader) void
updateClob
(int columnIndex, Reader reader, long length) final void
updateClob
(int columnIndex, Clob x) void
updateClob
(String columnLabel, Reader reader) void
updateClob
(String columnLabel, Reader reader, long length) final void
updateClob
(String columnName, Clob x) final void
updateDate
(int columnIndex, Date x) final void
updateDate
(String columnName, Date x) final void
updateDouble
(int columnIndex, double x) final void
updateDouble
(String columnName, double x) final void
updateFloat
(int columnIndex, float x) final void
updateFloat
(String columnName, float x) final void
updateInt
(int columnIndex, int x) final void
final void
updateLong
(int columnIndex, long x) final void
updateLong
(String columnName, long x) void
updateNCharacterStream
(int columnIndex, Reader x) void
updateNCharacterStream
(int columnIndex, Reader x, long length) void
updateNCharacterStream
(String columnLabel, Reader reader) void
updateNCharacterStream
(String columnLabel, Reader reader, long length) void
updateNClob
(int columnIndex, Reader reader) void
updateNClob
(int columnIndex, Reader reader, long length) void
updateNClob
(int columnIndex, NClob nClob) void
updateNClob
(String columnLabel, Reader reader) void
updateNClob
(String columnLabel, Reader reader, long length) void
updateNClob
(String columnLabel, NClob nClob) void
updateNString
(int columnIndex, String nString) void
updateNString
(String columnLabel, String nString) final void
updateNull
(int columnIndex) final void
updateNull
(String columnName) final void
updateObject
(int columnIndex, Object x) final void
updateObject
(int columnIndex, Object x, int scale) void
updateObject
(int columnIndex, Object x, SQLType targetSqlType) void
updateObject
(int columnIndex, Object x, SQLType targetSqlType, int scaleOrLength) final void
updateObject
(String columnName, Object x) final void
updateObject
(String columnName, Object x, int scale) void
updateObject
(String columnLabel, Object x, SQLType targetSqlType) void
updateObject
(String columnLabel, Object x, SQLType targetSqlType, int scaleOrLength) final void
final void
final void
void
updateRowId
(int columnIndex, RowId x) void
updateRowId
(String columnLabel, RowId x) final void
updateShort
(int columnIndex, short x) final void
updateShort
(String columnName, short x) void
updateSQLXML
(int columnIndex, SQLXML xmlObject) void
updateSQLXML
(String columnLabel, SQLXML xmlObject) final void
updateString
(int columnIndex, String x) final void
updateString
(String columnName, String x) final void
updateTime
(int columnIndex, Time x) final void
updateTime
(String columnName, Time x) final void
updateTimestamp
(int columnIndex, Timestamp x) final void
updateTimestamp
(String columnName, Timestamp x) final boolean
wasNull()
-
Field Details
-
statement_
-
resultSet_
-
firstRowSkew_
protected boolean firstRowSkew_ -
hasResultRows_
protected boolean hasResultRows_
-
-
Method Details
-
next
- Specified by:
next
in interfaceResultSet
- Throws:
SQLException
-
previous
- Specified by:
previous
in interfaceResultSet
- Throws:
SQLException
-
absolute
- Specified by:
absolute
in interfaceResultSet
- Throws:
SQLException
-
relative
- Specified by:
relative
in interfaceResultSet
- Throws:
SQLException
-
beforeFirst
- Specified by:
beforeFirst
in interfaceResultSet
- Throws:
SQLException
-
first
- Specified by:
first
in interfaceResultSet
- Throws:
SQLException
-
last
- Specified by:
last
in interfaceResultSet
- Throws:
SQLException
-
afterLast
- Specified by:
afterLast
in interfaceResultSet
- Throws:
SQLException
-
moveToInsertRow
- Specified by:
moveToInsertRow
in interfaceResultSet
- Throws:
SQLException
-
moveToCurrentRow
- Specified by:
moveToCurrentRow
in interfaceResultSet
- Throws:
SQLException
-
isBeforeFirst
- Specified by:
isBeforeFirst
in interfaceResultSet
- Throws:
SQLException
-
isFirst
- Specified by:
isFirst
in interfaceResultSet
- Throws:
SQLException
-
isLast
- Specified by:
isLast
in interfaceResultSet
- Throws:
SQLException
-
isAfterLast
- Specified by:
isAfterLast
in interfaceResultSet
- Throws:
SQLException
-
getRow
- Specified by:
getRow
in interfaceResultSet
- Throws:
SQLException
-
refreshRow
- Specified by:
refreshRow
in interfaceResultSet
- Throws:
SQLException
-
insertRow
- Specified by:
insertRow
in interfaceResultSet
- Throws:
SQLException
-
updateRow
- Specified by:
updateRow
in interfaceResultSet
- Throws:
SQLException
-
deleteRow
- Specified by:
deleteRow
in interfaceResultSet
- Throws:
SQLException
-
rowInserted
- Specified by:
rowInserted
in interfaceResultSet
- Throws:
SQLException
-
rowUpdated
- Specified by:
rowUpdated
in interfaceResultSet
- Throws:
SQLException
-
rowDeleted
- Specified by:
rowDeleted
in interfaceResultSet
- Throws:
SQLException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceResultSet
- Throws:
SQLException
-
wasNull
- Specified by:
wasNull
in interfaceResultSet
- Throws:
SQLException
-
setFetchDirection
- Specified by:
setFetchDirection
in interfaceResultSet
- Throws:
SQLException
-
setFetchSize
- Specified by:
setFetchSize
in interfaceResultSet
- Throws:
SQLException
-
cancelRowUpdates
- Specified by:
cancelRowUpdates
in interfaceResultSet
- Throws:
SQLException
-
getMetaData
- Specified by:
getMetaData
in interfaceResultSet
- Throws:
SQLException
-
getConcurrency
- Specified by:
getConcurrency
in interfaceResultSet
- Throws:
SQLException
-
getFetchDirection
- Specified by:
getFetchDirection
in interfaceResultSet
- Throws:
SQLException
-
getFetchSize
- Specified by:
getFetchSize
in interfaceResultSet
- Throws:
SQLException
-
clearWarnings
- Specified by:
clearWarnings
in interfaceResultSet
- Throws:
SQLException
-
getWarnings
- Specified by:
getWarnings
in interfaceResultSet
- Throws:
SQLException
-
getCursorName
- Specified by:
getCursorName
in interfaceResultSet
- Throws:
SQLException
-
getStatement
- Specified by:
getStatement
in interfaceResultSet
- Throws:
SQLException
-
getType
- Specified by:
getType
in interfaceResultSet
- Throws:
SQLException
-
findColumn
- Specified by:
findColumn
in interfaceResultSet
- Throws:
SQLException
-
hasResultRows
Determines if there are rows available in theResultSet
object that was returned by anexecute
method.If an exception is thrown, the related
DbStatement
is automatically closed and an ongoing transaction will be automatically rolled back if it belongs to the executing thread.- Returns:
true
if there are result rows available; orfalse
if noResultSet
object 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 thisDbResultSet
object as a string. This method works both when thenext
method has never been called or once been called.Therefore, it's thus perfectly usable after the
hasResultRows
method or alone where catching theMissingResultsException
is used to indicate the absence of results.If an exception is thrown, the related
DbStatement
is automatically closed and an ongoing transaction will be automatically rolled back if it belongs to the executing thread.- Returns:
- the first
String
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:
-
getFirstBoolean
Retrieves the first field of the first row of thisDbResultSet
object as a boolean. This method works both when thenext
method has never been called or once been called.Therefore, it's thus perfectly usable after the
hasResultRows
method or alone where catching theMissingResultsException
is used to indicate the absence of results.If an exception is thrown, the related
DbStatement
is automatically closed and an ongoing transaction will be automatically rolled back if it belongs to the executing thread.- Returns:
- the first
boolean
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:
-
getFirstByte
Retrieves the first field of the first row of thisDbResultSet
object as a byte. This method works both when thenext
method has never been called or once been called.Therefore, it's thus perfectly usable after the
hasResultRows
method or alone where catching theMissingResultsException
is used to indicate the absence of results.If an exception is thrown, the related
DbStatement
is 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:
-
getFirstShort
Retrieves the first field of the first row of thisDbResultSet
object as a short. This method works both when thenext
method has never been called or once been called.Therefore, it's thus perfectly usable after the
hasResultRows
method or alone where catching theMissingResultsException
is used to indicate the absence of results.If an exception is thrown, the related
DbStatement
is automatically closed and an ongoing transaction will be automatically rolled back if it belongs to the executing thread.- Returns:
- the first
short
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:
-
getFirstInt
Retrieves the first field of the first row of thisDbResultSet
object as an integer. This method works both when thenext
method has never been called or once been called.Therefore, it's thus perfectly usable after the
hasResultRows
method or alone where catching theMissingResultsException
is used to indicate the absence of results.If an exception is thrown, the related
DbStatement
is automatically closed and an ongoing transaction will be automatically rolled back if it belongs to the executing thread.- Returns:
- the first
int
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:
-
getFirstLong
Retrieves the first field of the first row of thisDbResultSet
object as a long. This method works both when thenext
method has never been called or once been called.Therefore, it's thus perfectly usable after the
hasResultRows
method or alone where catching theMissingResultsException
is used to indicate the absence of results.If an exception is thrown, the related
DbStatement
is automatically closed and an ongoing transaction will be automatically rolled back if it belongs to the executing thread.- Returns:
- the first
long
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:
-
getFirstFloat
Retrieves the first field of the first row of thisDbResultSet
object as a float. This method works both when thenext
method has never been called or once been called.Therefore, it's thus perfectly usable after the
hasResultRows
method or alone where catching theMissingResultsException
is used to indicate the absence of results.If an exception is thrown, the related
DbStatement
is automatically closed and an ongoing transaction will be automatically rolled back if it belongs to the executing thread.- Returns:
- the first
float
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:
-
getFirstDouble
Retrieves the first field of the first row of thisDbResultSet
object as a double. This method works both when thenext
method has never been called or once been called.Therefore, it's thus perfectly usable after the
hasResultRows
method or alone where catching theMissingResultsException
is used to indicate the absence of results.If an exception is thrown, the related
DbStatement
is automatically closed and an ongoing transaction will be automatically rolled back if it belongs to the executing thread.- Returns:
- the first
String
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:
-
getFirstBigDecimal
Retrieves the first field of the first row of thisDbResultSet
object as a big decimal. This method works both when thenext
method has never been called or once been called.Therefore, it's thus perfectly usable after the
hasResultRows
method or alone where catching theMissingResultsException
is used to indicate the absence of results.If an exception is thrown, the related
DbStatement
is automatically closed and an ongoing transaction will be automatically rolled back if it belongs to the executing thread.- Returns:
- the first
BigDecimal
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:
-
getFirstBytes
Retrieves the first field of the first row of thisDbResultSet
object as an array of bytes. This method works both when thenext
method has never been called or once been called.Therefore, it's thus perfectly usable after the
hasResultRows
method or alone where catching theMissingResultsException
is used to indicate the absence of results.If an exception is thrown, the related
DbStatement
is 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 thisDbResultSet
object as a sql date. This method works both when thenext
method has never been called or once been called.Therefore, it's thus perfectly usable after the
hasResultRows
method or alone where catching theMissingResultsException
is used to indicate the absence of results.If an exception is thrown, the related
DbStatement
is automatically closed and an ongoing transaction will be automatically rolled back if it belongs to the executing thread.- Returns:
- the first
java.sql.Date
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 thisDbResultSet
object 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 thenext
method has never been called or once been called.Therefore, it's thus perfectly usable after the
hasResultRows
method or alone where catching theMissingResultsException
is used to indicate the absence of results.If an exception is thrown, the related
DbStatement
is automatically closed and an ongoing transaction will be automatically rolled back if it belongs to the executing thread.- Parameters:
cal
- thejava.util.Calendar
object to use in constructing the date- Returns:
- the first
java.sql.Date
object in the resultsn; if the value is SQLNULL
, the value returned isnull
in 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 thisDbResultSet
object as a sql time. This method works both when thenext
method has never been called or once been called.Therefore, it's thus perfectly usable after the
hasResultRows
method or alone where catching theMissingResultsException
is used to indicate the absence of results.If an exception is thrown, the related
DbStatement
is automatically closed and an ongoing transaction will be automatically rolled back if it belongs to the executing thread.- Returns:
- the first
java.sql.Time
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:
-
getFirstTime
Retrieves the first field of the first row of thisDbResultSet
object as a sql time. This method works both when thenext
method 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 thenext
method has never been called or once been called.Therefore, it's thus perfectly usable after the
hasResultRows
method or alone where catching theMissingResultsException
is used to indicate the absence of results.If an exception is thrown, the related
DbStatement
is automatically closed and an ongoing transaction will be automatically rolled back if it belongs to the executing thread.- Parameters:
cal
- thejava.util.Calendar
object to use in constructing the time- Returns:
- the first
java.sql.Time
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:
-
getFirstTimestamp
Retrieves the first field of the first row of thisDbResultSet
object as a sql timestamo. This method works both when thenext
method has never been called or once been called.Therefore, it's thus perfectly usable after the
hasResultRows
method or alone where catching theMissingResultsException
is used to indicate the absence of results.If an exception is thrown, the related
DbStatement
is automatically closed and an ongoing transaction will be automatically rolled back if it belongs to the executing thread.- Returns:
- the first
java.sql.Timestamp
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:
-
getFirstTimestamp
Retrieves the first field of the first row of thisDbResultSet
object 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 thenext
method has never been called or once been called.It is perfectly usable after the
hasResultRows
method or alone where catching theMissingResultsException
is used to indicate the absence of results.If an exception is thrown, the related
DbStatement
is automatically closed and an ongoing transaction will be automatically rolled back if it belongs to the executing thread.- Parameters:
cal
- thejava.util.Calendar
object to use in constructing the date- Returns:
- the first
java.sql.Timestamp
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:
-
getFirstAsciiStream
Retrieves the first field of the first row of thisDbResultSet
object as an ascii stream. This method works both when thenext
method has never been called or once been called.Therefore, it's thus perfectly usable after the
hasResultRows
method or alone where catching theMissingResultsException
is used to indicate the absence of results.If an exception is thrown, the related
DbStatement
is automatically closed and an ongoing transaction will be automatically rolled back if it belongs to the executing thread.- Returns:
- the first
java.io.InputStream
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:
-
getFirstCharacterStream
Retrieves the first field of the first row of thisDbResultSet
object as a character stream. This method works both when thenext
method has never been called or once been called.Therefore, it's thus perfectly usable after the
hasResultRows
method or alone where catching theMissingResultsException
is used to indicate the absence of results.If an exception is thrown, the related
DbStatement
is automatically closed and an ongoing transaction will be automatically rolled back if it belongs to the executing thread.- Returns:
- the first
java.io.Reader
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:
-
getFirstBinaryStream
Retrieves the first field of the first row of thisDbResultSet
object as a binary stream. This method works hiboth when thenext
method has never been called or once been called.Therefore, it's thus perfectly usable after the
hasResultRows
method or alone where catching theMissingResultsException
is used to indicate the absence of results.If an exception is thrown, the related
DbStatement
is automatically closed and an ongoing transaction will be automatically rolled back if it belongs to the executing thread.- Returns:
- the first
java.io.InputStream
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:
-
getString
- Specified by:
getString
in interfaceResultSet
- Throws:
SQLException
-
getString
- Specified by:
getString
in interfaceResultSet
- Throws:
SQLException
-
getBoolean
- Specified by:
getBoolean
in interfaceResultSet
- Throws:
SQLException
-
getBoolean
- Specified by:
getBoolean
in interfaceResultSet
- Throws:
SQLException
-
getByte
- Specified by:
getByte
in interfaceResultSet
- Throws:
SQLException
-
getByte
- Specified by:
getByte
in interfaceResultSet
- Throws:
SQLException
-
getShort
- Specified by:
getShort
in interfaceResultSet
- Throws:
SQLException
-
getShort
- Specified by:
getShort
in interfaceResultSet
- Throws:
SQLException
-
getInt
- Specified by:
getInt
in interfaceResultSet
- Throws:
SQLException
-
getInt
- Specified by:
getInt
in interfaceResultSet
- Throws:
SQLException
-
getLong
- Specified by:
getLong
in interfaceResultSet
- Throws:
SQLException
-
getLong
- Specified by:
getLong
in interfaceResultSet
- Throws:
SQLException
-
getFloat
- Specified by:
getFloat
in interfaceResultSet
- Throws:
SQLException
-
getFloat
- Specified by:
getFloat
in interfaceResultSet
- Throws:
SQLException
-
getDouble
- Specified by:
getDouble
in interfaceResultSet
- Throws:
SQLException
-
getDouble
- Specified by:
getDouble
in interfaceResultSet
- Throws:
SQLException
-
getBigDecimal
- Specified by:
getBigDecimal
in interfaceResultSet
- Throws:
SQLException
-
getBigDecimal
- Specified by:
getBigDecimal
in interfaceResultSet
- Throws:
SQLException
-
getBigDecimal
- Specified by:
getBigDecimal
in interfaceResultSet
- Throws:
SQLException
-
getBigDecimal
- Specified by:
getBigDecimal
in interfaceResultSet
- Throws:
SQLException
-
getBytes
- Specified by:
getBytes
in interfaceResultSet
- Throws:
SQLException
-
getBytes
- Specified by:
getBytes
in interfaceResultSet
- Throws:
SQLException
-
getDate
- Specified by:
getDate
in interfaceResultSet
- Throws:
SQLException
-
getDate
- Specified by:
getDate
in interfaceResultSet
- Throws:
SQLException
-
getDate
- Specified by:
getDate
in interfaceResultSet
- Throws:
SQLException
-
getDate
- Specified by:
getDate
in interfaceResultSet
- Throws:
SQLException
-
getTime
- Specified by:
getTime
in interfaceResultSet
- Throws:
SQLException
-
getTime
- Specified by:
getTime
in interfaceResultSet
- Throws:
SQLException
-
getTime
- Specified by:
getTime
in interfaceResultSet
- Throws:
SQLException
-
getTime
- Specified by:
getTime
in interfaceResultSet
- Throws:
SQLException
-
getTimestamp
- Specified by:
getTimestamp
in interfaceResultSet
- Throws:
SQLException
-
getTimestamp
- Specified by:
getTimestamp
in interfaceResultSet
- Throws:
SQLException
-
getTimestamp
- Specified by:
getTimestamp
in interfaceResultSet
- Throws:
SQLException
-
getTimestamp
- Specified by:
getTimestamp
in interfaceResultSet
- Throws:
SQLException
-
getAsciiStream
- Specified by:
getAsciiStream
in interfaceResultSet
- Throws:
SQLException
-
getAsciiStream
- Specified by:
getAsciiStream
in interfaceResultSet
- Throws:
SQLException
-
getUnicodeStream
- Specified by:
getUnicodeStream
in interfaceResultSet
- Throws:
SQLException
-
getUnicodeStream
- Specified by:
getUnicodeStream
in interfaceResultSet
- Throws:
SQLException
-
getCharacterStream
- Specified by:
getCharacterStream
in interfaceResultSet
- Throws:
SQLException
-
getCharacterStream
- Specified by:
getCharacterStream
in interfaceResultSet
- Throws:
SQLException
-
getBinaryStream
- Specified by:
getBinaryStream
in interfaceResultSet
- Throws:
SQLException
-
getBinaryStream
- Specified by:
getBinaryStream
in interfaceResultSet
- Throws:
SQLException
-
getRef
- Specified by:
getRef
in interfaceResultSet
- Throws:
SQLException
-
getRef
- Specified by:
getRef
in interfaceResultSet
- Throws:
SQLException
-
getObject
- Specified by:
getObject
in interfaceResultSet
- Throws:
SQLException
-
getObject
- Specified by:
getObject
in interfaceResultSet
- Throws:
SQLException
-
getObject
- Specified by:
getObject
in interfaceResultSet
- Throws:
SQLException
-
getObject
- Specified by:
getObject
in interfaceResultSet
- Throws:
SQLException
-
getObject
- Specified by:
getObject
in interfaceResultSet
- Throws:
SQLException
-
getObject
- Specified by:
getObject
in interfaceResultSet
- Throws:
SQLException
-
getBlob
- Specified by:
getBlob
in interfaceResultSet
- Throws:
SQLException
-
getBlob
- Specified by:
getBlob
in interfaceResultSet
- Throws:
SQLException
-
getClob
- Specified by:
getClob
in interfaceResultSet
- Throws:
SQLException
-
getClob
- Specified by:
getClob
in interfaceResultSet
- Throws:
SQLException
-
getArray
- Specified by:
getArray
in interfaceResultSet
- Throws:
SQLException
-
getArray
- Specified by:
getArray
in interfaceResultSet
- Throws:
SQLException
-
getURL
- Specified by:
getURL
in interfaceResultSet
- Throws:
SQLException
-
getURL
- Specified by:
getURL
in interfaceResultSet
- Throws:
SQLException
-
updateNull
- Specified by:
updateNull
in interfaceResultSet
- Throws:
SQLException
-
updateNull
- Specified by:
updateNull
in interfaceResultSet
- Throws:
SQLException
-
updateString
- Specified by:
updateString
in interfaceResultSet
- Throws:
SQLException
-
updateString
- Specified by:
updateString
in interfaceResultSet
- Throws:
SQLException
-
updateBoolean
- Specified by:
updateBoolean
in interfaceResultSet
- Throws:
SQLException
-
updateBoolean
- Specified by:
updateBoolean
in interfaceResultSet
- Throws:
SQLException
-
updateByte
- Specified by:
updateByte
in interfaceResultSet
- Throws:
SQLException
-
updateByte
- Specified by:
updateByte
in interfaceResultSet
- Throws:
SQLException
-
updateShort
- Specified by:
updateShort
in interfaceResultSet
- Throws:
SQLException
-
updateShort
- Specified by:
updateShort
in interfaceResultSet
- Throws:
SQLException
-
updateInt
- Specified by:
updateInt
in interfaceResultSet
- Throws:
SQLException
-
updateInt
- Specified by:
updateInt
in interfaceResultSet
- Throws:
SQLException
-
updateLong
- Specified by:
updateLong
in interfaceResultSet
- Throws:
SQLException
-
updateLong
- Specified by:
updateLong
in interfaceResultSet
- Throws:
SQLException
-
updateFloat
- Specified by:
updateFloat
in interfaceResultSet
- Throws:
SQLException
-
updateFloat
- Specified by:
updateFloat
in interfaceResultSet
- Throws:
SQLException
-
updateDouble
- Specified by:
updateDouble
in interfaceResultSet
- Throws:
SQLException
-
updateDouble
- Specified by:
updateDouble
in interfaceResultSet
- Throws:
SQLException
-
updateBigDecimal
- Specified by:
updateBigDecimal
in interfaceResultSet
- Throws:
SQLException
-
updateBigDecimal
- Specified by:
updateBigDecimal
in interfaceResultSet
- Throws:
SQLException
-
updateBytes
- Specified by:
updateBytes
in interfaceResultSet
- Throws:
SQLException
-
updateBytes
- Specified by:
updateBytes
in interfaceResultSet
- Throws:
SQLException
-
updateDate
- Specified by:
updateDate
in interfaceResultSet
- Throws:
SQLException
-
updateDate
- Specified by:
updateDate
in interfaceResultSet
- Throws:
SQLException
-
updateTime
- Specified by:
updateTime
in interfaceResultSet
- Throws:
SQLException
-
updateTime
- Specified by:
updateTime
in interfaceResultSet
- Throws:
SQLException
-
updateTimestamp
- Specified by:
updateTimestamp
in interfaceResultSet
- Throws:
SQLException
-
updateTimestamp
- Specified by:
updateTimestamp
in interfaceResultSet
- Throws:
SQLException
-
updateAsciiStream
- Specified by:
updateAsciiStream
in interfaceResultSet
- Throws:
SQLException
-
updateAsciiStream
public final void updateAsciiStream(String columnName, InputStream x, int length) throws SQLException - Specified by:
updateAsciiStream
in interfaceResultSet
- Throws:
SQLException
-
updateCharacterStream
- Specified by:
updateCharacterStream
in interfaceResultSet
- Throws:
SQLException
-
updateCharacterStream
public final void updateCharacterStream(String columnName, Reader reader, int length) throws SQLException - Specified by:
updateCharacterStream
in interfaceResultSet
- Throws:
SQLException
-
updateBinaryStream
public final void updateBinaryStream(int columnIndex, InputStream x, int length) throws SQLException - Specified by:
updateBinaryStream
in interfaceResultSet
- Throws:
SQLException
-
updateBinaryStream
public final void updateBinaryStream(String columnName, InputStream x, int length) throws SQLException - Specified by:
updateBinaryStream
in interfaceResultSet
- Throws:
SQLException
-
updateRef
- Specified by:
updateRef
in interfaceResultSet
- Throws:
SQLException
-
updateRef
- Specified by:
updateRef
in interfaceResultSet
- Throws:
SQLException
-
updateObject
- Specified by:
updateObject
in interfaceResultSet
- Throws:
SQLException
-
updateObject
- Specified by:
updateObject
in interfaceResultSet
- Throws:
SQLException
-
updateObject
- Specified by:
updateObject
in interfaceResultSet
- Throws:
SQLException
-
updateObject
- Specified by:
updateObject
in interfaceResultSet
- Throws:
SQLException
-
updateObject
public void updateObject(int columnIndex, Object x, SQLType targetSqlType, int scaleOrLength) throws SQLException - Specified by:
updateObject
in interfaceResultSet
- Throws:
SQLException
-
updateObject
public void updateObject(String columnLabel, Object x, SQLType targetSqlType, int scaleOrLength) throws SQLException - Specified by:
updateObject
in interfaceResultSet
- Throws:
SQLException
-
updateObject
- Specified by:
updateObject
in interfaceResultSet
- Throws:
SQLException
-
updateObject
- Specified by:
updateObject
in interfaceResultSet
- Throws:
SQLException
-
updateBlob
- Specified by:
updateBlob
in interfaceResultSet
- Throws:
SQLException
-
updateBlob
- Specified by:
updateBlob
in interfaceResultSet
- Throws:
SQLException
-
updateClob
- Specified by:
updateClob
in interfaceResultSet
- Throws:
SQLException
-
updateClob
- Specified by:
updateClob
in interfaceResultSet
- Throws:
SQLException
-
updateArray
- Specified by:
updateArray
in interfaceResultSet
- Throws:
SQLException
-
updateArray
- Specified by:
updateArray
in interfaceResultSet
- Throws:
SQLException
-
getRowId
- Specified by:
getRowId
in interfaceResultSet
- Throws:
SQLException
-
getRowId
- Specified by:
getRowId
in interfaceResultSet
- Throws:
SQLException
-
updateRowId
- Specified by:
updateRowId
in interfaceResultSet
- Throws:
SQLException
-
updateRowId
- Specified by:
updateRowId
in interfaceResultSet
- Throws:
SQLException
-
getHoldability
- Specified by:
getHoldability
in interfaceResultSet
- Throws:
SQLException
-
isClosed
- Specified by:
isClosed
in interfaceResultSet
- Throws:
SQLException
-
updateNString
- Specified by:
updateNString
in interfaceResultSet
- Throws:
SQLException
-
updateNString
- Specified by:
updateNString
in interfaceResultSet
- Throws:
SQLException
-
updateNClob
- Specified by:
updateNClob
in interfaceResultSet
- Throws:
SQLException
-
updateNClob
- Specified by:
updateNClob
in interfaceResultSet
- Throws:
SQLException
-
getNClob
- Specified by:
getNClob
in interfaceResultSet
- Throws:
SQLException
-
getNClob
- Specified by:
getNClob
in interfaceResultSet
- Throws:
SQLException
-
getSQLXML
- Specified by:
getSQLXML
in interfaceResultSet
- Throws:
SQLException
-
getSQLXML
- Specified by:
getSQLXML
in interfaceResultSet
- Throws:
SQLException
-
updateSQLXML
- Specified by:
updateSQLXML
in interfaceResultSet
- Throws:
SQLException
-
updateSQLXML
- Specified by:
updateSQLXML
in interfaceResultSet
- Throws:
SQLException
-
getNString
- Specified by:
getNString
in interfaceResultSet
- Throws:
SQLException
-
getNString
- Specified by:
getNString
in interfaceResultSet
- Throws:
SQLException
-
getNCharacterStream
- Specified by:
getNCharacterStream
in interfaceResultSet
- Throws:
SQLException
-
getNCharacterStream
- Specified by:
getNCharacterStream
in interfaceResultSet
- Throws:
SQLException
-
updateNCharacterStream
- Specified by:
updateNCharacterStream
in interfaceResultSet
- Throws:
SQLException
-
updateNCharacterStream
- Specified by:
updateNCharacterStream
in interfaceResultSet
- Throws:
SQLException
-
updateNCharacterStream
- Specified by:
updateNCharacterStream
in interfaceResultSet
- Throws:
SQLException
-
updateNCharacterStream
public void updateNCharacterStream(String columnLabel, Reader reader, long length) throws SQLException - Specified by:
updateNCharacterStream
in interfaceResultSet
- Throws:
SQLException
-
updateAsciiStream
- Specified by:
updateAsciiStream
in interfaceResultSet
- Throws:
SQLException
-
updateAsciiStream
- Specified by:
updateAsciiStream
in interfaceResultSet
- Throws:
SQLException
-
updateBinaryStream
- Specified by:
updateBinaryStream
in interfaceResultSet
- Throws:
SQLException
-
updateBinaryStream
- Specified by:
updateBinaryStream
in interfaceResultSet
- Throws:
SQLException
-
updateCharacterStream
- Specified by:
updateCharacterStream
in interfaceResultSet
- Throws:
SQLException
-
updateCharacterStream
- Specified by:
updateCharacterStream
in interfaceResultSet
- Throws:
SQLException
-
updateAsciiStream
- Specified by:
updateAsciiStream
in interfaceResultSet
- Throws:
SQLException
-
updateAsciiStream
- Specified by:
updateAsciiStream
in interfaceResultSet
- Throws:
SQLException
-
updateBinaryStream
- Specified by:
updateBinaryStream
in interfaceResultSet
- Throws:
SQLException
-
updateBinaryStream
- Specified by:
updateBinaryStream
in interfaceResultSet
- Throws:
SQLException
-
updateCharacterStream
- Specified by:
updateCharacterStream
in interfaceResultSet
- Throws:
SQLException
-
updateCharacterStream
public void updateCharacterStream(String columnLabel, Reader reader, long length) throws SQLException - Specified by:
updateCharacterStream
in interfaceResultSet
- Throws:
SQLException
-
updateBlob
- Specified by:
updateBlob
in interfaceResultSet
- Throws:
SQLException
-
updateBlob
- Specified by:
updateBlob
in interfaceResultSet
- Throws:
SQLException
-
updateBlob
- Specified by:
updateBlob
in interfaceResultSet
- Throws:
SQLException
-
updateBlob
public void updateBlob(String columnLabel, InputStream inputStream, long length) throws SQLException - Specified by:
updateBlob
in interfaceResultSet
- Throws:
SQLException
-
updateClob
- Specified by:
updateClob
in interfaceResultSet
- Throws:
SQLException
-
updateClob
- Specified by:
updateClob
in interfaceResultSet
- Throws:
SQLException
-
updateClob
- Specified by:
updateClob
in interfaceResultSet
- Throws:
SQLException
-
updateClob
- Specified by:
updateClob
in interfaceResultSet
- Throws:
SQLException
-
updateNClob
- Specified by:
updateNClob
in interfaceResultSet
- Throws:
SQLException
-
updateNClob
- Specified by:
updateNClob
in interfaceResultSet
- Throws:
SQLException
-
updateNClob
- Specified by:
updateNClob
in interfaceResultSet
- Throws:
SQLException
-
updateNClob
- Specified by:
updateNClob
in interfaceResultSet
- Throws:
SQLException
-
unwrap
- Specified by:
unwrap
in interfaceWrapper
- Throws:
SQLException
-
isWrapperFor
- Specified by:
isWrapperFor
in 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.
-