Package sg.edu.nus.iss.se07.common.exceptions

Examples of sg.edu.nus.iss.se07.common.exceptions.DataAccessException


                ErrorList errorList = new ErrorList();
                return errorList;
        }

        public ErrorList delete(String productID) throws AppException {
                ErrorList errorList = new ErrorList();
                return errorList;
        }
View Full Code Here


         * @param product
         * @return
         * @throws AppException
         */
        public ErrorList create(Product product) throws AppException {
                ErrorList errorList = new ErrorList();

                ProductSet productSet = null;
                try {
                        productSet = list(product.getProductID());
                } catch (AppException ex) {
                        errorList.addError("[ProductManager::create]", ex.getMessage());
                }

                if (productSet != null) {
                        if (productSet.length() != 0) {
                                //means product code is exist, do not allow duplicate product code
                                errorList.addError(MEMBER_DUPLICATE_ENTRY);
                                return errorList;
                        }
                }

                try {
View Full Code Here

                return errorList;
        }

        public ErrorList update(Product newCategory, Product oldCategory) {
                ErrorList errorList = new ErrorList();
                return errorList;
        }
View Full Code Here

                ErrorList errorList = new ErrorList();
                return errorList;
        }

        public ErrorList delete(Product product) throws AppException {
                ErrorList errorList = new ErrorList();
                return errorList;
        }
View Full Code Here

    /**
     * Creates instance of HTMLFormValidator with no parameters.
     *
     */
    public FieldsValidator() {
        errors = new ErrorList();
    }
View Full Code Here

                ErrorList errorList = new ErrorList();
                return errorList;
        }

        public ErrorList delete(String productID) throws AppException {
                ErrorList errorList = new ErrorList();
                return errorList;
        }
View Full Code Here

         * @param member
         * @return
         * @throws AppException
         */
        public ErrorList create(Member member) throws AppException {
                ErrorList errorList = new ErrorList();

                MemberSet memberSet = null;
                try {
                        memberSet = list(member.getMemberID());
                } catch (AppException ex) {
                        errorList.addError("[MemberManager::create]", ex.getMessage());
                }

                if (memberSet != null) {
                        if (memberSet.length() != 0) {
                                //means member code is exist, do not allow duplicate member code
                                errorList.addError(MEMBER_DUPLICATE_ENTRY);
                                return errorList;
                        }
                }

                try {
View Full Code Here

                return errorList;
        }

        public ErrorList update(Member newCategory, Member oldCategory) {
                ErrorList errorList = new ErrorList();
                return errorList;
        }
View Full Code Here

                ErrorList errorList = new ErrorList();
                return errorList;
        }

        public ErrorList delete(Member member) throws AppException {
                ErrorList errorList = new ErrorList();
                return errorList;
        }
View Full Code Here

                ErrorList errorList = new ErrorList();
                return errorList;
        }

        public ErrorList delete(String memberID) throws AppException {
                ErrorList errorList = new ErrorList();
                return errorList;
        }
View Full Code Here

TOP

Related Classes of sg.edu.nus.iss.se07.common.exceptions.DataAccessException

Copyright © 2018 www.massapicom. 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.