public class GestionQuestions
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.sql.Connection |
bdd |
private java.util.ArrayList<Question> |
listeQuestions |
| Constructor and Description |
|---|
GestionQuestions(java.sql.Connection bdd) |
| Modifier and Type | Method and Description |
|---|---|
void |
createQuestion(java.lang.String intitule,
java.lang.String reponse1,
java.lang.String reponse2,
int num_reponse) |
void |
deleteQuestion(java.lang.String intitule,
java.lang.String reponse1,
java.lang.String reponse2) |
java.util.ArrayList<Question> |
getListeQuestions() |
void |
readQuestions(java.lang.String reponse1,
java.lang.String reponse2) |
void |
updateQuestion(java.lang.String oldIntitule,
java.lang.String newIntitule,
java.lang.String reponse1,
java.lang.String reponse2,
int newNum_reponse) |
private java.sql.Connection bdd
private java.util.ArrayList<Question> listeQuestions
public void readQuestions(java.lang.String reponse1,
java.lang.String reponse2)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void createQuestion(java.lang.String intitule,
java.lang.String reponse1,
java.lang.String reponse2,
int num_reponse)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void deleteQuestion(java.lang.String intitule,
java.lang.String reponse1,
java.lang.String reponse2)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void updateQuestion(java.lang.String oldIntitule,
java.lang.String newIntitule,
java.lang.String reponse1,
java.lang.String reponse2,
int newNum_reponse)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.util.ArrayList<Question> getListeQuestions()