Check dao null exception
[cdmlib.git] / cdmlib-persistence / src / main / java / eu / etaxonomy / cdm / persistence / dto / NameMatchingParts.java
1 /**
2 * Copyright (C) 2023 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
10 package eu.etaxonomy.cdm.persistence.dto;
11
12 import java.util.UUID;
13
14 /**
15 * @author andreabee90
16 */
17 public class NameMatchingParts {
18
19 protected Integer taxonNameId;
20
21 protected UUID taxonNameUuid;
22
23 protected String titleCache;
24
25 protected String authorshipCache;
26
27 protected String genusOrUninomial;
28
29 protected String infraGenericEpithet;
30
31 protected String specificEpithet;
32
33 protected String infraSpecificEpithet;
34
35 protected String nameCache;
36
37 //************ CONSTRUCTOR ***********************/
38
39 public NameMatchingParts() {
40 }
41
42 public NameMatchingParts(Integer taxonNameId, UUID taxonNameUuid, String titleCache, String authorshipCache,
43 String genusOrUninomial, String infraGenericEpithet, String specificEpithet, String infraSpecificEpithet, String nameCache) {
44 super();
45 this.taxonNameId = taxonNameId;
46 this.taxonNameUuid = taxonNameUuid;
47 this.titleCache = titleCache;
48 this.authorshipCache = authorshipCache;
49 this.genusOrUninomial = genusOrUninomial;
50 this.infraGenericEpithet = infraGenericEpithet;
51 this.specificEpithet = specificEpithet;
52 this.infraSpecificEpithet = infraSpecificEpithet;
53 this.nameCache = nameCache;
54 }
55
56 //***************** GETTER / SETTER ********************************/
57 public Integer getTaxonNameId() {
58 return taxonNameId;
59 }
60
61 public void setTaxonNameId(Integer taxonNameId) {
62 this.taxonNameId = taxonNameId;
63 }
64
65 public UUID getTaxonNameUuid() {
66 return taxonNameUuid;
67 }
68
69 public void setTaxonNameUuid(UUID taxonNameUuid) {
70 this.taxonNameUuid = taxonNameUuid;
71 }
72
73 public String getTitleCache() {
74 return titleCache;
75 }
76
77 public void setTitleCache(String titleCache) {
78 this.titleCache = titleCache;
79 }
80
81 public String getAuthorshipCache() {
82 return authorshipCache;
83 }
84
85 public void setAuthorshipCache(String authorshipCache) {
86 this.authorshipCache = authorshipCache;
87 }
88
89 public String getGenusOrUninomial() {
90 return genusOrUninomial;
91 }
92
93 public void setGenusOrUninomial(String genusOrUninomial) {
94 this.genusOrUninomial = genusOrUninomial;
95 }
96
97 public String getInfraGenericEpithet() {
98 return infraGenericEpithet;
99 }
100
101 public void setInfraGenericEpithet(String infraGenericEpithet) {
102 this.infraGenericEpithet = infraGenericEpithet;
103 }
104
105 public String getSpecificEpithet() {
106 return specificEpithet;
107 }
108
109 public void setSpecificEpithet(String specificEpithet) {
110 this.specificEpithet = specificEpithet;
111 }
112
113 public String getInfraSpecificEpithet() {
114 return infraSpecificEpithet;
115 }
116
117 public void setInfraSpecificEpithet(String infraSpecificEpithet) {
118 this.infraSpecificEpithet = infraSpecificEpithet;
119 }
120
121 public String getNameCache() {
122 return nameCache;
123 }
124
125 public void setNameCache(String nameCache) {
126 this.nameCache = nameCache;
127 }
128
129 // ************************** TO STRING *************************************/
130
131 @Override
132 public String toString() {
133 return "NameMatchingParts [taxonNameId=" + taxonNameId + ", genusOrUninomial=" + genusOrUninomial
134 + ", infraGenericEpithet=" + infraGenericEpithet + ", specificEpithet=" + specificEpithet
135 + ", infraSpecificEpithet=" + infraSpecificEpithet + ", nameCache=" + nameCache + "]";
136 }
137 }