1
|
/**
|
2
|
* Copyright (C) 2020 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.util.UUID;
|
12
|
|
13
|
import eu.etaxonomy.cdm.model.name.Rank;
|
14
|
|
15
|
/**
|
16
|
* @author a.kohlbecker
|
17
|
* @since Mar 20, 2020
|
18
|
*/
|
19
|
public class SortableTaxonNodeQueryResult {
|
20
|
|
21
|
private UUID taxonNodeUuid;
|
22
|
private Integer taxonNodeId;
|
23
|
private String taxonTitleCache;
|
24
|
private String nameTitleCache;
|
25
|
private Rank nameRank = Rank.UNKNOWN_RANK();
|
26
|
|
27
|
/**Is this the reason
|
28
|
* @param taxonNodeUuid
|
29
|
* @param taxonNodeId
|
30
|
* @param taxonTitleCache
|
31
|
* @param nameRank {@link Rank.#UNKNOWN_RANK()} will be used in case this is <code>null</code>
|
32
|
*/
|
33
|
public SortableTaxonNodeQueryResult(UUID taxonNodeUuid, Integer taxonNodeId, String taxonTitleCache, String nameTitleCache,
|
34
|
Rank nameRank) {
|
35
|
this.taxonNodeUuid = taxonNodeUuid;
|
36
|
this.taxonNodeId = taxonNodeId;
|
37
|
this.taxonTitleCache = taxonTitleCache;
|
38
|
this.nameTitleCache = nameTitleCache;
|
39
|
if(nameRank != null){
|
40
|
this.nameRank = nameRank;
|
41
|
}
|
42
|
}
|
43
|
|
44
|
/**
|
45
|
* @param taxonNodeUuid
|
46
|
* @param taxonNodeId
|
47
|
* @param taxonTitleCache
|
48
|
* @param nameRank {@link Rank.#UNKNOWN_RANK()} will be used in case this is <code>null</code>
|
49
|
*/
|
50
|
public SortableTaxonNodeQueryResult(UUID taxonNodeUuid, Integer taxonNodeId, String taxonTitleCache,
|
51
|
Rank nameRank) {
|
52
|
this(taxonNodeUuid, taxonNodeId, taxonTitleCache, null, nameRank);
|
53
|
}
|
54
|
|
55
|
public SortableTaxonNodeQueryResult(UUID taxonNodeUuid, Integer taxonNodeId, String taxonTitleCache) {
|
56
|
this(taxonNodeUuid, taxonNodeId, taxonTitleCache, null);
|
57
|
}
|
58
|
|
59
|
public UUID getTaxonNodeUuid() {
|
60
|
return taxonNodeUuid;
|
61
|
}
|
62
|
public void setTaxonNodeUuid(UUID taxonNodeUuid) {
|
63
|
this.taxonNodeUuid = taxonNodeUuid;
|
64
|
}
|
65
|
public Integer getTaxonNodeId() {
|
66
|
return taxonNodeId;
|
67
|
}
|
68
|
public void setTaxonNodeId(Integer taxonNodeId) {
|
69
|
this.taxonNodeId = taxonNodeId;
|
70
|
}
|
71
|
public String getTaxonTitleCache() {
|
72
|
return taxonTitleCache;
|
73
|
}
|
74
|
public void setTaxonTitleCache(String taxonTitleCache) {
|
75
|
this.taxonTitleCache = taxonTitleCache;
|
76
|
}
|
77
|
public Rank getNameRank() {
|
78
|
return nameRank;
|
79
|
}
|
80
|
public void setNameRank(Rank nameRank) {
|
81
|
this.nameRank = nameRank;
|
82
|
}
|
83
|
|
84
|
public String getNameTitleCache() {
|
85
|
return nameTitleCache;
|
86
|
}
|
87
|
public void setNameTitleCache(String nameTitleCache) {
|
88
|
this.nameTitleCache = nameTitleCache;
|
89
|
}
|
90
|
|
91
|
|
92
|
}
|