Class InsertInto

Direct Known Subclasses:
ReplaceContent

public class InsertInto extends NodeUpdate
Insert into primitive.
Author:
BaseX Team 2005-21, BSD License, Lukas Kircher
  • Constructor Details

    • InsertInto

      public InsertInto(int pre, Data data, InputInfo ii, ANodeList nodes)
      Constructor for an insertInto.
      Parameters:
      pre - target pre value
      data - target data instance
      ii - input info
      nodes - node copy insertion sequence
  • Method Details

    • merge

      public void merge(Update update)
      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
    • addAtomics

      public final void addAtomics(AtomicUpdateCache auc)
      Description copied from class: NodeUpdate
      Adds the atomic update operations for this update primitive to the given list.
      Specified by:
      addAtomics in class NodeUpdate
      Parameters:
      auc - list of atomic updates
    • update

      public final void update(NamePool pool)
      Description copied from class: NodeUpdate
      Updates the name pool, which is used to find duplicate attributes and namespace conflicts.
      Specified by:
      update in class NodeUpdate
      Parameters:
      pool - name pool
    • prepare

      public final void prepare(MemData memData, QueryContext qc)
      Description copied from class: NodeUpdate
      Prepares this update primitive before execution. This includes e.g. the preparation of insertion sequences.
      Specified by:
      prepare in class NodeUpdate
      Parameters:
      memData - temporary data instance
      qc - query context
    • 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
    • toString

      public final String toString()
      Overrides:
      toString in class Object