PaginationContext { public long getRevisedRowCount(final SelectStatementContext selectStatementContext) { if (isMaxRowCount(selectStatementContext)) { return Integer.MAX_VALUE; } return rowCountSegment instanceof LimitValueSegment ? actualOffset + actualRowCount : actualRowCount; } PaginationContext(final PaginationValueSegment offsetSegment, final PaginationValueSegment rowCountSegment, final List<Object> parameters); Optional<PaginationValueSegment> getOffsetSegment(); Optional<PaginationValueSegment> getRowCountSegment(); long getActualOffset(); Optional<Long> getActualRowCount(); Optional<Integer> getOffsetParameterIndex(); Optional<Integer> getRowCountParameterIndex(); long getRevisedOffset(); long getRevisedRowCount(final SelectStatementContext selectStatementContext);  }
@Test public void getRevisedRowCountForMySQL() { getRevisedRowCount(new MySQLSelectStatement()); }
@Test public void getRevisedRowCountForOracle() { getRevisedRowCount(new OracleSelectStatement()); }
@Test public void getRevisedRowCountForPostgreSQL() { getRevisedRowCount(new PostgreSQLSelectStatement()); }
@Test public void getRevisedRowCountForSQL92() { getRevisedRowCount(new SQL92SelectStatement()); }
@Test public void getRevisedRowCountForSQLServer() { getRevisedRowCount(new SQLServerSelectStatement()); }