moveToInsertRow Method (SQLServerResultSet)

Download JDBC driver

Moves the cursor to the insert row.


public void moveToInsertRow()  




This moveToInsertRow method is specified by the moveToInsertRow method in the java.sql.ResultSet interface.

The current cursor position is remembered while the cursor is positioned on the insert row. The insert row is a special row that is associated with an updatable result set. It is essentially a buffer where a new row can be constructed by calling the updater methods before adding the row to the result set.

Only the updater, getter, and insertRow methods can be called when the cursor is on the insert row. All the columns in a result set must be given a value each time this method is called, and before calling insertRow. An updater method must be called before a getter method can be called on a column value.

See Also

SQLServerResultSet Members
SQLServerResultSet Class