public interface PatchBuilder
Modifier and Type | Method and Description |
---|---|
PatchBuilder |
insertAfter(java.lang.String path,
ServerExpression node)
Insert a new node after another node.
|
PatchBuilder |
insertAfter(XsStringVal path,
ServerExpression node)
Insert a new node after another node.
|
PatchBuilder |
insertBefore(java.lang.String path,
ServerExpression node)
Insert a new node before another node.
|
PatchBuilder |
insertBefore(XsStringVal path,
ServerExpression node)
Insert a new node before another node.
|
PatchBuilder |
insertChild(java.lang.String path,
ServerExpression node)
Insert a node as child.
|
PatchBuilder |
insertChild(XsStringVal path,
ServerExpression node)
Insert a node as child.
|
PatchBuilder |
insertNamedChild(java.lang.String path,
java.lang.String key, ServerExpression node)
This method is specific for JSON and inserts a
key/value pair to an object.
|
PatchBuilder |
insertNamedChild(XsStringVal path,
XsStringVal key,
ServerExpression node)
This method is specific for JSON and inserts a
key/value pair to an object.
|
PatchBuilder |
remove(java.lang.String path)
This method deletes a document from the
database.
|
PatchBuilder |
remove(XsStringVal path)
This method deletes a document from the
database.
|
PatchBuilder |
replace(java.lang.String path,
ServerExpression node)
Replace a node with another node.
|
PatchBuilder |
replace(XsStringVal path,
ServerExpression node)
Replace a node with another node.
|
PatchBuilder |
replaceInsertChild(java.lang.String parentPath,
java.lang.String pathToReplace)
Replace a child if it exist, or insert if it
does not exist.
|
PatchBuilder |
replaceInsertChild(java.lang.String parentPath,
java.lang.String pathToReplace, ServerExpression node)
Replace a child if it exist, or insert if it
does not exist.
|
PatchBuilder |
replaceInsertChild(XsStringVal parentPath,
XsStringVal pathToReplace)
Replace a child if it exist, or insert if it
does not exist.
|
PatchBuilder |
replaceInsertChild(XsStringVal parentPath,
XsStringVal pathToReplace,
ServerExpression node)
Replace a child if it exist, or insert if it
does not exist.
|
PatchBuilder |
replaceValue(java.lang.String path,
ServerExpression value)
Replace the value of a path with a new
value.
|
PatchBuilder |
replaceValue(XsStringVal path,
ServerExpression value)
Replace the value of a path with a new
value.
|
PatchBuilder insertAfter(java.lang.String path, ServerExpression node)
path
- The Patch Builder Plan. You can either use
the XQuery => chaining operator or specify the variable that
captures the return value from the previous operation.node
- The path to insert the node after. (of
item)PatchBuilder insertAfter(XsStringVal path, ServerExpression node)
path
- The Patch Builder Plan. You can either use
the XQuery => chaining operator or specify the variable that
captures the return value from the previous operation.node
- The path to insert the node after. (of
item)PatchBuilder insertBefore(java.lang.String path, ServerExpression node)
path
- The Patch Builder Plan. You can either use
the XQuery => chaining operator or specify the variable that
captures the return value from the previous operation.node
- The path to insert the node before. (of
item)PatchBuilder insertBefore(XsStringVal path, ServerExpression node)
path
- The Patch Builder Plan. You can either use
the XQuery => chaining operator or specify the variable that
captures the return value from the previous operation.node
- The path to insert the node before. (of
item)PatchBuilder insertChild(java.lang.String path, ServerExpression node)
path
- The Patch Builder Plan. You can either use
the XQuery => chaining operator or specify the variable that
captures the return value from the previous operation.node
- The path to insert the child. (of item)PatchBuilder insertChild(XsStringVal path, ServerExpression node)
path
- The Patch Builder Plan. You can either use
the XQuery => chaining operator or specify the variable that
captures the return value from the previous operation.node
- The path to insert the child. (of item)PatchBuilder insertNamedChild(java.lang.String path, java.lang.String key, ServerExpression node)
path
- The Patch Builder Plan. You can either use
the XQuery => chaining operator or specify the variable that
captures the return value from the previous operation.key
- The path which returns an JSON Object.node
- The key to insert. (of item)PatchBuilder insertNamedChild(XsStringVal path, XsStringVal key, ServerExpression node)
path
- The Patch Builder Plan. You can either use
the XQuery => chaining operator or specify the variable that
captures the return value from the previous operation.key
- The path which returns an JSON Object.node
- The key to insert. (of item)PatchBuilder remove(java.lang.String path)
path
- If this column is not specified then it
assumes a column 'uri' is present. This can be a string of the uri
column name or an op:col. Use op:view-col or op:schema-col if you
need to identify columns in the two views that have the same column
name. This can also be a map object specify the uri column
name.PatchBuilder remove(XsStringVal path)
path
- If this column is not specified then it
assumes a column 'uri' is present. This can be a string of the uri
column name or an op:col. Use op:view-col or op:schema-col if you
need to identify columns in the two views that have the same column
name. This can also be a map object specify the uri column
name.PatchBuilder replace(java.lang.String path, ServerExpression node)
path
- The Patch Builder Plan. You can either use
the XQuery => chaining operator or specify the variable that
captures the return value from the previous operation.node
- The path to replace. (of item)PatchBuilder replace(XsStringVal path, ServerExpression node)
path
- The Patch Builder Plan. You can either use
the XQuery => chaining operator or specify the variable that
captures the return value from the previous operation.node
- The path to replace. (of item)PatchBuilder replaceInsertChild(java.lang.String parentPath, java.lang.String pathToReplace)
parentPath
- The Patch Builder Plan. You can
either use the XQuery => chaining operator or specify the
variable that captures the return value from the previous
operation.pathToReplace
- The parent path to
insert/replace.PatchBuilder replaceInsertChild(XsStringVal parentPath, XsStringVal pathToReplace)
parentPath
- The Patch Builder Plan. You can
either use the XQuery => chaining operator or specify the
variable that captures the return value from the previous
operation.pathToReplace
- The parent path to
insert/replace.PatchBuilder replaceInsertChild(java.lang.String parentPath, java.lang.String pathToReplace, ServerExpression node)
parentPath
- The Patch Builder Plan. You can
either use the XQuery => chaining operator or specify the
variable that captures the return value from the previous
operation.pathToReplace
- The parent path to
insert/replace.node
- The path to insert/replace which is
relative to parent-path. (of item)PatchBuilder replaceInsertChild(XsStringVal parentPath, XsStringVal pathToReplace, ServerExpression node)
parentPath
- The Patch Builder Plan. You can
either use the XQuery => chaining operator or specify the
variable that captures the return value from the previous
operation.pathToReplace
- The parent path to
insert/replace.node
- The path to insert/replace which is
relative to parent-path. (of item)PatchBuilder replaceValue(java.lang.String path, ServerExpression value)
path
- The Patch Builder Plan. You can either use
the XQuery => chaining operator or specify the variable that
captures the return value from the previous operation.value
- The path to replace the value. (of
item)PatchBuilder replaceValue(XsStringVal path, ServerExpression value)
path
- The Patch Builder Plan. You can either use
the XQuery => chaining operator or specify the variable that
captures the return value from the previous operation.value
- The path to replace the value. (of
item)Copyright © 2024 MarkLogic Corporation. All Rights Reserved.