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

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


                deleteTargets(registry, associations);
                associations = registry.getAssociations(profilePath,
                        IdentityRegistryResources.ASSOCIATION_USER_OAUTH_APP);
                deleteTargets(registry, associations);
                if (!transactionStarted) {
                    registry.commitTransaction();
                }
            } catch (Exception e) {
                if (!transactionStarted) {
                    registry.rollbackTransaction();
                }
View Full Code Here


            try {
                registry.beginTransaction();
                registry.put(gadgetsPath, defaultGadgetCollection);

                transferDirectoryContentToRegistry(rootDirectory, registry, rootPath, tenantId);
                registry.commitTransaction();
            } catch (Exception e) {
                registry.rollbackTransaction();
                log.error(e.getMessage(), e);
            }
View Full Code Here

        try {
            registry.beginTransaction();
            registry.put(REGISTRY_GADGET_STORAGE_PATH, defaultGadgetCollection);

            transferDirectoryContentToRegistry(rootDirectory, registry, rootPath, tenantId);
            registry.commitTransaction();
        } catch (Exception e) {
            registry.rollbackTransaction();
            log.error(e.getMessage(), e);
        }
View Full Code Here

        try {
            registry.beginTransaction();
            registry.put(REGISTRY_GADGET_STORAGE_PATH, defaultGadgetCollection);

            transferDirectoryContentToRegistry(rootDirectory, registry, rootPath, tenantId);
            registry.commitTransaction();
        } catch (Exception e) {
            registry.rollbackTransaction();
            log.error(e.getMessage(), e);
        }
View Full Code Here

            try {
                registry.beginTransaction();
                registry.put(SYSTEM_GADGETS_PATH, defaultGadgetCollection);

                transferDirectoryContentToRegistry(rootDirectory, registry, rootPath);
                registry.commitTransaction();
            } catch (Exception e) {
                registry.rollbackTransaction();
                log.error(e);
            }
View Full Code Here

                            "This is initialy empty and gets filled as advanced search is " +
                            "executed from the web UI.";
                    advancedQueryCollection.setDescription(advaceDesc);
                    systemRegistry.put("/system/queries/advanced", advancedQueryCollection);
                    if (!inTransaction) {
                        systemRegistry.commitTransaction();
                    }
                } catch (Exception e) {
                    String msg = "Unable to setup system collections used by the Carbon server.";
                    log.error(msg, e);
                    systemRegistry.rollbackTransaction();
View Full Code Here

                ruleInvoker.updateRules();
            }
            updateSuccess = true;
        } finally {
            if (updateSuccess) {
                systemRegistry.commitTransaction();
            } else {
                systemRegistry.rollbackTransaction();
            }
        }
    }
View Full Code Here

                ruleInvoker.updateRules();
            }
            updateSuccess = true;
        } finally {
            if (updateSuccess) {
                systemRegistry.commitTransaction();
            } else {
                systemRegistry.rollbackTransaction();
            }
        }
    }
View Full Code Here

            if (tag != null) {
                // apply the tag
                registry.applyTag(path, tag);
            }
            // commit
            registry.commitTransaction();

        } catch (RegistryException e) {
            String errorMsg = "Failed to persist the given resource in registry path " + path;
            log.error(errorMsg, e);
            // rollback
View Full Code Here

        UserRegistry registry = initRegistry();

        try {
            registry.beginTransaction();
            registry.move(sourcePath, targetPath);
            registry.commitTransaction();

        } catch (RegistryException e) {
            String errorMsg = "Could not move the resource at "+ sourcePath + " to " + targetPath;
            log.error(errorMsg, e);
            // rollback
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.