データベース内に文書コレクションを作成して、その新しいコレクションを表す NotesDocumentCollection オブジェクトを返します。
戻り値 | 説明 |
---|---|
NotesDocumentCollection | 新規の文書コレクション。 |
var dc:NotesDocumentCollection = database.createDocumentCollection();
var view:NotesView = database.getView("main");
var doc:NotesDocument = view.getFirstDocument();
while (doc != null) {
if (doc.getItemValueString("subject").endsWithIgnoreCase("obsolete")) {
dc.addDocument(doc);
}
var tmpdoc = view.getNextDocument(doc);
doc.recycle();
doc = tmpdoc;
}
requestScope.status = "Number of documents removed: " + dc.getCount();
dc.removeAll(true);
Java™ Database クラスの createDocumentCollection メソッド