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.util.HashMap;
018    import java.util.Map;
019    
020    /**
021     * <p>
022     * This class is a wrapper for {@link OrgLabor}.
023     * </p>
024     *
025     * @author    Brian Wing Shun Chan
026     * @see       OrgLabor
027     * @generated
028     */
029    public class OrgLaborWrapper implements OrgLabor, ModelWrapper<OrgLabor> {
030            public OrgLaborWrapper(OrgLabor orgLabor) {
031                    _orgLabor = orgLabor;
032            }
033    
034            public Class<?> getModelClass() {
035                    return OrgLabor.class;
036            }
037    
038            public String getModelClassName() {
039                    return OrgLabor.class.getName();
040            }
041    
042            public Map<String, Object> getModelAttributes() {
043                    Map<String, Object> attributes = new HashMap<String, Object>();
044    
045                    attributes.put("orgLaborId", getOrgLaborId());
046                    attributes.put("organizationId", getOrganizationId());
047                    attributes.put("typeId", getTypeId());
048                    attributes.put("sunOpen", getSunOpen());
049                    attributes.put("sunClose", getSunClose());
050                    attributes.put("monOpen", getMonOpen());
051                    attributes.put("monClose", getMonClose());
052                    attributes.put("tueOpen", getTueOpen());
053                    attributes.put("tueClose", getTueClose());
054                    attributes.put("wedOpen", getWedOpen());
055                    attributes.put("wedClose", getWedClose());
056                    attributes.put("thuOpen", getThuOpen());
057                    attributes.put("thuClose", getThuClose());
058                    attributes.put("friOpen", getFriOpen());
059                    attributes.put("friClose", getFriClose());
060                    attributes.put("satOpen", getSatOpen());
061                    attributes.put("satClose", getSatClose());
062    
063                    return attributes;
064            }
065    
066            public void setModelAttributes(Map<String, Object> attributes) {
067                    Long orgLaborId = (Long)attributes.get("orgLaborId");
068    
069                    if (orgLaborId != null) {
070                            setOrgLaborId(orgLaborId);
071                    }
072    
073                    Long organizationId = (Long)attributes.get("organizationId");
074    
075                    if (organizationId != null) {
076                            setOrganizationId(organizationId);
077                    }
078    
079                    Integer typeId = (Integer)attributes.get("typeId");
080    
081                    if (typeId != null) {
082                            setTypeId(typeId);
083                    }
084    
085                    Integer sunOpen = (Integer)attributes.get("sunOpen");
086    
087                    if (sunOpen != null) {
088                            setSunOpen(sunOpen);
089                    }
090    
091                    Integer sunClose = (Integer)attributes.get("sunClose");
092    
093                    if (sunClose != null) {
094                            setSunClose(sunClose);
095                    }
096    
097                    Integer monOpen = (Integer)attributes.get("monOpen");
098    
099                    if (monOpen != null) {
100                            setMonOpen(monOpen);
101                    }
102    
103                    Integer monClose = (Integer)attributes.get("monClose");
104    
105                    if (monClose != null) {
106                            setMonClose(monClose);
107                    }
108    
109                    Integer tueOpen = (Integer)attributes.get("tueOpen");
110    
111                    if (tueOpen != null) {
112                            setTueOpen(tueOpen);
113                    }
114    
115                    Integer tueClose = (Integer)attributes.get("tueClose");
116    
117                    if (tueClose != null) {
118                            setTueClose(tueClose);
119                    }
120    
121                    Integer wedOpen = (Integer)attributes.get("wedOpen");
122    
123                    if (wedOpen != null) {
124                            setWedOpen(wedOpen);
125                    }
126    
127                    Integer wedClose = (Integer)attributes.get("wedClose");
128    
129                    if (wedClose != null) {
130                            setWedClose(wedClose);
131                    }
132    
133                    Integer thuOpen = (Integer)attributes.get("thuOpen");
134    
135                    if (thuOpen != null) {
136                            setThuOpen(thuOpen);
137                    }
138    
139                    Integer thuClose = (Integer)attributes.get("thuClose");
140    
141                    if (thuClose != null) {
142                            setThuClose(thuClose);
143                    }
144    
145                    Integer friOpen = (Integer)attributes.get("friOpen");
146    
147                    if (friOpen != null) {
148                            setFriOpen(friOpen);
149                    }
150    
151                    Integer friClose = (Integer)attributes.get("friClose");
152    
153                    if (friClose != null) {
154                            setFriClose(friClose);
155                    }
156    
157                    Integer satOpen = (Integer)attributes.get("satOpen");
158    
159                    if (satOpen != null) {
160                            setSatOpen(satOpen);
161                    }
162    
163                    Integer satClose = (Integer)attributes.get("satClose");
164    
165                    if (satClose != null) {
166                            setSatClose(satClose);
167                    }
168            }
169    
170            /**
171            * Returns the primary key of this org labor.
172            *
173            * @return the primary key of this org labor
174            */
175            public long getPrimaryKey() {
176                    return _orgLabor.getPrimaryKey();
177            }
178    
179            /**
180            * Sets the primary key of this org labor.
181            *
182            * @param primaryKey the primary key of this org labor
183            */
184            public void setPrimaryKey(long primaryKey) {
185                    _orgLabor.setPrimaryKey(primaryKey);
186            }
187    
188            /**
189            * Returns the org labor ID of this org labor.
190            *
191            * @return the org labor ID of this org labor
192            */
193            public long getOrgLaborId() {
194                    return _orgLabor.getOrgLaborId();
195            }
196    
197            /**
198            * Sets the org labor ID of this org labor.
199            *
200            * @param orgLaborId the org labor ID of this org labor
201            */
202            public void setOrgLaborId(long orgLaborId) {
203                    _orgLabor.setOrgLaborId(orgLaborId);
204            }
205    
206            /**
207            * Returns the organization ID of this org labor.
208            *
209            * @return the organization ID of this org labor
210            */
211            public long getOrganizationId() {
212                    return _orgLabor.getOrganizationId();
213            }
214    
215            /**
216            * Sets the organization ID of this org labor.
217            *
218            * @param organizationId the organization ID of this org labor
219            */
220            public void setOrganizationId(long organizationId) {
221                    _orgLabor.setOrganizationId(organizationId);
222            }
223    
224            /**
225            * Returns the type ID of this org labor.
226            *
227            * @return the type ID of this org labor
228            */
229            public int getTypeId() {
230                    return _orgLabor.getTypeId();
231            }
232    
233            /**
234            * Sets the type ID of this org labor.
235            *
236            * @param typeId the type ID of this org labor
237            */
238            public void setTypeId(int typeId) {
239                    _orgLabor.setTypeId(typeId);
240            }
241    
242            /**
243            * Returns the sun open of this org labor.
244            *
245            * @return the sun open of this org labor
246            */
247            public int getSunOpen() {
248                    return _orgLabor.getSunOpen();
249            }
250    
251            /**
252            * Sets the sun open of this org labor.
253            *
254            * @param sunOpen the sun open of this org labor
255            */
256            public void setSunOpen(int sunOpen) {
257                    _orgLabor.setSunOpen(sunOpen);
258            }
259    
260            /**
261            * Returns the sun close of this org labor.
262            *
263            * @return the sun close of this org labor
264            */
265            public int getSunClose() {
266                    return _orgLabor.getSunClose();
267            }
268    
269            /**
270            * Sets the sun close of this org labor.
271            *
272            * @param sunClose the sun close of this org labor
273            */
274            public void setSunClose(int sunClose) {
275                    _orgLabor.setSunClose(sunClose);
276            }
277    
278            /**
279            * Returns the mon open of this org labor.
280            *
281            * @return the mon open of this org labor
282            */
283            public int getMonOpen() {
284                    return _orgLabor.getMonOpen();
285            }
286    
287            /**
288            * Sets the mon open of this org labor.
289            *
290            * @param monOpen the mon open of this org labor
291            */
292            public void setMonOpen(int monOpen) {
293                    _orgLabor.setMonOpen(monOpen);
294            }
295    
296            /**
297            * Returns the mon close of this org labor.
298            *
299            * @return the mon close of this org labor
300            */
301            public int getMonClose() {
302                    return _orgLabor.getMonClose();
303            }
304    
305            /**
306            * Sets the mon close of this org labor.
307            *
308            * @param monClose the mon close of this org labor
309            */
310            public void setMonClose(int monClose) {
311                    _orgLabor.setMonClose(monClose);
312            }
313    
314            /**
315            * Returns the tue open of this org labor.
316            *
317            * @return the tue open of this org labor
318            */
319            public int getTueOpen() {
320                    return _orgLabor.getTueOpen();
321            }
322    
323            /**
324            * Sets the tue open of this org labor.
325            *
326            * @param tueOpen the tue open of this org labor
327            */
328            public void setTueOpen(int tueOpen) {
329                    _orgLabor.setTueOpen(tueOpen);
330            }
331    
332            /**
333            * Returns the tue close of this org labor.
334            *
335            * @return the tue close of this org labor
336            */
337            public int getTueClose() {
338                    return _orgLabor.getTueClose();
339            }
340    
341            /**
342            * Sets the tue close of this org labor.
343            *
344            * @param tueClose the tue close of this org labor
345            */
346            public void setTueClose(int tueClose) {
347                    _orgLabor.setTueClose(tueClose);
348            }
349    
350            /**
351            * Returns the wed open of this org labor.
352            *
353            * @return the wed open of this org labor
354            */
355            public int getWedOpen() {
356                    return _orgLabor.getWedOpen();
357            }
358    
359            /**
360            * Sets the wed open of this org labor.
361            *
362            * @param wedOpen the wed open of this org labor
363            */
364            public void setWedOpen(int wedOpen) {
365                    _orgLabor.setWedOpen(wedOpen);
366            }
367    
368            /**
369            * Returns the wed close of this org labor.
370            *
371            * @return the wed close of this org labor
372            */
373            public int getWedClose() {
374                    return _orgLabor.getWedClose();
375            }
376    
377            /**
378            * Sets the wed close of this org labor.
379            *
380            * @param wedClose the wed close of this org labor
381            */
382            public void setWedClose(int wedClose) {
383                    _orgLabor.setWedClose(wedClose);
384            }
385    
386            /**
387            * Returns the thu open of this org labor.
388            *
389            * @return the thu open of this org labor
390            */
391            public int getThuOpen() {
392                    return _orgLabor.getThuOpen();
393            }
394    
395            /**
396            * Sets the thu open of this org labor.
397            *
398            * @param thuOpen the thu open of this org labor
399            */
400            public void setThuOpen(int thuOpen) {
401                    _orgLabor.setThuOpen(thuOpen);
402            }
403    
404            /**
405            * Returns the thu close of this org labor.
406            *
407            * @return the thu close of this org labor
408            */
409            public int getThuClose() {
410                    return _orgLabor.getThuClose();
411            }
412    
413            /**
414            * Sets the thu close of this org labor.
415            *
416            * @param thuClose the thu close of this org labor
417            */
418            public void setThuClose(int thuClose) {
419                    _orgLabor.setThuClose(thuClose);
420            }
421    
422            /**
423            * Returns the fri open of this org labor.
424            *
425            * @return the fri open of this org labor
426            */
427            public int getFriOpen() {
428                    return _orgLabor.getFriOpen();
429            }
430    
431            /**
432            * Sets the fri open of this org labor.
433            *
434            * @param friOpen the fri open of this org labor
435            */
436            public void setFriOpen(int friOpen) {
437                    _orgLabor.setFriOpen(friOpen);
438            }
439    
440            /**
441            * Returns the fri close of this org labor.
442            *
443            * @return the fri close of this org labor
444            */
445            public int getFriClose() {
446                    return _orgLabor.getFriClose();
447            }
448    
449            /**
450            * Sets the fri close of this org labor.
451            *
452            * @param friClose the fri close of this org labor
453            */
454            public void setFriClose(int friClose) {
455                    _orgLabor.setFriClose(friClose);
456            }
457    
458            /**
459            * Returns the sat open of this org labor.
460            *
461            * @return the sat open of this org labor
462            */
463            public int getSatOpen() {
464                    return _orgLabor.getSatOpen();
465            }
466    
467            /**
468            * Sets the sat open of this org labor.
469            *
470            * @param satOpen the sat open of this org labor
471            */
472            public void setSatOpen(int satOpen) {
473                    _orgLabor.setSatOpen(satOpen);
474            }
475    
476            /**
477            * Returns the sat close of this org labor.
478            *
479            * @return the sat close of this org labor
480            */
481            public int getSatClose() {
482                    return _orgLabor.getSatClose();
483            }
484    
485            /**
486            * Sets the sat close of this org labor.
487            *
488            * @param satClose the sat close of this org labor
489            */
490            public void setSatClose(int satClose) {
491                    _orgLabor.setSatClose(satClose);
492            }
493    
494            public boolean isNew() {
495                    return _orgLabor.isNew();
496            }
497    
498            public void setNew(boolean n) {
499                    _orgLabor.setNew(n);
500            }
501    
502            public boolean isCachedModel() {
503                    return _orgLabor.isCachedModel();
504            }
505    
506            public void setCachedModel(boolean cachedModel) {
507                    _orgLabor.setCachedModel(cachedModel);
508            }
509    
510            public boolean isEscapedModel() {
511                    return _orgLabor.isEscapedModel();
512            }
513    
514            public java.io.Serializable getPrimaryKeyObj() {
515                    return _orgLabor.getPrimaryKeyObj();
516            }
517    
518            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
519                    _orgLabor.setPrimaryKeyObj(primaryKeyObj);
520            }
521    
522            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
523                    return _orgLabor.getExpandoBridge();
524            }
525    
526            public void setExpandoBridgeAttributes(
527                    com.liferay.portal.model.BaseModel<?> baseModel) {
528                    _orgLabor.setExpandoBridgeAttributes(baseModel);
529            }
530    
531            public void setExpandoBridgeAttributes(
532                    com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
533                    _orgLabor.setExpandoBridgeAttributes(expandoBridge);
534            }
535    
536            public void setExpandoBridgeAttributes(
537                    com.liferay.portal.service.ServiceContext serviceContext) {
538                    _orgLabor.setExpandoBridgeAttributes(serviceContext);
539            }
540    
541            @Override
542            public java.lang.Object clone() {
543                    return new OrgLaborWrapper((OrgLabor)_orgLabor.clone());
544            }
545    
546            public int compareTo(com.liferay.portal.model.OrgLabor orgLabor) {
547                    return _orgLabor.compareTo(orgLabor);
548            }
549    
550            @Override
551            public int hashCode() {
552                    return _orgLabor.hashCode();
553            }
554    
555            public com.liferay.portal.model.CacheModel<com.liferay.portal.model.OrgLabor> toCacheModel() {
556                    return _orgLabor.toCacheModel();
557            }
558    
559            public com.liferay.portal.model.OrgLabor toEscapedModel() {
560                    return new OrgLaborWrapper(_orgLabor.toEscapedModel());
561            }
562    
563            public com.liferay.portal.model.OrgLabor toUnescapedModel() {
564                    return new OrgLaborWrapper(_orgLabor.toUnescapedModel());
565            }
566    
567            @Override
568            public java.lang.String toString() {
569                    return _orgLabor.toString();
570            }
571    
572            public java.lang.String toXmlString() {
573                    return _orgLabor.toXmlString();
574            }
575    
576            public void persist()
577                    throws com.liferay.portal.kernel.exception.SystemException {
578                    _orgLabor.persist();
579            }
580    
581            public com.liferay.portal.model.ListType getType()
582                    throws com.liferay.portal.kernel.exception.PortalException,
583                            com.liferay.portal.kernel.exception.SystemException {
584                    return _orgLabor.getType();
585            }
586    
587            /**
588             * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
589             */
590            public OrgLabor getWrappedOrgLabor() {
591                    return _orgLabor;
592            }
593    
594            public OrgLabor getWrappedModel() {
595                    return _orgLabor;
596            }
597    
598            public void resetOriginalValues() {
599                    _orgLabor.resetOriginalValues();
600            }
601    
602            private OrgLabor _orgLabor;
603    }