1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.model;
16  
17  import java.io.Serializable;
18  
19  import java.util.ArrayList;
20  import java.util.List;
21  
22  /**
23   * <a href="OrgLaborSoap.java.html"><b><i>View Source</i></b></a>
24   *
25   * <p>
26   * ServiceBuilder generated this class. Modifications in this class will be
27   * overwritten the next time is generated.
28   * </p>
29   *
30   * <p>
31   * This class is used by
32   * {@link com.liferay.portal.service.http.OrgLaborServiceSoap}.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       com.liferay.portal.service.http.OrgLaborServiceSoap
37   * @generated
38   */
39  public class OrgLaborSoap implements Serializable {
40      public static OrgLaborSoap toSoapModel(OrgLabor model) {
41          OrgLaborSoap soapModel = new OrgLaborSoap();
42  
43          soapModel.setOrgLaborId(model.getOrgLaborId());
44          soapModel.setOrganizationId(model.getOrganizationId());
45          soapModel.setTypeId(model.getTypeId());
46          soapModel.setSunOpen(model.getSunOpen());
47          soapModel.setSunClose(model.getSunClose());
48          soapModel.setMonOpen(model.getMonOpen());
49          soapModel.setMonClose(model.getMonClose());
50          soapModel.setTueOpen(model.getTueOpen());
51          soapModel.setTueClose(model.getTueClose());
52          soapModel.setWedOpen(model.getWedOpen());
53          soapModel.setWedClose(model.getWedClose());
54          soapModel.setThuOpen(model.getThuOpen());
55          soapModel.setThuClose(model.getThuClose());
56          soapModel.setFriOpen(model.getFriOpen());
57          soapModel.setFriClose(model.getFriClose());
58          soapModel.setSatOpen(model.getSatOpen());
59          soapModel.setSatClose(model.getSatClose());
60  
61          return soapModel;
62      }
63  
64      public static OrgLaborSoap[] toSoapModels(OrgLabor[] models) {
65          OrgLaborSoap[] soapModels = new OrgLaborSoap[models.length];
66  
67          for (int i = 0; i < models.length; i++) {
68              soapModels[i] = toSoapModel(models[i]);
69          }
70  
71          return soapModels;
72      }
73  
74      public static OrgLaborSoap[][] toSoapModels(OrgLabor[][] models) {
75          OrgLaborSoap[][] soapModels = null;
76  
77          if (models.length > 0) {
78              soapModels = new OrgLaborSoap[models.length][models[0].length];
79          }
80          else {
81              soapModels = new OrgLaborSoap[0][0];
82          }
83  
84          for (int i = 0; i < models.length; i++) {
85              soapModels[i] = toSoapModels(models[i]);
86          }
87  
88          return soapModels;
89      }
90  
91      public static OrgLaborSoap[] toSoapModels(List<OrgLabor> models) {
92          List<OrgLaborSoap> soapModels = new ArrayList<OrgLaborSoap>(models.size());
93  
94          for (OrgLabor model : models) {
95              soapModels.add(toSoapModel(model));
96          }
97  
98          return soapModels.toArray(new OrgLaborSoap[soapModels.size()]);
99      }
100 
101     public OrgLaborSoap() {
102     }
103 
104     public long getPrimaryKey() {
105         return _orgLaborId;
106     }
107 
108     public void setPrimaryKey(long pk) {
109         setOrgLaborId(pk);
110     }
111 
112     public long getOrgLaborId() {
113         return _orgLaborId;
114     }
115 
116     public void setOrgLaborId(long orgLaborId) {
117         _orgLaborId = orgLaborId;
118     }
119 
120     public long getOrganizationId() {
121         return _organizationId;
122     }
123 
124     public void setOrganizationId(long organizationId) {
125         _organizationId = organizationId;
126     }
127 
128     public int getTypeId() {
129         return _typeId;
130     }
131 
132     public void setTypeId(int typeId) {
133         _typeId = typeId;
134     }
135 
136     public int getSunOpen() {
137         return _sunOpen;
138     }
139 
140     public void setSunOpen(int sunOpen) {
141         _sunOpen = sunOpen;
142     }
143 
144     public int getSunClose() {
145         return _sunClose;
146     }
147 
148     public void setSunClose(int sunClose) {
149         _sunClose = sunClose;
150     }
151 
152     public int getMonOpen() {
153         return _monOpen;
154     }
155 
156     public void setMonOpen(int monOpen) {
157         _monOpen = monOpen;
158     }
159 
160     public int getMonClose() {
161         return _monClose;
162     }
163 
164     public void setMonClose(int monClose) {
165         _monClose = monClose;
166     }
167 
168     public int getTueOpen() {
169         return _tueOpen;
170     }
171 
172     public void setTueOpen(int tueOpen) {
173         _tueOpen = tueOpen;
174     }
175 
176     public int getTueClose() {
177         return _tueClose;
178     }
179 
180     public void setTueClose(int tueClose) {
181         _tueClose = tueClose;
182     }
183 
184     public int getWedOpen() {
185         return _wedOpen;
186     }
187 
188     public void setWedOpen(int wedOpen) {
189         _wedOpen = wedOpen;
190     }
191 
192     public int getWedClose() {
193         return _wedClose;
194     }
195 
196     public void setWedClose(int wedClose) {
197         _wedClose = wedClose;
198     }
199 
200     public int getThuOpen() {
201         return _thuOpen;
202     }
203 
204     public void setThuOpen(int thuOpen) {
205         _thuOpen = thuOpen;
206     }
207 
208     public int getThuClose() {
209         return _thuClose;
210     }
211 
212     public void setThuClose(int thuClose) {
213         _thuClose = thuClose;
214     }
215 
216     public int getFriOpen() {
217         return _friOpen;
218     }
219 
220     public void setFriOpen(int friOpen) {
221         _friOpen = friOpen;
222     }
223 
224     public int getFriClose() {
225         return _friClose;
226     }
227 
228     public void setFriClose(int friClose) {
229         _friClose = friClose;
230     }
231 
232     public int getSatOpen() {
233         return _satOpen;
234     }
235 
236     public void setSatOpen(int satOpen) {
237         _satOpen = satOpen;
238     }
239 
240     public int getSatClose() {
241         return _satClose;
242     }
243 
244     public void setSatClose(int satClose) {
245         _satClose = satClose;
246     }
247 
248     private long _orgLaborId;
249     private long _organizationId;
250     private int _typeId;
251     private int _sunOpen;
252     private int _sunClose;
253     private int _monOpen;
254     private int _monClose;
255     private int _tueOpen;
256     private int _tueClose;
257     private int _wedOpen;
258     private int _wedClose;
259     private int _thuOpen;
260     private int _thuClose;
261     private int _friOpen;
262     private int _friClose;
263     private int _satOpen;
264     private int _satClose;
265 }