public static void atualizar(TipoImpl tipo) throws Exception { CachedRowSetImpl rowSet = DbConnect.postgresqlConnect(); String tabela = tipo.getNome(); String campos[] = {"descricao"}; String valores[] = new String[1]; String criterio = String.format("%s.codigo = %d", tipo.getNome(), tipo.getCodigo()); valores[0] = tipo.getDescricao(); DbCrud.update(rowSet, tabela, campos, valores, criterio); } // fim do método atualizar