Class DBRename

All Implemented Interfaces:
Comparable<DBUpdate>

public final class DBRename extends DBUpdate
Update primitive for the Function._DB_RENAME function.
Author:
BaseX Team 2005-21, BSD License, Christian Gruen
  • Constructor Details

    • DBRename

      public DBRename(Data data, String src, String trg, InputInfo info)
      Constructor.
      Parameters:
      data - target data
      src - source path
      trg - target path
      info - input info
  • Method Details

    • prepare

      public void prepare()
      Description copied from class: DBUpdate
      Prepares this operation.
      Specified by:
      prepare in class DBUpdate
    • apply

      public void apply()
      Description copied from class: DBUpdate
      Applies this operation.
      Specified by:
      apply in class DBUpdate
    • 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
    • size

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