Package artistes.modele

Examples of artistes.modele.Artiste


            String fName = "C:\\Users\\Thibaut\\Documents\\NetBeansProjects\\Tp2\\web\\resources\\listeChansons.txt";
            String thisLine;
            fis = new FileInputStream(fName);
            DataInputStream myInput = new DataInputStream(fis);
            Morceau m = null;
            Artiste a = null;
            Genre g = null;
            int counterInstrument = 0;
            while ((thisLine = myInput.readLine()) != null) {
                if (thisLine.startsWith("./")) {
                    String strar[] = thisLine.split("\\./");
View Full Code Here


        artiste = artiste.replaceAll("'", ".");
        Query q = em.createQuery("select a from Artiste a where a.nom='" + artiste + "'");
        List results = q.getResultList();
        if (!results.isEmpty()) {
            Iterator stIterator = results.iterator();
            Artiste a = (Artiste) stIterator.next();
            return a;
        } else {
            return new Artiste(artiste);
        }
    }
View Full Code Here

TOP

Related Classes of artistes.modele.Artiste

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.