//Show all information about all cars public DataSet showAllCarRental() { CarRentalCAD c = new CarRentalCAD(); DataSet ds = c.showCarRental(this); return(ds); }
//Shearches the cars given the city and the brand public DataSet searchAllCarRental(String city, String brand) { CarRentalCAD c = new CarRentalCAD(); DataSet ds = c.searchCarRental(city, brand); return(ds); }
//Shearch by id public DataSet searchIDCarRental(String idF) { CarRentalCAD c = new CarRentalCAD(); DataSet ds = c.searchIDCarRental(idF); return(ds); }
//Adds a new car to the DB public DataSet add_CarRental() { CarRentalCAD c = new CarRentalCAD(); DataSet ds = c.addCarRental(this); return(ds); }
//Updates the information stored about a car public DataSet update_CarRental(int i) { CarRentalCAD c = new CarRentalCAD(); DataSet ds = c.updateCarRental(this, i); return(ds); }
public ArrayList searchCarRental() { ArrayList a = new ArrayList(); CarRentalCAD c = new CarRentalCAD(); a = c.search_CarRental(this); return(a); }
public ArrayList showAllCarRental() { ArrayList a = new ArrayList(); CarRentalCAD c = new CarRentalCAD(); a = c.showCarRental(); return(a); }
public void delete_CarRental() { CarRentalCAD c = new CarRentalCAD(); c.delete_CarRental(this); }
public void update_CarRental() { CarRentalCAD c = new CarRentalCAD(); c.update_CarRental(this); }
public void add_CarRental() { CarRentalCAD c = new CarRentalCAD(); c.add_CarRental(this); }