Code example for ResultSet

Methods: getBoolean, getInt, getString, getTimestamp

0
                musicFolder.isEnabled(), musicFolder.getChanged(), musicFolder.getId());
    } 
 
    private static class MusicFolderRowMapper implements ParameterizedRowMapper<MusicFolder> { 
        public MusicFolder mapRow(ResultSet rs, int rowNum) throws SQLException {
            return new MusicFolder(rs.getInt(1), new File(rs.getString(2)), rs.getString(3), rs.getBoolean(4), rs.getTimestamp(5));
        } 
    } 
 
}