|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.query.up.primitives.UpdatePrimitive
public abstract class UpdatePrimitive
Abstract XQuery Update Primitive.
Field Summary | |
---|---|
Nod |
node
Target node of update expression. |
Method Summary | |
---|---|
abstract void |
apply(int add)
Applies the update operation represented by this primitive to the database. |
static MemData |
buildDB(NodIter ch,
MemData md)
Builds new data instance from iterator. |
void |
merge(UpdatePrimitive p)
Merges if possible two update primitives of the same type if they have the same target node. |
static boolean |
mergeTexts(Data d,
int a,
int b)
Merges two adjacent text nodes in a database. |
void |
prepare()
Prepares the update. |
abstract PrimitiveType |
type()
Returns the type of the update primitive. |
void |
update(NamePool pool)
Updates the name pool, which is used for finding duplicate attributes and namespace conflicts. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final Nod node
Method Detail |
---|
public abstract PrimitiveType type()
public abstract void apply(int add) throws QueryException
add
- size to add
QueryException
- query exceptionpublic void prepare() throws QueryException
QueryException
- query exceptionpublic void merge(UpdatePrimitive p) throws QueryException
p
- primitive to be merged with
QueryException
- query exceptionpublic void update(NamePool pool)
pool
- name poolpublic static boolean mergeTexts(Data d, int a, int b)
d
- data referencea
- node pre valueb
- node pre value
public static MemData buildDB(NodIter ch, MemData md) throws QueryException
ch
- sequence iteratormd
- memory data reference
QueryException
- query exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |