private boolean queryArticle ( ) throws SQLException { Statement statement = this . connection . createStatement ( ) ; String query = "SELECT ArticleID, FullRevisionPKs, RevisionCounter " + "FROM index_articleID_rc_ts " + "WHERE articleID > " + this . currentArticleID + " LIMIT " + MAX_NUMBER_RESULTS ; resultArticles = statement . executeQuery ( query ) ; if ( resultArticles . next ( ) ) { this . currentArticleID = resultArticles . getInt ( 1 ) ; return ( this . lastArticleID == - 1 ) || ( this . currentArticleID <= this . lastArticleID ) ; } return false ; }
Retrieves the next articles from the article index .