Project

General

Profile

« Previous | Next » 

Revision 108ef8d8

Added by Katja Luther over 2 years ago

ref #9843: fix taxonnode dto creation and add parent uuid - continue

View differences:

cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/persistence/dto/SortableTaxonNodeQueryResult.java
23 23
    protected String taxonTitleCache;
24 24
    protected String nameTitleCache;
25 25
    protected Rank nameRank = Rank.UNKNOWN_RANK();
26
    protected UUID parentNodeUuid;
26 27

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

  
44 46
    /**
......
48 50
     * @param nameRank {@link Rank.#UNKNOWN_RANK()} will be used in case this is <code>null</code>
49 51
     */
50 52
    public SortableTaxonNodeQueryResult(UUID taxonNodeUuid, Integer taxonNodeId, String taxonTitleCache,
51
            Rank nameRank) {
52
        this(taxonNodeUuid, taxonNodeId, taxonTitleCache, null, nameRank);
53
            Rank nameRank, UUID parentNodeUuid) {
54
        this(taxonNodeUuid, taxonNodeId, taxonTitleCache, null, nameRank, parentNodeUuid);
53 55
    }
54 56

  
55
    public SortableTaxonNodeQueryResult(UUID taxonNodeUuid, Integer taxonNodeId, String taxonTitleCache) {
56
        this(taxonNodeUuid, taxonNodeId, taxonTitleCache, null);
57
    public SortableTaxonNodeQueryResult(UUID taxonNodeUuid, Integer taxonNodeId, String taxonTitleCache, UUID parentNodeUuid) {
58
        this(taxonNodeUuid, taxonNodeId, taxonTitleCache, null, parentNodeUuid);
57 59
    }
58 60

  
59 61
    public UUID getTaxonNodeUuid() {
......
62 64
    public void setTaxonNodeUuid(UUID taxonNodeUuid) {
63 65
        this.taxonNodeUuid = taxonNodeUuid;
64 66
    }
67
    /**
68
     * @return the parentNodeUuid
69
     */
70
    public UUID getParentNodeUuid() {
71
        return parentNodeUuid;
72
    }
73

  
74
    /**
75
     * @param parentNodeUuid the parentNodeUuid to set
76
     */
77
    public void setParentNodeUuid(UUID parentNodeUuid) {
78
        this.parentNodeUuid = parentNodeUuid;
79
    }
80

  
65 81
    public Integer getTaxonNodeId() {
66 82
        return taxonNodeId;
67 83
    }

Also available in: Unified diff