return -1;
}
@Override
public void updateBon(Bon b) {
Connection connex;
connex = getConnection();
String select = "UPDATE `bon` SET `idFilm`=?,`dateU`=?,`type`=?,`idClientU`=?,`utilise`=? WHERE `id` = ?";
try {
PreparedStatement preStat = (PreparedStatement) connex.prepareStatement(select);
preStat.setString(1, b.getIdFilm());
preStat.setLong(2, b.getDateU());
preStat.setString(3, b.getType());
preStat.setInt(4, b.getIdClientU());
preStat.setInt(5, b.getUtilise());