org.basex.query.up.primitives
Class Operation

java.lang.Object
  extended by org.basex.query.up.primitives.Operation
Direct Known Subclasses:
BasicOperation, UpdatePrimitive

public abstract class Operation
extends java.lang.Object

Abstract class for update operations.

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

Field Summary
 Data data
          Target data reference.
protected  InputInfo info
          Input info.
 
Constructor Summary
protected Operation(Data d, InputInfo ii)
          Constructor.
 
Method Summary
abstract  Data getData()
          Returns the target data reference.
abstract  InputInfo getInfo()
          Input info.
abstract  DBNode getTargetNode()
          Returns the target node of this operation.
abstract  int size()
          Returns the total number of node operations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

info

protected final InputInfo info
Input info.


data

public Data data
Target data reference.

Constructor Detail

Operation

protected Operation(Data d,
                    InputInfo ii)
Constructor.

Parameters:
d - target data reference
ii - input info
Method Detail

size

public abstract int size()
Returns the total number of node operations.

Returns:
number of updates

getData

public abstract Data getData()
Returns the target data reference.

Returns:
data

getInfo

public abstract InputInfo getInfo()
Input info.

Returns:
input info

getTargetNode

public abstract DBNode getTargetNode()
Returns the target node of this operation.

Returns:
target node