row = getAccessor().cursorRetrieveNextRow(this.fields, this.resultSet, this.executionSession); } else { row = this.nextRow;
row = getAccessor().cursorRetrieveNextRow(this.fields, this.resultSet, this.executionSession); } else { row = this.nextRow;
/** * INTERNAL: * Read the next row from the result set. */ protected Object retrieveNextObject() throws DatabaseException { while (true) { if (isClosed()) { return null; } AbstractRecord row = getAccessor().cursorRetrieveNextRow(getFields(), getResultSet(), getExecutionSession()); if (row == null) { if (!(this instanceof ScrollableCursor)) { close(); } return null; } Object object = buildAndRegisterObject(row); if (object == InvalidObject.instance) { continue; } return object; } }
AbstractRecord nextRow = null; if (forward) { nextRow = cursor.getAccessor().cursorRetrieveNextRow(cursor.getFields(), cursor.getResultSet(), session); } else { nextRow = cursor.getAccessor().cursorRetrievePreviousRow(cursor.getFields(), cursor.getResultSet(), session);
return null; row = getAccessor().cursorRetrieveNextRow(this.fields, this.resultSet, this.executionSession); } else { row = this.nextRow;
AbstractRecord nextRow = null; if (forward) { nextRow = cursor.getAccessor().cursorRetrieveNextRow(cursor.getFields(), cursor.getResultSet(), session); } else { nextRow = cursor.getAccessor().cursorRetrievePreviousRow(cursor.getFields(), cursor.getResultSet(), session);
/** * INTERNAL: * Read the next row from the result set. */ protected Object retrieveNextObject() throws DatabaseException { while (true) { if (getPosition() < getObjectCollection().size()) { setPosition(getPosition() + 1); return getObjectCollection().elementAt(getPosition() - 1); } if (isClosed()) { return null; } AbstractRecord row = getAccessor().cursorRetrieveNextRow(getFields(), getResultSet(), getExecutionSession()); if (row == null) { // If already afterLast do not increment position again. setPosition(size() + 1); return null; } setPosition(getPosition() + 1); Object object = buildAndRegisterObject(row); if (object == InvalidObject.instance) { continue; } return object; } }
return null; row = getAccessor().cursorRetrieveNextRow(this.fields, this.resultSet, this.executionSession); } else { row = this.nextRow;