Class JdbcResultSet
- All Implemented Interfaces:
AutoCloseable,ResultSet,Wrapper
Column labels are case-insensitive, quotes are not supported. The first column has the column index 1.
Thread safety: the result set is not thread-safe and must not be used by multiple threads concurrently.
Updatable result sets: Result sets are updatable when the result only contains columns from one table, and if it contains all columns of a unique index (primary key or other) of this table. Key columns may not contain NULL (because multiple rows with NULL could exist). In updatable result sets, own changes are visible, but not own inserts and deletes.
-
Field Summary
Fields inherited from class org.h2.message.TraceObject
ARRAY, BLOB, CALLABLE_STATEMENT, CLOB, CONNECTION, DATA_SOURCE, DATABASE_META_DATA, PARAMETER_META_DATA, PREPARED_STATEMENT, RESULT_SET, RESULT_SET_META_DATA, SAVEPOINT, SQLXML, STATEMENT, trace, XA_DATA_SOURCE, XIDFields inherited from interface java.sql.ResultSet
CLOSE_CURSORS_AT_COMMIT, CONCUR_READ_ONLY, CONCUR_UPDATABLE, FETCH_FORWARD, FETCH_REVERSE, FETCH_UNKNOWN, HOLD_CURSORS_OVER_COMMIT, TYPE_FORWARD_ONLY, TYPE_SCROLL_INSENSITIVE, TYPE_SCROLL_SENSITIVE -
Constructor Summary
ConstructorsConstructorDescriptionJdbcResultSet(JdbcConnection conn, JdbcStatement stat, org.h2.command.CommandInterface command, org.h2.result.ResultInterface result, int id, boolean scrollable, boolean updatable, boolean triggerUpdatable) -
Method Summary
Modifier and TypeMethodDescriptionbooleanabsolute(int rowNumber) Moves the current position to a specific row.voidMoves the current position to after the last row, that means after the end.voidMoves the current position to before the first row, that means resets the result set.voidCancels updating a row.voidClears all warnings.voidclose()Closes the result set.voidDeletes the current row.intfindColumn(String columnLabel) Searches for a specific column in the result set.booleanfirst()Moves the current position to the first row.getArray(int columnIndex) Returns the value of the specified column as an Array.Returns the value of the specified column as an Array.getAsciiStream(int columnIndex) Returns the value of the specified column as an input stream.getAsciiStream(String columnLabel) Returns the value of the specified column as an input stream.getBigDecimal(int columnIndex) Returns the value of the specified column as a BigDecimal.getBigDecimal(int columnIndex, int scale) Deprecated.getBigDecimal(String columnLabel) Returns the value of the specified column as a BigDecimal.getBigDecimal(String columnLabel, int scale) Deprecated.getBinaryStream(int columnIndex) Returns the value of the specified column as an input stream.getBinaryStream(String columnLabel) Returns the value of the specified column as an input stream.getBlob(int columnIndex) Returns the value of the specified column as a Blob.Returns the value of the specified column as a Blob.booleangetBoolean(int columnIndex) Returns the value of the specified column as a boolean.booleangetBoolean(String columnLabel) Returns the value of the specified column as a boolean.bytegetByte(int columnIndex) Returns the value of the specified column as a byte.byteReturns the value of the specified column as a byte.byte[]getBytes(int columnIndex) Returns the value of the specified column as a byte array.byte[]Returns the value of the specified column as a byte array.getCharacterStream(int columnIndex) Returns the value of the specified column as a reader.getCharacterStream(String columnLabel) Returns the value of the specified column as a reader.getClob(int columnIndex) Returns the value of the specified column as a Clob.Returns the value of the specified column as a Clob.intGets the result set concurrency.[Not supported] Gets the cursor name if it was defined.getDate(int columnIndex) Returns the value of the specified column as a java.sql.Date.Returns the value of the specified column as a java.sql.Date using a specified time zone.Returns the value of the specified column as a java.sql.Date.Returns the value of the specified column as a java.sql.Date using a specified time zone.doublegetDouble(int columnIndex) Returns the value of the specified column as a double.doubleReturns the value of the specified column as a double.intGets the fetch direction.intGets the number of rows suggested to read in one step.floatgetFloat(int columnIndex) Returns the value of the specified column as a float.floatReturns the value of the specified column as a float.intReturns the current result set holdability.intgetInt(int columnIndex) Returns the value of the specified column as an int.intReturns the value of the specified column as an int.org.h2.value.ValuegetInternal(int columnIndex) INTERNALlonggetLong(int columnIndex) Returns the value of the specified column as a long.longReturns the value of the specified column as a long.Gets the meta data of this result set.getNCharacterStream(int columnIndex) Returns the value of the specified column as a reader.getNCharacterStream(String columnLabel) Returns the value of the specified column as a reader.getNClob(int columnIndex) Returns the value of the specified column as a Clob.Returns the value of the specified column as a Clob.getNString(int columnIndex) Returns the value of the specified column as a String.getNString(String columnLabel) Returns the value of the specified column as a String.getObject(int columnIndex) Returns a column value as a Java object.<T> TReturns a column value as a Java object of the specified type.[Not supported] Gets a column as a object using the specified type mapping.Returns a column value as a Java object.<T> TReturns a column value as a Java object of the specified type.[Not supported] Gets a column as a object using the specified type mapping.getRef(int columnIndex) [Not supported] Gets a column as a reference.[Not supported] Gets a column as a reference.org.h2.result.ResultInterfaceINTERNALintgetRow()Gets the current row number.getRowId(int columnIndex) [Not supported] Returns the value of the specified column as a row id.[Not supported] Returns the value of the specified column as a row id.shortgetShort(int columnIndex) Returns the value of the specified column as a short.shortReturns the value of the specified column as a short.getSQLXML(int columnIndex) Returns the value of the specified column as a SQLXML.Returns the value of the specified column as a SQLXML.Returns the statement that created this object.getString(int columnIndex) Returns the value of the specified column as a String.Returns the value of the specified column as a String.getTime(int columnIndex) Returns the value of the specified column as a java.sql.Time.Returns the value of the specified column as a java.sql.Time using a specified time zone.Returns the value of the specified column as a java.sql.Time.Returns the value of the specified column as a java.sql.Time using a specified time zone.getTimestamp(int columnIndex) Returns the value of the specified column as a java.sql.Timestamp.getTimestamp(int columnIndex, Calendar calendar) Returns the value of the specified column as a java.sql.Timestamp using a specified time zone.getTimestamp(String columnLabel) Returns the value of the specified column as a java.sql.Timestamp.getTimestamp(String columnLabel, Calendar calendar) Returns the value of the specified column as a java.sql.Timestamp.intgetType()Get the result set type.getUnicodeStream(int columnIndex) Deprecated.since JDBC 2.0, use getCharacterStreamgetUnicodeStream(String columnLabel) Deprecated.since JDBC 2.0, use setCharacterStreamorg.h2.value.Value[]INTERNALgetURL(int columnIndex) [Not supported][Not supported]Gets the first warning reported by calls on this object.voidInserts the current row.booleanChecks if the current position is after the last row, that means next() was called and returned false, and there was at least one row.booleanChecks if the current position is before the first row, that means next() was not called yet, and there is at least one row.booleanisClosed()Returns whether this result set is closed.booleanisFirst()Checks if the current position is row 1, that means next() was called once and returned true.booleanisLast()Checks if the current position is the last row, that means next() was called and did not yet returned false, but will in the next call.booleanisWrapperFor(Class<?> iface) Checks if unwrap can return an object of this class.booleanlast()Moves the current position to the last row.voidMoves the current position to the current row.voidMoves the current position to the insert row.booleannext()Moves the cursor to the next row of the result set.booleanprevious()Moves the cursor to the last row, or row before first row if the current position is the first row.voidRe-reads the current row from the database.booleanrelative(int rowCount) Moves the current position to a specific row relative to the current row.booleanDetects if the row was deleted (by somebody else or the caller).booleanDetects if the row was inserted.booleanDetects if the row was updated (by somebody else or the caller).voidsetFetchDirection(int direction) [Not supported] Sets (changes) the fetch direction for this result set.voidsetFetchSize(int rows) Sets the number of rows suggested to read in one step.toString()INTERNAL<T> TReturn an object of this class if possible.voidupdateArray(int columnIndex, Array x) Updates a column in the current or insert row.voidupdateArray(String columnLabel, Array x) Updates a column in the current or insert row.voidupdateAsciiStream(int columnIndex, InputStream x) Updates a column in the current or insert row.voidupdateAsciiStream(int columnIndex, InputStream x, int length) Updates a column in the current or insert row.voidupdateAsciiStream(int columnIndex, InputStream x, long length) Updates a column in the current or insert row.voidupdateAsciiStream(String columnLabel, InputStream x) Updates a column in the current or insert row.voidupdateAsciiStream(String columnLabel, InputStream x, int length) Updates a column in the current or insert row.voidupdateAsciiStream(String columnLabel, InputStream x, long length) Updates a column in the current or insert row.voidupdateBigDecimal(int columnIndex, BigDecimal x) Updates a column in the current or insert row.voidupdateBigDecimal(String columnLabel, BigDecimal x) Updates a column in the current or insert row.voidupdateBinaryStream(int columnIndex, InputStream x) Updates a column in the current or insert row.voidupdateBinaryStream(int columnIndex, InputStream x, int length) Updates a column in the current or insert row.voidupdateBinaryStream(int columnIndex, InputStream x, long length) Updates a column in the current or insert row.voidupdateBinaryStream(String columnLabel, InputStream x) Updates a column in the current or insert row.voidupdateBinaryStream(String columnLabel, InputStream x, int length) Updates a column in the current or insert row.voidupdateBinaryStream(String columnLabel, InputStream x, long length) Updates a column in the current or insert row.voidupdateBlob(int columnIndex, InputStream x) Updates a column in the current or insert row.voidupdateBlob(int columnIndex, InputStream x, long length) Updates a column in the current or insert row.voidupdateBlob(int columnIndex, Blob x) Updates a column in the current or insert row.voidupdateBlob(String columnLabel, InputStream x) Updates a column in the current or insert row.voidupdateBlob(String columnLabel, InputStream x, long length) Updates a column in the current or insert row.voidupdateBlob(String columnLabel, Blob x) Updates a column in the current or insert row.voidupdateBoolean(int columnIndex, boolean x) Updates a column in the current or insert row.voidupdateBoolean(String columnLabel, boolean x) Updates a column in the current or insert row.voidupdateByte(int columnIndex, byte x) Updates a column in the current or insert row.voidupdateByte(String columnLabel, byte x) Updates a column in the current or insert row.voidupdateBytes(int columnIndex, byte[] x) Updates a column in the current or insert row.voidupdateBytes(String columnLabel, byte[] x) Updates a column in the current or insert row.voidupdateCharacterStream(int columnIndex, Reader x) Updates a column in the current or insert row.voidupdateCharacterStream(int columnIndex, Reader x, int length) Updates a column in the current or insert row.voidupdateCharacterStream(int columnIndex, Reader x, long length) Updates a column in the current or insert row.voidupdateCharacterStream(String columnLabel, Reader x) Updates a column in the current or insert row.voidupdateCharacterStream(String columnLabel, Reader x, int length) Updates a column in the current or insert row.voidupdateCharacterStream(String columnLabel, Reader x, long length) Updates a column in the current or insert row.voidupdateClob(int columnIndex, Reader x) Updates a column in the current or insert row.voidupdateClob(int columnIndex, Reader x, long length) Updates a column in the current or insert row.voidupdateClob(int columnIndex, Clob x) Updates a column in the current or insert row.voidupdateClob(String columnLabel, Reader x) Updates a column in the current or insert row.voidupdateClob(String columnLabel, Reader x, long length) Updates a column in the current or insert row.voidupdateClob(String columnLabel, Clob x) Updates a column in the current or insert row.voidupdateDate(int columnIndex, Date x) Updates a column in the current or insert row.voidupdateDate(String columnLabel, Date x) Updates a column in the current or insert row.voidupdateDouble(int columnIndex, double x) Updates a column in the current or insert row.voidupdateDouble(String columnLabel, double x) Updates a column in the current or insert row.voidupdateFloat(int columnIndex, float x) Updates a column in the current or insert row.voidupdateFloat(String columnLabel, float x) Updates a column in the current or insert row.voidupdateInt(int columnIndex, int x) Updates a column in the current or insert row.voidUpdates a column in the current or insert row.voidupdateLong(int columnIndex, long x) Updates a column in the current or insert row.voidupdateLong(String columnLabel, long x) Updates a column in the current or insert row.voidupdateNCharacterStream(int columnIndex, Reader x) Updates a column in the current or insert row.voidupdateNCharacterStream(int columnIndex, Reader x, long length) Updates a column in the current or insert row.voidupdateNCharacterStream(String columnLabel, Reader x) Updates a column in the current or insert row.voidupdateNCharacterStream(String columnLabel, Reader x, long length) Updates a column in the current or insert row.voidupdateNClob(int columnIndex, Reader x) Updates a column in the current or insert row.voidupdateNClob(int columnIndex, Reader x, long length) Updates a column in the current or insert row.voidupdateNClob(int columnIndex, NClob x) Updates a column in the current or insert row.voidupdateNClob(String columnLabel, Reader x) Updates a column in the current or insert row.voidupdateNClob(String columnLabel, Reader x, long length) Updates a column in the current or insert row.voidupdateNClob(String columnLabel, NClob x) Updates a column in the current or insert row.voidupdateNString(int columnIndex, String x) Updates a column in the current or insert row.voidupdateNString(String columnLabel, String x) Updates a column in the current or insert row.voidupdateNull(int columnIndex) Updates a column in the current or insert row.voidupdateNull(String columnLabel) Updates a column in the current or insert row.voidupdateObject(int columnIndex, Object x) Updates a column in the current or insert row.voidupdateObject(int columnIndex, Object x, int scale) Updates a column in the current or insert row.voidupdateObject(int columnIndex, Object x, SQLType targetSqlType) Updates a column in the current or insert row.voidupdateObject(int columnIndex, Object x, SQLType targetSqlType, int scaleOrLength) Updates a column in the current or insert row.voidupdateObject(String columnLabel, Object x) Updates a column in the current or insert row.voidupdateObject(String columnLabel, Object x, int scale) Updates a column in the current or insert row.voidupdateObject(String columnLabel, Object x, SQLType targetSqlType) Updates a column in the current or insert row.voidupdateObject(String columnLabel, Object x, SQLType targetSqlType, int scaleOrLength) Updates a column in the current or insert row.void[Not supported]void[Not supported]voidUpdates the current row.voidupdateRowId(int columnIndex, RowId x) [Not supported] Updates a column in the current or insert row.voidupdateRowId(String columnLabel, RowId x) [Not supported] Updates a column in the current or insert row.voidupdateShort(int columnIndex, short x) Updates a column in the current or insert row.voidupdateShort(String columnLabel, short x) Updates a column in the current or insert row.voidupdateSQLXML(int columnIndex, SQLXML xmlObject) Updates a column in the current or insert row.voidupdateSQLXML(String columnLabel, SQLXML xmlObject) Updates a column in the current or insert row.voidupdateString(int columnIndex, String x) Updates a column in the current or insert row.voidupdateString(String columnLabel, String x) Updates a column in the current or insert row.voidupdateTime(int columnIndex, Time x) Updates a column in the current or insert row.voidupdateTime(String columnLabel, Time x) Updates a column in the current or insert row.voidupdateTimestamp(int columnIndex, Timestamp x) Updates a column in the current or insert row.voidupdateTimestamp(String columnLabel, Timestamp x) Updates a column in the current or insert row.booleanwasNull()Returns whether the last column accessed was null.Methods inherited from class org.h2.message.TraceObject
debugCode, debugCodeAssign, debugCodeCall, debugCodeCall, debugCodeCall, getNextId, getTraceId, getTraceObjectName, isDebugEnabled, isInfoEnabled, logAndConvert, quote, quoteArray, quoteBigDecimal, quoteBytes, quoteDate, quoteIntArray, quoteMap, quoteTime, quoteTimestamp, setTrace, unsupported
-
Constructor Details
-
JdbcResultSet
public JdbcResultSet(JdbcConnection conn, JdbcStatement stat, org.h2.command.CommandInterface command, org.h2.result.ResultInterface result, int id, boolean scrollable, boolean updatable, boolean triggerUpdatable)
-
-
Method Details
-
next
Moves the cursor to the next row of the result set.- Specified by:
nextin interfaceResultSet- Returns:
- true if successful, false if there are no more rows
- Throws:
SQLException
-
getMetaData
Gets the meta data of this result set.- Specified by:
getMetaDatain interfaceResultSet- Returns:
- the meta data
- Throws:
SQLException
-
wasNull
Returns whether the last column accessed was null.- Specified by:
wasNullin interfaceResultSet- Returns:
- true if the last column accessed was null
- Throws:
SQLException
-
findColumn
Searches for a specific column in the result set. A case-insensitive search is made.- Specified by:
findColumnin interfaceResultSet- Parameters:
columnLabel- the column label- Returns:
- the column index (1,2,...)
- Throws:
SQLException- if the column is not found or if the result set is closed
-
close
Closes the result set.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceResultSet- Throws:
SQLException
-
getStatement
Returns the statement that created this object.- Specified by:
getStatementin interfaceResultSet- Returns:
- the statement or prepared statement, or null if created by a DatabaseMetaData call.
- Throws:
SQLException
-
getWarnings
Gets the first warning reported by calls on this object.- Specified by:
getWarningsin interfaceResultSet- Returns:
- null
- Throws:
SQLException
-
clearWarnings
Clears all warnings.- Specified by:
clearWarningsin interfaceResultSet- Throws:
SQLException
-
getString
Returns the value of the specified column as a String.- Specified by:
getStringin interfaceResultSet- Parameters:
columnIndex- (1,2,...)- Returns:
- the value
- Throws:
SQLException- if the column is not found or if the result set is closed
-
getString
Returns the value of the specified column as a String.- Specified by:
getStringin interfaceResultSet- Parameters:
columnLabel- the column label- Returns:
- the value
- Throws:
SQLException- if the column is not found or if the result set is closed
-
getInt
Returns the value of the specified column as an int.- Specified by:
getIntin interfaceResultSet- Parameters:
columnIndex- (1,2,...)- Returns:
- the value
- Throws:
SQLException- if the column is not found or if the result set is closed
-
getInt
Returns the value of the specified column as an int.- Specified by:
getIntin interfaceResultSet- Parameters:
columnLabel- the column label- Returns:
- the value
- Throws:
SQLException- if the column is not found or if the result set is closed
-
getBigDecimal
Returns the value of the specified column as a BigDecimal.- Specified by:
getBigDecimalin interfaceResultSet- Parameters:
columnIndex- (1,2,...)- Returns:
- the value
- Throws:
SQLException- if the column is not found or if the result set is closed
-
getDate
Returns the value of the specified column as a java.sql.Date.Usage of this method is discouraged. Use
getObject(columnIndex, LocalDate.class)instead.- Specified by:
getDatein interfaceResultSet- Parameters:
columnIndex- (1,2,...)- Returns:
- the value
- Throws:
SQLException- if the column is not found or if the result set is closed- See Also:
-
getTime
Returns the value of the specified column as a java.sql.Time.Usage of this method is discouraged. Use
getObject(columnIndex, LocalTime.class)instead.- Specified by:
getTimein interfaceResultSet- Parameters:
columnIndex- (1,2,...)- Returns:
- the value
- Throws:
SQLException- if the column is not found or if the result set is closed- See Also:
-
getTimestamp
Returns the value of the specified column as a java.sql.Timestamp.Usage of this method is discouraged. Use
getObject(columnIndex, LocalDateTime.class)instead.- Specified by:
getTimestampin interfaceResultSet- Parameters:
columnIndex- (1,2,...)- Returns:
- the value
- Throws:
SQLException- if the column is not found or if the result set is closed- See Also:
-
getBigDecimal
Returns the value of the specified column as a BigDecimal.- Specified by:
getBigDecimalin interfaceResultSet- Parameters:
columnLabel- the column label- Returns:
- the value
- Throws:
SQLException- if the column is not found or if the result set is closed
-
getDate
Returns the value of the specified column as a java.sql.Date.Usage of this method is discouraged. Use
getObject(columnLabel, LocalDate.class)instead.- Specified by:
getDatein interfaceResultSet- Parameters:
columnLabel- the column label- Returns:
- the value
- Throws:
SQLException- if the column is not found or if the result set is closed- See Also:
-
getTime
Returns the value of the specified column as a java.sql.Time.Usage of this method is discouraged. Use
getObject(columnLabel, LocalTime.class)instead.- Specified by:
getTimein interfaceResultSet- Parameters:
columnLabel- the column label- Returns:
- the value
- Throws:
SQLException- if the column is not found or if the result set is closed- See Also:
-
getTimestamp
Returns the value of the specified column as a java.sql.Timestamp.Usage of this method is discouraged. Use
getObject(columnLabel, LocalDateTime.class)instead.- Specified by:
getTimestampin interfaceResultSet- Parameters:
columnLabel- the column label- Returns:
- the value
- Throws:
SQLException- if the column is not found or if the result set is closed- See Also:
-
getObject
Returns a column value as a Java object. The data is de-serialized into a Java object (on the client side).- Specified by:
getObjectin interfaceResultSet- Parameters:
columnIndex- (1,2,...)- Returns:
- the value or null
- Throws:
SQLException- if the column is not found or if the result set is closed
-
getObject
Returns a column value as a Java object. The data is de-serialized into a Java object (on the client side).- Specified by:
getObjectin interfaceResultSet- Parameters:
columnLabel- the column label- Returns:
- the value or null
- Throws:
SQLException- if the column is not found or if the result set is closed
-
getBoolean
Returns the value of the specified column as a boolean.- Specified by:
getBooleanin interfaceResultSet- Parameters:
columnIndex- (1,2,...)- Returns:
- the value
- Throws:
SQLException- if the column is not found or if the result set is closed
-
getBoolean
Returns the value of the specified column as a boolean.- Specified by:
getBooleanin interfaceResultSet- Parameters:
columnLabel- the column label- Returns:
- the value
- Throws:
SQLException- if the column is not found or if the result set is closed
-
getByte
Returns the value of the specified column as a byte.- Specified by:
getBytein interfaceResultSet- Parameters:
columnIndex- (1,2,...)- Returns:
- the value
- Throws:
SQLException- if the column is not found or if the result set is closed
-
getByte
Returns the value of the specified column as a byte.- Specified by:
getBytein interfaceResultSet- Parameters:
columnLabel- the column label- Returns:
- the value
- Throws:
SQLException- if the column is not found or if the result set is closed
-
getShort
Returns the value of the specified column as a short.- Specified by:
getShortin interfaceResultSet- Parameters:
columnIndex- (1,2,...)- Returns:
- the value
- Throws:
SQLException- if the column is not found or if the result set is closed
-
getShort
Returns the value of the specified column as a short.- Specified by:
getShortin interfaceResultSet- Parameters:
columnLabel- the column label- Returns:
- the value
- Throws:
SQLException- if the column is not found or if the result set is closed
-
getLong
Returns the value of the specified column as a long.- Specified by:
getLongin interfaceResultSet- Parameters:
columnIndex- (1,2,...)- Returns:
- the value
- Throws:
SQLException- if the column is not found or if the result set is closed
-
getLong
Returns the value of the specified column as a long.- Specified by:
getLongin interfaceResultSet- Parameters:
columnLabel- the column label- Returns:
- the value
- Throws:
SQLException- if the column is not found or if the result set is closed
-
getFloat
Returns the value of the specified column as a float.- Specified by:
getFloatin interfaceResultSet- Parameters:
columnIndex- (1,2,...)- Returns:
- the value
- Throws:
SQLException- if the column is not found or if the result set is closed
-
getFloat
Returns the value of the specified column as a float.- Specified by:
getFloatin interfaceResultSet- Parameters:
columnLabel- the column label- Returns:
- the value
- Throws:
SQLException- if the column is not found or if the result set is closed
-
getDouble
Returns the value of the specified column as a double.- Specified by:
getDoublein interfaceResultSet- Parameters:
columnIndex- (1,2,...)- Returns:
- the value
- Throws:
SQLException- if the column is not found or if the result set is closed
-
getDouble
Returns the value of the specified column as a double.- Specified by:
getDoublein interfaceResultSet- Parameters:
columnLabel- the column label- Returns:
- the value
- Throws:
SQLException- if the column is not found or if the result set is closed
-
getBigDecimal
Deprecated.Returns the value of the specified column as a BigDecimal.- Specified by:
getBigDecimalin interfaceResultSet- Parameters:
columnLabel- the column labelscale- the scale of the returned value- Returns:
- the value
- Throws:
SQLException- if the column is not found or if the result set is closed
-
getBigDecimal
Deprecated.Returns the value of the specified column as a BigDecimal.- Specified by:
getBigDecimalin interfaceResultSet- Parameters:
columnIndex- (1,2,...)scale- the scale of the returned value- Returns:
- the value
- Throws:
SQLException- if the column is not found or if the result set is closed
-
getUnicodeStream
Deprecated.since JDBC 2.0, use getCharacterStream[Not supported]- Specified by:
getUnicodeStreamin interfaceResultSet- Throws:
SQLException
-
getUnicodeStream
Deprecated.since JDBC 2.0, use setCharacterStream[Not supported]- Specified by:
getUnicodeStreamin interfaceResultSet- Throws:
SQLException
-
getObject
[Not supported] Gets a column as a object using the specified type mapping.- Specified by:
getObjectin interfaceResultSet- Throws:
SQLException
-
getObject
[Not supported] Gets a column as a object using the specified type mapping.- Specified by:
getObjectin interfaceResultSet- Throws:
SQLException
-
getRef
[Not supported] Gets a column as a reference.- Specified by:
getRefin interfaceResultSet- Throws:
SQLException
-
getRef
[Not supported] Gets a column as a reference.- Specified by:
getRefin interfaceResultSet- Throws:
SQLException
-
getDate
Returns the value of the specified column as a java.sql.Date using a specified time zone.Usage of this method is discouraged. Use
getObject(columnIndex, LocalDate.class)instead.- Specified by:
getDatein interfaceResultSet- Parameters:
columnIndex- (1,2,...)calendar- the calendar- Returns:
- the value
- Throws:
SQLException- if the column is not found or if the result set is closed- See Also:
-
getDate
Returns the value of the specified column as a java.sql.Date using a specified time zone.Usage of this method is discouraged. Use
getObject(columnLabel, LocalDate.class)instead.- Specified by:
getDatein interfaceResultSet- Parameters:
columnLabel- the column labelcalendar- the calendar- Returns:
- the value
- Throws:
SQLException- if the column is not found or if the result set is closed- See Also:
-
getTime
Returns the value of the specified column as a java.sql.Time using a specified time zone.Usage of this method is discouraged. Use
getObject(columnIndex, LocalTime.class)instead.- Specified by:
getTimein interfaceResultSet- Parameters:
columnIndex- (1,2,...)calendar- the calendar- Returns:
- the value
- Throws:
SQLException- if the column is not found or if the result set is closed- See Also:
-
getTime
Returns the value of the specified column as a java.sql.Time using a specified time zone.Usage of this method is discouraged. Use
getObject(columnLabel, LocalTime.class)instead.- Specified by:
getTimein interfaceResultSet- Parameters:
columnLabel- the column labelcalendar- the calendar- Returns:
- the value
- Throws:
SQLException- if the column is not found or if the result set is closed- See Also:
-
getTimestamp
Returns the value of the specified column as a java.sql.Timestamp using a specified time zone.Usage of this method is discouraged. Use
getObject(columnIndex, LocalDateTime.class)instead.- Specified by:
getTimestampin interfaceResultSet- Parameters:
columnIndex- (1,2,...)calendar- the calendar- Returns:
- the value
- Throws:
SQLException- if the column is not found or if the result set is closed- See Also:
-
getTimestamp
Returns the value of the specified column as a java.sql.Timestamp.Usage of this method is discouraged. Use
getObject(columnLabel, LocalDateTime.class)instead.- Specified by:
getTimestampin interfaceResultSet- Parameters:
columnLabel- the column labelcalendar- the calendar- Returns:
- the value
- Throws:
SQLException- if the column is not found or if the result set is closed- See Also:
-
getBlob
Returns the value of the specified column as a Blob.- Specified by:
getBlobin interfaceResultSet- Parameters:
columnIndex- (1,2,...)- Returns:
- the value
- Throws:
SQLException- if the column is not found or if the result set is closed
-
getBlob
Returns the value of the specified column as a Blob.- Specified by:
getBlobin interfaceResultSet- Parameters:
columnLabel- the column label- Returns:
- the value
- Throws:
SQLException- if the column is not found or if the result set is closed
-
getBytes
Returns the value of the specified column as a byte array.- Specified by:
getBytesin interfaceResultSet- Parameters:
columnIndex- (1,2,...)- Returns:
- the value
- Throws:
SQLException- if the column is not found or if the result set is closed
-
getBytes
Returns the value of the specified column as a byte array.- Specified by:
getBytesin interfaceResultSet- Parameters:
columnLabel- the column label- Returns:
- the value
- Throws:
SQLException- if the column is not found or if the result set is closed
-
getBinaryStream
Returns the value of the specified column as an input stream.- Specified by:
getBinaryStreamin interfaceResultSet- Parameters:
columnIndex- (1,2,...)- Returns:
- the value
- Throws:
SQLException- if the column is not found or if the result set is closed
-
getBinaryStream
Returns the value of the specified column as an input stream.- Specified by:
getBinaryStreamin interfaceResultSet- Parameters:
columnLabel- the column label- Returns:
- the value
- Throws:
SQLException- if the column is not found or if the result set is closed
-
getClob
Returns the value of the specified column as a Clob.- Specified by:
getClobin interfaceResultSet- Parameters:
columnIndex- (1,2,...)- Returns:
- the value
- Throws:
SQLException- if the column is not found or if the result set is closed
-
getClob
Returns the value of the specified column as a Clob.- Specified by:
getClobin interfaceResultSet- Parameters:
columnLabel- the column label- Returns:
- the value
- Throws:
SQLException- if the column is not found or if the result set is closed
-
getArray
Returns the value of the specified column as an Array.- Specified by:
getArrayin interfaceResultSet- Parameters:
columnIndex- (1,2,...)- Returns:
- the value
- Throws:
SQLException- if the column is not found or if the result set is closed
-
getArray
Returns the value of the specified column as an Array.- Specified by:
getArrayin interfaceResultSet- Parameters:
columnLabel- the column label- Returns:
- the value
- Throws:
SQLException- if the column is not found or if the result set is closed
-
getAsciiStream
Returns the value of the specified column as an input stream.- Specified by:
getAsciiStreamin interfaceResultSet- Parameters:
columnIndex- (1,2,...)- Returns:
- the value
- Throws:
SQLException- if the column is not found or if the result set is closed
-
getAsciiStream
Returns the value of the specified column as an input stream.- Specified by:
getAsciiStreamin interfaceResultSet- Parameters:
columnLabel- the column label- Returns:
- the value
- Throws:
SQLException- if the column is not found or if the result set is closed
-
getCharacterStream
Returns the value of the specified column as a reader.- Specified by:
getCharacterStreamin interfaceResultSet- Parameters:
columnIndex- (1,2,...)- Returns:
- the value
- Throws:
SQLException- if the column is not found or if the result set is closed
-
getCharacterStream
Returns the value of the specified column as a reader.- Specified by:
getCharacterStreamin interfaceResultSet- Parameters:
columnLabel- the column label- Returns:
- the value
- Throws:
SQLException- if the column is not found or if the result set is closed
-
getURL
[Not supported]- Specified by:
getURLin interfaceResultSet- Throws:
SQLException
-
getURL
[Not supported]- Specified by:
getURLin interfaceResultSet- Throws:
SQLException
-
updateNull
Updates a column in the current or insert row.- Specified by:
updateNullin interfaceResultSet- Parameters:
columnIndex- (1,2,...)- Throws:
SQLException- if the result set is closed or not updatable
-
updateNull
Updates a column in the current or insert row.- Specified by:
updateNullin interfaceResultSet- Parameters:
columnLabel- the column label- Throws:
SQLException- if the result set is closed or not updatable
-
updateBoolean
Updates a column in the current or insert row.- Specified by:
updateBooleanin interfaceResultSet- Parameters:
columnIndex- (1,2,...)x- the value- Throws:
SQLException- if the result set is closed or not updatable
-
updateBoolean
Updates a column in the current or insert row.- Specified by:
updateBooleanin interfaceResultSet- Parameters:
columnLabel- the column labelx- the value- Throws:
SQLException- if result set is closed or not updatable
-
updateByte
Updates a column in the current or insert row.- Specified by:
updateBytein interfaceResultSet- Parameters:
columnIndex- (1,2,...)x- the value- Throws:
SQLException- if the result set is closed or not updatable
-
updateByte
Updates a column in the current or insert row.- Specified by:
updateBytein interfaceResultSet- Parameters:
columnLabel- the column labelx- the value- Throws:
SQLException- if the result set is closed or not updatable
-
updateBytes
Updates a column in the current or insert row.- Specified by:
updateBytesin interfaceResultSet- Parameters:
columnIndex- (1,2,...)x- the value- Throws:
SQLException- if the result set is closed or not updatable
-
updateBytes
Updates a column in the current or insert row.- Specified by:
updateBytesin interfaceResultSet- Parameters:
columnLabel- the column labelx- the value- Throws:
SQLException- if the result set is closed or not updatable
-
updateShort
Updates a column in the current or insert row.- Specified by:
updateShortin interfaceResultSet- Parameters:
columnIndex- (1,2,...)x- the value- Throws:
SQLException- if the result set is closed or not updatable
-
updateShort
Updates a column in the current or insert row.- Specified by:
updateShortin interfaceResultSet- Parameters:
columnLabel- the column labelx- the value- Throws:
SQLException- if the result set is closed or not updatable
-
updateInt
Updates a column in the current or insert row.- Specified by:
updateIntin interfaceResultSet- Parameters:
columnIndex- (1,2,...)x- the value- Throws:
SQLException- if the result set is closed or not updatable
-
updateInt
Updates a column in the current or insert row.- Specified by:
updateIntin interfaceResultSet- Parameters:
columnLabel- the column labelx- the value- Throws:
SQLException- if the result set is closed or not updatable
-
updateLong
Updates a column in the current or insert row.- Specified by:
updateLongin interfaceResultSet- Parameters:
columnIndex- (1,2,...)x- the value- Throws:
SQLException- if the result set is closed or not updatable
-
updateLong
Updates a column in the current or insert row.- Specified by:
updateLongin interfaceResultSet- Parameters:
columnLabel- the column labelx- the value- Throws:
SQLException- if the result set is closed or not updatable
-
updateFloat
Updates a column in the current or insert row.- Specified by:
updateFloatin interfaceResultSet- Parameters:
columnIndex- (1,2,...)x- the value- Throws:
SQLException- if the result set is closed or not updatable
-
updateFloat
Updates a column in the current or insert row.- Specified by:
updateFloatin interfaceResultSet- Parameters:
columnLabel- the column labelx- the value- Throws:
SQLException- if the result set is closed or not updatable
-
updateDouble
Updates a column in the current or insert row.- Specified by:
updateDoublein interfaceResultSet- Parameters:
columnIndex- (1,2,...)x- the value- Throws:
SQLException- if the result set is closed or not updatable
-
updateDouble
Updates a column in the current or insert row.- Specified by:
updateDoublein interfaceResultSet- Parameters:
columnLabel- the column labelx- the value- Throws:
SQLException- if the result set is closed or not updatable
-
updateBigDecimal
Updates a column in the current or insert row.- Specified by:
updateBigDecimalin interfaceResultSet- Parameters:
columnIndex- (1,2,...)x- the value- Throws:
SQLException- if the result set is closed or not updatable
-
updateBigDecimal
Updates a column in the current or insert row.- Specified by:
updateBigDecimalin interfaceResultSet- Parameters:
columnLabel- the column labelx- the value- Throws:
SQLException- if the result set is closed or not updatable
-
updateString
Updates a column in the current or insert row.- Specified by:
updateStringin interfaceResultSet- Parameters:
columnIndex- (1,2,...)x- the value- Throws:
SQLException- if the result set is closed or not updatable
-
updateString
Updates a column in the current or insert row.- Specified by:
updateStringin interfaceResultSet- Parameters:
columnLabel- the column labelx- the value- Throws:
SQLException- if the result set is closed or not updatable
-
updateDate
Updates a column in the current or insert row.Usage of this method is discouraged. Use
updateObject(columnIndex, value)withLocalDateparameter instead.- Specified by:
updateDatein interfaceResultSet- Parameters:
columnIndex- (1,2,...)x- the value- Throws:
SQLException- if the result set is closed or not updatable- See Also:
-
updateDate
Updates a column in the current or insert row.Usage of this method is discouraged. Use
updateObject(columnLabel, value)withLocalDateparameter instead.- Specified by:
updateDatein interfaceResultSet- Parameters:
columnLabel- the column labelx- the value- Throws:
SQLException- if the result set is closed or not updatable- See Also:
-
updateTime
Updates a column in the current or insert row.Usage of this method is discouraged. Use
updateObject(columnIndex, value)withLocalTimeparameter instead.- Specified by:
updateTimein interfaceResultSet- Parameters:
columnIndex- (1,2,...)x- the value- Throws:
SQLException- if the result set is closed or not updatable- See Also:
-
updateTime
Updates a column in the current or insert row.Usage of this method is discouraged. Use
updateObject(columnLabel, value)withLocalTimeparameter instead.- Specified by:
updateTimein interfaceResultSet- Parameters:
columnLabel- the column labelx- the value- Throws:
SQLException- if the result set is closed or not updatable- See Also:
-
updateTimestamp
Updates a column in the current or insert row.Usage of this method is discouraged. Use
updateObject(columnIndex, value)withLocalDateTimeparameter instead.- Specified by:
updateTimestampin interfaceResultSet- Parameters:
columnIndex- (1,2,...)x- the value- Throws:
SQLException- if the result set is closed or not updatable- See Also:
-
updateTimestamp
Updates a column in the current or insert row.Usage of this method is discouraged. Use
updateObject(columnLabel, value)withLocalDateTimeparameter instead.- Specified by:
updateTimestampin interfaceResultSet- Parameters:
columnLabel- the column labelx- the value- Throws:
SQLException- if the result set is closed or not updatable- See Also:
-
updateAsciiStream
Updates a column in the current or insert row.- Specified by:
updateAsciiStreamin interfaceResultSet- Parameters:
columnIndex- (1,2,...)x- the valuelength- the number of characters- Throws:
SQLException- if the result set is closed or not updatable
-
updateAsciiStream
Updates a column in the current or insert row.- Specified by:
updateAsciiStreamin interfaceResultSet- Parameters:
columnIndex- (1,2,...)x- the value- Throws:
SQLException- if the result set is closed or not updatable
-
updateAsciiStream
Updates a column in the current or insert row.- Specified by:
updateAsciiStreamin interfaceResultSet- Parameters:
columnIndex- (1,2,...)x- the valuelength- the number of characters- Throws:
SQLException- if the result set is closed or not updatable
-
updateAsciiStream
Updates a column in the current or insert row.- Specified by:
updateAsciiStreamin interfaceResultSet- Parameters:
columnLabel- the column labelx- the valuelength- the number of characters- Throws:
SQLException- if the result set is closed or not updatable
-
updateAsciiStream
Updates a column in the current or insert row.- Specified by:
updateAsciiStreamin interfaceResultSet- Parameters:
columnLabel- the column labelx- the value- Throws:
SQLException- if the result set is closed
-
updateAsciiStream
Updates a column in the current or insert row.- Specified by:
updateAsciiStreamin interfaceResultSet- Parameters:
columnLabel- the column labelx- the valuelength- the number of characters- Throws:
SQLException- if the result set is closed or not updatable
-
updateBinaryStream
Updates a column in the current or insert row.- Specified by:
updateBinaryStreamin interfaceResultSet- Parameters:
columnIndex- (1,2,...)x- the valuelength- the number of characters- Throws:
SQLException- if the result set is closed or not updatable
-
updateBinaryStream
Updates a column in the current or insert row.- Specified by:
updateBinaryStreamin interfaceResultSet- Parameters:
columnIndex- (1,2,...)x- the value- Throws:
SQLException- if the result set is closed or not updatable
-
updateBinaryStream
Updates a column in the current or insert row.- Specified by:
updateBinaryStreamin interfaceResultSet- Parameters:
columnIndex- (1,2,...)x- the valuelength- the number of characters- Throws:
SQLException- if the result set is closed or not updatable
-
updateBinaryStream
Updates a column in the current or insert row.- Specified by:
updateBinaryStreamin interfaceResultSet- Parameters:
columnLabel- the column labelx- the value- Throws:
SQLException- if the result set is closed or not updatable
-
updateBinaryStream
Updates a column in the current or insert row.- Specified by:
updateBinaryStreamin interfaceResultSet- Parameters:
columnLabel- the column labelx- the valuelength- the number of characters- Throws:
SQLException- if the result set is closed or not updatable
-
updateBinaryStream
Updates a column in the current or insert row.- Specified by:
updateBinaryStreamin interfaceResultSet- Parameters:
columnLabel- the column labelx- the valuelength- the number of characters- Throws:
SQLException- if the result set is closed or not updatable
-
updateCharacterStream
Updates a column in the current or insert row.- Specified by:
updateCharacterStreamin interfaceResultSet- Parameters:
columnIndex- (1,2,...)x- the valuelength- the number of characters- Throws:
SQLException- if the result set is closed or not updatable
-
updateCharacterStream
Updates a column in the current or insert row.- Specified by:
updateCharacterStreamin interfaceResultSet- Parameters:
columnIndex- (1,2,...)x- the valuelength- the number of characters- Throws:
SQLException- if the result set is closed or not updatable
-
updateCharacterStream
Updates a column in the current or insert row.- Specified by:
updateCharacterStreamin interfaceResultSet- Parameters:
columnIndex- (1,2,...)x- the value- Throws:
SQLException- if the result set is closed or not updatable
-
updateCharacterStream
Updates a column in the current or insert row.- Specified by:
updateCharacterStreamin interfaceResultSet- Parameters:
columnLabel- the column labelx- the valuelength- the number of characters- Throws:
SQLException- if the result set is closed or not updatable
-
updateCharacterStream
Updates a column in the current or insert row.- Specified by:
updateCharacterStreamin interfaceResultSet- Parameters:
columnLabel- the column labelx- the value- Throws:
SQLException- if the result set is closed or not updatable
-
updateCharacterStream
Updates a column in the current or insert row.- Specified by:
updateCharacterStreamin interfaceResultSet- Parameters:
columnLabel- the column labelx- the valuelength- the number of characters- Throws:
SQLException- if the result set is closed or not updatable
-
updateObject
Updates a column in the current or insert row.- Specified by:
updateObjectin interfaceResultSet- Parameters:
columnIndex- (1,2,...)x- the valuescale- is ignored- Throws:
SQLException- if the result set is closed or not updatable
-
updateObject
Updates a column in the current or insert row.- Specified by:
updateObjectin interfaceResultSet- Parameters:
columnLabel- the column labelx- the valuescale- is ignored- Throws:
SQLException- if the result set is closed or not updatable
-
updateObject
Updates a column in the current or insert row.- Specified by:
updateObjectin interfaceResultSet- Parameters:
columnIndex- (1,2,...)x- the value- Throws:
SQLException- if the result set is closed or not updatable
-
updateObject
Updates a column in the current or insert row.- Specified by:
updateObjectin interfaceResultSet- Parameters:
columnLabel- the column labelx- the value- Throws:
SQLException- if the result set is closed or not updatable
-
updateObject
Updates a column in the current or insert row.- Specified by:
updateObjectin interfaceResultSet- Parameters:
columnIndex- (1,2,...)x- the valuetargetSqlType- the SQL type- Throws:
SQLException- if the result set is closed or not updatable
-
updateObject
public void updateObject(int columnIndex, Object x, SQLType targetSqlType, int scaleOrLength) throws SQLException Updates a column in the current or insert row.- Specified by:
updateObjectin interfaceResultSet- Parameters:
columnIndex- (1,2,...)x- the valuetargetSqlType- the SQL typescaleOrLength- is ignored- Throws:
SQLException- if the result set is closed or not updatable
-
updateObject
Updates a column in the current or insert row.- Specified by:
updateObjectin interfaceResultSet- Parameters:
columnLabel- the column labelx- the valuetargetSqlType- the SQL type- Throws:
SQLException- if the result set is closed or not updatable
-
updateObject
public void updateObject(String columnLabel, Object x, SQLType targetSqlType, int scaleOrLength) throws SQLException Updates a column in the current or insert row.- Specified by:
updateObjectin interfaceResultSet- Parameters:
columnLabel- the column labelx- the valuetargetSqlType- the SQL typescaleOrLength- is ignored- Throws:
SQLException- if the result set is closed or not updatable
-
updateRef
[Not supported]- Specified by:
updateRefin interfaceResultSet- Throws:
SQLException
-
updateRef
[Not supported]- Specified by:
updateRefin interfaceResultSet- Throws:
SQLException
-
updateBlob
Updates a column in the current or insert row.- Specified by:
updateBlobin interfaceResultSet- Parameters:
columnIndex- (1,2,...)x- the value- Throws:
SQLException- if the result set is closed or not updatable
-
updateBlob
Updates a column in the current or insert row.- Specified by:
updateBlobin interfaceResultSet- Parameters:
columnIndex- (1,2,...)x- the valuelength- the length- Throws:
SQLException- if the result set is closed or not updatable
-
updateBlob
Updates a column in the current or insert row.- Specified by:
updateBlobin interfaceResultSet- Parameters:
columnIndex- (1,2,...)x- the value- Throws:
SQLException- if the result set is closed or not updatable
-
updateBlob
Updates a column in the current or insert row.- Specified by:
updateBlobin interfaceResultSet- Parameters:
columnLabel- the column labelx- the value- Throws:
SQLException- if the result set is closed or not updatable
-
updateBlob
Updates a column in the current or insert row.- Specified by:
updateBlobin interfaceResultSet- Parameters:
columnLabel- the column labelx- the value- Throws:
SQLException- if the result set is closed or not updatable
-
updateBlob
Updates a column in the current or insert row.- Specified by:
updateBlobin interfaceResultSet- Parameters:
columnLabel- the column labelx- the valuelength- the length- Throws:
SQLException- if the result set is closed or not updatable
-
updateClob
Updates a column in the current or insert row.- Specified by:
updateClobin interfaceResultSet- Parameters:
columnIndex- (1,2,...)x- the value- Throws:
SQLException- if the result set is closed or not updatable
-
updateClob
Updates a column in the current or insert row.- Specified by:
updateClobin interfaceResultSet- Parameters:
columnIndex- (1,2,...)x- the value- Throws:
SQLException- if the result set is closed or not updatable
-
updateClob
Updates a column in the current or insert row.- Specified by:
updateClobin interfaceResultSet- Parameters:
columnIndex- (1,2,...)x- the valuelength- the length- Throws:
SQLException- if the result set is closed or not updatable
-
updateClob
Updates a column in the current or insert row.- Specified by:
updateClobin interfaceResultSet- Parameters:
columnLabel- the column labelx- the value- Throws:
SQLException- if the result set is closed or not updatable
-
updateClob
Updates a column in the current or insert row.- Specified by:
updateClobin interfaceResultSet- Parameters:
columnLabel- the column labelx- the value- Throws:
SQLException- if the result set is closed or not updatable
-
updateClob
Updates a column in the current or insert row.- Specified by:
updateClobin interfaceResultSet- Parameters:
columnLabel- the column labelx- the valuelength- the length- Throws:
SQLException- if the result set is closed or not updatable
-
updateArray
Updates a column in the current or insert row.- Specified by:
updateArrayin interfaceResultSet- Parameters:
columnIndex- (1,2,...)x- the value- Throws:
SQLException- if the result set is closed or not updatable
-
updateArray
Updates a column in the current or insert row.- Specified by:
updateArrayin interfaceResultSet- Parameters:
columnLabel- the column labelx- the value- Throws:
SQLException- if the result set is closed or not updatable
-
getCursorName
[Not supported] Gets the cursor name if it was defined. This feature is superseded by updateX methods. This method throws a SQLException because cursor names are not supported.- Specified by:
getCursorNamein interfaceResultSet- Throws:
SQLException
-
getRow
Gets the current row number. The first row is row 1, the second 2 and so on. This method returns 0 before the first and after the last row.- Specified by:
getRowin interfaceResultSet- Returns:
- the row number
- Throws:
SQLException
-
getConcurrency
Gets the result set concurrency. Result sets are only updatable if the statement was created with updatable concurrency, and if the result set contains all columns of the primary key or of a unique index of a table.- Specified by:
getConcurrencyin interfaceResultSet- Returns:
- ResultSet.CONCUR_UPDATABLE if the result set is updatable, or ResultSet.CONCUR_READ_ONLY otherwise
- Throws:
SQLException
-
getFetchDirection
Gets the fetch direction.- Specified by:
getFetchDirectionin interfaceResultSet- Returns:
- the direction: FETCH_FORWARD
- Throws:
SQLException
-
getFetchSize
Gets the number of rows suggested to read in one step.- Specified by:
getFetchSizein interfaceResultSet- Returns:
- the current fetch size
- Throws:
SQLException
-
setFetchSize
Sets the number of rows suggested to read in one step. This value cannot be higher than the maximum rows (setMaxRows) set by the statement or prepared statement, otherwise an exception is throws. Setting the value to 0 will set the default value. The default value can be changed using the system property h2.serverResultSetFetchSize.- Specified by:
setFetchSizein interfaceResultSet- Parameters:
rows- the number of rows- Throws:
SQLException
-
setFetchDirection
[Not supported] Sets (changes) the fetch direction for this result set. This method should only be called for scrollable result sets, otherwise it will throw an exception (no matter what direction is used).- Specified by:
setFetchDirectionin interfaceResultSet- Parameters:
direction- the new fetch direction- Throws:
SQLException- Unsupported Feature if the method is called for a forward-only result set
-
getType
Get the result set type.- Specified by:
getTypein interfaceResultSet- Returns:
- the result set type (TYPE_FORWARD_ONLY, TYPE_SCROLL_INSENSITIVE or TYPE_SCROLL_SENSITIVE)
- Throws:
SQLException- if the column is not found or if the result set is closed
-
isBeforeFirst
Checks if the current position is before the first row, that means next() was not called yet, and there is at least one row.- Specified by:
isBeforeFirstin interfaceResultSet- Returns:
- if there are results and the current position is before the first row
- Throws:
SQLException- if the result set is closed
-
isAfterLast
Checks if the current position is after the last row, that means next() was called and returned false, and there was at least one row.- Specified by:
isAfterLastin interfaceResultSet- Returns:
- if there are results and the current position is after the last row
- Throws:
SQLException- if the result set is closed
-
isFirst
Checks if the current position is row 1, that means next() was called once and returned true.- Specified by:
isFirstin interfaceResultSet- Returns:
- if the current position is the first row
- Throws:
SQLException- if the result set is closed
-
isLast
Checks if the current position is the last row, that means next() was called and did not yet returned false, but will in the next call.- Specified by:
isLastin interfaceResultSet- Returns:
- if the current position is the last row
- Throws:
SQLException- if the result set is closed
-
beforeFirst
Moves the current position to before the first row, that means resets the result set.- Specified by:
beforeFirstin interfaceResultSet- Throws:
SQLException- if the result set is closed
-
afterLast
Moves the current position to after the last row, that means after the end.- Specified by:
afterLastin interfaceResultSet- Throws:
SQLException- if the result set is closed
-
first
Moves the current position to the first row. This is the same as calling beforeFirst() followed by next().- Specified by:
firstin interfaceResultSet- Returns:
- true if there is a row available, false if not
- Throws:
SQLException- if the result set is closed
-
last
Moves the current position to the last row.- Specified by:
lastin interfaceResultSet- Returns:
- true if there is a row available, false if not
- Throws:
SQLException- if the result set is closed
-
absolute
Moves the current position to a specific row.- Specified by:
absolutein interfaceResultSet- Parameters:
rowNumber- the row number. 0 is not allowed, 1 means the first row, 2 the second. -1 means the last row, -2 the row before the last row. If the value is too large, the position is moved after the last row, if the value is too small it is moved before the first row.- Returns:
- true if there is a row available, false if not
- Throws:
SQLException- if the result set is closed
-
relative
Moves the current position to a specific row relative to the current row.- Specified by:
relativein interfaceResultSet- Parameters:
rowCount- 0 means don't do anything, 1 is the next row, -1 the previous. If the value is too large, the position is moved after the last row, if the value is too small it is moved before the first row.- Returns:
- true if there is a row available, false if not
- Throws:
SQLException- if the result set is closed
-
previous
Moves the cursor to the last row, or row before first row if the current position is the first row.- Specified by:
previousin interfaceResultSet- Returns:
- true if there is a row available, false if not
- Throws:
SQLException- if the result set is closed
-
moveToInsertRow
Moves the current position to the insert row. The current row is remembered.- Specified by:
moveToInsertRowin interfaceResultSet- Throws:
SQLException- if the result set is closed or is not updatable
-
moveToCurrentRow
Moves the current position to the current row.- Specified by:
moveToCurrentRowin interfaceResultSet- Throws:
SQLException- if the result set is closed or is not updatable
-
rowUpdated
Detects if the row was updated (by somebody else or the caller).- Specified by:
rowUpdatedin interfaceResultSet- Returns:
- false because this driver does not detect this
- Throws:
SQLException
-
rowInserted
Detects if the row was inserted.- Specified by:
rowInsertedin interfaceResultSet- Returns:
- false because this driver does not detect this
- Throws:
SQLException
-
rowDeleted
Detects if the row was deleted (by somebody else or the caller).- Specified by:
rowDeletedin interfaceResultSet- Returns:
- false because this driver does not detect this
- Throws:
SQLException
-
insertRow
Inserts the current row. The current position must be the insert row.- Specified by:
insertRowin interfaceResultSet- Throws:
SQLException- if the result set is closed or if not on the insert row, or if the result set it not updatable
-
updateRow
Updates the current row.- Specified by:
updateRowin interfaceResultSet- Throws:
SQLException- if the result set is closed, if the current row is the insert row or if not on a valid row, or if the result set it not updatable
-
deleteRow
Deletes the current row.- Specified by:
deleteRowin interfaceResultSet- Throws:
SQLException- if the result set is closed, if the current row is the insert row or if not on a valid row, or if the result set it not updatable
-
refreshRow
Re-reads the current row from the database.- Specified by:
refreshRowin interfaceResultSet- Throws:
SQLException- if the result set is closed or if the current row is the insert row or if the row has been deleted or if not on a valid row
-
cancelRowUpdates
Cancels updating a row.- Specified by:
cancelRowUpdatesin interfaceResultSet- Throws:
SQLException- if the result set is closed or if the current row is the insert row
-
getInternal
public org.h2.value.Value getInternal(int columnIndex) INTERNAL- Parameters:
columnIndex- index of a column- Returns:
- internal representation of the value in the specified column
-
getRowId
[Not supported] Returns the value of the specified column as a row id.- Specified by:
getRowIdin interfaceResultSet- Parameters:
columnIndex- (1,2,...)- Throws:
SQLException
-
getRowId
[Not supported] Returns the value of the specified column as a row id.- Specified by:
getRowIdin interfaceResultSet- Parameters:
columnLabel- the column label- Throws:
SQLException
-
updateRowId
[Not supported] Updates a column in the current or insert row.- Specified by:
updateRowIdin interfaceResultSet- Parameters:
columnIndex- (1,2,...)x- the value- Throws:
SQLException
-
updateRowId
[Not supported] Updates a column in the current or insert row.- Specified by:
updateRowIdin interfaceResultSet- Parameters:
columnLabel- the column labelx- the value- Throws:
SQLException
-
getHoldability
Returns the current result set holdability.- Specified by:
getHoldabilityin interfaceResultSet- Returns:
- the holdability
- Throws:
SQLException- if the connection is closed
-
isClosed
Returns whether this result set is closed.- Specified by:
isClosedin interfaceResultSet- Returns:
- true if the result set is closed
- Throws:
SQLException
-
updateNString
Updates a column in the current or insert row.- Specified by:
updateNStringin interfaceResultSet- Parameters:
columnIndex- (1,2,...)x- the value- Throws:
SQLException- if the result set is closed or not updatable
-
updateNString
Updates a column in the current or insert row.- Specified by:
updateNStringin interfaceResultSet- Parameters:
columnLabel- the column labelx- the value- Throws:
SQLException- if the result set is closed or not updatable
-
updateNClob
Updates a column in the current or insert row.- Specified by:
updateNClobin interfaceResultSet- Parameters:
columnIndex- (1,2,...)x- the value- Throws:
SQLException- if the result set is closed or not updatable
-
updateNClob
Updates a column in the current or insert row.- Specified by:
updateNClobin interfaceResultSet- Parameters:
columnIndex- (1,2,...)x- the value- Throws:
SQLException- if the result set is closed or not updatable
-
updateNClob
Updates a column in the current or insert row.- Specified by:
updateNClobin interfaceResultSet- Parameters:
columnIndex- (1,2,...)x- the valuelength- the length- Throws:
SQLException- if the result set is closed or not updatable
-
updateNClob
Updates a column in the current or insert row.- Specified by:
updateNClobin interfaceResultSet- Parameters:
columnLabel- the column labelx- the value- Throws:
SQLException- if the result set is closed or not updatable
-
updateNClob
Updates a column in the current or insert row.- Specified by:
updateNClobin interfaceResultSet- Parameters:
columnLabel- the column labelx- the valuelength- the length- Throws:
SQLException- if the result set is closed or not updatable
-
updateNClob
Updates a column in the current or insert row.- Specified by:
updateNClobin interfaceResultSet- Parameters:
columnLabel- the column labelx- the value- Throws:
SQLException- if the result set is closed or not updatable
-
getNClob
Returns the value of the specified column as a Clob.- Specified by:
getNClobin interfaceResultSet- Parameters:
columnIndex- (1,2,...)- Returns:
- the value
- Throws:
SQLException- if the column is not found or if the result set is closed
-
getNClob
Returns the value of the specified column as a Clob.- Specified by:
getNClobin interfaceResultSet- Parameters:
columnLabel- the column label- Returns:
- the value
- Throws:
SQLException- if the column is not found or if the result set is closed
-
getSQLXML
Returns the value of the specified column as a SQLXML.- Specified by:
getSQLXMLin interfaceResultSet- Parameters:
columnIndex- (1,2,...)- Returns:
- the value
- Throws:
SQLException- if the column is not found or if the result set is closed
-
getSQLXML
Returns the value of the specified column as a SQLXML.- Specified by:
getSQLXMLin interfaceResultSet- Parameters:
columnLabel- the column label- Returns:
- the value
- Throws:
SQLException- if the column is not found or if the result set is closed
-
updateSQLXML
Updates a column in the current or insert row.- Specified by:
updateSQLXMLin interfaceResultSet- Parameters:
columnIndex- (1,2,...)xmlObject- the value- Throws:
SQLException- if the result set is closed or not updatable
-
updateSQLXML
Updates a column in the current or insert row.- Specified by:
updateSQLXMLin interfaceResultSet- Parameters:
columnLabel- the column labelxmlObject- the value- Throws:
SQLException- if the result set is closed or not updatable
-
getNString
Returns the value of the specified column as a String.- Specified by:
getNStringin interfaceResultSet- Parameters:
columnIndex- (1,2,...)- Returns:
- the value
- Throws:
SQLException- if the column is not found or if the result set is closed
-
getNString
Returns the value of the specified column as a String.- Specified by:
getNStringin interfaceResultSet- Parameters:
columnLabel- the column label- Returns:
- the value
- Throws:
SQLException- if the column is not found or if the result set is closed
-
getNCharacterStream
Returns the value of the specified column as a reader.- Specified by:
getNCharacterStreamin interfaceResultSet- Parameters:
columnIndex- (1,2,...)- Returns:
- the value
- Throws:
SQLException- if the column is not found or if the result set is closed
-
getNCharacterStream
Returns the value of the specified column as a reader.- Specified by:
getNCharacterStreamin interfaceResultSet- Parameters:
columnLabel- the column label- Returns:
- the value
- Throws:
SQLException- if the column is not found or if the result set is closed
-
updateNCharacterStream
Updates a column in the current or insert row.- Specified by:
updateNCharacterStreamin interfaceResultSet- Parameters:
columnIndex- (1,2,...)x- the value- Throws:
SQLException- if the result set is closed or not updatable
-
updateNCharacterStream
Updates a column in the current or insert row.- Specified by:
updateNCharacterStreamin interfaceResultSet- Parameters:
columnIndex- (1,2,...)x- the valuelength- the number of characters- Throws:
SQLException- if the result set is closed or not updatable
-
updateNCharacterStream
Updates a column in the current or insert row.- Specified by:
updateNCharacterStreamin interfaceResultSet- Parameters:
columnLabel- the column labelx- the value- Throws:
SQLException- if the result set is closed or not updatable
-
updateNCharacterStream
Updates a column in the current or insert row.- Specified by:
updateNCharacterStreamin interfaceResultSet- Parameters:
columnLabel- the column labelx- the valuelength- the number of characters- Throws:
SQLException- if the result set is closed or not updatable
-
unwrap
Return an object of this class if possible.- Specified by:
unwrapin interfaceWrapper- Parameters:
iface- the class- Returns:
- this
- Throws:
SQLException
-
isWrapperFor
Checks if unwrap can return an object of this class.- Specified by:
isWrapperForin interfaceWrapper- Parameters:
iface- the class- Returns:
- whether or not the interface is assignable from this class
- Throws:
SQLException
-
getObject
Returns a column value as a Java object of the specified type.- Specified by:
getObjectin interfaceResultSet- Parameters:
columnIndex- the column index (1, 2, ...)type- the class of the returned value- Returns:
- the value
- Throws:
SQLException- if the column is not found or if the result set is closed
-
getObject
Returns a column value as a Java object of the specified type.- Specified by:
getObjectin interfaceResultSet- Parameters:
columnName- the column nametype- the class of the returned value- Returns:
- the value
- Throws:
SQLException
-
toString
INTERNAL -
getUpdateRow
public org.h2.value.Value[] getUpdateRow()INTERNAL- Returns:
- array of column values for the current row
-
getResult
public org.h2.result.ResultInterface getResult()INTERNAL- Returns:
- result
-
getBigDecimal(int)