org.basex.query.up.primitives
Class DeletePrimitive

java.lang.Object
  extended by org.basex.query.up.primitives.UpdatePrimitive
      extended by org.basex.query.up.primitives.DeletePrimitive

public final class DeletePrimitive
extends UpdatePrimitive

Delete primitive.

Author:
Workgroup DBIS, University of Konstanz 2005-10, ISC License, Lukas Kircher

Field Summary
 
Fields inherited from class org.basex.query.up.primitives.UpdatePrimitive
node
 
Constructor Summary
DeletePrimitive(Nod n)
          Constructor.
 
Method Summary
 void apply(int add)
          Applies the update operation represented by this primitive to the database.
 PrimitiveType type()
          Returns the type of the update primitive.
 void update(NamePool pool)
          Updates the name pool, which is used for finding duplicate attributes and namespace conflicts.
 
Methods inherited from class org.basex.query.up.primitives.UpdatePrimitive
buildDB, merge, mergeTexts, prepare
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeletePrimitive

public DeletePrimitive(Nod n)
Constructor.

Parameters:
n - expression target node
Method Detail

apply

public void apply(int add)
Description copied from class: UpdatePrimitive
Applies the update operation represented by this primitive to the database. If an 'insert before' primitive is applied to a target node t, the pre value of t changes. Thus the number of inserted nodes is added to the pre value of t for all following update operations.

Specified by:
apply in class UpdatePrimitive
Parameters:
add - size to add

update

public void update(NamePool pool)
Description copied from class: UpdatePrimitive
Updates the name pool, which is used for finding duplicate attributes and namespace conflicts.

Overrides:
update in class UpdatePrimitive
Parameters:
pool - name pool

type

public PrimitiveType type()
Description copied from class: UpdatePrimitive
Returns the type of the update primitive.

Specified by:
type in class UpdatePrimitive
Returns:
type