Class Update

java.lang.Object
org.basex.query.up.primitives.Update
Direct Known Subclasses:
DataUpdate, NameUpdate, UserUpdate

public abstract class Update extends Object
Abstract class for an update operations.
Author:
BaseX Team 2005-21, BSD License, Lukas Kircher
  • Field Details

    • type

      public final UpdateType type
      Type of update primitive.
    • info

      protected final InputInfo info
      Input info.
  • Constructor Details

    • Update

      protected Update(UpdateType type, InputInfo info)
      Constructor.
      Parameters:
      type - update primitive
      info - input info
  • Method Details

    • merge

      public abstract void merge(Update update) throws QueryException
      Merges two update operations pointing to the same target.
      Parameters:
      update - operation to merge with
      Throws:
      QueryException - exception
    • size

      public abstract int size()
      Returns the number of update operations.
      Returns:
      number of updates
    • info

      public final InputInfo info()
      Input info.
      Returns:
      input info