bonsoir a tous,voici mon problème que je traîne depuis pas mal de temps. J'utilise le model MVC pour l'implémentation d'une application de getion d'Etat Civil,il se trouve que je voudrais arrivé à exécuter une requête préparée de MAJ dont la clause where est l’élément sélectionné d'un JList.Je ne sais pas comment arriver à créer un getter et un setter qui puisse me le ramené: voici ma classe Utilisateur contenant les getters,setters.


package com.anso.dpicol.model;

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
import javax.swing.JList;
 
/**
 *
 * @author Cool
 */
public class Utilisateur {
 
 
 
private String nom;
private String mdp;
private int drtAn;
private int drtJs;
private int drtAm;
private int drtAdmin;
 
 
public String getNom(){
    return this.nom;
}
 
public String getMdp(){
    return this.mdp;
}
 
public int getDrtAn(){
    return this.drtAn;
}
public int getDrtJs(){
    return this.drtJs;
}
 
public int getDrtAm(){
    return this.drtAm;
}
 
public int getDrtAdmin(){
    return this.drtAdmin;
}
 
 
    public void setNom(String nom) {
        this.nom = nom;
    }
 
    public void setMdp(String mdp) {
        this.mdp = mdp;
    }
 
    public void setDrtAn(int drt1) {
        this.drtAn = drt1;
    }
 
     public void setDrtJs(int drt2) {
        this.drtJs = drt2;
    }
 
      public void setDrtAm(int drt3) {
        this.drtAm = drt3;
    }
 
       public void setDrtAdmin(int drt4) {
        this.drtAdmin = drt4;
    }
 
 
}