Code example for ResultSet

Methods: getBoolean, getInt, next

0
     * Iterator 
     */ 
    public static Professor next(ResultSet rs) throws Exception {
        Professor t = null;
 
        if (rs.next()) {
            t = new Professor(
                    new Usuario(rs.getInt("idusuario")),
                    new Departamento(rs.getInt("iddepartamento")),
                    rs.getBoolean("coordenador"));
        } 
        return t;
    } 
    /* 
     * Robot + XML 
     */ 
 
    class SAXParserUsuario extends DefaultHandler {
 
        private StringBuffer buffer;
        private Professor prof;