Lotus Notes Adapter 6.0 | webMethods Lotus Notes Adapter Documentation | webMethods Lotus Notes Adapter Installation and User’s Documentation | Built-In Services Reference | Built-In Services Reference | wm.ln.dbDirectory:getFirstDatabase
 
wm.ln.dbDirectory:getFirstDatabase
This flow service returns the first database from a server or the local directory, using the file type specified. The returned database is closed. If the database is not opened only a subset of its methods are available. Each time this method is called, the database directory is reset and a new search is conducted. If template files are being searched, for example, a new call to getFirstDatabase with the dbTypeparameter set to DATABASE starts searching the directory from the beginning, this time for database files.
Input Parameters
dbDirectory
DbDirectory The lotus.domino.DbDirectory object representing the directory where the first database is to be fetched.
dbType
String Indicates the kind of database file you want to retrieve:
*DbDirectory.DATABASE means any database (.nsf, .nsg, or .nsh file)
*DbDirectory.TEMPLATE means any template (.ntf file)
*DbDirectory.REPLICA_CANDIDATE means any database or template not disabled for replication
*DbDirectory.TEMPLATE_CANDIDATE means any database or template
Output Parameters
database
Database The first database of the specified file type located in the directory, or null if the directory contains none.