public boolean setCursorPosition(final int row) throws DataSourceException
{
if (row < 0)
{
throw new DataSourceException("Negative row number is not valid");
}
if (row > rowCount)
{
return false;
// throw new DataSourceException("OutOfBounds:");
}
try
{
if (cursor == 0)
{
resultSet.beforeFirst();
return true;
}
if (resultSet.absolute(row))
{
cursor = row;
return true;
}
return false;
//throw new DataSourceException("Unable to scroll the resultset.");
}
catch (SQLException e)
{
throw new DataSourceException("Failed to move the cursor: ", e);
}
}