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,
boolean mergeExistingAttachments)
merge metadata and attachments of record 'from' into record 'to'.
|
public static void mergeRecords(Record to, Record from, boolean mergeExistingAttributes, boolean mergeExistingAttachments)
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 already exist in record
'to' will be overwritten, only attribute recordid will be kept if it was set before.mergeExistingAttachments - if 'true', equal attachments in record 'to' and 'from' will be merged (binary data is concatenated). If
'false', equal attachments already exist in record 'to' will be overwritten.