@Override
	public boolean update(Chambre x) 
	{
		Statement stm = null;
		try 
		{
			String req = "UPDATE chambre +SET datedebut = \""+x.getDateDebut()+"\""+
							",datefin = \""+x.getDateFin()+"\""+
                                                        ",titre = \""+x.getTitre()+"\""+
                                                        ",description = \""+x.getDescription()+"\""+
                                                        ",prix = "+x.getPrix()+
							",capacite = "+x.getCapacite()+
                                                        ",numerodechambre = \""+x.getNumeroDeChambre()+"\""+
                                                        ",image = \""+x.getImage()+"\""+
                                                        ",ville = \""+x.getVille()+"\""+
                                                        ",adresse = \""+x.getAdresse()+"\""+
                                                        ",hotelierid = "+x.getHotelierId()+
							" WHERE chambreid = "+x.getChambreId()+"";		
                        
			if (cnx.createStatement().executeUpdate(req)>0)
			{
				return true;
			}
		}
		catch (SQLException exp)
		{
		}
		finally
		{
			if (stm!=null)
			try {
				stm.close();
			} catch (SQLException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}			
		}
		return false;
	}