Class NameUpdate

java.lang.Object
org.basex.query.up.primitives.Update
org.basex.query.up.primitives.name.NameUpdate
All Implemented Interfaces:
Comparable<NameUpdate>
Direct Known Subclasses:
BackupAlter, BackupCreate, BackupDrop, DBAlter, DBCopy, DBCreate, DBDrop, DBRestore

public abstract class NameUpdate extends Update implements Comparable<NameUpdate>
Update operation that references databases by their name.
Author:
BaseX Team 2005-21, BSD License, Lukas Kircher
  • Method Details

    • prepare

      public abstract void prepare() throws QueryException
      Prepares this operation.
      Throws:
      QueryException - exception
    • apply

      public abstract void apply() throws QueryException
      Applies this operation.
      Throws:
      QueryException - exception
    • operation

      protected abstract String operation()
      Returns an info string.
      Returns:
      info string
    • merge

      public void merge(Update update) throws QueryException
      Description copied from class: Update
      Merges two update operations pointing to the same target.
      Specified by:
      merge in class Update
      Parameters:
      update - operation to merge with
      Throws:
      QueryException - exception
    • databases

      public void databases(StringList db)
      Adds all databases to be updated to the specified list.
      Parameters:
      db - databases
    • name

      public String name()
      Returns the name of the database.
      Returns:
      name
    • size

      public final int size()
      Description copied from class: Update
      Returns the number of update operations.
      Specified by:
      size in class Update
      Returns:
      number of updates
    • compareTo

      public final int compareTo(NameUpdate o)
      Specified by:
      compareTo in interface Comparable<NameUpdate>