1   /**
2    * Copyright (c) 2000-2008 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(List models) {
74          List soapModels = new ArrayList(models.size());
75  
76          for (int i = 0; i < models.size(); i++) {
77              OrgLabor model = (OrgLabor)models.get(i);
78  
79              soapModels.add(toSoapModel(model));
80          }
81  
82          return (OrgLaborSoap[])soapModels.toArray(new OrgLaborSoap[0]);
83      }
84  
85      public OrgLaborSoap() {
86      }
87  
88      public long getPrimaryKey() {
89          return _orgLaborId;
90      }
91  
92      public void setPrimaryKey(long pk) {
93          setOrgLaborId(pk);
94      }
95  
96      public long getOrgLaborId() {
97          return _orgLaborId;
98      }
99  
100     public void setOrgLaborId(long orgLaborId) {
101         _orgLaborId = orgLaborId;
102     }
103 
104     public long getOrganizationId() {
105         return _organizationId;
106     }
107 
108     public void setOrganizationId(long organizationId) {
109         _organizationId = organizationId;
110     }
111 
112     public int getTypeId() {
113         return _typeId;
114     }
115 
116     public void setTypeId(int typeId) {
117         _typeId = typeId;
118     }
119 
120     public int getSunOpen() {
121         return _sunOpen;
122     }
123 
124     public void setSunOpen(int sunOpen) {
125         _sunOpen = sunOpen;
126     }
127 
128     public int getSunClose() {
129         return _sunClose;
130     }
131 
132     public void setSunClose(int sunClose) {
133         _sunClose = sunClose;
134     }
135 
136     public int getMonOpen() {
137         return _monOpen;
138     }
139 
140     public void setMonOpen(int monOpen) {
141         _monOpen = monOpen;
142     }
143 
144     public int getMonClose() {
145         return _monClose;
146     }
147 
148     public void setMonClose(int monClose) {
149         _monClose = monClose;
150     }
151 
152     public int getTueOpen() {
153         return _tueOpen;
154     }
155 
156     public void setTueOpen(int tueOpen) {
157         _tueOpen = tueOpen;
158     }
159 
160     public int getTueClose() {
161         return _tueClose;
162     }
163 
164     public void setTueClose(int tueClose) {
165         _tueClose = tueClose;
166     }
167 
168     public int getWedOpen() {
169         return _wedOpen;
170     }
171 
172     public void setWedOpen(int wedOpen) {
173         _wedOpen = wedOpen;
174     }
175 
176     public int getWedClose() {
177         return _wedClose;
178     }
179 
180     public void setWedClose(int wedClose) {
181         _wedClose = wedClose;
182     }
183 
184     public int getThuOpen() {
185         return _thuOpen;
186     }
187 
188     public void setThuOpen(int thuOpen) {
189         _thuOpen = thuOpen;
190     }
191 
192     public int getThuClose() {
193         return _thuClose;
194     }
195 
196     public void setThuClose(int thuClose) {
197         _thuClose = thuClose;
198     }
199 
200     public int getFriOpen() {
201         return _friOpen;
202     }
203 
204     public void setFriOpen(int friOpen) {
205         _friOpen = friOpen;
206     }
207 
208     public int getFriClose() {
209         return _friClose;
210     }
211 
212     public void setFriClose(int friClose) {
213         _friClose = friClose;
214     }
215 
216     public int getSatOpen() {
217         return _satOpen;
218     }
219 
220     public void setSatOpen(int satOpen) {
221         _satOpen = satOpen;
222     }
223 
224     public int getSatClose() {
225         return _satClose;
226     }
227 
228     public void setSatClose(int satClose) {
229         _satClose = satClose;
230     }
231 
232     private long _orgLaborId;
233     private long _organizationId;
234     private int _typeId;
235     private int _sunOpen;
236     private int _sunClose;
237     private int _monOpen;
238     private int _monClose;
239     private int _tueOpen;
240     private int _tueClose;
241     private int _wedOpen;
242     private int _wedClose;
243     private int _thuOpen;
244     private int _thuClose;
245     private int _friOpen;
246     private int _friClose;
247     private int _satOpen;
248     private int _satClose;
249 }