IsOpen (Database - Java)

Read-only. Indicates whether a database is open.

Defined in

Database

Data type

boolean

Syntax

public boolean isOpen()
    throws NotesException

Legal values

  • true if the database is open
  • false if the database is not open

Usage

A database must be open to use the Database methods except: getCategories, getDelayUpdates, getDesignTemplateName, getFileName, getFilePath, isOpen, isPrivateAddressBook, isPublicAddressBook, getParent, getReplicaID, getServer, getSize, getSizeQuota, getTemplateName, and getTitle.

The following methods do not open a database: DbDirectory.getFirstDatabase, DbDirectory.getNextDatabase, and Session.getAddressBooks. You must explicitly call Database.open.

If a Database object must be open but is not, the following error occurs: "Database has not been opened yet." This error does not occur when the Database is created, but later when the attempt to use it occurs. Possible causes of the error are: the database as specified does not exist; the user does not have permission to access the database; the database is damaged.

Example