Class AlterBackup


public final class AlterBackup extends Command
Evaluates the 'restore' command and restores a backup of a database.
Author:
BaseX Team 2005-21, BSD License, Christian Gruen
  • Constructor Details

    • AlterBackup

      public AlterBackup(String db, String name)
      Default constructor.
      Parameters:
      db - name of database
      name - new name
  • 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
    • alter

      public static void alter(String db, String name, StaticOptions sopts) throws IOException
      Drops a backup with the specified name.
      Parameters:
      db - name of database
      name - new name
      sopts - static options
      Throws:
      IOException - I/O exception
    • 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
    • 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