Class DBCopy
java.lang.Object
org.basex.query.up.primitives.Update
org.basex.query.up.primitives.name.NameUpdate
org.basex.query.up.primitives.name.DBCopy
- All Implemented Interfaces:
Comparable<NameUpdate>
Update primitive for the
Function._DB_COPY function.- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionDBCopy(String name, String target, QueryContext qc, InputInfo info) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidapply()Applies this operation.voiddatabases(StringList db) Adds all databases to be updated to the specified list.voidMerges two update operations pointing to the same target.Returns an info string.voidprepare()Prepares this operation.Methods inherited from class org.basex.query.up.primitives.name.NameUpdate
compareTo, name, size
-
Constructor Details
-
DBCopy
Constructor.- Parameters:
name- database to be copiedtarget- name of new databaseqc- query contextinfo- input info
-
-
Method Details
-
prepare
public void prepare()Description copied from class:NameUpdatePrepares this operation.- Specified by:
preparein classNameUpdate
-
apply
Description copied from class:NameUpdateApplies this operation.- Specified by:
applyin classNameUpdate- Throws:
QueryException- exception
-
merge
Description copied from class:UpdateMerges two update operations pointing to the same target.- Overrides:
mergein classNameUpdate- Parameters:
update- operation to merge with- Throws:
QueryException- exception
-
databases
Description copied from class:NameUpdateAdds all databases to be updated to the specified list.- Overrides:
databasesin classNameUpdate- Parameters:
db- databases
-
operation
Description copied from class:NameUpdateReturns an info string.- Specified by:
operationin classNameUpdate- Returns:
- info string
-