Result set and cursor mechanisms
A result set maintains a cursor, which points to its current row of data. It can be used to step through and process the rows one by one.
Working with database threads in an embedded environment
As a rule, do not use Thread.interrupt() calls to signal possibly waiting threads that are also accessing a database, because Derby may catch the interrupt and close the connection to the database. Use wait and notify calls instead.