Class ACreate

Direct Known Subclasses:
Add, AlterDB, CreateDB, CreateIndex, Delete, DropDB, DropIndex, Optimize, OptimizeAll, Rename, Replace, Retrieve, Store

public abstract class ACreate extends Command
Abstract class for database updates.
Author:
BaseX Team 2005-21, BSD License, Christian Gruen
  • Field Details

    • lock

      protected boolean lock
      Indicates if database should be locked.
  • Method Details

    • newData

      public boolean newData(Context ctx)
      Description copied from class: Command
      Closes an open data reference and returns true if this command will change the Context.data() reference. This method is only required by the GUI.
      Overrides:
      newData in class Command
      Parameters:
      ctx - database context
      Returns:
      result of check
    • 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
    • supportsProg

      public final boolean supportsProg()
      Description copied from class: Command
      Returns true if this command returns a progress value. This method is only required by the GUI.
      Overrides:
      supportsProg in class Command
      Returns:
      result of check
    • stoppable

      public boolean stoppable()
      Description copied from class: Command
      Returns true if this command can be stopped. This method is only required by the GUI.
      Overrides:
      stoppable in class Command
      Returns:
      result of check