openIfModified (Database - Java)

Given a date, opens the specified database if it has been modified since that date.

Note: This method is new with Release 6.5.

Defined in

Database

Syntax

public boolean openIfModified(String server, String dbfile, DateTime modifiedsince)
    throws NotesException

Parameters

String server

The name of the server on which the database resides. Use null to indicate a database on the current computer.

String dbfile

The file name of the database.

DateTime modifiedsince

A cutoff date. If one or more documents in the database has been modified since this date, the database is opened; if not, it is not opened.

Return value

  • true indicates that the database was opened
  • false indicates that the database was not opened

Usage

Use Session.getDatabase(null, null) to instantiate an empty Database object.

Example