Class AQuery

Direct Known Subclasses:
Find, XQuery

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

  • Method Details

    • parameters

      public final String parameters(Context ctx)
      Returns the serialization parameters.
      Parameters:
      ctx - context
      Returns:
      serialization parameters
    • updating

      public boolean updating(Context ctx)
      Description copied from class: Command
      Checks if the command performs updates/write operations.
      Overrides:
      updating in class Command
      Parameters:
      ctx - database context
      Returns:
      result of check
    • updated

      public final boolean updated(Context ctx)
      Description copied from class: Command
      Checks if the command has updated any data.
      Overrides:
      updated 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
    • 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
    • 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
    • result

      public final Value result()
      Description copied from class: Command
      Returns a cached result set generated by AQuery. Can only be called once.
      Overrides:
      result in class Command
      Returns:
      result set or null