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