public Usuario buscarPorLogin(String login) {
   conectar();
   Usuario temp = new Usuario();
   ResultSet rs;
   try {
     rs = comando.executeQuery("select * from usuario where login = '******'");
     while (rs.next()) {
       temp.setId(rs.getInt("id"));
       temp.setNome(rs.getString("nome"));
       temp.setLogin(rs.getString("login"));
       temp.setSenha(rs.getString("senha"));
     }
     return temp;
   } catch (SQLException e) {
     e.printStackTrace();
     return null;
   }
 }
 public List<Usuario> buscarTodos() {
   conectar();
   List<Usuario> resultados = new ArrayList<Usuario>();
   ResultSet rs;
   try {
     rs = comando.executeQuery("select * from usuario");
     while (rs.next()) {
       Usuario temp = new Usuario();
       temp.setId(rs.getInt("id"));
       temp.setNome(rs.getString("nome"));
       temp.setLogin(rs.getString("login"));
       temp.setSenha(rs.getString("senha"));
       resultados.add(temp);
     }
     return resultados;
   } catch (SQLException e) {
     e.printStackTrace();
     return null;
   }
 }