Package genres.modele

Examples of genres.modele.Genre


            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("\\./");
                    String musique[] = strar[1].split(";");
View Full Code Here


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

TOP

Related Classes of genres.modele.Genre

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.