Package lotus.domino

Examples of lotus.domino.DocumentCollection.recycle()


      try {
        for(Document doc=docs.getFirstDocument(); doc!=null; doc=docs.getNextDocument(doc)) {
          exportDocument(doc);
        }
      } finally {
        docs.recycle();
      }
    } finally {
      target.endExport();
    }
  }
View Full Code Here


        System.out.println("MERGECOLL: mergeColl total time " + mergeColl.getCount() + " entries in "
            + (mergeWalkTime - ncStartTime) / 1000 + "us");

        nc.recycle();
        allDocs.recycle();
        mergeColl.recycle();

      } catch (Throwable t) {
        t.printStackTrace();

      }
View Full Code Here

    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();
    Document doc = dc.getFirstDocument();
View Full Code Here

      doc.recycle();
      doc = nextDoc;
    }
    System.out.println("DocumentCollection strategy got UNIDs for " + dcCount + " docs in " + (System.nanoTime() - dcStart) / 1000
        + "us");
    dc.recycle();
    db.recycle();

    db = session.getDatabase("", "events4.nsf");
    NoteCollection nc3 = db.createNoteCollection(false);
    nc3.setSelectDocuments(true);
View Full Code Here

      }
    } catch (lotus.domino.NotesException ne) {
      ne.printStackTrace();
    } finally {
      try {
        dc.recycle();
      } catch (lotus.domino.NotesException ne) {

      }
    }
    ExtLibUtil.getViewScope().put("oldJavaTest", sb.toString());
View Full Code Here

      sb.append("Done");
    } catch (lotus.domino.NotesException ne) {
      ne.printStackTrace();
    } finally {
      try {
        dc.recycle();
      } catch (lotus.domino.NotesException ne) {

      }
    }
    ExtLibUtil.getViewScope().put("oldJavaTest", sb.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.