|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.query.up.primitives.UpdatePrimitive
org.basex.query.up.primitives.NewValue
org.basex.query.up.primitives.RenamePrimitive
public final class RenamePrimitive
Rename primitive.
Field Summary |
---|
Fields inherited from class org.basex.query.up.primitives.UpdatePrimitive |
---|
node |
Constructor Summary | |
---|---|
RenamePrimitive(Nod n,
QNm nm)
Constructor. |
Method Summary | |
---|---|
void |
apply(int add)
Applies the update operation represented by this primitive to the database. |
void |
merge(UpdatePrimitive p)
Merges if possible two update primitives of the same type if they have the same target node. |
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 org.basex.query.up.primitives.UpdatePrimitive |
---|
buildDB, mergeTexts, prepare |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RenamePrimitive(Nod n, QNm nm)
n
- target nodenm
- new nameMethod Detail |
---|
public void apply(int add)
UpdatePrimitive
apply
in class UpdatePrimitive
add
- size to addpublic void merge(UpdatePrimitive p) throws QueryException
UpdatePrimitive
merge
in class UpdatePrimitive
p
- primitive to be merged with
QueryException
- query exceptionpublic void update(NamePool pool)
UpdatePrimitive
update
in class UpdatePrimitive
pool
- name poolpublic PrimitiveType type()
UpdatePrimitive
type
in class UpdatePrimitive
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |