1
package org.hisp.dhis.resourcetable;
3
import java.io.Serializable;
6
* Copyright (c) 2004-2007, University of Oslo
9
* Redistribution and use in source and binary forms, with or without
10
* modification, are permitted provided that the following conditions are met:
11
* * Redistributions of source code must retain the above copyright notice, this
12
* list of conditions and the following disclaimer.
13
* * Redistributions in binary form must reproduce the above copyright notice,
14
* this list of conditions and the following disclaimer in the documentation
15
* and/or other materials provided with the distribution.
16
* * Neither the name of the HISP project nor the names of its contributors may
17
* be used to endorse or promote products derived from this software without
18
* specific prior written permission.
20
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
21
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
24
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
25
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
26
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
27
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
29
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33
* @author Lars Helge Overland
34
* @version $Id: OrganisationUnitStructure.java 2694 2007-01-12 19:19:46Z torgeilo $
36
public class OrganisationUnitStructure
37
implements Serializable
41
private int organisationUnitId;
45
private Integer idLevel1;
46
private Integer idLevel2;
47
private Integer idLevel3;
48
private Integer idLevel4;
49
private Integer idLevel5;
50
private Integer idLevel6;
51
private Integer idLevel7;
52
private Integer idLevel8;
54
private String geoCodeLevel1;
55
private String geoCodeLevel2;
56
private String geoCodeLevel3;
57
private String geoCodeLevel4;
58
private String geoCodeLevel5;
59
private String geoCodeLevel6;
60
private String geoCodeLevel7;
61
private String geoCodeLevel8;
63
// ----------------------------------------------------------------------
65
// ----------------------------------------------------------------------
67
public OrganisationUnitStructure()
71
// ----------------------------------------------------------------------
73
// ----------------------------------------------------------------------
75
public int getOrganisationUnitId()
77
return organisationUnitId;
80
public void setOrganisationUnitId( int organisationUnitId )
82
this.organisationUnitId = organisationUnitId;
90
public void setId( int id )
100
public void setLevel( int level )
105
public Integer getIdLevel1()
110
public void setIdLevel1( Integer idLevel1 )
112
this.idLevel1 = idLevel1;
115
public Integer getIdLevel2()
120
public void setIdLevel2( Integer idLevel2 )
122
this.idLevel2 = idLevel2;
125
public Integer getIdLevel3()
130
public void setIdLevel3( Integer idLevel3 )
132
this.idLevel3 = idLevel3;
135
public Integer getIdLevel4()
140
public void setIdLevel4( Integer idLevel4 )
142
this.idLevel4 = idLevel4;
145
public Integer getIdLevel5()
150
public void setIdLevel5( Integer idLevel5 )
152
this.idLevel5 = idLevel5;
155
public Integer getIdLevel6()
160
public void setIdLevel6( Integer idLevel6 )
162
this.idLevel6 = idLevel6;
165
public Integer getIdLevel7()
170
public void setIdLevel7( Integer idLevel7 )
172
this.idLevel7 = idLevel7;
175
public Integer getIdLevel8()
180
public void setIdLevel8( Integer idLevel8 )
182
this.idLevel8 = idLevel8;
185
public String getGeoCodeLevel1()
187
return geoCodeLevel1;
190
public void setGeoCodeLevel1( String geoCodeLevel1 )
192
this.geoCodeLevel1 = geoCodeLevel1;
195
public String getGeoCodeLevel2()
197
return geoCodeLevel2;
200
public void setGeoCodeLevel2( String geoCodeLevel2 )
202
this.geoCodeLevel2 = geoCodeLevel2;
205
public String getGeoCodeLevel3()
207
return geoCodeLevel3;
210
public void setGeoCodeLevel3( String geoCodeLevel3 )
212
this.geoCodeLevel3 = geoCodeLevel3;
215
public String getGeoCodeLevel4()
217
return geoCodeLevel4;
220
public void setGeoCodeLevel4( String geoCodeLevel4 )
222
this.geoCodeLevel4 = geoCodeLevel4;
225
public String getGeoCodeLevel5()
227
return geoCodeLevel5;
230
public void setGeoCodeLevel5( String geoCodeLevel5 )
232
this.geoCodeLevel5 = geoCodeLevel5;
235
public String getGeoCodeLevel6()
237
return geoCodeLevel6;
240
public void setGeoCodeLevel6( String geoCodeLevel6 )
242
this.geoCodeLevel6 = geoCodeLevel6;
245
public String getGeoCodeLevel7()
247
return geoCodeLevel7;
250
public void setGeoCodeLevel7( String geoCodeLevel7 )
252
this.geoCodeLevel7 = geoCodeLevel7;
255
public String getGeoCodeLevel8()
257
return geoCodeLevel8;
260
public void setGeoCodeLevel8( String geoCodeLevel8 )
262
this.geoCodeLevel8 = geoCodeLevel8;