Change the interface of RowIDCursor.

Redmine: refs #2370.