Class UserUpdate

java.lang.Object
org.basex.query.up.primitives.Update
org.basex.query.up.primitives.UserUpdate
Direct Known Subclasses:
UserPermUpdate

public abstract class UserUpdate extends Update
Update that operates on a global user.
Author:
BaseX Team 2005-21, BSD License, Christian Gruen
  • Field Details

    • users

      protected final Users users
      Users.
    • user

      protected final User user
      User (null if operation is global).
  • Constructor Details

    • UserUpdate

      protected UserUpdate(UpdateType type, User user, QueryContext qc, InputInfo info)
      Constructor.
      Parameters:
      type - type of this operation
      user - user (null if operation is global)
      qc - query context
      info - input info
  • Method Details

    • name

      public final String name()
      Returns the name of the user.
      Returns:
      name (can be null)
    • apply

      public abstract void apply()
      Applies this operation.
    • operation

      protected abstract String operation()
      Returns an info string.
      Returns:
      info string
    • 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
    • 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