1
|
/**
|
2
|
* Copyright (C) 2015 EDIT
|
3
|
* European Distributed Institute of Taxonomy
|
4
|
* http://www.e-taxonomy.eu
|
5
|
*
|
6
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
7
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
8
|
*/
|
9
|
package eu.etaxonomy.cdm.persistence.dto;
|
10
|
|
11
|
import java.io.Serializable;
|
12
|
import java.util.Set;
|
13
|
|
14
|
import eu.etaxonomy.cdm.model.common.ICdmBase;
|
15
|
|
16
|
/**
|
17
|
* @author cmathew
|
18
|
* @date 7 Oct 2015
|
19
|
*
|
20
|
*/
|
21
|
public class MergeResult<T extends ICdmBase> implements Serializable {
|
22
|
|
23
|
private static final long serialVersionUID = 4886558003386941487L;
|
24
|
|
25
|
private T mergedEntity;
|
26
|
private Set<T> newEntities;
|
27
|
|
28
|
|
29
|
public MergeResult(T mergedEntity, Set<T> newEntities) {
|
30
|
this.mergedEntity = mergedEntity;
|
31
|
this.newEntities = newEntities;
|
32
|
}
|
33
|
|
34
|
/**
|
35
|
* @return the mergedEntity
|
36
|
*/
|
37
|
public T getMergedEntity() {
|
38
|
return mergedEntity;
|
39
|
}
|
40
|
/**
|
41
|
* @param mergedEntity the mergedEntity to set
|
42
|
*/
|
43
|
public void setMergedEntity(T mergedEntity) {
|
44
|
this.mergedEntity = mergedEntity;
|
45
|
}
|
46
|
/**
|
47
|
* @return the newEntities
|
48
|
*/
|
49
|
public Set<T> getNewEntities() {
|
50
|
return newEntities;
|
51
|
}
|
52
|
/**
|
53
|
* @param newEntities the newEntities to set
|
54
|
*/
|
55
|
public void setNewEntities(Set<T> newEntities) {
|
56
|
this.newEntities = newEntities;
|
57
|
}
|
58
|
|
59
|
}
|