Package org.basex.query.up.primitives.db
Class DBAdd
- java.lang.Object
-
- org.basex.query.up.primitives.Update
-
- org.basex.query.up.primitives.DataUpdate
-
- org.basex.query.up.primitives.db.DBUpdate
-
- org.basex.query.up.primitives.db.DBAdd
-
- All Implemented Interfaces:
Comparable<DBUpdate>
public final class DBAdd extends DBUpdate
Add primitive.- Author:
- BaseX Team 2005-24, BSD License, Dimitar Popov
-
-
Field Summary
-
Fields inherited from class org.basex.query.up.primitives.DataUpdate
data
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
apply()
Applies this operation.void
merge(Update update)
Merges two update operations pointing to the same target.void
prepare()
Prepares this operation.int
size()
Returns the number of update operations.String
toString()
-
Methods inherited from class org.basex.query.up.primitives.DataUpdate
data
-
-
-
-
Constructor Detail
-
DBAdd
public DBAdd(Data data, NewInput input, HashMap<String,String> qopts, boolean replace, QueryContext qc, InputInfo info) throws QueryException
Constructor.- Parameters:
data
- target databaseinput
- document to add (IO or ANode instance)qopts
- query optionsreplace
- replace flagqc
- query contextinfo
- input info (can benull
)- Throws:
QueryException
- query exception
-
-
Method Detail
-
prepare
public void prepare() throws QueryException
Description copied from class:DBUpdate
Prepares this operation.- Specified by:
prepare
in classDBUpdate
- Throws:
QueryException
- exception
-
apply
public void apply() throws QueryException
Description copied from class:DBUpdate
Applies this operation.- Specified by:
apply
in classDBUpdate
- Throws:
QueryException
- exception
-
merge
public void merge(Update update) throws QueryException
Description copied from class:Update
Merges two update operations pointing to the same target.- Specified by:
merge
in classUpdate
- Parameters:
update
- operation to merge with- Throws:
QueryException
- exception
-
size
public int size()
Description copied from class:Update
Returns the number of update operations.
-
-