示例#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);
        }
示例#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);
        }
示例#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);
        }
示例#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);
        }
示例#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);
        }
示例#6
0
 public void show_timetable()
 {
     m_cc = new FlightCAD();
     m_cc.show_timetable(this);
 }
示例#7
0
 public void search_flight()
 {
     m_cc = new FlightCAD();
     m_cc.search_flight(this);
 }
示例#8
0
 public void update_flight()
 {
     m_cc = new FlightCAD();
     m_cc.update_flight(this);
 }
示例#9
0
 public void delete_flight()
 {
     m_cc = new FlightCAD();
     m_cc.delete_flight(this);
 }
示例#10
0
 public void add_flight()
 {
     m_cc = new FlightCAD();
     m_cc.add_flight(this);
 }