~mortenoh/+junk/dhis2-detailed-import-export

« back to all changes in this revision

Viewing changes to dhis-2/dhis-api/src/main/java/org/hisp/dhis/resourcetable/OrganisationUnitStructure.java

  • Committer: larshelge at gmail
  • Date: 2009-03-03 16:46:36 UTC
  • Revision ID: larshelge@gmail.com-20090303164636-2sjlrquo7ib1gf7r
Initial check-in

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package org.hisp.dhis.resourcetable;
 
2
 
 
3
import java.io.Serializable;
 
4
 
 
5
/*
 
6
 * Copyright (c) 2004-2007, University of Oslo
 
7
 * All rights reserved.
 
8
 *
 
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.
 
19
 *
 
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.
 
30
 */
 
31
 
 
32
/**
 
33
 * @author Lars Helge Overland
 
34
 * @version $Id: OrganisationUnitStructure.java 2694 2007-01-12 19:19:46Z torgeilo $
 
35
 */
 
36
public class OrganisationUnitStructure
 
37
    implements Serializable
 
38
{
 
39
    private int id;
 
40
    
 
41
    private int organisationUnitId;
 
42
    
 
43
    private int level;
 
44
    
 
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;
 
53
    
 
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;
 
62
 
 
63
    // ----------------------------------------------------------------------
 
64
    // Constructors
 
65
    // ----------------------------------------------------------------------
 
66
 
 
67
    public OrganisationUnitStructure()
 
68
    {        
 
69
    }
 
70
    
 
71
    // ----------------------------------------------------------------------
 
72
    // Getters & setters
 
73
    // ----------------------------------------------------------------------
 
74
 
 
75
    public int getOrganisationUnitId()
 
76
    {
 
77
        return organisationUnitId;
 
78
    }
 
79
 
 
80
    public void setOrganisationUnitId( int organisationUnitId )
 
81
    {
 
82
        this.organisationUnitId = organisationUnitId;
 
83
    }
 
84
    
 
85
    public int getId()
 
86
    {
 
87
        return id;
 
88
    }
 
89
 
 
90
    public void setId( int id )
 
91
    {
 
92
        this.id = id;
 
93
    }
 
94
 
 
95
    public int getLevel()
 
96
    {
 
97
        return level;
 
98
    }
 
99
 
 
100
    public void setLevel( int level )
 
101
    {
 
102
        this.level = level;
 
103
    }
 
104
 
 
105
    public Integer getIdLevel1()
 
106
    {
 
107
        return idLevel1;
 
108
    }
 
109
 
 
110
    public void setIdLevel1( Integer idLevel1 )
 
111
    {
 
112
        this.idLevel1 = idLevel1;
 
113
    }
 
114
 
 
115
    public Integer getIdLevel2()
 
116
    {
 
117
        return idLevel2;
 
118
    }
 
119
 
 
120
    public void setIdLevel2( Integer idLevel2 )
 
121
    {
 
122
        this.idLevel2 = idLevel2;
 
123
    }
 
124
 
 
125
    public Integer getIdLevel3()
 
126
    {
 
127
        return idLevel3;
 
128
    }
 
129
 
 
130
    public void setIdLevel3( Integer idLevel3 )
 
131
    {
 
132
        this.idLevel3 = idLevel3;
 
133
    }
 
134
 
 
135
    public Integer getIdLevel4()
 
136
    {
 
137
        return idLevel4;
 
138
    }
 
139
 
 
140
    public void setIdLevel4( Integer idLevel4 )
 
141
    {
 
142
        this.idLevel4 = idLevel4;
 
143
    }
 
144
 
 
145
    public Integer getIdLevel5()
 
146
    {
 
147
        return idLevel5;
 
148
    }
 
149
 
 
150
    public void setIdLevel5( Integer idLevel5 )
 
151
    {
 
152
        this.idLevel5 = idLevel5;
 
153
    }
 
154
 
 
155
    public Integer getIdLevel6()
 
156
    {
 
157
        return idLevel6;
 
158
    }
 
159
 
 
160
    public void setIdLevel6( Integer idLevel6 )
 
161
    {
 
162
        this.idLevel6 = idLevel6;
 
163
    }
 
164
 
 
165
    public Integer getIdLevel7()
 
166
    {
 
167
        return idLevel7;
 
168
    }
 
169
 
 
170
    public void setIdLevel7( Integer idLevel7 )
 
171
    {
 
172
        this.idLevel7 = idLevel7;
 
173
    }
 
174
 
 
175
    public Integer getIdLevel8()
 
176
    {
 
177
        return idLevel8;
 
178
    }
 
179
 
 
180
    public void setIdLevel8( Integer idLevel8 )
 
181
    {
 
182
        this.idLevel8 = idLevel8;
 
183
    }
 
184
 
 
185
    public String getGeoCodeLevel1()
 
186
    {
 
187
        return geoCodeLevel1;
 
188
    }
 
189
 
 
190
    public void setGeoCodeLevel1( String geoCodeLevel1 )
 
191
    {
 
192
        this.geoCodeLevel1 = geoCodeLevel1;
 
193
    }
 
194
 
 
195
    public String getGeoCodeLevel2()
 
196
    {
 
197
        return geoCodeLevel2;
 
198
    }
 
199
 
 
200
    public void setGeoCodeLevel2( String geoCodeLevel2 )
 
201
    {
 
202
        this.geoCodeLevel2 = geoCodeLevel2;
 
203
    }
 
204
 
 
205
    public String getGeoCodeLevel3()
 
206
    {
 
207
        return geoCodeLevel3;
 
208
    }
 
209
 
 
210
    public void setGeoCodeLevel3( String geoCodeLevel3 )
 
211
    {
 
212
        this.geoCodeLevel3 = geoCodeLevel3;
 
213
    }
 
214
 
 
215
    public String getGeoCodeLevel4()
 
216
    {
 
217
        return geoCodeLevel4;
 
218
    }
 
219
 
 
220
    public void setGeoCodeLevel4( String geoCodeLevel4 )
 
221
    {
 
222
        this.geoCodeLevel4 = geoCodeLevel4;
 
223
    }
 
224
 
 
225
    public String getGeoCodeLevel5()
 
226
    {
 
227
        return geoCodeLevel5;
 
228
    }
 
229
 
 
230
    public void setGeoCodeLevel5( String geoCodeLevel5 )
 
231
    {
 
232
        this.geoCodeLevel5 = geoCodeLevel5;
 
233
    }
 
234
 
 
235
    public String getGeoCodeLevel6()
 
236
    {
 
237
        return geoCodeLevel6;
 
238
    }
 
239
 
 
240
    public void setGeoCodeLevel6( String geoCodeLevel6 )
 
241
    {
 
242
        this.geoCodeLevel6 = geoCodeLevel6;
 
243
    }
 
244
 
 
245
    public String getGeoCodeLevel7()
 
246
    {
 
247
        return geoCodeLevel7;
 
248
    }
 
249
 
 
250
    public void setGeoCodeLevel7( String geoCodeLevel7 )
 
251
    {
 
252
        this.geoCodeLevel7 = geoCodeLevel7;
 
253
    }
 
254
 
 
255
    public String getGeoCodeLevel8()
 
256
    {
 
257
        return geoCodeLevel8;
 
258
    }
 
259
 
 
260
    public void setGeoCodeLevel8( String geoCodeLevel8 )
 
261
    {
 
262
        this.geoCodeLevel8 = geoCodeLevel8;
 
263
    }
 
264
}