Code example for ResultSet

Methods: getBoolean, getInt, getString, getTimestamp

0
        update(sql, radio.getName(), radio.getStreamUrl(), radio.getHomepageUrl(), radio.isEnabled(), radio.getChanged(), radio.getId());
    } 
 
    private static class InternetRadioRowMapper implements ParameterizedRowMapper<InternetRadio> { 
        public InternetRadio mapRow(ResultSet rs, int rowNum) throws SQLException {
            return new InternetRadio(rs.getInt(1), rs.getString(2), rs.getString(3), rs.getString(4), rs.getBoolean(5), rs.getTimestamp(6));
        } 
    } 
 
}