Look into the cursor options. You can specify a bi-directional cursor that will probably let you do this. This may have grave issues with memory use and connection life span.
Also look into the RowSet interface. That copies data from the ResultSet into non-connected
Java object so you can release the connection and play with the data all day long. Memory concerns remain.