RowSet is an interface in JDBC that provides a convenient and flexible way to work with tabular database data. It extends the ResultSet interface and supports both connected and disconnected ways of processing database records. Unlike a traditional ResultSet, some RowSet implementations can operate without keeping a continuous connection to the database. RowSet also follows the JavaBeans component model, making it useful for applications that need to pass, store, and manipulate database data easily.
Methods of RowSet
| Method Signature and Short Description |
|---|
|
Sets the SQL command that the |
|
Returns the SQL command associated with the |
|
Sets the database URL used by the |
|
Returns the database URL used by the |
|
Sets the username used to establish the database connection. |
|
Returns the username associated with the |
|
Sets the password used to establish the database connection. |
|
Sets an integer value for the specified parameter. |
|
Sets a String value for the specified parameter. |
|
Sets an object value for the specified parameter. |
|
Executes the command associated with the |
|
Moves the cursor to the next row in the |
|
Moves the cursor to the previous row in the |
|
Moves the cursor to the first row in the |
|
Moves the cursor to the last row in the |
|
Retrieves the value of the specified column as an integer. |
|
Retrieves the value of the specified column as a String. |
|
Retrieves the value of the specified column as an Object. |
|
Releases the resources held by the |
|
Checks whether the |
