Class InsertIntoAsLast
- java.lang.Object
-
- org.basex.query.up.primitives.Update
-
- org.basex.query.up.primitives.DataUpdate
-
- org.basex.query.up.primitives.node.NodeUpdate
-
- org.basex.query.up.primitives.node.InsertIntoAsLast
-
public final class InsertIntoAsLast extends NodeUpdate
Insert into as last primitive.- Author:
- BaseX Team 2005-24, BSD License, Lukas Kircher
-
-
Field Summary
-
Fields inherited from class org.basex.query.up.primitives.node.NodeUpdate
pre
-
Fields inherited from class org.basex.query.up.primitives.DataUpdate
data
-
-
Constructor Summary
Constructors Constructor Description InsertIntoAsLast(int pre, Data data, InputInfo info, ANodeList nodes)
Constructor for an insertInto which is part of a replaceElementContent substitution.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAtomics(AtomicUpdateCache auc)
Adds the atomic update operations for this update primitive to the given list.void
merge(Update update)
Merges two update operations pointing to the same target.void
prepare(MemData memData, QueryContext qc)
Prepares this update primitive before execution.int
size()
Returns the number of update operations.String
toString()
void
update(NamePool pool)
Updates the name pool, which is used to find duplicate attributes and namespace conflicts.-
Methods inherited from class org.basex.query.up.primitives.node.NodeUpdate
node, substitute
-
Methods inherited from class org.basex.query.up.primitives.DataUpdate
data
-
-
-
-
Constructor Detail
-
InsertIntoAsLast
public InsertIntoAsLast(int pre, Data data, InputInfo info, ANodeList nodes)
Constructor for an insertInto which is part of a replaceElementContent substitution.- Parameters:
pre
- target pre valuedata
- target data instanceinfo
- input info (can benull
)nodes
- node copy insertion sequence
-
-
Method Detail
-
merge
public void merge(Update update)
Description copied from class:Update
Merges two update operations pointing to the same target.
-
addAtomics
public 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 classNodeUpdate
- Parameters:
auc
- list of atomic updates
-
update
public 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 classNodeUpdate
- Parameters:
pool
- name pool
-
prepare
public final void prepare(MemData memData, QueryContext qc) throws QueryException
Description copied from class:NodeUpdate
Prepares this update primitive before execution. This includes e.g. the preparation of insertion sequences.- Specified by:
prepare
in classNodeUpdate
- Parameters:
memData
- temporary data instanceqc
- query context- Throws:
QueryException
- query exception
-
size
public int size()
Description copied from class:Update
Returns the number of update operations.
-
-