Try OpenEdge Now
skip to main content
Java Open Clients
Using SmartDataObjects from Java Clients : Working with SDOResultSet objects : Updating SDOResultSet objects : Inserting, deleting, and updating rows
 
Inserting, deleting, and updating rows
The methods in the following table manage operations on rows in the SDOResultSet.
Table 25. Managing operations on SDOResultSet rows
Method
Description
boolean rowDeleted()
Returns true if the cursor is positioned on a deleted row, whether or not the deletion is sent to the AppServer because it does not make sense to allow the user to manipulate a row that is logically deleted.
The only time the row is not also physically deleted on the AppServer is if you are using a batch update. For more information, see Using batch mode [extension].
boolean rowInserted()
Returns true if the cursor is positioned on an inserted row position and the row is not yet sent to the AppServer.
boolean rowUpdated()
Returns true if the cursor is positioned on a row that is modified but not yet sent to the AppServer.
void CancelRowUpdates()
Cancels the updates by rolling back the effects of all method calls that updated column values. To cancel these updates, you must invoke this method before any call to updateRow() or insertRow().
void deleteRow()
Deletes the row in the current position and sends the delete request to the AppServer.
void insertRow()
Sends the newly created row to the AppServer.
void moveToCurrentRow()
Moves the cursor from the insert row back to the current position.
void moveToInsertRow()
Moves the cursor to a staging position for creating a new row.
void updateRow()
Sends the updates for the current row to the AppServer.