1   /**
2    * Copyright (c) 2000-2007 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 overwritten
35   * the next time is generated.
36   * </p>
37   *
38   * <p>
39   * This class is used by <code>com.liferay.portal.service.http.OrgLaborServiceSoap</code>.
40   * </p>
41   *
42   * @author Brian Wing Shun Chan
43   *
44   * @see com.liferay.portal.service.http.OrgLaborServiceSoap
45   *
46   */
47  public class OrgLaborSoap implements Serializable {
48      public static OrgLaborSoap toSoapModel(OrgLabor model) {
49          OrgLaborSoap soapModel = new OrgLaborSoap();
50          soapModel.setOrgLaborId(model.getOrgLaborId());
51          soapModel.setOrganizationId(model.getOrganizationId());
52          soapModel.setTypeId(model.getTypeId());
53          soapModel.setSunOpen(model.getSunOpen());
54          soapModel.setSunClose(model.getSunClose());
55          soapModel.setMonOpen(model.getMonOpen());
56          soapModel.setMonClose(model.getMonClose());
57          soapModel.setTueOpen(model.getTueOpen());
58          soapModel.setTueClose(model.getTueClose());
59          soapModel.setWedOpen(model.getWedOpen());
60          soapModel.setWedClose(model.getWedClose());
61          soapModel.setThuOpen(model.getThuOpen());
62          soapModel.setThuClose(model.getThuClose());
63          soapModel.setFriOpen(model.getFriOpen());
64          soapModel.setFriClose(model.getFriClose());
65          soapModel.setSatOpen(model.getSatOpen());
66          soapModel.setSatClose(model.getSatClose());
67  
68          return soapModel;
69      }
70  
71      public static OrgLaborSoap[] toSoapModels(List models) {
72          List soapModels = new ArrayList(models.size());
73  
74          for (int i = 0; i < models.size(); i++) {
75              OrgLabor model = (OrgLabor)models.get(i);
76              soapModels.add(toSoapModel(model));
77          }
78  
79          return (OrgLaborSoap[])soapModels.toArray(new OrgLaborSoap[0]);
80      }
81  
82      public OrgLaborSoap() {
83      }
84  
85      public long getPrimaryKey() {
86          return _orgLaborId;
87      }
88  
89      public void setPrimaryKey(long pk) {
90          setOrgLaborId(pk);
91      }
92  
93      public long getOrgLaborId() {
94          return _orgLaborId;
95      }
96  
97      public void setOrgLaborId(long orgLaborId) {
98          _orgLaborId = orgLaborId;
99      }
100 
101     public long getOrganizationId() {
102         return _organizationId;
103     }
104 
105     public void setOrganizationId(long organizationId) {
106         _organizationId = organizationId;
107     }
108 
109     public int getTypeId() {
110         return _typeId;
111     }
112 
113     public void setTypeId(int typeId) {
114         _typeId = typeId;
115     }
116 
117     public int getSunOpen() {
118         return _sunOpen;
119     }
120 
121     public void setSunOpen(int sunOpen) {
122         _sunOpen = sunOpen;
123     }
124 
125     public int getSunClose() {
126         return _sunClose;
127     }
128 
129     public void setSunClose(int sunClose) {
130         _sunClose = sunClose;
131     }
132 
133     public int getMonOpen() {
134         return _monOpen;
135     }
136 
137     public void setMonOpen(int monOpen) {
138         _monOpen = monOpen;
139     }
140 
141     public int getMonClose() {
142         return _monClose;
143     }
144 
145     public void setMonClose(int monClose) {
146         _monClose = monClose;
147     }
148 
149     public int getTueOpen() {
150         return _tueOpen;
151     }
152 
153     public void setTueOpen(int tueOpen) {
154         _tueOpen = tueOpen;
155     }
156 
157     public int getTueClose() {
158         return _tueClose;
159     }
160 
161     public void setTueClose(int tueClose) {
162         _tueClose = tueClose;
163     }
164 
165     public int getWedOpen() {
166         return _wedOpen;
167     }
168 
169     public void setWedOpen(int wedOpen) {
170         _wedOpen = wedOpen;
171     }
172 
173     public int getWedClose() {
174         return _wedClose;
175     }
176 
177     public void setWedClose(int wedClose) {
178         _wedClose = wedClose;
179     }
180 
181     public int getThuOpen() {
182         return _thuOpen;
183     }
184 
185     public void setThuOpen(int thuOpen) {
186         _thuOpen = thuOpen;
187     }
188 
189     public int getThuClose() {
190         return _thuClose;
191     }
192 
193     public void setThuClose(int thuClose) {
194         _thuClose = thuClose;
195     }
196 
197     public int getFriOpen() {
198         return _friOpen;
199     }
200 
201     public void setFriOpen(int friOpen) {
202         _friOpen = friOpen;
203     }
204 
205     public int getFriClose() {
206         return _friClose;
207     }
208 
209     public void setFriClose(int friClose) {
210         _friClose = friClose;
211     }
212 
213     public int getSatOpen() {
214         return _satOpen;
215     }
216 
217     public void setSatOpen(int satOpen) {
218         _satOpen = satOpen;
219     }
220 
221     public int getSatClose() {
222         return _satClose;
223     }
224 
225     public void setSatClose(int satClose) {
226         _satClose = satClose;
227     }
228 
229     private long _orgLaborId;
230     private long _organizationId;
231     private int _typeId;
232     private int _sunOpen;
233     private int _sunClose;
234     private int _monOpen;
235     private int _monClose;
236     private int _tueOpen;
237     private int _tueClose;
238     private int _wedOpen;
239     private int _wedClose;
240     private int _thuOpen;
241     private int _thuClose;
242     private int _friOpen;
243     private int _friClose;
244     private int _satOpen;
245     private int _satClose;
246 }