Package sg.edu.nus.iss.se07.bc

Examples of sg.edu.nus.iss.se07.bc.CategoryManager.deleteCategory()


                                if (dataObject.getProducts().size() > 0) {
                                        //this category still got dependency with product
                                        throw new AppException("Products exist. Cannot delete this Category.\nPlease remove all product first.", "[AppController::removeCategory]", null);
                                }
                        }
                        success = dataObjectManager.deleteCategory(id);
                        if (success) {
                                categoryDataSet.remove(id);

                                //Remove vendors file
                                File f = null;
View Full Code Here


                boolean success = true;

                CategoryManager dataObjectManager = new CategoryManager();

                try {
                        success = dataObjectManager.deleteCategory(id);
                } catch (AppException ex) {
                        Logger.getLogger(AppController.class.getName()).log(Level.SEVERE, ex.getMessage(), ex);
                        throw ex;
                }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.