Platforms to show: All Mac Windows Linux Cross-Platform

Back to JavaResultSetMBS class.

JavaResultSetMBS.absolute(row as Integer) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 8.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Moves the cursor to the given row number in this ResultSet object.
Example
Var db as JavaConnectionMBS // your database
Var r as JavaResultSetMBS
Var s as JavaStatementMBS

// check second row
s=db.createStatement
r=s.executeQuery("SELECT * from myTable")

if r<>Nil then
if r.absolute(2) then
MsgBox str(R.getInt("test_id"))+" "+r.getString("test_val")
end if
end if

See the java documentation for details on java.sql.ResultSet.absolute.

Some examples using this method:

JavaResultSetMBS.afterLast

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 8.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Moves the cursor to the end of this ResultSet object, just after the last row.

See the java documentation for details on java.sql.ResultSet.afterLast.

JavaResultSetMBS.beforeFirst

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 8.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Moves the cursor to the front of this ResultSet object, just before the first row.

See the java documentation for details on java.sql.ResultSet.beforeFirst.

JavaResultSetMBS.cancelRowUpdates

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 8.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Cancels the updates made to the current row in this ResultSet object.

This method may be called after calling an updater method(s) and before calling the method updateRow to roll back the updates made to a row. If no updates have been made or updateRow has already been called, this method has no effect.

See the java documentation for details on java.sql.ResultSet.cancelRowUpdates.

JavaResultSetMBS.clearWarnings

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 8.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Clears all warnings reported on this ResultSet object.

See the java documentation for details on java.sql.ResultSet.clearWarnings.

JavaResultSetMBS.CLOSE_CURSORS_AT_COMMIT as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 8.5 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
The constant indicating that ResultSet objects should be closed when the method Connection.commit is called.

JavaResultSetMBS.CONCUR_READ_ONLY as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 8.5 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
The constant indicating the concurrency mode for a ResultSet object that may NOT be updated.

JavaResultSetMBS.CONCUR_UPDATABLE as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 8.5 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
The constant indicating the concurrency mode for a ResultSet object that may be updated.

JavaResultSetMBS.Constructor   Private

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 15.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
The private constructor.

JavaResultSetMBS.deleteRow

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 8.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Deletes the current row from this ResultSet object and from the underlying database.

See the java documentation for details on java.sql.ResultSet.deleteRow.

JavaResultSetMBS.FetchDirection as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Java Database MBS Java Plugin 8.5 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Gives a hint as to the direction in which the rows in this ResultSet object will be processed.

The initial value is determined by the Statement object that produced this ResultSet object. The fetch direction may be changed at any time.

Parameters:
direction - an int specifying the suggested fetch direction; one of ResultSet.FETCH_FORWARD, ResultSet.FETCH_REVERSE, or ResultSet.FETCH_UNKNOWN
(Read and Write computed property)

JavaResultSetMBS.FetchSize as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Java Database MBS Java Plugin 8.5 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Gives the JDBC driver a hint as to the number of rows that should be fetched from the database when more rows are needed for this ResultSet object.

If the fetch size specified is zero, the JDBC driver ignores the value and is free to make its own best guess as to what the fetch size should be. The default value is set by the Statement object that created the result set. The fetch size may be changed at any time.

Parameters:
rows - the number of rows to fetch
(Read and Write computed property)

JavaResultSetMBS.FETCH_FORWARD as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 8.5 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
The constant indicating that the rows in a result set will be processed in a forward direction; first-to-last.

This constant is used by the method setFetchDirection as a hint to the driver, which the driver may ignore.

JavaResultSetMBS.FETCH_REVERSE as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 8.5 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
The constant indicating that the rows in a result set will be processed in a reverse direction; last-to-first.

This constant is used by the method setFetchDirection as a hint to the driver, which the driver may ignore.

JavaResultSetMBS.FETCH_UNKNOWN as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 8.5 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
The constant indicating that the order in which rows in a result set will be processed is unknown.

This constant is used by the method setFetchDirection as a hint to the driver, which the driver may ignore.

JavaResultSetMBS.findColumn(column as string) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 8.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Maps the given ResultSet column name to its ResultSet column index.
Example
Var r as JavaResultSetMBS // your result set
MsgBox str(r.findColumn("test_id"))+" "+str(r.findColumn("test_val"))

Returns 0 on any error.
See the java documentation for details on java.sql.ResultSet.findColumn.

JavaResultSetMBS.first as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 8.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Moves the cursor to the first row in this ResultSet object.

See the java documentation for details on java.sql.ResultSet.first.

JavaResultSetMBS.HOLD_CURSORS_OVER_COMMIT as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 8.5 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
The constant indicating that ResultSet objects should not be closed when the method Connection.commit is called.

JavaResultSetMBS.insertRow

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 8.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Inserts the contents of the insert row into this ResultSet objaect and into the database.

See the java documentation for details on java.sql.ResultSet.insertRow.

JavaResultSetMBS.isAfterLast as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 8.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Indicates whether the cursor is after the last row in this ResultSet object.

See the java documentation for details on java.sql.ResultSet.isAfterLast.

JavaResultSetMBS.isBeforeFirst as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 8.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Retrieves whether the cursor is before the first row in this ResultSet object.

Returns:
true if the cursor is before the first row; false if the cursor is at any other position or the result set contains no rows

See the java documentation for details on java.sql.ResultSet.isBeforeFirst.

JavaResultSetMBS.isFirst as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 8.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Indicates whether the cursor is on the first row of this ResultSet object.

See the java documentation for details on java.sql.ResultSet.isFirst.

JavaResultSetMBS.isLast as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 8.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Indicates whether the cursor is on the last row of this ResultSet object.

See the java documentation for details on java.sql.ResultSet.isLast.

JavaResultSetMBS.last as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 8.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Moves the cursor to the last row in this ResultSet object.

See the java documentation for details on java.sql.ResultSet.last.

JavaResultSetMBS.moveToCurrentRow

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 8.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Moves the cursor to the remembered cursor position, usually the current row.

This method has no effect if the cursor is not on the insert row.

See the java documentation for details on java.sql.ResultSet.moveToCurrentRow.

JavaResultSetMBS.moveToInsertRow

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 8.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Moves the cursor to the insert row.

The current cursor position is remembered while the cursor is positioned on the insert row. The insert row is a special row associated with an updatable result set. It is essentially a buffer where a new row may be constructed by calling the updater methods prior to inserting the row into the result set. Only the updater, getter, and insertRow methods may be called when the cursor is on the insert row. All of the columns in a result set must be given a value each time this method is called before calling insertRow. An updater method must be called before a getter method can be called on a column value.

See the java documentation for details on java.sql.ResultSet.moveToInsertRow.

JavaResultSetMBS.NextRecord as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 8.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Moves the cursor down one row from its current position.

See the java documentation for details on java.sql.ResultSet.next.

JavaResultSetMBS.previousRecord as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 8.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Moves the cursor to the previous row in this ResultSet object.

See the java documentation for details on java.sql.ResultSet.previous.

JavaResultSetMBS.refreshRow

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 8.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Refreshes the current row with its most recent value in the database.

This method cannot be called when the cursor is on the insert row.
The refreshRow method provides a way for an application to explicitly tell the JDBC driver to refetch a row(s) from the database. An application may want to call refreshRow when caching or prefetching is being done by the JDBC driver to fetch the latest value of a row from the database. The JDBC driver may actually refresh multiple rows at once if the fetch size is greater than one.

All values are refetched subject to the transaction isolation level and cursor sensitivity. If refreshRow is called after calling an updater method, but before calling the method updateRow, then the updates made to the row are lost. Calling the method refreshRow frequently will likely slow performance.

JavaResultSetMBS.relative(row as Integer) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 8.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Moves the cursor a relative number of rows, either positive or negative.

See the java documentation for details on java.sql.ResultSet.relative.

JavaResultSetMBS.rowDeleted as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 8.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Retrieves whether a row has been deleted.

A deleted row may leave a visible "hole" in a result set. This method can be used to detect holes in a result set. The value returned depends on whether or not this ResultSet object can detect deletions.
Returns:
true if a row was deleted and deletions are detected; false otherwise

JavaResultSetMBS.rowInserted as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 8.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Retrieves whether the current row has had an insertion.

The value returned depends on whether or not this ResultSet object can detect visible inserts.
Returns:
true if a row has had an insertion and insertions are detected; false otherwise

JavaResultSetMBS.rowUpdated as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 8.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Retrieves whether the current row has been updated.

The value returned depends on whether or not the result set can detect updates.
Returns:
true if both (1) the row has been visibly updated by the owner or another and (2) updates are detected

JavaResultSetMBS.TYPE_FORWARD_ONLY as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 8.5 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
The constant indicating the type for a ResultSet object whose cursor may move only forward.

JavaResultSetMBS.TYPE_SCROLL_INSENSITIVE as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 8.5 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
The constant indicating the type for a ResultSet object that is scrollable but generally not sensitive to changes made by others.

JavaResultSetMBS.TYPE_SCROLL_SENSITIVE as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 8.5 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
The constant indicating the type for a ResultSet object that is scrollable and generally sensitive to changes made by others.

JavaResultSetMBS.wasNull as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 8.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Reports whether the last column read had a value of SQL NULL.

See the java documentation for details on java.sql.ResultSet.wasNull.

The items on this page are in the following plugins: MBS Java Plugin.


The biggest plugin in space...