Suppression d'une ligne dans un RowSet
Bonjour,
je récupère un rowSet dans lequel j'aimerais modifier selon ce que contient une arrayList.
Je souhaite içi supprimer de la manière suivante :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| try{
RowSet rsAnimation = editionCaracCommercialeControl.getAnimationCommAssociee(codeEnseigne, langueUtilisateur, 31) ;
int index = 0;
while(rsAnimation.next())
{
if(this.filtreEmplacementAnimComm.contains(rsAnimation.getString(2)))
{
//on doit supprimer cette ligne
rsAnimation.relative(index);
rsAnimation.deleteRow();
}
index++;
}
tableauAnimation = new Tableau(rsAnimation, false) ;
}
catch (SQLException se){
} |
Mais ca ne fonctionne pas. Je ne comprends pas vraiment à quoi sert le " relative " ... j'ai vu ca dans le tutorial mais pas moyen de l'appliquer a mon cas.
Merci.