Examples of commit()


Examples of com.adito.jdbc.JDBCPreparedStatement.commit()

                ps.setString(7, ((ReplacementProxyWebForward) webForward).getFormType());
                ps.setString(8, ((ReplacementProxyWebForward) webForward).getFormParameters());
                ps.execute();
            }

            ps.commit();
        } catch (Exception e) {
            ps.rollback();
            throw e;
        } finally {
            ps.releasePreparedStatement();

Examples of com.alibaba.citrus.service.requestcontext.basic.impl.BasicRequestContextImpl.commit()

        BasicRequestContextImpl requestContext = new BasicRequestContextImpl(wrappedRequestContext, new Object[] {
                new MyInterceptor(1), new MyInterceptor(2), new MyInterceptor(3) });

        requestContext.prepare();
        requestContext.commit();

        assertArrayEquals(new Integer[] { 1, 2, 3 }, prepares.toArray(new Integer[0]));
        assertArrayEquals(new Integer[] { 3, 2, 1 }, commits.toArray(new Integer[0]));
    }
}

Examples of com.alibaba.citrus.service.requestcontext.session.SessionStore.commit()

            SessionStore store = (SessionStore) entry.getValue()[0];

            @SuppressWarnings("unchecked")
            Map<String, Object> storeAttrs = (Map<String, Object>) entry.getValue()[1];

            store.commit(storeAttrs, getId(), new StoreContextImpl(storeName));
        }

        // ����invalidate��clear�����ã�����ʣ���store��֪ͨ���������ǰ�����ݡ�
        if (cleared) {
            if (storeNames.length > stores.size()) {

Examples of com.alibaba.druid.pool.DruidPooledConnection.commit()

        conn.getConnection().close();
        {
            SQLException error = null;
            try {
                conn.commit();
            } catch (SQLException ex) {
                error = ex;
            }
            Assert.assertNotNull(error);
        }

Examples of com.alibaba.druid.pool.xa.JtdsXAResource.commit()

        Assert.assertFalse(xaResource.isSameRM(null));

        {
            Exception error = null;
            try {
                xaResource.commit(null, true);
            } catch (Exception ex) {
                error = ex;
            }
            Assert.assertNotNull(error);
        }

Examples of com.alu.e3.common.transaction.ITransaction.commit()

    tx.begin();
    assertNotNull (tx.getTransactionId());
    assertNotNull (txMnger.getTransactionContext().getTransactionId());
    assertEquals (txMnger.getTransactionContext().getTransactionId(), tx.getTransactionId());

    tx.commit();
    assertNotNull (tx.getTransactionId());
    assertNotNull (txMnger.getTransactionContext().getTransactionId());
    assertEquals (txMnger.getTransactionContext().getTransactionId(), tx.getTransactionId());

    tx.end();

Examples of com.aptana.interactive_console.console.ScriptConsoleHistory.commit()

    }

    public void testScriptConsoleWithMatchingStart2() throws Exception {
        ScriptConsoleHistory c = new ScriptConsoleHistory();
        c.update("aaa");
        c.commit();

        c.update("bbb");
        c.commit();

        c.setMatchStart("a");

Examples of com.aragost.javahg.merge.GraftContext.commit()

        Assert.assertNotNull(mergeConflict);
        // Mercurial 2.2 will skip empty commits, so we must resolve
        // with new content.
        writeFile("file", "XY");
        mergeConflict.markResolved();
        Changeset cs = ctx.commit();
        Assert.assertNotNull(cs);
        Assert.assertEquals(changed1.getNode(), cs.getExtra().getString("source"));
    }

}

Examples of com.arconsis.android.datarobot.manifest.AndroidManifestProcessor.ManifestBuilder.commit()

    AndroidManifestProcessor manifestParser = new AndroidManifestProcessor(openManifest());
    ManifestBuilder builder = manifestParser.change();
    for (ContentProviderData provider : data) {
      builder.addProviderIfNotExists(provider);
    }
    builder.commit();
  }

  private File openManifest() {
    String manifestFileName = env.getOptions().get("manifest");
    if (manifestFileName == null || "".equals(manifestFileName)) {

Examples of com.arjuna.ats.arjuna.AtomicAction.commit()

            if (addOutcome == AddOutcome.AR_ADDED)
            {
                System.out.println("About to complete the transaction ");
                // Try to complete the transaction as requested by the user
                if (commit)
                    actionStatus = tx.commit()// Top level commit
                else
                    actionStatus = tx.abort()// Top level rollback

                System.out.println("The status of the transaction is " + ActionStatus.stringForm(actionStatus));
            }
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.