Project

General

Profile

1
package eu.dnetlib.enabling.datasources.common;
2

    
3
import java.sql.Date;
4
import java.util.Set;
5
import javax.persistence.*;
6

    
7
@MappedSuperclass
8
public class Organization<DS extends Datasource<?, ?>> {
9

    
10
	@Id
11
	protected String id;
12
	protected String legalshortname;
13
	protected String legalname;
14
	protected String websiteurl;
15
	protected String logourl;
16

    
17
	@Column(name = "ec_legalbody")
18
	protected Boolean eclegalbody;
19

    
20
	@Column(name = "ec_legalperson")
21
	protected Boolean eclegalperson;
22

    
23
	@Column(name = "ec_nonprofit")
24
	protected Boolean ecnonprofit;
25

    
26
	@Column(name = "ec_researchorganization")
27
	protected Boolean ecresearchorganization;
28

    
29
	@Column(name = "ec_highereducation")
30
	protected Boolean echighereducation;
31

    
32
	@Column(name = "ec_internationalorganizationeurinterests")
33
	protected Boolean ecinternationalorganizationeurinterests;
34

    
35
	@Column(name = "ec_internationalorganization")
36
	protected Boolean ecinternationalorganization;
37

    
38
	@Column(name = "ec_enterprise")
39
	protected Boolean ecenterprise;
40

    
41
	@Column(name = "ec_smevalidated")
42
	protected Boolean ecsmevalidated;
43

    
44
	@Column(name = "ec_nutscode")
45
	protected Boolean ecnutscode;
46

    
47
	protected String country;
48
	protected String collectedfrom;
49

    
50
	protected Date dateofcollection;
51
	protected String provenanceaction;
52

    
53
	@ManyToMany(cascade = { CascadeType.PERSIST, CascadeType.MERGE }, fetch = FetchType.EAGER, mappedBy = "organizations")
54
	protected Set<DS> datasources;
55

    
56
	public Organization() {}
57

    
58
	public String getId() {
59
		return id;
60
	}
61

    
62
	public String getLegalshortname() {
63
		return legalshortname;
64
	}
65

    
66
	public String getLegalname() {
67
		return legalname;
68
	}
69

    
70
	public String getWebsiteurl() {
71
		return websiteurl;
72
	}
73

    
74
	public String getLogourl() {
75
		return logourl;
76
	}
77

    
78
	public Boolean isEclegalbody() {
79
		return eclegalbody;
80
	}
81

    
82
	public Boolean isEclegalperson() {
83
		return eclegalperson;
84
	}
85

    
86
	public Boolean isEcnonprofit() {
87
		return ecnonprofit;
88
	}
89

    
90
	public Boolean isEcresearchorganization() {
91
		return ecresearchorganization;
92
	}
93

    
94
	public Boolean isEchighereducation() {
95
		return echighereducation;
96
	}
97

    
98
	public Boolean isEcinternationalorganizationeurinterests() {
99
		return ecinternationalorganizationeurinterests;
100
	}
101

    
102
	public Boolean isEcinternationalorganization() {
103
		return ecinternationalorganization;
104
	}
105

    
106
	public Boolean isEcenterprise() {
107
		return ecenterprise;
108
	}
109

    
110
	public Boolean isEcsmevalidated() {
111
		return ecsmevalidated;
112
	}
113

    
114
	public Boolean isEcnutscode() {
115
		return ecnutscode;
116
	}
117

    
118
	public String getCountry() {
119
		return country;
120
	}
121

    
122
	public String getCollectedfrom() {
123
		return collectedfrom;
124
	}
125

    
126
	public Date getDateofcollection() {
127
		return dateofcollection;
128
	}
129

    
130
	public String getProvenanceaction() {
131
		return provenanceaction;
132
	}
133

    
134
	public Organization<DS> setId(final String id) {
135
		this.id = id;
136
		return this;
137
	}
138

    
139
	public Organization<DS> setLegalshortname(final String legalshortname) {
140
		this.legalshortname = legalshortname;
141
		return this;
142
	}
143

    
144
	public Organization<DS> setLegalname(final String legalname) {
145
		this.legalname = legalname;
146
		return this;
147
	}
148

    
149
	public Organization<DS> setWebsiteurl(final String websiteurl) {
150
		this.websiteurl = websiteurl;
151
		return this;
152
	}
153

    
154
	public Organization<DS> setLogourl(final String logourl) {
155
		this.logourl = logourl;
156
		return this;
157
	}
158

    
159
	public Organization<DS> setEclegalbody(final Boolean eclegalbody) {
160
		this.eclegalbody = eclegalbody;
161
		return this;
162
	}
163

    
164
	public Organization<DS> setEclegalperson(final Boolean eclegalperson) {
165
		this.eclegalperson = eclegalperson;
166
		return this;
167
	}
168

    
169
	public Organization<DS> setEcnonprofit(final Boolean ecnonprofit) {
170
		this.ecnonprofit = ecnonprofit;
171
		return this;
172
	}
173

    
174
	public Organization<DS> setEcresearchorganization(final Boolean ecresearchorganization) {
175
		this.ecresearchorganization = ecresearchorganization;
176
		return this;
177
	}
178

    
179
	public Organization<DS> setEchighereducation(final Boolean echighereducation) {
180
		this.echighereducation = echighereducation;
181
		return this;
182
	}
183

    
184
	public Organization<DS> setEcinternationalorganizationeurinterests(final Boolean ecinternationalorganizationeurinterests) {
185
		this.ecinternationalorganizationeurinterests = ecinternationalorganizationeurinterests;
186
		return this;
187
	}
188

    
189
	public Organization<DS> setEcinternationalorganization(final Boolean ecinternationalorganization) {
190
		this.ecinternationalorganization = ecinternationalorganization;
191
		return this;
192
	}
193

    
194
	public Organization<DS> setEcenterprise(final Boolean ecenterprise) {
195
		this.ecenterprise = ecenterprise;
196
		return this;
197
	}
198

    
199
	public Organization<DS> setEcsmevalidated(final Boolean ecsmevalidated) {
200
		this.ecsmevalidated = ecsmevalidated;
201
		return this;
202
	}
203

    
204
	public Organization<DS> setEcnutscode(final Boolean ecnutscode) {
205
		this.ecnutscode = ecnutscode;
206
		return this;
207
	}
208

    
209
	public Organization<DS> setCountry(final String country) {
210
		this.country = country;
211
		return this;
212
	}
213

    
214
	public Organization<DS> setCollectedfrom(final String collectedfrom) {
215
		this.collectedfrom = collectedfrom;
216
		return this;
217
	}
218

    
219
	public Organization<DS> setDateofcollection(final Date dateofcollection) {
220
		this.dateofcollection = dateofcollection;
221
		return this;
222
	}
223

    
224
	public Organization<DS> setProvenanceaction(final String provenanceaction) {
225
		this.provenanceaction = provenanceaction;
226
		return this;
227
	}
228

    
229
	public Set<DS> getDatasources() {
230
		return datasources;
231
	}
232

    
233
	public void setDatasources(final Set<DS> datasources) {
234
		this.datasources = datasources;
235
	}
236

    
237
}
(15-15/16)