Package org.openntf.domino

Examples of org.openntf.domino.ViewEntryCollection


    ArrayList<String> users = new ArrayList<String>();
    View authorView = db.getView("AllContacts");
    authorView.refresh();
    int maxAuthors = 15;
    int nAuthor = 0;
    ViewEntryCollection ec = authorView.getAllEntries();
    for (ViewEntry e : ec) {
      Vector<?> values = e.getColumnValues();
      String name = (String) values.get(7);
      // Add it a random number of times to the list
      int n = ((int) (Math.random() * maxAuthors)) + 1;
View Full Code Here


    StringBuilder sb = new StringBuilder();
    Database db = Factory.getSession().getCurrentDatabase();
    View view = db.getView("allContactsByState");
    ArrayList<String> key = new ArrayList<String>();
    key.add("CA");
    ViewEntryCollection ec = view.getAllEntriesByKey(key, true);
    for (ViewEntry entry : ec) {
      sb.append(entry.getColumnValues().get(7) + "...");
    }
    ExtLibUtil.getViewScope().put("javaTest", sb.toString());
  }
View Full Code Here

    StringBuilder sb = new StringBuilder();
    Database db = Factory.getSession().getCurrentDatabase();
    View view = db.getView("allContactsByState");
    ArrayList<String> key = new ArrayList<String>();
    key.add("CX");
    ViewEntryCollection ec = view.getAllEntriesByKey(key, true);
    sb.append("Getting values...");
    for (ViewEntry entry : ec) {
      sb.append(entry.getColumnValues().get(7) + "...");
    }
    sb.append("Done");
View Full Code Here

      ViewColumn length = btitles.createColumn(1, "Title", "Title");
      length.setSorted(true);
      timelog("View defined.");
      btitles.refresh();
      timelog("Completed view build.");
      ViewEntryCollection vec = btitles.getAllEntries();
      int count = vec.getCount();
      timelog("Found " + count + " documents in the view");
      btitles.remove();
      timelog("Removed view.");
      btitles.recycle();
      db.recycle();
View Full Code Here

      Arrays.asList(nc.getNoteIDs());
      Set setAll = new HashSet(Arrays.asList(nc.getNoteIDs()));

      View allView = db.getView("All Documents");
      ViewEntryCollection vec = allView.getAllEntries();
      ViewEntry entry = vec.getFirstEntry();
      ViewEntry next = null;
      while (entry != null) {
        next = vec.getNextEntry(entry);
        setAll.remove(entry.getNoteIDAsInt());
        // entry.recycle();
        entry = next;
      }
    }
View Full Code Here

   *
   * @see org.openntf.domino.iterators.AbstractDominoIterator#getCollection()
   */
  @Override
  public ViewEntryCollection getCollection() {
    ViewEntryCollection result = null;
    Base<?> collection = super.getCollection();
    if (collection instanceof ViewEntryCollection) {
      result = (ViewEntryCollection) collection;
    }
    return result;
View Full Code Here

  }

  @Override
  public Iterable<Edge> getEdges() {
    FastSet<Edge> result = new FastSet<Edge>();
    ViewEntryCollection vec = getEdgeView().getAllEntries();
    for (ViewEntry entry : vec) {
      result.add(getEdge(entry.getUniversalID()));
    }

    return result.unmodifiable();
View Full Code Here

  }

  @Override
  public Iterable<Vertex> getVertices() {
    FastSet<Vertex> result = new FastSet<Vertex>();
    ViewEntryCollection vec = getVertexView().getAllEntries();
    for (ViewEntry entry : vec) {
      result.add(getVertex(entry.getUniversalID()));
    }
    return result.unmodifiable();
  }
View Full Code Here

TOP

Related Classes of org.openntf.domino.ViewEntryCollection

Copyright © 2018 www.massapicom. 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.