Skip to content
Snippets Groups Projects

Changed ANY value to -999. Fixed an issue with FormPrepareKey Mapper. Added any …

Merged Ghost User requested to merge feature_report into devel
Compare and
2 files
+ 33
21
Preferences
Compare changes
Files
2
@@ -5,22 +5,17 @@ import org.skife.jdbi.v2.tweak.ResultSetMapper;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import cz.nic.tablexia.server.dao.StatisticsDAO;
public class FormPreparedValue {
public static class ApplicationVersionMapper implements ResultSetMapper<List<FormPreparedValue>> {
public static class ApplicationVersionMapper implements ResultSetMapper<FormPreparedValue> {
@Override
public List<FormPreparedValue> map(int i, ResultSet rs, StatementContext sc) throws SQLException {
List<FormPreparedValue> result = new ArrayList<>();
while(rs.next()) {
result.add(new FormPreparedValue(rs.getString(StatisticsDAO.APPLICATION_VERSION_NAME_COLUMN_NAME),
rs.getInt(StatisticsDAO.APPLICATION_VERSION_CODE_COLUMN_NAME)));
}
return result;
public FormPreparedValue map(int i, ResultSet rs, StatementContext sc) throws SQLException {
return new FormPreparedValue(
rs.getString(StatisticsDAO.APPLICATION_VERSION_NAME_COLUMN_NAME),
rs.getInt(StatisticsDAO.APPLICATION_VERSION_CODE_COLUMN_NAME));
}
}