Examples: getOption method

This agent gets the value of a database option.

import lotus.domino.*;
import java.util.Vector;

public class JavaAgent extends AgentBase {

  public void NotesMain() {

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

      // (Your code goes here) 
      Database db = agentContext.getCurrentDatabase();
      if (db.getOption(Database.DBOPT_SOFTDELETE))
        System.out.println("Soft deletes enabled");
      else
        System.out.println("Soft deletes not enabled");

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