Class NameUpdate
java.lang.Object
org.basex.query.up.primitives.Update
org.basex.query.up.primitives.name.NameUpdate
- All Implemented Interfaces:
Comparable<NameUpdate>
- Direct Known Subclasses:
BackupAlter,BackupCreate,BackupDrop,DBAlter,DBCopy,DBCreate,DBDrop,DBRestore
Update operation that references databases by their name.
- Author:
- BaseX Team 2005-21, BSD License, Lukas Kircher
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract voidapply()Applies this operation.final intvoiddatabases(StringList db) Adds all databases to be updated to the specified list.voidMerges two update operations pointing to the same target.name()Returns the name of the database.protected abstract StringReturns an info string.abstract voidprepare()Prepares this operation.final intsize()Returns the number of update operations.
-
Method Details
-
prepare
Prepares this operation.- Throws:
QueryException- exception
-
apply
Applies this operation.- Throws:
QueryException- exception
-
operation
Returns an info string.- Returns:
- info string
-
merge
Description copied from class:UpdateMerges two update operations pointing to the same target.- Specified by:
mergein classUpdate- Parameters:
update- operation to merge with- Throws:
QueryException- exception
-
databases
Adds all databases to be updated to the specified list.- Parameters:
db- databases
-
name
Returns the name of the database.- Returns:
- name
-
size
public final int size()Description copied from class:UpdateReturns the number of update operations. -
compareTo
- Specified by:
compareToin interfaceComparable<NameUpdate>
-