getAccessor().closeCursor(this.resultSet, this.session); getAccessor().closeStatement(this.statement, this.session, null); } catch (RuntimeException caughtException) { exception = caughtException; this.nextRow = null; } catch (SQLException sqlException) { throw DatabaseException.sqlException(sqlException, getAccessor(), getSession(), false);
getAccessor().closeCursor(this.resultSet, this.session); getAccessor().closeStatement(this.statement, this.session, null); } catch (RuntimeException caughtException) { exception = caughtException; this.nextRow = null; } catch (SQLException sqlException) { throw DatabaseException.sqlException(sqlException, getAccessor(), getSession(), false);
getAccessor().closeCursor(getResultSet(), getSession()); getAccessor().closeStatement(getStatement(), getSession(), null); } catch (RuntimeException caughtException) { exception = caughtException; throw DatabaseException.sqlException(sqlException, getAccessor(), getSession(), false);
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: * CR#4139 * Read the previous row from the result set. It is used solely * for scrollable cursor support. */ protected Object retrievePreviousObject() throws DatabaseException { while (true) { if (isClosed()) { return null; } AbstractRecord row = getAccessor().cursorRetrievePreviousRow(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);
/** * 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; } }