It looks like you need to select the rowid as a column in your query, then access the column (by name or index) with the getRowId() method.
For example.
select rowid, blammy from tablename where something = desiredvalue
Then
RowId rowid = rs.getRowId("rowid");
or
RowId rowid = rs.getRowId(1);