public final class Put extends UpdatePrimitive
data, input, pre, type| Constructor and Description |
|---|
Put(InputInfo i,
int p,
Data d,
Uri u,
QueryContext context)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
apply()
Applies this update primitive to the corresponding database.
|
void |
merge(UpdatePrimitive p)
Merges two update primitives, as they have the same target node.
|
java.lang.String |
path(int p)
Returns uri as string.
|
int |
size()
Returns the total number of node operations.
|
java.lang.String |
toString() |
compareTo, targetNode, updatepublic Put(InputInfo i, int p, Data d, Uri u, QueryContext context)
i - input infop - pred - datau - uricontext - query contextpublic void apply()
throws QueryException
UpdatePrimitiveapply in class UpdatePrimitiveQueryException - exceptionpublic java.lang.String path(int p)
p - uri positionpublic void merge(UpdatePrimitive p) throws QueryException
UpdatePrimitivemerge in class UpdatePrimitivep - primitive to merge withQueryException - exceptionpublic int size()
UpdatePrimitivesize in class UpdatePrimitivepublic java.lang.String toString()
toString in class java.lang.Object