org.basex.query.up.primitives
Class NodeCopy

java.lang.Object
  extended by org.basex.query.up.primitives.Operation
      extended by org.basex.query.up.primitives.UpdatePrimitive
          extended by org.basex.query.up.primitives.NodeCopy
Direct Known Subclasses:
InsertAfter, InsertAttribute, InsertBefore, InsertInto, InsertIntoAsFirst, InsertIntoAsLast, ReplaceNode

public abstract class NodeCopy
extends UpdatePrimitive

Abstract update primitive which holds a copy of nodes to be inserted.

Author:
BaseX Team 2005-12, BSD License, Lukas Kircher

Field Summary
 
Fields inherited from class org.basex.query.up.primitives.UpdatePrimitive
targetPre, type
 
Fields inherited from class org.basex.query.up.primitives.Operation
data, info
 
Method Summary
 void prepare(MemData tmp)
          Prepares this update primitive before execution.
 int size()
          Returns the total number of node operations.
 java.lang.String toString()
           
 
Methods inherited from class org.basex.query.up.primitives.UpdatePrimitive
addAtomics, getData, getInfo, getTargetNode, merge, substitute, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

prepare

public final void prepare(MemData tmp)
Prepares this update primitive before execution. This includes e.g. the preparation of insertion sequences.

Parameters:
tmp - temporary database

size

public final int size()
Description copied from class: Operation
Returns the total number of node operations.

Specified by:
size in class Operation
Returns:
number of updates

toString

public final java.lang.String toString()
Overrides:
toString in class java.lang.Object