Examples of begin()


Examples of org.jboss.test.jca.adapter.TestConnection.begin()

   {
      TestConnection c = (TestConnection)cm.allocateConnection(mcf, cri);
      assertNotNull(c);
      try
      {
         c.begin();
         assertEquals(TestManagedConnection.LOCAL_TRANSACTION, c.getLocalState());
         c.commit();
         assertEquals(TestManagedConnection.LOCAL_COMMITTED, c.getLocalState());
      }
      finally
View Full Code Here

Examples of org.jboss.tm.usertx.interfaces.UserTransactionSession.begin()

         else if( method.getName().equals("begin") )
         {
            // Begin a new transaction
            Integer timeout = (Integer) args[0];
            UserTransactionSession session = UserTransactionSessionImpl.getInstance();
            value = session.begin(timeout.intValue());
         }
         else if( method.getName().equals("destroy"))
         {
            /* We do nothing as the tx will timeout and the tx map is shared
            across all sessions as we have no association with the txs
View Full Code Here

Examples of org.jooq.TransactionProvider.begin()

        DefaultTransactionContext ctx = new DefaultTransactionContext(configuration().derive());
        TransactionProvider provider = ctx.configuration().transactionProvider();

        try {
            provider.begin(ctx);
            result = transactional.run(ctx.configuration());
            provider.commit(ctx);
        }
        catch (Exception cause) {
            try {
View Full Code Here

Examples of org.jquantlib.math.matrixutilities.Array.begin()

    public Array interpolationErrors(final Array not_used) {
      final Array results = new Array(vx.size());
      int ix = vx.begin();
      int iy = vy.begin();
      int iw = itsCoeffs.weights_.begin();
      int ir = results.begin();
      while (ix < vx.end()) {
        final double x = vx.get(ix);
        final double y = vy.get(iy);
        final double w = itsCoeffs.weights_.get(iw);
        results.set(ir, (op(x) - y) * Math.sqrt(w));
 
View Full Code Here

Examples of org.jruby.util.ByteList.begin()

    @JRubyMethod(name = "get_string")
    public IRubyObject get_string(ThreadContext context, IRubyObject offArg) {
        long off = getOffset(offArg);
        int len = (int) getMemoryIO().indexOf(off, (byte) 0);
        ByteList bl = new ByteList(len);
        getMemoryIO().get(off, bl.unsafeBytes(), bl.begin(), len);
        bl.length(len);
        return context.getRuntime().newString(bl);
    }
    @JRubyMethod(name = "get_string")
    public IRubyObject get_string(ThreadContext context, IRubyObject offArg, IRubyObject lenArg) {
View Full Code Here

Examples of org.keycloak.models.KeycloakTransaction.begin()

     */
    public static void runJobInTransaction(KeycloakSessionFactory factory, KeycloakSessionTask task) {
        KeycloakSession session = factory.create();
        KeycloakTransaction tx = session.getTransaction();
        try {
            tx.begin();
            task.run(session);

            if (tx.isActive()) {
                if (tx.getRollbackOnly()) {
                    tx.rollback();
View Full Code Here

Examples of org.modeshape.jcr.txn.Transactions.begin()

    private <V> V runInTransaction( Callable<V> operation ) {
        // Start a transaction ...
        Transactions txns = sessionContext.getTransactions();
        try {
            Transaction txn = txns.begin();
            try {
                V result = operation.call();
                txn.commit();
                return result;
            } catch (Exception e) {
View Full Code Here

Examples of org.mule.api.transaction.Transaction.begin()

    }

    public Transaction beginTransaction(MuleContext muleContext) throws TransactionException
    {
        Transaction tx = new SpringTransaction(muleContext);
        tx.begin();
        return tx;
    }

    public boolean isTransacted()
    {
View Full Code Here

Examples of org.mule.transaction.XaTransaction.begin()

        tm.setTransactionTimeout(TRANSACTION_TIMEOUT_SECONDS);

        XaTransaction muleTx = new XaTransaction(muleContext);
        assertFalse(muleTx.isBegun());
        assertEquals(Status.STATUS_NO_TRANSACTION, muleTx.getStatus());
        muleTx.begin();

        assertTrue(muleTx.isBegun());

        muleTx.commit();
View Full Code Here

Examples of org.objectweb.speedo.workingset.api.TransactionItf.begin()

      throw new XAException(msg);
    }
    try {
      tm.getTransaction().registerSynchronization(xac.pm);
      if (!tx.isActive()) {
        tx.begin();
      }
      xac.synchroRegistred = true;
    } catch (RollbackException e) {
      //The JDO container cannot be registered then the transaction
      // must be rolledback
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.