JAVA/CORBA CLASSES


Examples: FileFormat property
This agent gets the ODS version of the databases in the local directory.

import lotus.domino.*;

public class JavaAgent extends AgentBase {

 public void NotesMain() {

   try {
     Session session = getSession();
     AgentContext agentContext = session.getAgentContext();

     // (Your code goes here)
     DbDirectory dir = session.getDbDirectory(null);
     Database db = dir.getFirstDatabase(DbDirectory.DATABASE);
     while (db != null) {
       db.open(); // Must open database
       System.out.println("Database title = " + db.getTitle());
       System.out.println("ODS version = " + db.getFileFormat());
       db = dir.getNextDatabase();
     }

   } catch(Exception e) {
     e.printStackTrace();
   }
 }
}

See Also