Code example for ResultSet

Methods: getBytes, getInt, getString, getTimestamp

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