Examples of rollBack()


Examples of org.jooq.impl.DefaultConnectionProvider.rollback()

                c.commit();
            }
            catch (RuntimeException e) {

                // Any exception will cause a rollback
                c.rollback();
                System.err.println(e.getMessage());

                // Eat exceptions in silent mode.
                if (!silent)
                    throw e;
View Full Code Here

Examples of org.jquantlib.methods.finitedifferences.StandardFiniteDifferenceModel.rollback()

        fdVanillaEngine.initializeBoundaryConditions();

        final StandardFiniteDifferenceModel model = new StandardFiniteDifferenceModel(fdVanillaEngine.finiteDifferenceOperator, fdVanillaEngine.bcS);

        prices = new SampledCurve(fdVanillaEngine.intrinsicValues);
        prices.setValues( model.rollback(prices.values(), fdVanillaEngine.getResidualTime(), 0, fdVanillaEngine.timeSteps) );

        final OneAssetOption.ResultsImpl r = (OneAssetOption.ResultsImpl)results;
        r.value = prices.valueAtCenter();
        final Option.GreeksImpl greeks = r.greeks();
        greeks.delta = prices.firstDerivativeAtCenter();
View Full Code Here

Examples of org.jquantlib.methods.finitedifferences.StandardSystemFiniteDifferenceModel.rollback()

        conditionSet.push_back(stepCondition);
        conditionSet.push_back(new NullCondition<Array>());

        final StandardSystemFiniteDifferenceModel model = new StandardSystemFiniteDifferenceModel(operatorSet, bcSet);
        arraySet = model.rollback(arraySet, getResidualTime(),0.0, timeSteps, conditionSet);

        //TODO: code review: Verify use clone()
        prices.setValues(arraySet.get(0).clone());
        controlPrices.setValues(arraySet.get(1).clone());
View Full Code Here

Examples of org.jquantlib.pricingengines.hybrid.DiscretizedConvertible.rollback()

        final /*@Real*/ double creditSpread = a.creditSpread.currentLink().value();
        final Lattice lattice = new TsiveriotisFernandesLattice<T>(tree, riskFreeRate, maturity, timeSteps_, creditSpread, v, q);
        final DiscretizedConvertible convertible = new DiscretizedConvertible((ConvertibleBondOption.Arguments)a, bs, new TimeGrid(maturity, timeSteps_));

        convertible.initialize(lattice, maturity);
        convertible.rollback(0.0);
        r.value = convertible.presentValue();
    }

}
View Full Code Here

Examples of org.jtester.module.database.environment.DBEnvironment.rollback()

    return new DeleteFixture(environment, table);
  }

  public boolean rollback() throws SQLException {
    DBEnvironment environment = workingEnvironment();
    environment.rollback();
    environment.getConnection().setAutoCommit(false);
    return true;
  }

  public boolean commit() throws SQLException {
View Full Code Here

Examples of org.jugile.proto2.domain.Domain.rollback()

    Domain d = Domain.getDomain();
    createDomain(d);
    verifyDomain(d); // before commit, all is in uow
    d.commit();
    verifyDomain(d); // after commit, all is now in dd
    d.rollback();
  }
 
  public static void createDomain(Domain d) {
    Person p1 = d.createPerson();
    p1.setName("Jukka");
View Full Code Here

Examples of org.jugile.util.DBConnection.rollback()

        // copy fields to copy
        o.copy(bi(),this);
      }
      c.commit();
    } catch (Exception e) {
      try { c.rollback(); fail(e); } catch (Exception e2) { fail(e2); }
    } finally {
      try { c.free(); } catch (Exception e2) { fail(e2); }
    }
  }
 
View Full Code Here

Examples of org.jvnet.hk2.config.Transaction.rollback()

            Application app = newBean.createProxy();
            Application app_w = t.enroll(app);
            setInitialAppAttributes(app_w, deployParams, appProps, context);
            context.addTransientAppMetaData(Application.APPLICATION, app_w);
        } catch(TransactionFailure e) {
            t.rollback();
            throw e;
        } catch (Exception e) {
            t.rollback();
            throw new TransactionFailure(e.getMessage(), e);
        }
View Full Code Here

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

            tx.begin();
            task.run(session);

            if (tx.isActive()) {
                if (tx.getRollbackOnly()) {
                    tx.rollback();
                } else {
                    tx.commit();
                }
            }
        } catch (RuntimeException re) {
View Full Code Here

Examples of org.lab41.dendrite.metagraph.DendriteGraph.rollback()

                  } else if (type.equals("double")) {
                      cls = FullDouble.class;
                  } else if (type.equals("geocoordinate")) {
                      cls = Geoshape.class;
                  } else {
                      graph.rollback();
                      response.put("status", "error");
                      response.put("msg", "unknown type '" + type + "'");
                      return new ResponseEntity<>(response, HttpStatus.NOT_FOUND);
                  }
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.