Examples of commit()


Examples of org.openrdf.sail.NotifyingSailConnection.commit()

            TestListener listener1 = new TestListener(), listener2 = new TestListener();
            NotifyingSailConnection sc = ((NotifyingSail) sail).getConnection();
            try {
                sc.begin();
                sc.clear();
                sc.commit();
                sc.begin();

                // Add a listener and add statements
                sc.addConnectionListener(listener1);
                sc.addStatement(uriA, uriB, uriC, uriA);

Examples of org.openrdf.sail.SailConnection.commit()

    SailConnection conn = sail.getConnection();
    try {
      conn.begin();
      conn.removeStatements(null, null, null);
      conn.clearNamespaces();
      conn.commit();
    }
    finally {
      conn.close();
    }
    return sail;

Examples of org.openrdf.sail.inferencer.InferencerConnection.commit()

    InferencerConnection con = getConnection();
    try {
      con.begin();
      ForwardChainingRDFSInferencerConnection.addAxiomStatements(con);
      con.commit();
    }
    finally {
      con.close();
    }
  }

Examples of org.opensolaris.opengrok.jdbc.ConnectionResource.commit()

                        connectionManager.getConnectionResource();
                try {
                    try (Statement stmt = conn.createStatement()) {
                        initDB(stmt);
                    }
                    conn.commit();
                    // Success! Break out of the loop.
                    return;
                } catch (SQLException sqle) {
                    handleSQLException(sqle, i);
                } finally {

Examples of org.openstreetmap.osmosis.pgsimple.common.DatabaseContext.commit()

       
        // Add all constraints and indexes.
        indexManager.completeAfterLoad();
       
        LOG.fine("Committing changes.");
        dbCtx.commit();
       
        LOG.fine("Vacuuming database.");
        dbCtx.setAutoCommit(true);
        dbCtx.executeStatement("VACUUM ANALYZE");
       

Examples of org.openxdas.client.XDasRecord.commit()

        if (o instanceof XDasRecord) {
            try {
                xdasRecord = (XDasRecord) o;
                if (xdasRecord.getXDasSession() == null)
                    xdasRecord.setXDasSession(m_xdasSession);
                xdasRecord.commit();
            } catch (XDasException e) {
                String errorMsg = "Error appending to OpenXDAS."
                        + "XDas Error: " + e.getStatus() + ", Minor Code: "
                        + e.getMinorStatus();
                LogLog.error(errorMsg, e);

Examples of org.orm.PersistentTransaction.commit()

            orm.Tmp_palabrasemantica lormPalabrasemanticas = orm.Tmp_palabrasemanticaDAO.createTmp_palabrasemantica();
            lormPalabrasemanticas.setPs_palabra(word);
            lormPalabrasemanticas.setPs_valor(valor);
            // Initialize the properties of the persistent object here
            orm.Tmp_palabrasemanticaDAO.save(lormPalabrasemanticas);
            t.commit();

            respuestas = 1;
          }
          catch (Exception e) {
            t.rollback();

Examples of org.osgi.service.condpermadmin.ConditionalPermissionUpdate.commit()

      String pInfo = pInfos[i];
      ConditionalPermissionInfo cpi = cpa.newConditionalPermissionInfo(pInfo);
      piList.add(cpi);
    }
   
    cpu.commit();
  }
 
}

Examples of org.osgi.service.deploymentadmin.spi.ResourceProcessor.commit()

            }
        }
        for (ListIterator i = m_processors.listIterator(m_processors.size()); i.hasPrevious();) {
            ResourceProcessor processor = (ResourceProcessor) i.previous();
            try {
                processor.commit();
            }
            catch (Exception e) {
                // We cannot throw an exception, see OSGi spec.
                session.getLog().log(LogService.LOG_ERROR, "Committing resource processor '" + processor + "' failed", e);
            }

Examples of org.ozoneDB.ExternalTransaction.commit()

            else
                container.storeDOM( null, doc );
            System.out.println( "DOM store: store time: " + (System.currentTimeMillis() - start) + " ms" );
           
            start = System.currentTimeMillis();
            tx.commit();
            System.out.println( "DOM store: commit time: " + (System.currentTimeMillis() - start) + " ms" );
        } catch (Exception e) {
            tx.rollback();
            throw e;
        }
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.