예제 #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);
        }
예제 #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);
        }
예제 #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);
        }
예제 #4
0
        //Adds a new Cruise to the DB
        public DataSet add_Cruise()
        {
            CruiseCAD c  = new CruiseCAD();
            DataSet   ds = c.addCruise(this);

            return(ds);
        }
예제 #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);
        }
예제 #6
0
        public ArrayList search_Cruise()
        {
            ArrayList a = new ArrayList();
            CruiseCAD c = new CruiseCAD();

            a = c.searchCruises(this);
            return(a);
        }
예제 #7
0
        public ArrayList show_All()
        {
            ArrayList a = new ArrayList();
            CruiseCAD c = new CruiseCAD();

            a = c.show_All_Cruises();
            return(a);
        }
예제 #8
0
        public void update_Cruise()
        {
            CruiseCAD c = new CruiseCAD();

            c.update_Cruise(this);
        }
예제 #9
0
        public void delete_Cruise()
        {
            CruiseCAD c = new CruiseCAD();

            c.delete_Cruise(this);
        }
예제 #10
0
        public void add_Cruise()
        {
            CruiseCAD c = new CruiseCAD();

            c.add_Cruise(this);
        }