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>
Add primitive.
- Author:
- BaseX Team 2005-21, BSD License, Dimitar Popov
-
Field Summary
Fields inherited from class org.basex.query.up.primitives.DataUpdate
data -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.basex.query.up.primitives.DataUpdate
data
-
Constructor Details
-
DBAdd
public DBAdd(Data data, NewInput input, Options opts, boolean replace, QueryContext qc, InputInfo info) throws QueryException Constructor.- Parameters:
data- target databaseinput- document to add (IO or ANode instance)opts- database optionsreplace- replace flagqc- query contextinfo- input info- Throws:
QueryException- query exception
-
-
Method Details
-
prepare
Description copied from class:DBUpdatePrepares this operation.- Specified by:
preparein classDBUpdate- Throws:
QueryException- exception
-
apply
Description copied from class:DBUpdateApplies this operation.- Specified by:
applyin classDBUpdate- Throws:
QueryException- exception
-
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
-
size
public int size()Description copied from class:UpdateReturns the number of update operations. -
toString
-