Examples of find()


Examples of org.olat.core.commons.persistence.DB.find()

    slct.append("rset.olatResource=? ");
    slct.append("and rset.olatResourceDetail=? ");
    slct.append("and rset.repositoryRef=? ");
    if (identity != null) {
      slct.append("and rset.identity.key=? ");
      return db.find(slct.toString(), new Object[] { olatRes, olatResDet, repRef, identity.getKey() }, new Type[] { Hibernate.LONG, Hibernate.STRING,
          Hibernate.LONG, Hibernate.LONG });
    } else {
      return db.find(slct.toString(), new Object[] { olatRes, olatResDet, repRef }, new Type[] { Hibernate.LONG, Hibernate.STRING,
          Hibernate.LONG });
    }
View Full Code Here

Examples of org.olat.core.gui.control.dragdrop.Draggable.find()

      if (di != null) {
        String dropid = ureq.getParameter("v");
        List accDrags = di.getAccepted();
        for (Iterator it_accdrags = accDrags.iterator(); it_accdrags.hasNext();) {
          Draggable dr = (Draggable) it_accdrags.next();
          DragSource ds = dr.find(dropid);
          if (ds != null) {
            // found!
            fireEvent(ureq, new DropEvent(ds, null));
            return;
          }
View Full Code Here

Examples of org.openxri.resolve.Cache.find()

        oCache.stuff(
            (XRIAuthority) AuthorityPath.buildAuthorityPath("@!a!c!woo"), oDummy);
        assertTrue("Cache size incorrect", oCache.getNumNodes() == 7);

        Cache.CachedValue oVal =
            oCache.find(
                (XRIAuthority) AuthorityPath.buildAuthorityPath("@!a!c!woo"),
                false);
        assertTrue("Cached value not found", oVal != null);

        oVal =
View Full Code Here

Examples of org.pathways.openciss.shared.Match.find()

    //for (int i=0; i<personalIdentifiers.length; i++) {
      //System.out.println(personalIdentifiers[i]);
    //}
    // find matches for this client with these identifiers
    Match match = new Match();
    BigInteger[] matchResults = match.find(personalIdentifiers);
   
    // create JSON response of matching client ids
    ArrayNode matchedClientIDs = mapper.createArrayNode();
    System.out.println("matchResults are: " );
    for (int i=0; i<matchResults.length; i++) {
View Full Code Here

Examples of org.pdf4j.saxon.sort.IntToIntHashMap.find()

        int[] a1 = arg1.expand();
        int[] a2 = arg2.expand();
        IntToIntMap map = new IntToIntHashMap(a1.length, 0.5);
            // allow plenty of free space, it's better for lookups (though worse for iteration)
        for (int i=0; i<a1.length; i++) {
            if (map.find(a1[i])) {
                // no action: duplicate
            } else {
                map.put(a1[i], (i>a2.length-1 ? -1 : a2[i]));
            }
        }
View Full Code Here

Examples of org.pdf4j.saxon.sort.IntToIntMap.find()

        int[] a1 = arg1.expand();
        int[] a2 = arg2.expand();
        IntToIntMap map = new IntToIntHashMap(a1.length, 0.5);
            // allow plenty of free space, it's better for lookups (though worse for iteration)
        for (int i=0; i<a1.length; i++) {
            if (map.find(a1[i])) {
                // no action: duplicate
            } else {
                map.put(a1[i], (i>a2.length-1 ? -1 : a2[i]));
            }
        }
View Full Code Here

Examples of org.rabinfingerprint.scanner.StringFinder.StringMatcher.find()

      final String str = IOUtils.readEntireFile(file);
      final StringMatcher sm = scanner.matcher(str);
      LineNumberIndex index = null;
     
      // find matching strings
      while (sm.find()) {
        if (index == null) index = new LineNumberIndex(str);
        final int off = sm.getStart();
        final int lineOffset = index.getLineNumber(off);
        final String line = index.getLine(off);
        final StringMatch match = new StringMatch(file, line, lineOffset, off);
View Full Code Here

Examples of org.restlet.resource.Finder.find()

        log.info("Looking for a wadl resource");
        for (Restlet next = getNext(); next != null;) {
            if (next instanceof Finder) {
                Finder f = (Finder) next;
                ServerResource sr = f.find(request, response);
                if (sr instanceof WadlServerResource) {
                    wadl = (WadlServerResource) sr;
                }
                break;
                // next = ((Filter)next).getNext();
View Full Code Here

Examples of org.rhq.enterprise.server.plugins.drift.mongodb.dao.ChangeSetDAO.find()

        // use the subject argument.
        DriftChangeSetSummary actualSummary = driftServer.saveChangeSet(null, resourceId, changeSetZip);

        // verify that the change set was persisted
        ChangeSetDAO changeSetDAO = new ChangeSetDAO(morphia, connection, "rhqtest");
        List<MongoDBChangeSet> changeSets = changeSetDAO.find().asList();

        assertEquals(changeSets.size(), 1, "Expected to find one change set in the database.");
        MongoDBChangeSet actual = changeSets.get(0);

        MongoDBChangeSet expected = new MongoDBChangeSet();
View Full Code Here

Examples of org.rstudio.core.client.dom.WindowEx.find()

     
      // if this is an incremental search then reset the selection first
      if (incremental)
         contentWindow.removeSelection();
     
      contentWindow.find(term, false, !forwards, true, false);
   }
  
   private boolean isFindSupported()
   {
      return BrowseCap.INSTANCE.hasWindowFind();
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.