Examples of Commit()


Examples of org.garret.perst.Storage.commit()

    db.setRoot(db.createSet());
    for (Object obj : new XStreamFile(xstreamFile).read()) {
      ((Set) db.getRoot()).add(obj);
      db.store(obj);
    }
    db.commit();
    db.close();
  }
}

Examples of org.geoserver.catalog.impl.ModificationProxy.commit()

        // TODO: protect this original object, perhaps with another proxy
        fireModified(real, propertyNames, oldValues, newValues);

        // commit to the original object
        h.commit();

        // resolve to do a sync on the object
        // syncIdWithName(real);

        // fire the post modify event

Examples of org.geotools.data.DefaultTransaction.commit()

                SimpleFeatureStore featureStore = (SimpleFeatureStore) featureSource;

                featureStore.setTransaction(transaction);
              
                featureStore.addFeatures(collection);
                transaction.commit();

                transaction.close();
            }
            else
            {

Examples of org.geotools.data.Transaction.commit()

  @Override
  protected void doCommit(DefaultTransactionStatus status) {
    GeoToolsTransactionObject txObject = (GeoToolsTransactionObject) status.getTransaction();
    Transaction tx = txObject.getTransactionHolder().getTransaction();
    try {
      tx.commit();
    } catch (IOException e) {
         log.warn(e.getMessage(), e);
    }
  }

Examples of org.glassfish.hk2.api.DynamicConfiguration.commit()

             * from HK2's scan for services.  Then add in
             * an ACC ProcessEnvironment.
             */
            config.addUnbindFilter(BuilderHelper.createContractFilter(ProcessEnvironment.class.getName()));
           
            config.commit();
           
            config = dcs.createDynamicConfiguration();
           
            StartupContext startupContext = new ACCStartupContext();
            AbstractActiveDescriptor<?> startupContextDescriptor = BuilderHelper.createConstantDescriptor(startupContext);

Examples of org.gridkit.coherence.txlite.TxSession.commit()

    Assert.assertThat(rrA.get("A"), IsNull.nullValue());
    Assert.assertThat(rcA.get("A"), IsNull.nullValue());
    Assert.assertThat((String)cacheA.get("A"), Is.is("A"));
    Assert.assertThat((String)writeA.get("A"), Is.is("A"));

    wsession.commit();
   
    Assert.assertThat(rrA.get("A"), IsNull.nullValue());
    Assert.assertThat((String)rcA.get("A"), Is.is("A"));

    rsession.commit();

Examples of org.grouplens.lenskit.util.io.StagedWrite.commit()

                    ratings.close();
                }
            } finally {
                packer.close();
            }
            stage.commit();
        } catch (IOException ex) {
            logger.error("error packing {}: {}", outFile, ex);
            throw new TaskExecutionException("error packing " + outFile, ex);
        } finally {
            stage.close();

Examples of org.h2.engine.Session.commit()

                // if the current session is the system session
                // (which is the case if we are within a trigger)
                // then we can't update the statistics because
                // that would unlock all locked objects
                db.update(s, table);
                s.commit(true);
            }
        }
    }

    public void setTop(int top) {

Examples of org.h2.index.Index.commit()

        } else {
            // see also UndoLogRecord.commit
            ArrayList<Index> indexes = table.getIndexes();
            for (int i = 0, size = indexes.size(); i < size; i++) {
                Index index = indexes.get(i);
                index.commit(operation, row);
            }
            row.commit();
        }
    }

Examples of org.h2.result.Row.commit()

                        rows.add(entry.getRow());
                        undoLog.removeLast(false);
                    }
                    for (int i = 0, size = rows.size(); i < size; i++) {
                        Row r = rows.get(i);
                        r.commit();
                    }
                }
            }
            undoLog.clear();
        }
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.