Ejemplo 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);
        }
Ejemplo 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);
        }
Ejemplo 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);
        }
Ejemplo 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);
        }
Ejemplo 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);
        }
Ejemplo n.º 6
0
        public ArrayList search_Cruise()
        {
            ArrayList a = new ArrayList();
            CruiseCAD c = new CruiseCAD();

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

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

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

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

            c.add_Cruise(this);
        }