structure récupération MPD
This commit is contained in:
@@ -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){
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user