/*DETAILs :Add a new continent in the table * PARAMETERS :Name of the continent. * RETURN :TRUE if the continent has been added, FALSE orthewise * */ public bool addContinent(String name) { bool added = false; ContinentCAD conti = new ContinentCAD(); added = conti.addContinentCAD(name); return added; }
/******************************* * Publics Methods of class * ****************************/ /*DETAILS :Print all the continents * RETURN :A list of continents * */ public ArrayList printAllContinent() { ArrayList lista = new ArrayList(); ContinentCAD conti = new ContinentCAD(); lista = conti.printAllContinentCAD(); return lista; }
/* * DETAILS :Delete a continent. * PARAMETERS :The id of the continent * RETURN :TRUE if the continent is deleted, FALSE orthewise * */ public bool deleteContinent(int contID) { bool added = false; ContinentCAD conti = new ContinentCAD(); added = conti.deleteContinentCAD(contID); return added; }