public abstract class Updater extends Object
| Constructor and Description |
|---|
Updater() |
| Modifier and Type | Method and Description |
|---|---|
static Updater |
getInstance(com.fasterxml.jackson.databind.node.JsonNodeFactory factory,
EntityMetadata md,
UpdateExpression expr)
Creates an updater object based on the given update expression
|
static Updater |
getInstance(com.fasterxml.jackson.databind.node.JsonNodeFactory factory,
FieldTreeNode context,
UpdateExpression expr)
Creates an updater object based on the given update expression
|
Set<Path> |
getUpdateFields() |
abstract void |
getUpdateFields(Set<Path> fields)
Add the fields updated by this updater to the set of fields.
|
abstract boolean |
update(JsonDoc doc,
FieldTreeNode contextMd,
Path contextPath)
The implementation should update the document
|
public abstract boolean update(JsonDoc doc, FieldTreeNode contextMd, Path contextPath)
contextMd - The metadata for the current contextcontextPath - Absolute path to current contextpublic abstract void getUpdateFields(Set<Path> fields)
fields - A Set to receive the fields to be updated
The fields list should be added the absolute pathspublic static Updater getInstance(com.fasterxml.jackson.databind.node.JsonNodeFactory factory, EntityMetadata md, UpdateExpression expr)
public static Updater getInstance(com.fasterxml.jackson.databind.node.JsonNodeFactory factory, FieldTreeNode context, UpdateExpression expr)
factory - Node factorycontext - Metadata for the context nodeexpr - The update expression.Copyright © 2015. All rights reserved.