public String[] getFieldType(String table, String field) {
        
        if(table.isEmpty() || field.isEmpty()) {
            System.out.println("ERRO: String vazia!");
            return new String[]{};
        }
        
        DBconnection dbcon;
        dbcon = new DBconnection();
        ResultSet res;
        String sql;
        try{
               sql = "SELECT DATA_TYPE FROM ALL_TAB_COLUMNS WHERE lower(TABLE_NAME) = '" +
                       table.toLowerCase() +"' AND lower(COLUMN_NAME) = '"+field.toLowerCase()+"'";
               System.out.println(sql);
               res = dbcon.query(sql);
               
                if(res.next()) {
                   switch(res.getString(1).toLowerCase()) {
                       case "number":
                           return new String[]{"<", ">", "<=", ">=", "=", "!="};
                       case "varchar2":
                           return new String[]{"igual à", "contém"};
                       case "date":
                           return new String[]{"antes de (DD/MM/AAAA)", "depois de (DD/MM/AAAA)", 
                               "na data (DD/MM/AAAA)", "dia", "mes", "ano"};
                   }
                }
            } catch(SQLException e) {
                switch(e.getErrorCode()){
                    case 911: // Erro de sintaxe! q feio ...
                    {
                        System.out.println("Erro de sintaxe do comando sql. Obs.: Talvez você tenha se esquecido de tirar o ; do final. :P ");
                        break;
                    }
                    default:
                    {
                        System.out.println("ERROR CODE: "+e.getErrorCode());
                        break;
                    }
                }
            }
            
        try {
            dbcon.disconect();
        } catch (SQLException e) {
            System.out.println("ERROR CODE: "+e.getErrorCode());
            System.out.println("Problema para desconectar");
        }
        
        return new String[]{};
    }