ajout .gitignore + modif makefile et BDatabase.java
This commit is contained in:
parent
c40366e4e2
commit
14ebaedeeb
10
.gitignore
vendored
Normal file
10
.gitignore
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
# Compiled class file
|
||||
*.class
|
||||
|
||||
# Package Files #
|
||||
*.war
|
||||
*.nar
|
||||
*.ear
|
||||
*.zip
|
||||
*.tar.gz
|
||||
*.rar*
|
2
Makefile
2
Makefile
@ -1,5 +1,5 @@
|
||||
# Commandes
|
||||
JAVAC = javac
|
||||
JAVAC = javac -encoding UTF-8
|
||||
JAVA = java
|
||||
JAR = $(JAVA) -jar
|
||||
JAVADOC = javadoc
|
||||
|
@ -251,4 +251,16 @@ public class BDatabase {
|
||||
public String toString() {
|
||||
return this.db_host + "\n" + this.db_name + "\n" + this.db_user + "\n";
|
||||
}
|
||||
/***
|
||||
* Recupere le nombre d'etudiant par groupe
|
||||
* @return
|
||||
*/
|
||||
public ArrayList<NBGroupe> getNbrEtuGroupes() {
|
||||
ArrayList<NBGroupe> NGroupe = new ArrayList<>();
|
||||
ArrayList<String> groupeNB = this.fetchAll("SELECT COUNT(DISTINCT groupe) FROM fi_eleves;");
|
||||
for(int i = 0; i <= NGroupe.Goupe(groupeNB); i++) {
|
||||
ArrayList<String> grpnb = this.fetchAll("Select count(id) from fi_eleves where groupe="+i+";");
|
||||
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user