org.basex.query.up.primitives
Class DBRename

java.lang.Object
  extended by org.basex.query.up.primitives.Operation
      extended by org.basex.query.up.primitives.BasicOperation
          extended by org.basex.query.up.primitives.DBRename
All Implemented Interfaces:
java.lang.Comparable<BasicOperation>

public final class DBRename
extends BasicOperation

Update primitive for the Function._DB_RENAME function.

Author:
BaseX Team 2005-12, BSD License, Christian Gruen

Nested Class Summary
 
Nested classes/interfaces inherited from class org.basex.query.up.primitives.BasicOperation
BasicOperation.TYPE
 
Field Summary
 
Fields inherited from class org.basex.query.up.primitives.BasicOperation
type
 
Fields inherited from class org.basex.query.up.primitives.Operation
data, info
 
Constructor Summary
DBRename(Data d, java.lang.String src, java.lang.String trg, InputInfo ii)
          Constructor.
 
Method Summary
 void apply()
          Applies this operation.
 void merge(BasicOperation o)
          Merges this operation with the given one.
 void prepare(MemData tmp)
          Prepares this operation.
 int size()
          Returns the total number of node operations.
 
Methods inherited from class org.basex.query.up.primitives.BasicOperation
compareTo, getData, getInfo, getTargetNode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBRename

public DBRename(Data d,
                java.lang.String src,
                java.lang.String trg,
                InputInfo ii)
Constructor.

Parameters:
d - target data
src - source path
trg - target path
ii - input info
Method Detail

merge

public void merge(BasicOperation o)
           throws QueryException
Description copied from class: BasicOperation
Merges this operation with the given one.

Specified by:
merge in class BasicOperation
Parameters:
o - operation to merge into this one
Throws:
QueryException - exception

apply

public void apply()
Description copied from class: BasicOperation
Applies this operation.

Specified by:
apply in class BasicOperation

size

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

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

prepare

public void prepare(MemData tmp)
             throws QueryException
Description copied from class: BasicOperation
Prepares this operation.

Specified by:
prepare in class BasicOperation
Parameters:
tmp - temporary mem data
Throws:
QueryException - exception