Example #1
0
        public DataSet showAllTrains() //show all the trains
        {
            TrainCAD c  = new TrainCAD();
            DataSet  ds = c.showTrains(this);

            return(ds);
        }
Example #2
0
        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);
        }
Example #3
0
        public DataSet searchIDTrains(String IDT) //search trains filter by id
        {
            TrainCAD c  = new TrainCAD();
            DataSet  ds = c.searchIDTrains(IDT);

            return(ds);
        }
Example #4
0
        public DataSet add_Train() //insert a new train
        {
            TrainCAD c  = new TrainCAD();
            DataSet  ds = c.addTrain(this);

            return(ds);
        }
Example #5
0
        public DataSet update_train(int i) //update an existing train
        {
            TrainCAD c  = new TrainCAD();
            DataSet  ds = c.updateTrain(this, i);

            return(ds);
        }
Example #6
0
        public ArrayList showTrains()
        {
            ArrayList a = new ArrayList();
            TrainCAD  c = new TrainCAD();

            a = c.showTrains();
            return(a);
        }
Example #7
0
        public ArrayList search_Train()
        {
            ArrayList a = new ArrayList();
            TrainCAD  c = new TrainCAD();

            a = c.searchTrain(this);
            return(a);
        }
Example #8
0
        public void update_Train()
        {
            TrainCAD c = new TrainCAD();

            c.updateTrain(this);
        }
Example #9
0
        public void delete_Train()
        {
            TrainCAD c = new TrainCAD();

            c.deleteTrain(this);
        }
Example #10
0
        public void add_Train()
        {
            TrainCAD c = new TrainCAD();

            c.addTrain(this);
        }