Examples of commitTransaction()


Examples of org.locationtech.udig.project.internal.EditManager.commitTransaction()

        assertTrue(store.getTransaction() == Transaction.AUTO_COMMIT);
        //remove starts again
        store.removeFeatures(Filter.INCLUDE);
        assertTrue(store.getTransaction() != Transaction.AUTO_COMMIT);
        //done
        manager.commitTransaction();
        assertTrue(store.getTransaction() == Transaction.AUTO_COMMIT);
    }
   
}
View Full Code Here

Examples of org.openbp.server.persistence.PersistenceContext.commitTransaction()

    PersistenceContext pc = getProcessServer().getEngine().getPersistenceContextProvider().obtainPersistenceContext();
    pc.beginTransaction();
    try
    {
      pc.executeUpdateOrDelete("DELETE FROM " + tableName);
      pc.commitTransaction();
    }
    catch (Exception e)
    {
      // Ignore any
    }
View Full Code Here

Examples of org.openstreetmap.osmosis.pgsnapshot.common.DatabaseContext.commitTransaction()

        LOG.fine("Data load complete.");
       
        // Add all constraints and indexes.
        indexManager.completeAfterLoad();
       
        dbCtx.commitTransaction();
       
        LOG.fine("Clustering database.");
        dbCtx.getJdbcTemplate().update("CLUSTER");
       
        LOG.fine("Vacuuming database.");
View Full Code Here

Examples of org.persvr.datasource.WritableDataSource.commitTransaction()

          }
          for (Entry<TransactionValue,ChangeUpdate> changeEntry : changes.entrySet()) {
            PersistableObject.commitPut(changeEntry,this);
          }
          for (WritableDataSource source : dataSourcesAffected)
            source.commitTransaction();
        }
        // now make all the changes committed in the persisted objects so will
        // be available to other threads
        // TODO: Needs to be timestamp based in order be atomic
        synchronized(commitsInProcess){
View Full Code Here

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

                subscription.setItem(correctItem);
            }
            succeeded = true;
        } finally {
            if (succeeded) {
                dataAccessObject.commitTransaction();
            } else {
                dataAccessObject.rollbackTransaction();
            }
        }
        return subscriptions;
View Full Code Here

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

            dataAccessObject.beginTransaction();
            item = dataAccessObject.getItem(itemId);
            succeeded = true;
        } finally {
            if (succeeded) {
                dataAccessObject.commitTransaction();
            } else {
                dataAccessObject.rollbackTransaction();
            }
        }
        return item;
View Full Code Here

Examples of org.wso2.carbon.registry.core.Registry.commitTransaction()

            confirmationBean.setData(data.toString());
            success = true;

        } finally {
            if (success) {
                registry.commitTransaction();
            }
            else {
                registry.rollbackTransaction();
            }
        }
View Full Code Here

Examples of org.wso2.carbon.registry.core.Registry.commitTransaction()

                    }
                }

            }
            if (!transactionStarted) {
                registry.commitTransaction();
            }
        } catch (Exception e) {
            registry.rollbackTransaction();
            throw e;
        }
View Full Code Here

Examples of org.wso2.carbon.registry.core.Registry.commitTransaction()

                    registry.put(RegistryResources.SecurityManagement.PRIMARY_KEYSTORE_PHANTOM_RESOURCE,
                                 primResource);
                }
            }
            if (!transactionStarted) {
                registry.commitTransaction();
            }
        } catch (Exception e) {
            registry.rollbackTransaction();
            throw e;
        }
View Full Code Here

Examples of org.wso2.carbon.registry.core.Registry.commitTransaction()

                if (!registry.resourceExists(resourceLoc)) {
                    registry.put(resourceLoc, policyResourceMap.get(resourceLoc));
                }
            }
            if (!transactionStarted) {
                registry.commitTransaction();
            }
        } catch (Exception e) {
            String errorMsg = "Error when storing the policy resource in registry for tenant : " +
                              tenantId;
            log.error(errorMsg, e);
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.