createDatabase (DbDirectory - Java)

Creates a new database, using the server and file name that you specify. Because the new database is not based on a template, it is blank and does not contain any forms or views.

Defined in

DbDirectory

Syntax

public Database createDatabase(String dbfile)
    throws NotesException
public Database createDatabase(String dbfile, boolean open)
    throws NotesException

Parameters

String dbfile

The file name of the new database.

boolean open

Indicates whether you want to open the database. Specify true if you want to open the database and false if you do not.

Usage

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

Because the new database is not based on a template, it's blank and does not contain any forms or views.

Example