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