Examples of commit()


Examples of com.hp.hpl.jena.rdf.model.Model.commit()

        JenaGraph jenaGraph = new JenaGraph(graph);
        Model model = ModelFactory.createModelForGraph(jenaGraph);
        model.read(bais, ontologyURI);

        if (model.supportsTransactions()) {
            model.commit();
        }
    }

    private void deleteModel(String ontologyURI) {
        tcManager.deleteTripleCollection(new UriRef(ontologyURI));

Examples of com.hp.hpl.jena.sparql.core.Transactional.commit()

        {
            String filename = iter.next();
            try {
                transactional.begin(ReadWrite.WRITE) ;
                execOneFile(filename, graphStore) ;
                transactional.commit() ;
            } finally { transactional.end() ; }
        }
       
        for ( Iterator<String> iter = super.getPositional().iterator() ; iter.hasNext() ; )
        {

Examples of com.hp.hpl.jena.tdb.transaction.DatasetGraphTxn.commit()

                                            + numberGenerator.nextInt()),
                                    Node.createURI("http://openjena.org/"
                                            + numberGenerator.nextInt()),
                                    Node.createURI("http://openjena.org/"
                                            + numberGenerator.nextInt())));
                            txnGraph.commit();
                            txnGraph.end();
                            nbQuadruplesAdded.incrementAndGet();
                        } else {
                            DatasetGraphTxn txnGraph =
                                    storeConnection.begin(ReadWrite.READ);

Examples of com.hp.mwtests.performance.products.TxWrapper.commit()

            tx.add(DummyResource.create());
            tx.add(DummyResource.create());

            if (isParameterDefined("-commit"))
                tx.commit()// Top level commit
            else
                tx.abort()// Top level rollback

        }
        catch (Exception e)

Examples of com.intellij.facet.ModifiableFacetModel.commit()

                ModifiableFacetModel modifiableFacetModel =
                        FacetManager.getInstance(fixture.getModule()).createModifiableModel();
                OsmorcFacet facet = new OsmorcFacet(fixture.getModule());
                facet.getConfiguration().setManifestGenerationMode(ManifestGenerationMode.Manually);
                modifiableFacetModel.addFacet(facet);
                modifiableFacetModel.commit();
            }
        });


    }

Examples of com.intellij.openapi.module.ModifiableModuleModel.commit()

                if(srcFolder != null) {
                    entry.addSourceFolder(srcFolder, false);
                }

                mrm.commit();
                moduleModel.commit();
            }
        });


        return Arrays.asList(myModule);

Examples of com.intellij.openapi.roots.CompilerModuleExtension.commit()

  @Override
  public void moduleCreated(@NotNull Module module) {
    final CompilerModuleExtension model = (CompilerModuleExtension)CompilerModuleExtension.getInstance(module).getModifiableModel(true);
    model.setCompilerOutputPath(model.getCompilerOutputUrl());
    model.inheritCompilerOutputPath(false);
    model.commit();
  }
}

Examples of com.intellij.openapi.roots.ModifiableRootModel.commit()

            //add the library to the module and commit the change
            //
            final ModuleRootManager modRootMgr = ModuleRootManager.getInstance(module);
            final ModifiableRootModel moduleRootModel = modRootMgr.getModifiableModel();
            moduleRootModel.addLibraryEntry(lib);
            moduleRootModel.commit();
        }
    }
}

Examples of com.j256.ormlite.support.DatabaseConnection.commit()

    DatabaseConnection conn = createMock(DatabaseConnection.class);
    expect(conn.isAutoCommitSupported()).andReturn(false);
    Savepoint savePoint = createMock(Savepoint.class);
    expect(savePoint.getSavepointName()).andReturn("name").anyTimes();
    expect(conn.setSavePoint(isA(String.class))).andReturn(savePoint);
    conn.commit(savePoint);
    expect(connectionSource.getDatabaseType()).andReturn(databaseType);
    expect(connectionSource.getReadWriteConnection()).andReturn(conn);
    expect(connectionSource.saveSpecialConnection(conn)).andReturn(true);
    connectionSource.clearSpecialConnection(conn);
    connectionSource.releaseConnection(conn);

Examples of com.jbidwatcher.util.db.Database.commit()

*/
public class Upgrader {
  public static void upgrade() throws SQLException, IllegalAccessException, InstantiationException, ClassNotFoundException {
    Database db = new Database(null);
    if(dbMake(db)) {
      db.commit();
      db.shutdown();
      db = dbMigrate();
    }
    db.commit();
    db.shutdown();
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.