}
}
- private void configurePagination(SearchOptions options, SearchRequestBuilder esSearch) {
+ private static void configurePagination(SearchOptions options, SearchRequestBuilder esSearch) {
esSearch.setFrom(options.getOffset()).setSize(options.getLimit());
}
massUpdate.select("select id from snapshots where depth > 0");
massUpdate.update("delete from snapshots where id=?");
massUpdate.rowPluralName("snapshots");
- massUpdate.execute(this::handle);
+ massUpdate.execute(DropTreesOfSnapshots::handle);
}
- private boolean handle(Select.Row row, SqlStatement update) throws SQLException {
+ private static boolean handle(Select.Row row, SqlStatement update) throws SQLException {
long id = row.getLong(1);
update.setLong(1, id);
return true;
"where m.analysis_uuid is null");
massUpdate.update("update project_measures set analysis_uuid=? where snapshot_id=? and analysis_uuid is null");
massUpdate.rowPluralName("measures");
- massUpdate.execute(this::handle);
+ massUpdate.execute(PopulateAnalysisUuidOnMeasures::handle);
}
- private boolean handle(Select.Row row, SqlStatement update) throws SQLException {
+ private static boolean handle(Select.Row row, SqlStatement update) throws SQLException {
long snapshotId = row.getLong(1);
String analysisUuid = row.getString(2);