// 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); }
// Searches for a single flight given its id public DataSet searchIDFlights(String idF) { FlightCAD c = new FlightCAD(); DataSet ds = c.searchIDFlights(idF); return(ds); }
// 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); }
// 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); }
// 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); }
public void show_timetable() { m_cc = new FlightCAD(); m_cc.show_timetable(this); }
public void search_flight() { m_cc = new FlightCAD(); m_cc.search_flight(this); }
public void update_flight() { m_cc = new FlightCAD(); m_cc.update_flight(this); }
public void delete_flight() { m_cc = new FlightCAD(); m_cc.delete_flight(this); }
public void add_flight() { m_cc = new FlightCAD(); m_cc.add_flight(this); }