JAVA/CORBA CLASSES


getFirstDatabase method
Example

Returns the first database from a server or the local directory, using the file type you specify.

Defined in

DbDirectory

Syntax

public Database getFirstDatabase(int type)
   throws NotesException

Parameters

int type

Return value

Database


Usage

The returned database is closed. If you do not open the database, only a subset of its methods are available. See isOpen in Database.

Each time you call this method, the database directory is reset and a new search is conducted. If you are searching for template files, for example, a new call to getFirstDatabase with the parameter DATABASE starts searching the directory from the beginning, this time for database files

Language cross-reference

GetFirstDatabase method in LotusScript NotesDbDirectory class

Example
See Also