JAVA/CORBA CLASSES


getDatabase method
Example

Creates a Database object that represents the database located at the server and file name you specify, and opens the database, if possible.

Defined in

Session

Syntax

public Database getDatabase(String server, String db)
   throws NotesException

public Database getDatabase(String server, String db, boolean createonfail)
   throws NotesException

Parameters

String server


String db
boolean createonfail
Return value

Database


Usage

An error is returned if the user does not have access rights to the database or server.

A Java application running on the same machine as a Domino server cannot open a local database from a local session. Use a remote (IIOP) session to access the database.

See the Database class for additional descriptions and examples.

Language cross-reference

GetDatabase method in LotusScript NotesSession class

FileOpenDatabase @command in formula language

Example
See Also