Package org.basex.query.up.primitives
Class UserUpdate
java.lang.Object
org.basex.query.up.primitives.Update
org.basex.query.up.primitives.UserUpdate
- Direct Known Subclasses:
UserPermUpdate
Update that operates on a global user.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedUserUpdate(UpdateType type, User user, QueryContext qc, InputInfo info) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionabstract voidapply()Applies this operation.voidMerges two update operations pointing to the same target.final Stringname()Returns the name of the user.protected abstract StringReturns an info string.final intsize()Returns the number of update operations.
-
Field Details
-
users
Users. -
user
User (nullif operation is global).
-
-
Constructor Details
-
UserUpdate
Constructor.- Parameters:
type- type of this operationuser- user (nullif operation is global)qc- query contextinfo- input info
-
-
Method Details
-
name
Returns the name of the user.- Returns:
- name (can be
null)
-
apply
public abstract void apply()Applies this operation. -
operation
Returns an info string.- Returns:
- info string
-
size
public final int size()Description copied from class:UpdateReturns the number of update operations. -
merge
Description copied from class:UpdateMerges two update operations pointing to the same target.- Specified by:
mergein classUpdate- Parameters:
update- operation to merge with- Throws:
QueryException- exception
-