The following must be considered when using the
ResultSet interface:
next(). This
returns true if there is a result, but more importantly, it prepares the
row for processing.ResultSet by calling
close() once you have finished using it.Statement used to
create a ResultSet, the currently open
ResultSet instance is closed automatically.ResultSet switches
to binary mode after five query executions (this default is set by the
prepareThreshold connection property, see Server Prepared Statements). This may cause
unexpected behavior when some methods are called. For example, results
on method calls such as getString() on non-string data
types,prepareThreshold when conversion
to object method switches to one matching the return mode.