Esempio n. 1
0
        // Gives all the information about all the flights hosted in the data base
        public DataSet showAllFlights()
        {
            FlightCAD c  = new FlightCAD();
            DataSet   ds = c.showFlights(this);

            return(ds);
        }
Esempio n. 2
0
        // Searches for a single flight given its id
        public DataSet searchIDFlights(String idF)
        {
            FlightCAD c  = new FlightCAD();
            DataSet   ds = c.searchIDFlights(idF);

            return(ds);
        }
Esempio n. 3
0
        // It shows all the information about the flights which concern the two cities passed by parameter
        public DataSet searchAllFlights(String city1, String city2)
        {
            FlightCAD c  = new FlightCAD();
            DataSet   ds = c.searchFlights(city1, city2);

            return(ds);
        }
Esempio n. 4
0
        // Updates the information of an existing entitie of class Flight by calling its respective CAD
        public DataSet update_Flight(int i)
        {
            FlightCAD c  = new FlightCAD();
            DataSet   ds = c.updateFlight(this, i);

            return(ds);
        }
Esempio n. 5
0
        // Adds a new entitie of class Flight by calling its respective CAD
        public DataSet add_Flight()
        {
            FlightCAD c  = new FlightCAD();
            DataSet   ds = c.addFlight(this);

            return(ds);
        }
Esempio n. 6
0
 public void show_timetable()
 {
     m_cc = new FlightCAD();
     m_cc.show_timetable(this);
 }
Esempio n. 7
0
 public void search_flight()
 {
     m_cc = new FlightCAD();
     m_cc.search_flight(this);
 }
Esempio n. 8
0
 public void update_flight()
 {
     m_cc = new FlightCAD();
     m_cc.update_flight(this);
 }
Esempio n. 9
0
 public void delete_flight()
 {
     m_cc = new FlightCAD();
     m_cc.delete_flight(this);
 }
Esempio n. 10
0
 public void add_flight()
 {
     m_cc = new FlightCAD();
     m_cc.add_flight(this);
 }