Package lotus.domino

Examples of lotus.domino.Document.recycle()


      // doSomething
    } finally {
      try {
        threads.recycle();
        firstDoc.recycle();
        secondDoc.recycle();
        firstDate.recycle();
        secondDate.recycle();
      } catch (NotesException e) {
        // doSomething
      }
View Full Code Here


      // doSomething
    } finally {
      try {
        threads.recycle();
        firstDoc.recycle();
        secondDoc.recycle();
        firstDate.recycle();
        secondDate.recycle();
      } catch (NotesException e) {
        // doSomething
      }
View Full Code Here

      // doSomething
    } finally {
      try {
        threads.recycle();
        firstDoc.recycle();
        secondDoc.recycle();
        firstDate.recycle();
        secondDate.recycle();
      } catch (NotesException e) {
        // doSomething
      }
View Full Code Here

        //          if (i % 10000 == 0) {
        //            System.out.println(Thread.currentThread().getName() + " Name " + i + " is " + name.getCommon() + " "
        //                + "Local time is " + lc + "  " + dr.getText());
        //          }
        dr.recycle();
        doc.recycle();
        dt.recycle();
        end.recycle();
        create.recycle();
        color.recycle();
        name.recycle();
View Full Code Here

    Item names = doc.replaceItemValue("Names", "CN=Nathan T Freeman/O=REDPILL");
    names.setAuthors(true);
    doc.replaceItemValue("form", "test");
    doc.save(true);
    String nid = doc.getNoteID();
    doc.recycle();
    doc = db.getDocumentByID(nid);
    Vector<Double> numbers = new Vector<Double>();
    numbers.add(new Double(1));
    numbers.add(new Double(2));
View Full Code Here

    numbers.add(new Double(1));
    numbers.add(new Double(2));

    doc.replaceItemValue("Names", numbers);
    doc.save(true);
    doc.recycle();
    doc = db.getDocumentByID(nid);
    names = doc.getFirstItem("Names");
    System.out.println("Names is " + names.getType() + " with " + names.isNames() + " and " + names.isAuthors() + " and value "
        + names.getText());
    doc.recycle();
View Full Code Here

    doc.recycle();
    doc = db.getDocumentByID(nid);
    names = doc.getFirstItem("Names");
    System.out.println("Names is " + names.getType() + " with " + names.isNames() + " and " + names.isAuthors() + " and value "
        + names.getText());
    doc.recycle();
    db.recycle();
  }

  public void run4(final Session session) throws NotesException {
    Database db = session.getDatabase("", "events4.nsf");
View Full Code Here

    cacheNC.setSelectDocuments(true);
    cacheNC.buildCollection();
    cacheNC.recycle();
    DocumentCollection cacheDc = db.getAllDocuments();
    Document cacheDoc = cacheDc.getFirstDocument();
    cacheDoc.recycle();
    cacheDc.recycle();
    db.recycle();

    db = session.getDatabase("", "events4.nsf");
    DocumentCollection dc = db.getAllDocuments();
View Full Code Here

    nid = nc2.getFirstNoteID();
    long nc2Start = System.nanoTime();
    for (int i = 0; i < nc2Count; i++) {
      Document nc2doc = db.getDocumentByID(nid);
      nc2Unids[i] = nc2doc.getUniversalID();
      nc2doc.recycle();
      nid = nc2.getNextNoteID(nid);
    }
    System.out.println("NoteCollection strategy doc got UNIDs for " + nc2Count + " notes in " + (System.nanoTime() - nc2Start) / 1000
        + "us");
    nc2.recycle();
View Full Code Here

        for (int i = 1; i < 200000; i++) {
          doc = db.createDocument();
          doc.replaceItemValue("form", "doc");
          doc.replaceItemValue("Subject", String.valueOf(System.nanoTime()));
          doc.save();
          doc.recycle();
          if (i % 5000 == 0) {
            System.out.println("Created " + i + " documents so far. Still going...");
          }
        }
        System.out.println("ENDING Creation of Documents: " + new Date().toString());
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.