Class Get


public final class Get extends Command
Evaluates the 'get' command and return the value of a database option.
Author:
BaseX Team 2005-21, BSD License, Christian Gruen
  • Constructor Details

    • Get

      public Get()
      Empty constructor.
    • Get

      public Get(Option<?> option)
      Default constructor.
      Parameters:
      option - option to be found
    • Get

      public Get(String key)
      Default constructor.
      Parameters:
      key - key to be found (can be null)
  • Method Details

    • run

      protected boolean run() throws IOException
      Description copied from class: Command
      Executes the command and serializes the result (internal call).
      Specified by:
      run in class Command
      Returns:
      success of operation
      Throws:
      IOException - I/O exception
    • get

      public static Object get(String name, Context ctx)
      Returns the value of the specified option.
      Parameters:
      name - name of option
      ctx - database context
      Returns:
      value
    • 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