Class List


public final class List extends Command
Evaluates the 'list' command and shows all available databases.
Author:
BaseX Team 2005-21, BSD License, Christian Gruen
  • Constructor Details

    • List

      public List()
      Default constructor.
    • List

      public List(String name)
      Default constructor.
      Parameters:
      name - database name (can be null)
    • List

      public List(String name, String path)
      Default constructor.
      Parameters:
      name - database name (can be null)
      path - database path (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
    • 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