Examples of prepare()


Examples of com.sun.jini.qa.harness.QAConfig.prepare()

                                 tmpl),
           Lease.ANY,
           new MarshalledObject(tmpl));
      QAConfig c = QAConfig.getConfig();
      if (c.getConfiguration() instanceof com.sun.jini.qa.harness.QAConfiguration) {
    er = (EventRegistration) c.prepare("test.outriggerEventRegistrationPreparer", er);
      }
      Lease l = er.getLease();
      if (c.getConfiguration() instanceof com.sun.jini.qa.harness.QAConfiguration) {
    l = (Lease) c.prepare("test.outriggerLeasePreparer", l);
      }
View Full Code Here

Examples of com.sun.sgs.service.TransactionParticipant.prepare()

    detail = detailMap.get(participant.getTypeName());
    startTime = System.currentTimeMillis();
      }
      try {
    if (iter.hasNext() || disablePrepareAndCommitOpt) {
        boolean readOnly = participant.prepare(this);
        if (detail != null) {
      detail.setPrepared(System.currentTimeMillis() -
             startTime, readOnly);
        }
        if (readOnly) {
View Full Code Here

Examples of com.taobao.metamorphosis.server.transaction.Transaction.prepare()


    @Override
    public int prepareTransaction(final SessionContext context, final TransactionId xid) throws Exception {
        final Transaction transaction = this.getTransaction(context, xid);
        return transaction.prepare();
    }


    @Override
    public void commitTransaction(final SessionContext context, final TransactionId xid, final boolean onePhase)
View Full Code Here

Examples of com.trolltech.qt.sql.QSqlQuery.prepare()

    query.exec("create temporary table guidList (guid text)");
    query.clear();
    query.exec("delete from guidList");
    query.clear();
    query.prepare("Select guid from words where word like :word and weight>=:weight");
    insert.prepare("insert into guidList (guid) values (:guid)");
    for (int i=0; i<wordList.size(); i++) {
      query.bindValue(":word", wordList.get(i)+"%");
      query.bindValue(":weight", Global.getRecognitionWeight());
      if (!query.exec()) {
        Global.logger.log(Global.logger.LOW, query.lastError().toString());
View Full Code Here

Examples of com.volantis.mcs.dom2theme.impl.optimizer.PropertyClearerCheckerImpl.prepare()

        final PropertyClearerCheckerImpl checker =
            new PropertyClearerCheckerImpl(detailsSet);

        // begin an element
        checker.prepare(parentValues, TargetEntity.ELEMENT);
        return checker;
    }
}
View Full Code Here

Examples of com.volantis.mcs.interaction.impl.validation.Prepare4Validation.prepare()

        Path path2Wilma = modelFactory.parsePath("/contacts/1/address");
        Proxy wilmaAddress = proxy.getProxy(path2Wilma);

        // Build up a mapping from the model object to the proxies.
        Prepare4Validation prepare = new Prepare4Validation();
        prepare.prepare(proxy);

        proxy.validate();
    }
}
View Full Code Here

Examples of com.xuggle.xuggler.TestAudioSamplesGenerator.prepare()

    IAudioSamples samples = IAudioSamples.make(sampleCount, channelCount);

    // create the tone generator

    TestAudioSamplesGenerator generator = new TestAudioSamplesGenerator();
    generator.prepare(channelCount, sampleRate);

    // let's make some noise!

    int totalSamples = 0;
    while (totalSamples < sampleRate * totalSeconds)
 
View Full Code Here

Examples of cx.fbn.nevernote.sql.driver.NSqlQuery.prepare()

  }
  // Check if a notebook exists
  public boolean exists(long id) {
        NSqlQuery query = new NSqlQuery(db.getConnection());
        logger.log(logger.EXTREME, "Checking if shared notebook " +id +" exists");
         boolean check = query.prepare("Select id from sharednotebook where id=:id");
         query.bindValue(":id", id);
    check = query.exec();
    if (!check) {
      logger.log(logger.MEDIUM, "SharedNotebook Table exists check failed.");
      logger.log(logger.MEDIUM, query.lastError().toString());
View Full Code Here

Examples of de.flapdoodle.embed.mongo.MongodStarter.prepare()

  @Before
  public void beforeEach() throws Exception {

    MongodStarter runtime = MongodStarter.getDefaultInstance();
    mongodExecutable = runtime.prepare(new MongodConfig(Version.V2_2_1, 12345, Network.localhostIsIPv6()));
    mongodProcess = mongodExecutable.start();
    Mongo mongo = new Mongo("localhost", 12345);
    db = mongo.getDB(DATABASE_NAME);

    // Create collections
View Full Code Here

Examples of de.kumpelblase2.remoteentities.persistence.ISingleEntitySerializer.prepare()

  public boolean save()
  {
    if(this.getManager().getSerializer() instanceof ISingleEntitySerializer)
    {
      ISingleEntitySerializer serializer = (ISingleEntitySerializer)this.getManager().getSerializer();
      serializer.save(serializer.prepare(this));
      return true;
    }

    return false;
  }
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.