//Shows all the information about all the hotels from the DB public DataSet showAllHotels() { HotelCAD c = new HotelCAD(); DataSet ds = c.showHotels(this); return(ds); }
//Shearches the information of the hotel of the provided id public DataSet searchIDHotels(String idH) { HotelCAD c = new HotelCAD(); DataSet ds = c.searchIDHotels(idH); return(ds); }
//Updates the information stored about a hotel public DataSet update_hotel(int i) { HotelCAD c = new HotelCAD(); DataSet ds = c.updateHotel(this, i); return(ds); }
// TO-DO : Figure out how to implement this using disconnected db /* public ArrayList search_hotel() * { * ArrayList a = new ArrayList(); * HotelCAD c = new HotelCAD(); * a = c.searchHotel(this); * return a; * }*/ //Looks for all the hotels from an especifc city public DataSet searchAllHotels(String city) { HotelCAD c = new HotelCAD(); DataSet ds = c.searchHotels(city); return(ds); }
//Adds a new hotel to the DB public DataSet add_hotel() { HotelCAD c = new HotelCAD(); DataSet ds = c.addHotel(this); return(ds); }