1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portal.model;
24  
25  import java.io.Serializable;
26  
27  import java.util.ArrayList;
28  import java.util.List;
29  
30  /**
31   * <a href="OrgLaborSoap.java.html"><b><i>View Source</i></b></a>
32   *
33   * <p>
34   * ServiceBuilder generated this class. Modifications in this class will be
35   * overwritten the next time is generated.
36   * </p>
37   *
38   * <p>
39   * This class is used by
40   * <code>com.liferay.portal.service.http.OrgLaborServiceSoap</code>.
41   * </p>
42   *
43   * @author Brian Wing Shun Chan
44   *
45   * @see com.liferay.portal.service.http.OrgLaborServiceSoap
46   *
47   */
48  public class OrgLaborSoap implements Serializable {
49      public static OrgLaborSoap toSoapModel(OrgLabor model) {
50          OrgLaborSoap soapModel = new OrgLaborSoap();
51  
52          soapModel.setOrgLaborId(model.getOrgLaborId());
53          soapModel.setOrganizationId(model.getOrganizationId());
54          soapModel.setTypeId(model.getTypeId());
55          soapModel.setSunOpen(model.getSunOpen());
56          soapModel.setSunClose(model.getSunClose());
57          soapModel.setMonOpen(model.getMonOpen());
58          soapModel.setMonClose(model.getMonClose());
59          soapModel.setTueOpen(model.getTueOpen());
60          soapModel.setTueClose(model.getTueClose());
61          soapModel.setWedOpen(model.getWedOpen());
62          soapModel.setWedClose(model.getWedClose());
63          soapModel.setThuOpen(model.getThuOpen());
64          soapModel.setThuClose(model.getThuClose());
65          soapModel.setFriOpen(model.getFriOpen());
66          soapModel.setFriClose(model.getFriClose());
67          soapModel.setSatOpen(model.getSatOpen());
68          soapModel.setSatClose(model.getSatClose());
69  
70          return soapModel;
71      }
72  
73      public static OrgLaborSoap[] toSoapModels(OrgLabor[] models) {
74          OrgLaborSoap[] soapModels = new OrgLaborSoap[models.length];
75  
76          for (int i = 0; i < models.length; i++) {
77              soapModels[i] = toSoapModel(models[i]);
78          }
79  
80          return soapModels;
81      }
82  
83      public static OrgLaborSoap[][] toSoapModels(OrgLabor[][] models) {
84          OrgLaborSoap[][] soapModels = null;
85  
86          if (models.length > 0) {
87              soapModels = new OrgLaborSoap[models.length][models[0].length];
88          }
89          else {
90              soapModels = new OrgLaborSoap[0][0];
91          }
92  
93          for (int i = 0; i < models.length; i++) {
94              soapModels[i] = toSoapModels(models[i]);
95          }
96  
97          return soapModels;
98      }
99  
100     public static OrgLaborSoap[] toSoapModels(List<OrgLabor> models) {
101         List<OrgLaborSoap> soapModels = new ArrayList<OrgLaborSoap>(models.size());
102 
103         for (OrgLabor model : models) {
104             soapModels.add(toSoapModel(model));
105         }
106 
107         return soapModels.toArray(new OrgLaborSoap[soapModels.size()]);
108     }
109 
110     public OrgLaborSoap() {
111     }
112 
113     public long getPrimaryKey() {
114         return _orgLaborId;
115     }
116 
117     public void setPrimaryKey(long pk) {
118         setOrgLaborId(pk);
119     }
120 
121     public long getOrgLaborId() {
122         return _orgLaborId;
123     }
124 
125     public void setOrgLaborId(long orgLaborId) {
126         _orgLaborId = orgLaborId;
127     }
128 
129     public long getOrganizationId() {
130         return _organizationId;
131     }
132 
133     public void setOrganizationId(long organizationId) {
134         _organizationId = organizationId;
135     }
136 
137     public int getTypeId() {
138         return _typeId;
139     }
140 
141     public void setTypeId(int typeId) {
142         _typeId = typeId;
143     }
144 
145     public int getSunOpen() {
146         return _sunOpen;
147     }
148 
149     public void setSunOpen(int sunOpen) {
150         _sunOpen = sunOpen;
151     }
152 
153     public int getSunClose() {
154         return _sunClose;
155     }
156 
157     public void setSunClose(int sunClose) {
158         _sunClose = sunClose;
159     }
160 
161     public int getMonOpen() {
162         return _monOpen;
163     }
164 
165     public void setMonOpen(int monOpen) {
166         _monOpen = monOpen;
167     }
168 
169     public int getMonClose() {
170         return _monClose;
171     }
172 
173     public void setMonClose(int monClose) {
174         _monClose = monClose;
175     }
176 
177     public int getTueOpen() {
178         return _tueOpen;
179     }
180 
181     public void setTueOpen(int tueOpen) {
182         _tueOpen = tueOpen;
183     }
184 
185     public int getTueClose() {
186         return _tueClose;
187     }
188 
189     public void setTueClose(int tueClose) {
190         _tueClose = tueClose;
191     }
192 
193     public int getWedOpen() {
194         return _wedOpen;
195     }
196 
197     public void setWedOpen(int wedOpen) {
198         _wedOpen = wedOpen;
199     }
200 
201     public int getWedClose() {
202         return _wedClose;
203     }
204 
205     public void setWedClose(int wedClose) {
206         _wedClose = wedClose;
207     }
208 
209     public int getThuOpen() {
210         return _thuOpen;
211     }
212 
213     public void setThuOpen(int thuOpen) {
214         _thuOpen = thuOpen;
215     }
216 
217     public int getThuClose() {
218         return _thuClose;
219     }
220 
221     public void setThuClose(int thuClose) {
222         _thuClose = thuClose;
223     }
224 
225     public int getFriOpen() {
226         return _friOpen;
227     }
228 
229     public void setFriOpen(int friOpen) {
230         _friOpen = friOpen;
231     }
232 
233     public int getFriClose() {
234         return _friClose;
235     }
236 
237     public void setFriClose(int friClose) {
238         _friClose = friClose;
239     }
240 
241     public int getSatOpen() {
242         return _satOpen;
243     }
244 
245     public void setSatOpen(int satOpen) {
246         _satOpen = satOpen;
247     }
248 
249     public int getSatClose() {
250         return _satClose;
251     }
252 
253     public void setSatClose(int satClose) {
254         _satClose = satClose;
255     }
256 
257     private long _orgLaborId;
258     private long _organizationId;
259     private int _typeId;
260     private int _sunOpen;
261     private int _sunClose;
262     private int _monOpen;
263     private int _monClose;
264     private int _tueOpen;
265     private int _tueClose;
266     private int _wedOpen;
267     private int _wedClose;
268     private int _thuOpen;
269     private int _thuClose;
270     private int _friOpen;
271     private int _friClose;
272     private int _satOpen;
273     private int _satClose;
274 }