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