addDocument (DocumentCollection - Java™)
Adds a document to a collection.
Defined in
Syntax
public void addDocument(Document doc)
throws NotesException
public void addDocument(Document doc, boolean checkDups)
throws NotesException
Parameters
Document doc
The document to be added. Cannot be null.
boolean checkDups
If true, forces a remote (IIOP) add to be made immediately rather than on the next navigation or other method (such as stampAll) that calls the server, so that a duplicate exception can be thrown immediately. Has no effect on local calls.
Usage
This method throws an exception if:
- The document is a duplicate of one already in the collection.
- The document collection is the result of a multi-database full-text search.