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