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

Examples of sg.edu.nus.iss.se07.bc.TransactionReport


    /**
     * 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

                productValidator = new ProductValidator(dataObject);
                boolean valid = productValidator.validateProduct();
                if (valid) {
                        try {
                                productManager = new ProductManager();
                                ErrorList errorList = productManager.create(dataObject);
                                for (int i = 0; i < errorList.length(); i++) {
                                        Logger.getLogger(ProductTester.class.getName()).log(Level.INFO, errorList.getErrorMessage(i));
                                }
                        } catch (AppException ex) {
                                Logger.getLogger(ProductTester.class.getName()).log(Level.SEVERE, null, ex);
                        }
                } else {
                        ErrorList errorList = productValidator.getErrors();
                        if (errorList.hasError()) {
                                for (int i = 0; i < errorList.length(); i++) {
                                        Logger.getLogger(ProductTester.class.getName()).log(Level.SEVERE, errorList.getErrorMessage(i));
                                }
                        }
                }

                productManager = null;
View Full Code Here

                memberValidator = new MemberValidator(dataObject);
                boolean valid = memberValidator.validateMember();
                if (valid) {
                        try {
                                memberManager = new MemberManager();
                                ErrorList errorList = memberManager.create(dataObject);
                                for (int i = 0; i < errorList.length(); i++) {
                                        Logger.getLogger(MemberTester.class.getName()).log(Level.INFO, errorList.getErrorMessage(i));
                                }
                        } catch (AppException ex) {
                                Logger.getLogger(MemberTester.class.getName()).log(Level.SEVERE, null, ex);
                        }
                } else {
                        ErrorList errorList = memberValidator.getErrors();
                        if (errorList.hasError()) {
                                for (int i = 0; i < errorList.length(); i++) {
                                        Logger.getLogger(MemberTester.class.getName()).log(Level.SEVERE, errorList.getErrorMessage(i));
                                }
                        }
                }

                memberManager = null;
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

TOP

Related Classes of sg.edu.nus.iss.se07.bc.TransactionReport

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.