Examples of Prepare()


Examples of eu.scape_project.planning.bean.PrepareChangesForPersist.prepare()

    /**
     * Method responsible for persisting the changes.
     */
    public void save(Plan plan, User user) {
        PrepareChangesForPersist prepChanges = new PrepareChangesForPersist(user.getUsername());
        prepChanges.prepare(plan);

        planManager.saveForPlanSettings(plan.getPlanProperties(), plan.getAlternativesDefinition());
    }
   
    /**
 
View Full Code Here

Examples of gc.solr.publish.DocBuilder.prepare()

      }
      info.Url_Metadata = sMetadataUrl;
    }
    info.Xml_Metadata = resourceXml.xml;
   
    builder.prepare(context, xmlTypes, doc, info);
    if (!this.approvedOnly) {
      builder.setField(doc,"gpt.doc.approvalstatus_s",resource.approvalstatus);
    }
        if (collections!=null) {
          for (String shortName: collections.getShortNames()) {
View Full Code Here

Examples of io.lumify.core.model.longRunningProcess.LongRunningProcessRunner.prepare()

        }

        int threadCount = Integer.parseInt(config.get(Configuration.LONG_RUNNING_PROCESS_RUNNER_THREAD_COUNT, "4"));

        final LongRunningProcessRunner longRunningProcessRunner = InjectHelper.getInstance(LongRunningProcessRunner.class);
        longRunningProcessRunner.prepare(config.toMap());
        final WorkQueueRepository workQueueRepository = InjectHelper.getInstance(WorkQueueRepository.class);

        for (int i = 0; i < threadCount; i++) {
            Thread t = new Thread(new Runnable() {
                @Override
View Full Code Here

Examples of it.unimi.dsi.mg4j.search.visitor.CounterCollectionVisitor.prepare()

    // assertEquals( 3, indexIterator.frequency() );
    assertEquals( 3, setupVisitor.frequency[ 0 ] );

    assertEquals( 1, indexIterator.nextDocument() );
    counterCollectionVisitor.prepare();
    indexIterator.accept( counterCollectionVisitor );
    assertEquals( 1, setupVisitor.count[ 0 ] );
    assertEquals( 2, indexIterator.nextDocument() );
    counterCollectionVisitor.prepare();
    indexIterator.accept( counterCollectionVisitor );
View Full Code Here

Examples of it.unimi.dsi.mg4j.search.visitor.CounterSetupVisitor.prepare()

    indexIterator.nextDocument();

    termVisitor.prepare();
    indexIterator.accept( termVisitor );
    setupVisitor.prepare();
    indexIterator.accept( setupVisitor );

    // assertEquals( 3, indexIterator.frequency() );
    assertEquals( 3, setupVisitor.frequency[ 0 ] );
View Full Code Here

Examples of it.unimi.dsi.mg4j.search.visitor.TermCollectionVisitor.prepare()

    DocumentIterator indexIterator = query.accept( documentIteratorBuilderVisitor );

    indexIterator.nextDocument();

    termVisitor.prepare();
    indexIterator.accept( termVisitor );
    setupVisitor.prepare();
    indexIterator.accept( setupVisitor );

    // assertEquals( 3, indexIterator.frequency() );
View Full Code Here

Examples of javax.resource.spi.XATerminator.prepare()

        final Xid xid = new XidImple(new Uid());
        final Transaction t = SubordinationManager.getTransactionImporter().importTransaction(xid);
        final TestSynchronization sync = new TestSynchronization();
        t.registerSynchronization(sync);
        final XATerminator xaTerminator = SubordinationManager.getXATerminator();
        assertEquals(XAResource.XA_RDONLY, xaTerminator.prepare(xid));
        // note that unlike the above test we don't call commit - the XA_RDONLY means its finished, per XA semantics.
        assertTrue(sync.isBeforeCompletionDone());
        assertTrue(sync.isAfterCompletionDone());
        assertEquals(javax.transaction.Status.STATUS_COMMITTED, t.getStatus());
    }
View Full Code Here

Examples of javax.transaction.xa.XAResource.prepare()

        try {
          xaResource = test.getConnectionStrategy().getXAConnection().getXAResource();
           
    xaResource.end(xid, XAResource.TMSUCCESS);
           
            if (!test.exceptionExpected() && xaResource.prepare(xid) == XAResource.XA_OK) {
              commit = true;
            }
            delistSuccessful = true;
        } catch (Exception e) {
          exception = true;
View Full Code Here

Examples of ke.go.moh.oec.mpi.match.FingerprintMatch.prepare()

        List<FingerprintMatch> fSearchList = null;
        if (searchTerms.getFingerprintMatchList() != null) {
            fSearchList = new ArrayList<FingerprintMatch>();
            for (FingerprintMatch fm : searchTerms.getFingerprintMatchList()) {
                FingerprintMatch f = fm.clone();
                f.prepare();
                fSearchList.add(f);
            }
        }
        /*
         * Loop through that portion of the person match array that was
View Full Code Here

Examples of lib.PatPeter.SQLibrary.Database.prepare()

  private boolean prepareQueries() {
    synchronized (dbLock) {
      final Database db = (Database) this.db;
      assert db != null;
      try {
        writeQuery = db.prepare("REPLACE INTO " + TABLE_NAME + " (name, type, value, update_guid) VALUES (?, ?, ?, ?)");
       
        deleteQuery = db.prepare("DELETE FROM " + TABLE_NAME + " WHERE name = ?");
       
        monitorQuery = db.prepare("SELECT " + SELECT_ORDER + " FROM " + TABLE_NAME + " WHERE rowid > ? AND update_guid != ?");
        monitorCleanUpQuery = db.prepare("DELETE FROM " + TABLE_NAME + " WHERE value IS NULL AND rowid < ?");
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.