Project

General

Profile

Download (1.99 KB) Statistics
| Branch: | Tag: | Revision:
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
 */
20
public class SortableTaxonNodeQueryResult {
21

    
22
    UUID taxonNodeUuid;
23
    Integer taxonNodeId;
24
    String taxonTitleCache;
25
    Rank nameRank = Rank.UNKNOWN_RANK();
26

    
27

    
28

    
29
    /**Is this the reason
30
     * @param taxonNodeUuid
31
     * @param taxonNodeId
32
     * @param taxonTitleCache
33
     * @param nameRank {@link Rank.#UNKNOWN_RANK()} will be used in case this is <code>null</code>
34
     */
35
    public SortableTaxonNodeQueryResult(UUID taxonNodeUuid, Integer taxonNodeId, String taxonTitleCache,
36
            Rank nameRank) {
37
        this.taxonNodeUuid = taxonNodeUuid;
38
        this.taxonNodeId = taxonNodeId;
39
        this.taxonTitleCache = taxonTitleCache;
40
        if(nameRank != null){
41
            this.nameRank = nameRank;
42
        }
43
    }
44

    
45
    public SortableTaxonNodeQueryResult(UUID taxonNodeUuid, Integer taxonNodeId, String taxonTitleCache) {
46
        this(taxonNodeUuid, taxonNodeId, taxonTitleCache, null);
47
    }
48

    
49
    public UUID getTaxonNodeUuid() {
50
        return taxonNodeUuid;
51
    }
52
    public void setTaxonNodeUuid(UUID taxonNodeUuid) {
53
        this.taxonNodeUuid = taxonNodeUuid;
54
    }
55
    public Integer getTaxonNodeId() {
56
        return taxonNodeId;
57
    }
58
    public void setTaxonNodeId(Integer taxonNodeId) {
59
        this.taxonNodeId = taxonNodeId;
60
    }
61
    public String getTaxonTitleCache() {
62
        return taxonTitleCache;
63
    }
64
    public void setTaxonTitleCache(String taxonTitleCache) {
65
        this.taxonTitleCache = taxonTitleCache;
66
    }
67
    public Rank getNameRank() {
68
        return nameRank;
69
    }
70
    public void setNameRank(Rank nameRank) {
71
        this.nameRank = nameRank;
72
    }
73

    
74

    
75

    
76

    
77
}
(10-10/26)