public final class Merge extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Merge.IField |
static class |
Merge.PathAndField |
| Constructor and Description |
|---|
Merge(com.redhat.lightblue.metadata.EntityMetadata md)
Initialize with the metadata of the new object
|
| Modifier and Type | Method and Description |
|---|---|
void |
findInvisibleFields(com.mongodb.DBObject dbObject)
Construct the initial state of Merge by going through all the fields in
the DBObject, and checking if they exist in metadata.
|
List<Merge.PathAndField> |
getArrayIdentifiers(com.redhat.lightblue.util.Path arrayElementField)
Returns all array element ids.
|
List<Merge.IField> |
getIdentifyingContent(List<Merge.PathAndField> identifiers,
com.mongodb.DBObject parent) |
List<Merge.IField> |
getInvisibleFields() |
void |
merge(com.mongodb.DBObject oldCopy,
com.mongodb.DBObject newCopy)
Attempts to copy the invisible fields in oldCopy into newCopy.
|
void |
reset()
Reset the internal state of the Merge
|
public Merge(com.redhat.lightblue.metadata.EntityMetadata md)
public void reset()
public void merge(com.mongodb.DBObject oldCopy,
com.mongodb.DBObject newCopy)
public List<Merge.IField> getInvisibleFields()
public List<Merge.IField> getIdentifyingContent(List<Merge.PathAndField> identifiers, com.mongodb.DBObject parent)
public List<Merge.PathAndField> getArrayIdentifiers(com.redhat.lightblue.util.Path arrayElementField)
public void findInvisibleFields(com.mongodb.DBObject dbObject)
Copyright © 2014. All rights reserved.