Class Set


public final class Set extends Command
Evaluates the 'set' command and modifies database options.
Author:
BaseX Team 2005-21, BSD License, Christian Gruen
  • Constructor Details

    • Set

      public Set(O option, V value)
      Default constructor.
      Type Parameters:
      O - option type
      V - value type
      Parameters:
      option - option to be found
      value - value to set (optional, depending on the option)
    • Set

      public Set(String name, Object value)
      Default constructor.
      Parameters:
      name - name of option
      value - value to set (optional, depending on the option)
  • Method Details

    • run

      protected boolean run()
      Description copied from class: Command
      Executes the command and serializes the result (internal call).
      Specified by:
      run in class Command
      Returns:
      success of operation
    • addLocks

      public void addLocks()
      Description copied from class: Job
      Adds the strings (databases, special identifiers) for which locks need to be acquired.
      Overrides:
      addLocks in class Job