Package org.wso2.carbon.billing.core.jdbc

Examples of org.wso2.carbon.billing.core.jdbc.DataAccessObject.addItem()


            dataAccessObject.beginTransaction();
            for (MultitenancyPackage multitenancyPackage : multitenancyPackages) {
                // check the package existence in the database; If not available, insert it
                int itemId = dataAccessObject.getItemIdWithName(multitenancyPackage.getName());
                if (itemId == DataAccessObject.INVALID) {
                    itemId = dataAccessObject.addItem(multitenancyPackage);
                }
                multitenancyPackage.setId(itemId);
                multitenancyPackagesMap.put(itemId, multitenancyPackage);
                // and add all the sub items too
                for (Item subItem : multitenancyPackage.getChildren()) {
View Full Code Here


                multitenancyPackagesMap.put(itemId, multitenancyPackage);
                // and add all the sub items too
                for (Item subItem : multitenancyPackage.getChildren()) {
                    int subItemId = dataAccessObject.getItemId(subItem.getName(), itemId);
                    if (subItemId == DataAccessObject.INVALID) {
                        subItemId = dataAccessObject.addItem(subItem);
                    }
                    subItem.setId(subItemId);
                }
            }
            succeeded = true;
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.