//Shows all the information about all the buses from the DB public DataSet showAllBuses() { BusCAD c = new BusCAD(); DataSet ds = c.showBuses(this); return(ds); }
//Looks for all the hotels from an especifc city public DataSet searchAllBuses(String city1, String city2) { BusCAD c = new BusCAD(); DataSet ds = c.searchBuses(city1, city2); return(ds); }
//Shearches the information of the bus of the provided id public DataSet searchIDBuses(String IDB) { BusCAD c = new BusCAD(); DataSet ds = c.searchIDBuses(IDB); return(ds); }
//Adds a new bus tho the DB public DataSet add_Bus() { BusCAD c = new BusCAD(); DataSet ds = c.addBus(this); return(ds); }
//Updates the information stored about a bus public DataSet update_Bus(int i) { BusCAD c = new BusCAD(); DataSet ds = c.updateBus(this, i); return(ds); }
public ArrayList showBuses() { ArrayList a = new ArrayList(); BusCAD c = new BusCAD(); a = c.showBuses(); return(a); }
public ArrayList search_Bus() { ArrayList a = new ArrayList(); BusCAD c = new BusCAD(); a = c.searchBus(this); return(a); }
public void update_Bus() { BusCAD c = new BusCAD(); c.updateBus(this); }
public void delete_Bus() { BusCAD c = new BusCAD(); c.deleteBus(this); }
public void add_Bus() { BusCAD c = new BusCAD(); c.addBus(this); }