ViewEntryCollection (Java)

Represents a collection of view entries of type document sorted in view order.

Syntax

public class ViewEntryCollection extends Base

Containment

Contained by: View

Contains: ViewEntry

Properties

Count through getCount

Parent through getParent

Query through getQuery

Methods

addEntry

clone

contains

deleteEntry

FTSearch

getEntry

getFirstEntry

getLastEntry

getNextEntry

getNthEntry

getPrevEntry

intersect

markAllRead

markAllUnread

merge

putAllInFolder

recycle

removeAll

removeAllFromFolder

stampAll

subtract

updateAll

Access

A ViewEntryCollection represents all or a subset of all the document entries in a view. A ViewEntryCollection does not include entries of type category and total. The following View methods return ViewEntryCollection objects:

The FTSearch method in ViewEntryCollection changes the content of the collection.

A current pointer is maintained for view entry collections. All navigation methods set the current pointer to the retrieved entry. Add and delete methods do not move the current pointer. The current pointer is set to the first entry after FTSearch and removeAll. For remote (IIOP) operations only, the current pointer is set to the first entry after putAllInFolder, removeAllFromFolder, and stampAll.

Automatic updates: avoid

Avoid automatically updating the parent view by explicitly setting IsAutoUpdate to false. Automatic updates degrade performance and may invalidate entries in the collection ("Entry not found in index"). You can update the view as needed with refresh.

Example