Example #1
0
        //Show all information about all cars
        public DataSet showAllCarRental()
        {
            CarRentalCAD c  = new CarRentalCAD();
            DataSet      ds = c.showCarRental(this);

            return(ds);
        }
Example #2
0
        //Shearches the cars given the city and the brand
        public DataSet searchAllCarRental(String city, String brand)
        {
            CarRentalCAD c  = new CarRentalCAD();
            DataSet      ds = c.searchCarRental(city, brand);

            return(ds);
        }
Example #3
0
        //Shearch by id
        public DataSet searchIDCarRental(String idF)
        {
            CarRentalCAD c  = new CarRentalCAD();
            DataSet      ds = c.searchIDCarRental(idF);

            return(ds);
        }
Example #4
0
        //Adds a new car to the DB
        public DataSet add_CarRental()
        {
            CarRentalCAD c  = new CarRentalCAD();
            DataSet      ds = c.addCarRental(this);

            return(ds);
        }
Example #5
0
        //Updates the information stored about a car
        public DataSet update_CarRental(int i)
        {
            CarRentalCAD c  = new CarRentalCAD();
            DataSet      ds = c.updateCarRental(this, i);

            return(ds);
        }
Example #6
0
        public ArrayList searchCarRental()
        {
            ArrayList    a = new ArrayList();
            CarRentalCAD c = new CarRentalCAD();

            a = c.search_CarRental(this);
            return(a);
        }
Example #7
0
        public ArrayList showAllCarRental()
        {
            ArrayList    a = new ArrayList();
            CarRentalCAD c = new CarRentalCAD();

            a = c.showCarRental();
            return(a);
        }
Example #8
0
        public void delete_CarRental()
        {
            CarRentalCAD c = new CarRentalCAD();

            c.delete_CarRental(this);
        }
Example #9
0
        public void update_CarRental()
        {
            CarRentalCAD c = new CarRentalCAD();

            c.update_CarRental(this);
        }
Example #10
0
        public void add_CarRental()
        {
            CarRentalCAD c = new CarRentalCAD();

            c.add_CarRental(this);
        }