Undocumented Secrets of MATLAB
®
-Java Programming70
the current data row) can be done either to a specic (absolute) row using resultSet.abso-
lute() or relatively to the current row using resultSet.relative(). In both cases, the supplied
parameter may be positive or negative, affecting the movement direction. For example,
resultSet.relative(-5) moves the ResultSet cursor ve rows back (if available), whereas
resultSet.absolute(-5) moves to the fth row before the end.
Several additional ResultSet cursor-movement methods are available:
previous
◾ — opposite of next(), same as relative(-1);
first
◾ — moves to rst row, same as absolute(1);
last
◾ — moves to last row, same as absolute(-1);
beforeFirst
◾ — moves to zeroth (invalid) row, just ...