/** * PUBLIC: * Indicates whether the cursor is on the last row of the result set. */ public boolean isLast() throws DatabaseException { if (this.nextObject != null) { return false; } try { return this.resultSet.isLast(); } catch (UnsupportedOperationException ex) { // isLast() is not supported by some drivers (specifically JConnect5.0) // Do this the hard way instead. try { return this.resultSet.getRow() == getCursorSize(); } catch (SQLException ex2) { DatabaseException commException = getAccessor().processExceptionForCommError(this.session, ex2, null); if (commException != null) throw commException; throw DatabaseException.sqlException(ex2, getAccessor(), this.session, false); } } catch (SQLException exception) { DatabaseException commException = getAccessor().processExceptionForCommError(this.session, exception, null); if (commException != null) throw commException; throw DatabaseException.sqlException(exception, getAccessor(), this.session, false); } }
/** * PUBLIC: * Indicates whether the cursor is on the last row of the result set. */ public boolean isLast() throws DatabaseException { if (this.nextObject != null) { return false; } try { return this.resultSet.isLast(); } catch (UnsupportedOperationException ex) { // isLast() is not supported by some drivers (specifically JConnect5.0) // Do this the hard way instead. try { return this.resultSet.getRow() == getCursorSize(); } catch (SQLException ex2) { DatabaseException commException = getAccessor().processExceptionForCommError(this.session, ex2, null); if (commException != null) throw commException; throw DatabaseException.sqlException(ex2, getAccessor(), this.session, false); } } catch (SQLException exception) { DatabaseException commException = getAccessor().processExceptionForCommError(this.session, exception, null); if (commException != null) throw commException; throw DatabaseException.sqlException(exception, getAccessor(), this.session, false); } }
/** * PUBLIC: * Indicates whether the cursor is on the last row of the result set. */ public boolean isLast() throws DatabaseException { if (getNextObject() != null) { return false; } try { return getResultSet().isLast(); } catch (UnsupportedOperationException ex) { // isLast() is not supported by some drivers (specifically JConnect5.0) // Do this the hard way instead. try { return getResultSet().getRow() == getCursorSize(); } catch (SQLException ex2) { DatabaseException commException = getAccessor().processExceptionForCommError(getSession(), ex2, null); if (commException != null) throw commException; throw DatabaseException.sqlException(ex2, getAccessor(), getSession(), false); } } catch (SQLException exception) { DatabaseException commException = getAccessor().processExceptionForCommError(getSession(), exception, null); if (commException != null) throw commException; throw DatabaseException.sqlException(exception, getAccessor(), getSession(), false); } }