001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portal.model;
022:
023: import java.io.Serializable;
024:
025: import java.util.ArrayList;
026: import java.util.List;
027:
028: /**
029: * <a href="OrgLaborSoap.java.html"><b><i>View Source</i></b></a>
030: *
031: * <p>
032: * ServiceBuilder generated this class. Modifications in this class will be
033: * overwritten the next time is generated.
034: * </p>
035: *
036: * <p>
037: * This class is used by
038: * <code>com.liferay.portal.service.http.OrgLaborServiceSoap</code>.
039: * </p>
040: *
041: * @author Brian Wing Shun Chan
042: *
043: * @see com.liferay.portal.service.http.OrgLaborServiceSoap
044: *
045: */
046: public class OrgLaborSoap implements Serializable {
047: public static OrgLaborSoap toSoapModel(OrgLabor model) {
048: OrgLaborSoap soapModel = new OrgLaborSoap();
049:
050: soapModel.setOrgLaborId(model.getOrgLaborId());
051: soapModel.setOrganizationId(model.getOrganizationId());
052: soapModel.setTypeId(model.getTypeId());
053: soapModel.setSunOpen(model.getSunOpen());
054: soapModel.setSunClose(model.getSunClose());
055: soapModel.setMonOpen(model.getMonOpen());
056: soapModel.setMonClose(model.getMonClose());
057: soapModel.setTueOpen(model.getTueOpen());
058: soapModel.setTueClose(model.getTueClose());
059: soapModel.setWedOpen(model.getWedOpen());
060: soapModel.setWedClose(model.getWedClose());
061: soapModel.setThuOpen(model.getThuOpen());
062: soapModel.setThuClose(model.getThuClose());
063: soapModel.setFriOpen(model.getFriOpen());
064: soapModel.setFriClose(model.getFriClose());
065: soapModel.setSatOpen(model.getSatOpen());
066: soapModel.setSatClose(model.getSatClose());
067:
068: return soapModel;
069: }
070:
071: public static OrgLaborSoap[] toSoapModels(List models) {
072: List soapModels = new ArrayList(models.size());
073:
074: for (int i = 0; i < models.size(); i++) {
075: OrgLabor model = (OrgLabor) models.get(i);
076:
077: soapModels.add(toSoapModel(model));
078: }
079:
080: return (OrgLaborSoap[]) soapModels.toArray(new OrgLaborSoap[0]);
081: }
082:
083: public OrgLaborSoap() {
084: }
085:
086: public long getPrimaryKey() {
087: return _orgLaborId;
088: }
089:
090: public void setPrimaryKey(long pk) {
091: setOrgLaborId(pk);
092: }
093:
094: public long getOrgLaborId() {
095: return _orgLaborId;
096: }
097:
098: public void setOrgLaborId(long orgLaborId) {
099: _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: }
|