public boolean isBeforeFirst() throws SQLException { // Counterintuitively, this method is supposed to return false when the // result set is empty. return (getRowCount() != 0) && (cursor == -1); }
private void adjustCursor() { if(cursor < 0) cursor = -1; if(cursor >= getRowCount()) cursor = getRowCount(); }
private void adjustCursorForInsert() { if(cursor >= getRowCount()) cursor = getRowCount() - 1; if(cursor < 0) cursor = 0; }
public boolean isBeforeFirst() throws SQLException { // Counterintuitively, this method is supposed to return false when the // result set is empty. return (getRowCount() != 0) && (cursor == -1); }
public boolean isBeforeFirst() throws SQLException { // Counterintuitively, this method is supposed to return false when the // result set is empty. return (getRowCount() != 0) && (cursor == -1); }
private void adjustCursor() { if(cursor < 0) cursor = -1; if(cursor >= getRowCount()) cursor = getRowCount(); }
private void adjustCursorForInsert() { if(cursor >= getRowCount()) cursor = getRowCount() - 1; if(cursor < 0) cursor = 0; }
public boolean isLast() throws SQLException { return (cursor != -1) && (cursor == getRowCount() - 1); }
public boolean isLast() throws SQLException { return (cursor != -1) && (cursor == getRowCount() - 1); }
public boolean last() throws SQLException { if(isCursorInInsertRow) throw new SQLException("cursor is in insert row"); checkResultSetType(); if(getRowCount() == 0) return false; cursor = getRowCount() - 1; return true; }
public boolean last() throws SQLException { if(isCursorInInsertRow) throw new SQLException("cursor is in insert row"); checkResultSetType(); if(getRowCount() == 0) return false; cursor = getRowCount() - 1; return true; }
public void afterLast() throws SQLException { if(isCursorInInsertRow) throw new SQLException("cursor is in insert row"); checkResultSetType(); if(getRowCount() == 0) return; cursor = getRowCount(); }
public boolean first() throws SQLException { if(isCursorInInsertRow) throw new SQLException("cursor is in insert row"); checkResultSetType(); if(getRowCount() == 0) return false; cursor = 0; return true; }
public boolean first() throws SQLException { if(isCursorInInsertRow) throw new SQLException("cursor is in insert row"); checkResultSetType(); if(getRowCount() == 0) return false; cursor = 0; return true; }
public boolean absolute(int row) throws SQLException { if(isCursorInInsertRow) throw new SQLException("cursor is in insert row"); checkResultSetType(); if(getRowCount() == 0) return false; if(row > 0) cursor = row - 1; if(row < 0) cursor = getRowCount() + row; adjustCursor(); return isCurrentRowValid(); }
public boolean absolute(int row) throws SQLException { if(isCursorInInsertRow) throw new SQLException("cursor is in insert row"); checkResultSetType(); if(getRowCount() == 0) return false; if(row > 0) cursor = row - 1; if(row < 0) cursor = getRowCount() + row; adjustCursor(); return isCurrentRowValid(); }
public boolean absolute(int row) throws SQLException { if(isCursorInInsertRow) throw new SQLException("cursor is in insert row"); checkResultSetType(); if(getRowCount() == 0) return false; if(row > 0) cursor = row - 1; if(row < 0) cursor = getRowCount() + row; adjustCursor(); return isCurrentRowValid(); }
public boolean next() throws SQLException { if(isCursorInInsertRow) throw new SQLException("cursor is in insert row"); if(getRowCount() == 0) return false; cursor++; adjustCursor(); return isCurrentRowValid(); }
public boolean next() throws SQLException { if(isCursorInInsertRow) throw new SQLException("cursor is in insert row"); if(getRowCount() == 0) return false; cursor++; adjustCursor(); return isCurrentRowValid(); }
public boolean previous() throws SQLException { if(isCursorInInsertRow) throw new SQLException("cursor is in insert row"); checkResultSetType(); if(getRowCount() == 0) return false; cursor--; adjustCursor(); return isCurrentRowValid(); }