| Modifier and Type | Method and Description |
|---|---|
| public ModifyStatement | Returns: ModifyStatementdocument path to the array field docPath, Object value to append value)Append a value to the specified array. |
| public ModifyStatement | Returns: ModifyStatementdocument path to the array field docPath, Object value to insert value)Insert a value into the specified array. |
| public ModifyStatement | Returns: ModifyStatementdocument path to the given value docPath, Object value to set value)Add an update to the statement setting the field, if it exists at the document path, to the given value. |
| public ModifyStatement | Returns: ModifyStatementlimit numberOfRows)Add/replace the document limit for this statement. |
| public ModifyStatement | Returns: ModifyStatementpatch object document)Takes in a patch object and applies it on all documents matching the modify() filter, using the JSON_MERGE_PATCH() function. |
| public ModifyStatement | Returns: ModifyStatementpatch object document)Takes in a document patch and applies it on all documents matching the modify() filter, using the JSON_MERGE_PATCH() function. |
| public ModifyStatement | Returns: ModifyStatementdocument path to the given value docPath, Object value to set value)Add an update to the statement setting the field as the document path to the given value for all documents matching the search criteria. |
| public ModifyStatement | Returns: ModifyStatementsort expression sortFields)Add/replace the order specification for this statement. |
| public ModifyStatement |
| arrayAppend | back to summary |
|---|---|
| public ModifyStatement arrayAppend(String docPath, Object value) Append a value to the specified array.
| |
| arrayInsert | back to summary |
|---|---|
| public ModifyStatement arrayInsert(String docPath, Object value) Insert a value into the specified array.
| |
| change | back to summary |
|---|---|
| public ModifyStatement change(String docPath, Object value) Add an update to the statement setting the field, if it exists at the document path, to the given value.
| |
| limit | back to summary |
|---|---|
| public ModifyStatement limit(long numberOfRows) Add/replace the document limit for this statement.
| |
| patch | back to summary |
|---|---|
| public ModifyStatement patch(DbDoc document) Takes in a patch object and applies it on all documents matching the modify() filter, using the JSON_MERGE_PATCH() function.
Please note that
| |
| patch | back to summary |
|---|---|
| public ModifyStatement patch(String document) Takes in a document patch and applies it on all documents matching the modify() filter, using the JSON_MERGE_PATCH() function.
A document patch is similar to a JSON object, with the key difference that document field values can be nested expressions in addition to literal values.
| |
| set | back to summary |
|---|---|
| public ModifyStatement set(String docPath, Object value) Add an update to the statement setting the field as the document path to the given value for all documents matching the search criteria.
| |
| sort | back to summary |
|---|---|
| public ModifyStatement sort(String... sortFields) Add/replace the order specification for this statement.
| |
| unset | back to summary |
|---|---|
| public ModifyStatement unset(String... docPath) Nullify the given fields.
| |