Exemplo n.º 1
0
        //Shows all the information about all the cruises from the DB
        public DataSet showAllCruises() //show all cruises
        {
            CruiseCAD c  = new CruiseCAD();
            DataSet   ds = c.showCruises(this);

            return(ds);
        }
Exemplo n.º 2
0
        //Show the information about the crouises that match with the region and city provided
        public DataSet searchAllCruises(String region, String city)
        {
            CruiseCAD c  = new CruiseCAD();
            DataSet   ds = c.searchCruises(region, city);

            return(ds);
        }
Exemplo n.º 3
0
        //Shearch information about a cruise given its id
        public DataSet searchIDCruises(String idc)
        {
            CruiseCAD c  = new CruiseCAD();
            DataSet   ds = c.searchIDCruises(idc);

            return(ds);
        }
Exemplo n.º 4
0
        //Adds a new Cruise to the DB
        public DataSet add_Cruise()
        {
            CruiseCAD c  = new CruiseCAD();
            DataSet   ds = c.addCruise(this);

            return(ds);
        }
Exemplo n.º 5
0
        //Updates the information about a cruise from the DB provided its id
        public DataSet update_Cruise(int i)
        {
            CruiseCAD c  = new CruiseCAD();
            DataSet   ds = c.updateCruise(this, i);

            return(ds);
        }
Exemplo n.º 6
0
        public ArrayList search_Cruise()
        {
            ArrayList a = new ArrayList();
            CruiseCAD c = new CruiseCAD();

            a = c.searchCruises(this);
            return(a);
        }
Exemplo n.º 7
0
        public ArrayList show_All()
        {
            ArrayList a = new ArrayList();
            CruiseCAD c = new CruiseCAD();

            a = c.show_All_Cruises();
            return(a);
        }
Exemplo n.º 8
0
        public void update_Cruise()
        {
            CruiseCAD c = new CruiseCAD();

            c.update_Cruise(this);
        }
Exemplo n.º 9
0
        public void delete_Cruise()
        {
            CruiseCAD c = new CruiseCAD();

            c.delete_Cruise(this);
        }
Exemplo n.º 10
0
        public void add_Cruise()
        {
            CruiseCAD c = new CruiseCAD();

            c.add_Cruise(this);
        }