001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.model;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import java.io.Serializable;
020    
021    import java.util.ArrayList;
022    import java.util.List;
023    
024    /**
025     * This class is used by SOAP remote services, specifically {@link com.liferay.portal.service.http.OrgLaborServiceSoap}.
026     *
027     * @author Brian Wing Shun Chan
028     * @see com.liferay.portal.service.http.OrgLaborServiceSoap
029     * @generated
030     */
031    @ProviderType
032    public class OrgLaborSoap implements Serializable {
033            public static OrgLaborSoap toSoapModel(OrgLabor model) {
034                    OrgLaborSoap soapModel = new OrgLaborSoap();
035    
036                    soapModel.setMvccVersion(model.getMvccVersion());
037                    soapModel.setOrgLaborId(model.getOrgLaborId());
038                    soapModel.setCompanyId(model.getCompanyId());
039                    soapModel.setOrganizationId(model.getOrganizationId());
040                    soapModel.setTypeId(model.getTypeId());
041                    soapModel.setSunOpen(model.getSunOpen());
042                    soapModel.setSunClose(model.getSunClose());
043                    soapModel.setMonOpen(model.getMonOpen());
044                    soapModel.setMonClose(model.getMonClose());
045                    soapModel.setTueOpen(model.getTueOpen());
046                    soapModel.setTueClose(model.getTueClose());
047                    soapModel.setWedOpen(model.getWedOpen());
048                    soapModel.setWedClose(model.getWedClose());
049                    soapModel.setThuOpen(model.getThuOpen());
050                    soapModel.setThuClose(model.getThuClose());
051                    soapModel.setFriOpen(model.getFriOpen());
052                    soapModel.setFriClose(model.getFriClose());
053                    soapModel.setSatOpen(model.getSatOpen());
054                    soapModel.setSatClose(model.getSatClose());
055    
056                    return soapModel;
057            }
058    
059            public static OrgLaborSoap[] toSoapModels(OrgLabor[] models) {
060                    OrgLaborSoap[] soapModels = new OrgLaborSoap[models.length];
061    
062                    for (int i = 0; i < models.length; i++) {
063                            soapModels[i] = toSoapModel(models[i]);
064                    }
065    
066                    return soapModels;
067            }
068    
069            public static OrgLaborSoap[][] toSoapModels(OrgLabor[][] models) {
070                    OrgLaborSoap[][] soapModels = null;
071    
072                    if (models.length > 0) {
073                            soapModels = new OrgLaborSoap[models.length][models[0].length];
074                    }
075                    else {
076                            soapModels = new OrgLaborSoap[0][0];
077                    }
078    
079                    for (int i = 0; i < models.length; i++) {
080                            soapModels[i] = toSoapModels(models[i]);
081                    }
082    
083                    return soapModels;
084            }
085    
086            public static OrgLaborSoap[] toSoapModels(List<OrgLabor> models) {
087                    List<OrgLaborSoap> soapModels = new ArrayList<OrgLaborSoap>(models.size());
088    
089                    for (OrgLabor model : models) {
090                            soapModels.add(toSoapModel(model));
091                    }
092    
093                    return soapModels.toArray(new OrgLaborSoap[soapModels.size()]);
094            }
095    
096            public OrgLaborSoap() {
097            }
098    
099            public long getPrimaryKey() {
100                    return _orgLaborId;
101            }
102    
103            public void setPrimaryKey(long pk) {
104                    setOrgLaborId(pk);
105            }
106    
107            public long getMvccVersion() {
108                    return _mvccVersion;
109            }
110    
111            public void setMvccVersion(long mvccVersion) {
112                    _mvccVersion = mvccVersion;
113            }
114    
115            public long getOrgLaborId() {
116                    return _orgLaborId;
117            }
118    
119            public void setOrgLaborId(long orgLaborId) {
120                    _orgLaborId = orgLaborId;
121            }
122    
123            public long getCompanyId() {
124                    return _companyId;
125            }
126    
127            public void setCompanyId(long companyId) {
128                    _companyId = companyId;
129            }
130    
131            public long getOrganizationId() {
132                    return _organizationId;
133            }
134    
135            public void setOrganizationId(long organizationId) {
136                    _organizationId = organizationId;
137            }
138    
139            public long getTypeId() {
140                    return _typeId;
141            }
142    
143            public void setTypeId(long typeId) {
144                    _typeId = typeId;
145            }
146    
147            public int getSunOpen() {
148                    return _sunOpen;
149            }
150    
151            public void setSunOpen(int sunOpen) {
152                    _sunOpen = sunOpen;
153            }
154    
155            public int getSunClose() {
156                    return _sunClose;
157            }
158    
159            public void setSunClose(int sunClose) {
160                    _sunClose = sunClose;
161            }
162    
163            public int getMonOpen() {
164                    return _monOpen;
165            }
166    
167            public void setMonOpen(int monOpen) {
168                    _monOpen = monOpen;
169            }
170    
171            public int getMonClose() {
172                    return _monClose;
173            }
174    
175            public void setMonClose(int monClose) {
176                    _monClose = monClose;
177            }
178    
179            public int getTueOpen() {
180                    return _tueOpen;
181            }
182    
183            public void setTueOpen(int tueOpen) {
184                    _tueOpen = tueOpen;
185            }
186    
187            public int getTueClose() {
188                    return _tueClose;
189            }
190    
191            public void setTueClose(int tueClose) {
192                    _tueClose = tueClose;
193            }
194    
195            public int getWedOpen() {
196                    return _wedOpen;
197            }
198    
199            public void setWedOpen(int wedOpen) {
200                    _wedOpen = wedOpen;
201            }
202    
203            public int getWedClose() {
204                    return _wedClose;
205            }
206    
207            public void setWedClose(int wedClose) {
208                    _wedClose = wedClose;
209            }
210    
211            public int getThuOpen() {
212                    return _thuOpen;
213            }
214    
215            public void setThuOpen(int thuOpen) {
216                    _thuOpen = thuOpen;
217            }
218    
219            public int getThuClose() {
220                    return _thuClose;
221            }
222    
223            public void setThuClose(int thuClose) {
224                    _thuClose = thuClose;
225            }
226    
227            public int getFriOpen() {
228                    return _friOpen;
229            }
230    
231            public void setFriOpen(int friOpen) {
232                    _friOpen = friOpen;
233            }
234    
235            public int getFriClose() {
236                    return _friClose;
237            }
238    
239            public void setFriClose(int friClose) {
240                    _friClose = friClose;
241            }
242    
243            public int getSatOpen() {
244                    return _satOpen;
245            }
246    
247            public void setSatOpen(int satOpen) {
248                    _satOpen = satOpen;
249            }
250    
251            public int getSatClose() {
252                    return _satClose;
253            }
254    
255            public void setSatClose(int satClose) {
256                    _satClose = satClose;
257            }
258    
259            private long _mvccVersion;
260            private long _orgLaborId;
261            private long _companyId;
262            private long _organizationId;
263            private long _typeId;
264            private int _sunOpen;
265            private int _sunClose;
266            private int _monOpen;
267            private int _monClose;
268            private int _tueOpen;
269            private int _tueClose;
270            private int _wedOpen;
271            private int _wedClose;
272            private int _thuOpen;
273            private int _thuClose;
274            private int _friOpen;
275            private int _friClose;
276            private int _satOpen;
277            private int _satClose;
278    }