Code example for ResultSet

Methods: getIntgetLonggetString

0
 * Time: 5:51:19 
 */ 
public class QueryUniqueMapper implements ParameterizedRowMapper<QueryUnique> { 
        public QueryUnique mapRow(ResultSet resultSet, int i) {
        try { 
            return new QueryUnique(resultSet.getLong("id"),
                    resultSet.getString("text"),
                    resultSet.getLong("last_scan"),
                    resultSet.getInt("frequency"));
        } catch (SQLException e) {
            // Something is wrong with the base, i.e. one of column labels isn't presented. 
            return new QueryUnique(-1, "NOTEXT", System.currentTimeMillis(), 0);
        } 
    } 
} 
Connect your IDE to all the code out there  Get Codota for Java