public DataSet showAllTrains() //show all the trains { TrainCAD c = new TrainCAD(); DataSet ds = c.showTrains(this); return(ds); }
public DataSet searchAllTrains(String city1, String city2) //search trains filter by origin and destination { TrainCAD c = new TrainCAD(); DataSet ds = c.searchTrains(city1, city2); return(ds); }
public DataSet searchIDTrains(String IDT) //search trains filter by id { TrainCAD c = new TrainCAD(); DataSet ds = c.searchIDTrains(IDT); return(ds); }
public DataSet add_Train() //insert a new train { TrainCAD c = new TrainCAD(); DataSet ds = c.addTrain(this); return(ds); }
public DataSet update_train(int i) //update an existing train { TrainCAD c = new TrainCAD(); DataSet ds = c.updateTrain(this, i); return(ds); }
public ArrayList showTrains() { ArrayList a = new ArrayList(); TrainCAD c = new TrainCAD(); a = c.showTrains(); return(a); }
public ArrayList search_Train() { ArrayList a = new ArrayList(); TrainCAD c = new TrainCAD(); a = c.searchTrain(this); return(a); }
public void update_Train() { TrainCAD c = new TrainCAD(); c.updateTrain(this); }
public void delete_Train() { TrainCAD c = new TrainCAD(); c.deleteTrain(this); }
public void add_Train() { TrainCAD c = new TrainCAD(); c.addTrain(this); }