org.basex.query.up.primitives
Class DBCreate
java.lang.Object
org.basex.query.up.primitives.Operation
org.basex.query.up.primitives.BasicOperation
org.basex.query.up.primitives.DBNew
org.basex.query.up.primitives.DBCreate
- All Implemented Interfaces:
- java.lang.Comparable<BasicOperation>
public final class DBCreate
- extends DBNew
Update primitive for the Function._DB_CREATE
function.
- Author:
- BaseX Team 2005-12, BSD License, Lukas Kircher
Field Summary |
java.lang.String |
name
Name of new database. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
name
public final java.lang.String name
- Name of new database.
DBCreate
public DBCreate(InputInfo ii,
java.lang.String nm,
java.util.List<NewInput> in,
TokenMap map,
QueryContext c)
throws QueryException
- Constructor.
- Parameters:
ii
- input infonm
- name for created databasein
- input (ANode and QueryInput references)map
- index optionsc
- query context
- Throws:
QueryException
- query exception
getTargetNode
public DBNode getTargetNode()
- Description copied from class:
Operation
- Returns the target node of this operation.
- Overrides:
getTargetNode
in class BasicOperation
- Returns:
- target node
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
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
apply
public void apply()
throws QueryException
- Description copied from class:
BasicOperation
- Applies this operation.
- Specified by:
apply
in class BasicOperation
- Throws:
QueryException
- exception
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
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object