001    /**
002     * Copyright (c) 2000-2013 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 java.io.Serializable;
018    
019    import java.util.ArrayList;
020    import java.util.List;
021    
022    /**
023     * This class is used by SOAP remote services, specifically {@link com.liferay.portal.service.http.OrgLaborServiceSoap}.
024     *
025     * @author    Brian Wing Shun Chan
026     * @see       com.liferay.portal.service.http.OrgLaborServiceSoap
027     * @generated
028     */
029    public class OrgLaborSoap implements Serializable {
030            public static OrgLaborSoap toSoapModel(OrgLabor model) {
031                    OrgLaborSoap soapModel = new OrgLaborSoap();
032    
033                    soapModel.setOrgLaborId(model.getOrgLaborId());
034                    soapModel.setOrganizationId(model.getOrganizationId());
035                    soapModel.setTypeId(model.getTypeId());
036                    soapModel.setSunOpen(model.getSunOpen());
037                    soapModel.setSunClose(model.getSunClose());
038                    soapModel.setMonOpen(model.getMonOpen());
039                    soapModel.setMonClose(model.getMonClose());
040                    soapModel.setTueOpen(model.getTueOpen());
041                    soapModel.setTueClose(model.getTueClose());
042                    soapModel.setWedOpen(model.getWedOpen());
043                    soapModel.setWedClose(model.getWedClose());
044                    soapModel.setThuOpen(model.getThuOpen());
045                    soapModel.setThuClose(model.getThuClose());
046                    soapModel.setFriOpen(model.getFriOpen());
047                    soapModel.setFriClose(model.getFriClose());
048                    soapModel.setSatOpen(model.getSatOpen());
049                    soapModel.setSatClose(model.getSatClose());
050    
051                    return soapModel;
052            }
053    
054            public static OrgLaborSoap[] toSoapModels(OrgLabor[] models) {
055                    OrgLaborSoap[] soapModels = new OrgLaborSoap[models.length];
056    
057                    for (int i = 0; i < models.length; i++) {
058                            soapModels[i] = toSoapModel(models[i]);
059                    }
060    
061                    return soapModels;
062            }
063    
064            public static OrgLaborSoap[][] toSoapModels(OrgLabor[][] models) {
065                    OrgLaborSoap[][] soapModels = null;
066    
067                    if (models.length > 0) {
068                            soapModels = new OrgLaborSoap[models.length][models[0].length];
069                    }
070                    else {
071                            soapModels = new OrgLaborSoap[0][0];
072                    }
073    
074                    for (int i = 0; i < models.length; i++) {
075                            soapModels[i] = toSoapModels(models[i]);
076                    }
077    
078                    return soapModels;
079            }
080    
081            public static OrgLaborSoap[] toSoapModels(List<OrgLabor> models) {
082                    List<OrgLaborSoap> soapModels = new ArrayList<OrgLaborSoap>(models.size());
083    
084                    for (OrgLabor model : models) {
085                            soapModels.add(toSoapModel(model));
086                    }
087    
088                    return soapModels.toArray(new OrgLaborSoap[soapModels.size()]);
089            }
090    
091            public OrgLaborSoap() {
092            }
093    
094            public long getPrimaryKey() {
095                    return _orgLaborId;
096            }
097    
098            public void setPrimaryKey(long pk) {
099                    setOrgLaborId(pk);
100            }
101    
102            public long getOrgLaborId() {
103                    return _orgLaborId;
104            }
105    
106            public void setOrgLaborId(long orgLaborId) {
107                    _orgLaborId = orgLaborId;
108            }
109    
110            public long getOrganizationId() {
111                    return _organizationId;
112            }
113    
114            public void setOrganizationId(long organizationId) {
115                    _organizationId = organizationId;
116            }
117    
118            public int getTypeId() {
119                    return _typeId;
120            }
121    
122            public void setTypeId(int typeId) {
123                    _typeId = typeId;
124            }
125    
126            public int getSunOpen() {
127                    return _sunOpen;
128            }
129    
130            public void setSunOpen(int sunOpen) {
131                    _sunOpen = sunOpen;
132            }
133    
134            public int getSunClose() {
135                    return _sunClose;
136            }
137    
138            public void setSunClose(int sunClose) {
139                    _sunClose = sunClose;
140            }
141    
142            public int getMonOpen() {
143                    return _monOpen;
144            }
145    
146            public void setMonOpen(int monOpen) {
147                    _monOpen = monOpen;
148            }
149    
150            public int getMonClose() {
151                    return _monClose;
152            }
153    
154            public void setMonClose(int monClose) {
155                    _monClose = monClose;
156            }
157    
158            public int getTueOpen() {
159                    return _tueOpen;
160            }
161    
162            public void setTueOpen(int tueOpen) {
163                    _tueOpen = tueOpen;
164            }
165    
166            public int getTueClose() {
167                    return _tueClose;
168            }
169    
170            public void setTueClose(int tueClose) {
171                    _tueClose = tueClose;
172            }
173    
174            public int getWedOpen() {
175                    return _wedOpen;
176            }
177    
178            public void setWedOpen(int wedOpen) {
179                    _wedOpen = wedOpen;
180            }
181    
182            public int getWedClose() {
183                    return _wedClose;
184            }
185    
186            public void setWedClose(int wedClose) {
187                    _wedClose = wedClose;
188            }
189    
190            public int getThuOpen() {
191                    return _thuOpen;
192            }
193    
194            public void setThuOpen(int thuOpen) {
195                    _thuOpen = thuOpen;
196            }
197    
198            public int getThuClose() {
199                    return _thuClose;
200            }
201    
202            public void setThuClose(int thuClose) {
203                    _thuClose = thuClose;
204            }
205    
206            public int getFriOpen() {
207                    return _friOpen;
208            }
209    
210            public void setFriOpen(int friOpen) {
211                    _friOpen = friOpen;
212            }
213    
214            public int getFriClose() {
215                    return _friClose;
216            }
217    
218            public void setFriClose(int friClose) {
219                    _friClose = friClose;
220            }
221    
222            public int getSatOpen() {
223                    return _satOpen;
224            }
225    
226            public void setSatOpen(int satOpen) {
227                    _satOpen = satOpen;
228            }
229    
230            public int getSatClose() {
231                    return _satClose;
232            }
233    
234            public void setSatClose(int satClose) {
235                    _satClose = satClose;
236            }
237    
238            private long _orgLaborId;
239            private long _organizationId;
240            private int _typeId;
241            private int _sunOpen;
242            private int _sunClose;
243            private int _monOpen;
244            private int _monClose;
245            private int _tueOpen;
246            private int _tueClose;
247            private int _wedOpen;
248            private int _wedClose;
249            private int _thuOpen;
250            private int _thuClose;
251            private int _friOpen;
252            private int _friClose;
253            private int _satOpen;
254            private int _satClose;
255    }