예제 #1
0
        /*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;
        }
예제 #2
0
        /*******************************
         * 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;
        }
예제 #3
0
        /*
         * 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;
        }