public final class RecordMerger
extends java.lang.Object
| Constructor and Description |
|---|
RecordMerger() |
| Modifier and Type | Method and Description |
|---|---|
static void |
mergeRecords(Record to,
Record from,
boolean mergeExistingAttributes)
merge metadata and attachments of record 'from' into record 'to'.
|
public static void mergeRecords(Record to, Record from, boolean mergeExistingAttributes)
mergeExistingAttributes - if 'true' the values of equal metadata attributes in record 'to' and 'from' will be merged (create AnySeq
of values resp. merge existing AnySeq's). If 'false', equal metadata attributes or attachments already
exist in record 'to' they will be overwritten, only attribute recordid will be kept if it was set before.