IsAutoUpdate (View - Java)

Read-write. Indicates whether a view is automatically refreshed when a navigation method touches an update (addition, deletion, or change) to the database that occurred after view creation or the last refresh.

Defined in

View

Data type

boolean

Syntax

public boolean isAutoUpdate()
    throws NotesException
public void setAutoUpdate(boolean flag)
    throws NotesException

Legal values

  • true (default for local operations) if the view is automatically updated
  • false (default for remote IIOP operations) if the view is not automatically updated

Usage

It is best to avoid automatically updating the view by explicitly setting this property to false especially if the view is a base for navigators or entry collections. Automatic updates degrade performance and may invalidate entries in child objects ("Entry not found in index").

If this property is false, you must call refresh to navigate to an update.

Even if this property is true, you must call refresh if you are not navigating to an update and you want the view refreshed, for example, to get the top level entry count.

If this value is true for remote (IIOP) operations, caching is turned off.

Example