Class InfoDB


public final class InfoDB extends Command
Evaluates the 'info database' command and returns information on the currently opened database.
Author:
BaseX Team 2005-21, BSD License, Christian Gruen
  • Constructor Details

    • InfoDB

      public InfoDB()
      Default constructor.
  • 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
    • db

      public static String db(MetaData meta, boolean bold, boolean index)
      Creates a database information string.
      Parameters:
      meta - meta data
      bold - header bold header flag
      index - add index information
      Returns:
      info string
    • build

      public void build(CmdBuilder cb)
      Description copied from class: Command
      Builds a string representation from the command. This string must be correctly built, as commands are sent to the server as strings.
      Overrides:
      build in class Command
      Parameters:
      cb - command builder