Code example for ResultSet

Methods: getBoolean, getInt, getString, getTimestamp

0
    } 
 
    private static class ArtistMapper implements ParameterizedRowMapper<Artist> { 
        public Artist mapRow(ResultSet rs, int rowNum) throws SQLException {
            return new Artist( 
                    rs.getInt(1),
                    rs.getString(2),
                    rs.getString(3),
                    rs.getInt(4),
                    rs.getTimestamp(5),
                    rs.getBoolean(6));
        } 
    } 
}