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