addEntry (ViewEntryCollection - Java)

Adds an entry to a view entry collection.

Defined in

ViewEntryCollection

Syntax

public void addEntry(Object obj)
    throws NotesException
public void addEntry(Object obj, boolean checkDups)
    throws NotesException

Parameters

Object obj

A ViewEntry or Document object representing the entry to be added. Cannot be null. A ViewEntry object must be of type document.

boolean checkDups

If true, forces a remote (IIOP) add to be made immediately rather than at the next navigation or other method (such as stampAll) that calls the server, so that a duplicate exception can be thrown immediately. Does not work for local calls.

Usage

The entry or document represented by the parameter must exist. For example, if you create a new Document object, you must save it before calling addEntry.

This method increments the view entry collection count returned by getCount.

Example