ResultSet res = null;
try {
smt = connection.prepareStatement(GET_ALL_FICHEPAIE_FACTURE);
res = smt.executeQuery();
while (res.next()) {
FichePaiementFacture fichePaiementFacture = new FichePaiementFacture(res.getInt(1));
Date datePaieFacture = new Date(res.getDate(2).getTime());
fichePaiementFacture.setDatePaieFacture(datePaieFacture);
fichePaiementFacture.setLibellePaieFacture(res.getString(3));
fichePaiementFacture.setMontantPaieFacture(res.getBigDecimal(4));
ChargeVoiture chargeVoiture = new ChargeVoiture(res.getInt(5));
chargeVoiture.setLibelle(res.getString(6));
fichePaiementFacture.setChargeVoiture(chargeVoiture);
listeFichePaiementFacture.add(fichePaiementFacture);
}
} finally {
try {