public static void main(String[] args) {
        BeanDBAccessCSV csv = new BeanDBAccessCSV();
        
        try {
            csv.Initialize();
            csv.Connect();
            Statement stmt = csv.NewStatement();

            ResultSet rs = stmt.executeQuery("SELECT * FROM 'prices.csv'");

            for (int j = 1; j <= rs.getMetaData().getColumnCount(); j++) {
                System.out.print(rs.getMetaData().getColumnName(j) + "\t");
            }
            System.out.println();

            while (rs.next())
            {
                for(int j=1; j <= rs.getMetaData().getColumnCount(); j++){
                       System.out.print(rs.getObject(j)+ "\t");
                }
                System.out.println();
            }

            // close the objects
            rs.close();
            stmt.close();
            csv.Disconnect();
        }
        catch (Exception e) {
            e.printStackTrace();
        }
        
        BeanDBAccessMySQL  mysql = new BeanDBAccessMySQL();
        
        mysql.Initialize();
        mysql.Connect();
        
        Statement pStmt;
        ResultSet result;
        try {
            pStmt = mysql.NewStatement();
            result = pStmt.executeQuery("SELECT * FROM pieces");
            
            while (result.next()) {
                System.out.println("Identifiant : " + result.getInt("id_piece"));
                System.out.println("Libellé : " + result.getString("libelle"));
                System.out.println("Nom de la pièce : " + result.getString("nom"));
                System.out.println("Dimensions : " + result.getString("dimensions"));
                System.out.println("Prix de revient : " + result.getFloat("prix_revient"));
                System.out.println("Temps de fabrication : " + result.getInt("tmp_fabric"));
                System.out.println("----------");
            }
        } catch (SQLException ex) {
            System.out.println("Un erreur a été rencontrée :\n" + ex);
        }
    }