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

Examples of sg.edu.nus.iss.se07.common.Tuple2


                                String catCode = currDataObjectSet.get(i).getItem1().getValue();
                                String catName = currDataObjectSet.get(i).getItem2().getValue();
                                if (!categoryCode.equalsIgnoreCase(catCode)) {
                                        NameValue<String> nmCategoryCode = new NameValue<String>("CategoryCode", catCode);
                                        NameValue<String> nmCategoryName = new NameValue<String>("CategoryName", catName);
                                        Tuple2<NameValue<String>, NameValue<String>> dataObject = new Tuple2(nmCategoryCode, nmCategoryName);
                                        newDataObjectSet.add(dataObject);
                                }

                        }
View Full Code Here


                                        storekeeperPassword = newStoreKeeper.getStorekeeperPassword();
                                }

                                NameValue<String> nmStoreKeeperName = new NameValue<String>("StoreKeeperName", storekeeperName);
                                NameValue<String> nmStoreKeeperPassword = new NameValue<String>("StoreKeeperPassword", storekeeperPassword);
                                Tuple2<NameValue<String>, NameValue<String>> dataObject = new Tuple2(nmStoreKeeperName, nmStoreKeeperPassword);
                                newDataObjectSet.add(dataObject);
                        }


                        try {
View Full Code Here

                                String catCode = currDataObjectSet.get(i).getItem1().getValue();
                                String catName = currDataObjectSet.get(i).getItem2().getValue();
                                if (!storekeeperName.equalsIgnoreCase(catCode)) {
                                        NameValue<String> nmStoreKeeperName = new NameValue<String>("StoreKeeperName", catCode);
                                        NameValue<String> nmStoreKeeperPassword = new NameValue<String>("StoreKeeperPassword", catName);
                                        Tuple2<NameValue<String>, NameValue<String>> dataObject = new Tuple2(nmStoreKeeperName, nmStoreKeeperPassword);
                                        newDataObjectSet.add(dataObject);
                                }

                        }
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

                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

TOP

Related Classes of sg.edu.nus.iss.se07.common.Tuple2

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.