structure récupération MPD

This commit is contained in:
2022-11-12 23:14:18 +01:00
parent a2ca1d9761
commit 08f2675993
2 changed files with 14 additions and 4 deletions

View File

@@ -32,6 +32,7 @@ public class Graphic{
}
private AbstractGroupeFactory getPromo(){
this.agf=null;
try{
Class.forName("org.mariadb.jdbc.Driver");
try{
@@ -44,6 +45,9 @@ public class Graphic{
try{
ResultSet rs = pst.executeQuery();
try{
if(rs.first()){
Groupe promo=new GroupeNP(rs.getInt(1), rs.getString(2), rs.getInt(3), rs.getInt(4), TypeGroupe.getType(rs.getString(5)), null);
}
while(rs.next()){
System.out.println(rs.getString(1));
//valeur sentinel pour pas de groupe parent : -1
@@ -72,6 +76,9 @@ public class Graphic{
}catch(ClassNotFoundException e){
System.out.println("pilote non disponible");
}
return null;
return factory;
}
private void addSousGroupe(Groupe g){
}
}