Exemplo n.º 1
0
        //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);
        }
Exemplo n.º 2
0
        //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);
        }
Exemplo n.º 3
0
        //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);
        }
Exemplo n.º 4
0
        // 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);
        }
Exemplo n.º 5
0
        //Adds a new hotel to the DB
        public DataSet add_hotel()
        {
            HotelCAD c  = new HotelCAD();
            DataSet  ds = c.addHotel(this);

            return(ds);
        }