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                    Integer typeId = (Integer)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 int 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(
434                    com.liferay.portal.model.BaseModel<?> baseModel) {
435                    _orgLabor.setExpandoBridgeAttributes(baseModel);
436            }
437    
438            @Override
439            public void setExpandoBridgeAttributes(
440                    com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
441                    _orgLabor.setExpandoBridgeAttributes(expandoBridge);
442            }
443    
444            @Override
445            public void setExpandoBridgeAttributes(
446                    com.liferay.portal.service.ServiceContext serviceContext) {
447                    _orgLabor.setExpandoBridgeAttributes(serviceContext);
448            }
449    
450            /**
451            * Sets the fri close of this org labor.
452            *
453            * @param friClose the fri close of this org labor
454            */
455            @Override
456            public void setFriClose(int friClose) {
457                    _orgLabor.setFriClose(friClose);
458            }
459    
460            /**
461            * Sets the fri open of this org labor.
462            *
463            * @param friOpen the fri open of this org labor
464            */
465            @Override
466            public void setFriOpen(int friOpen) {
467                    _orgLabor.setFriOpen(friOpen);
468            }
469    
470            /**
471            * Sets the mon close of this org labor.
472            *
473            * @param monClose the mon close of this org labor
474            */
475            @Override
476            public void setMonClose(int monClose) {
477                    _orgLabor.setMonClose(monClose);
478            }
479    
480            /**
481            * Sets the mon open of this org labor.
482            *
483            * @param monOpen the mon open of this org labor
484            */
485            @Override
486            public void setMonOpen(int monOpen) {
487                    _orgLabor.setMonOpen(monOpen);
488            }
489    
490            /**
491            * Sets the mvcc version of this org labor.
492            *
493            * @param mvccVersion the mvcc version of this org labor
494            */
495            @Override
496            public void setMvccVersion(long mvccVersion) {
497                    _orgLabor.setMvccVersion(mvccVersion);
498            }
499    
500            @Override
501            public void setNew(boolean n) {
502                    _orgLabor.setNew(n);
503            }
504    
505            /**
506            * Sets the org labor ID of this org labor.
507            *
508            * @param orgLaborId the org labor ID of this org labor
509            */
510            @Override
511            public void setOrgLaborId(long orgLaborId) {
512                    _orgLabor.setOrgLaborId(orgLaborId);
513            }
514    
515            /**
516            * Sets the organization ID of this org labor.
517            *
518            * @param organizationId the organization ID of this org labor
519            */
520            @Override
521            public void setOrganizationId(long organizationId) {
522                    _orgLabor.setOrganizationId(organizationId);
523            }
524    
525            /**
526            * Sets the primary key of this org labor.
527            *
528            * @param primaryKey the primary key of this org labor
529            */
530            @Override
531            public void setPrimaryKey(long primaryKey) {
532                    _orgLabor.setPrimaryKey(primaryKey);
533            }
534    
535            @Override
536            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
537                    _orgLabor.setPrimaryKeyObj(primaryKeyObj);
538            }
539    
540            /**
541            * Sets the sat close of this org labor.
542            *
543            * @param satClose the sat close of this org labor
544            */
545            @Override
546            public void setSatClose(int satClose) {
547                    _orgLabor.setSatClose(satClose);
548            }
549    
550            /**
551            * Sets the sat open of this org labor.
552            *
553            * @param satOpen the sat open of this org labor
554            */
555            @Override
556            public void setSatOpen(int satOpen) {
557                    _orgLabor.setSatOpen(satOpen);
558            }
559    
560            /**
561            * Sets the sun close of this org labor.
562            *
563            * @param sunClose the sun close of this org labor
564            */
565            @Override
566            public void setSunClose(int sunClose) {
567                    _orgLabor.setSunClose(sunClose);
568            }
569    
570            /**
571            * Sets the sun open of this org labor.
572            *
573            * @param sunOpen the sun open of this org labor
574            */
575            @Override
576            public void setSunOpen(int sunOpen) {
577                    _orgLabor.setSunOpen(sunOpen);
578            }
579    
580            /**
581            * Sets the thu close of this org labor.
582            *
583            * @param thuClose the thu close of this org labor
584            */
585            @Override
586            public void setThuClose(int thuClose) {
587                    _orgLabor.setThuClose(thuClose);
588            }
589    
590            /**
591            * Sets the thu open of this org labor.
592            *
593            * @param thuOpen the thu open of this org labor
594            */
595            @Override
596            public void setThuOpen(int thuOpen) {
597                    _orgLabor.setThuOpen(thuOpen);
598            }
599    
600            /**
601            * Sets the tue close of this org labor.
602            *
603            * @param tueClose the tue close of this org labor
604            */
605            @Override
606            public void setTueClose(int tueClose) {
607                    _orgLabor.setTueClose(tueClose);
608            }
609    
610            /**
611            * Sets the tue open of this org labor.
612            *
613            * @param tueOpen the tue open of this org labor
614            */
615            @Override
616            public void setTueOpen(int tueOpen) {
617                    _orgLabor.setTueOpen(tueOpen);
618            }
619    
620            /**
621            * Sets the type ID of this org labor.
622            *
623            * @param typeId the type ID of this org labor
624            */
625            @Override
626            public void setTypeId(int typeId) {
627                    _orgLabor.setTypeId(typeId);
628            }
629    
630            /**
631            * Sets the wed close of this org labor.
632            *
633            * @param wedClose the wed close of this org labor
634            */
635            @Override
636            public void setWedClose(int wedClose) {
637                    _orgLabor.setWedClose(wedClose);
638            }
639    
640            /**
641            * Sets the wed open of this org labor.
642            *
643            * @param wedOpen the wed open of this org labor
644            */
645            @Override
646            public void setWedOpen(int wedOpen) {
647                    _orgLabor.setWedOpen(wedOpen);
648            }
649    
650            @Override
651            public com.liferay.portal.model.CacheModel<com.liferay.portal.model.OrgLabor> toCacheModel() {
652                    return _orgLabor.toCacheModel();
653            }
654    
655            @Override
656            public com.liferay.portal.model.OrgLabor toEscapedModel() {
657                    return new OrgLaborWrapper(_orgLabor.toEscapedModel());
658            }
659    
660            @Override
661            public java.lang.String toString() {
662                    return _orgLabor.toString();
663            }
664    
665            @Override
666            public com.liferay.portal.model.OrgLabor toUnescapedModel() {
667                    return new OrgLaborWrapper(_orgLabor.toUnescapedModel());
668            }
669    
670            @Override
671            public java.lang.String toXmlString() {
672                    return _orgLabor.toXmlString();
673            }
674    
675            @Override
676            public boolean equals(Object obj) {
677                    if (this == obj) {
678                            return true;
679                    }
680    
681                    if (!(obj instanceof OrgLaborWrapper)) {
682                            return false;
683                    }
684    
685                    OrgLaborWrapper orgLaborWrapper = (OrgLaborWrapper)obj;
686    
687                    if (Validator.equals(_orgLabor, orgLaborWrapper._orgLabor)) {
688                            return true;
689                    }
690    
691                    return false;
692            }
693    
694            /**
695             * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
696             */
697            @Deprecated
698            public OrgLabor getWrappedOrgLabor() {
699                    return _orgLabor;
700            }
701    
702            @Override
703            public OrgLabor getWrappedModel() {
704                    return _orgLabor;
705            }
706    
707            @Override
708            public boolean isEntityCacheEnabled() {
709                    return _orgLabor.isEntityCacheEnabled();
710            }
711    
712            @Override
713            public boolean isFinderCacheEnabled() {
714                    return _orgLabor.isFinderCacheEnabled();
715            }
716    
717            @Override
718            public void resetOriginalValues() {
719                    _orgLabor.resetOriginalValues();
720            }
721    
722            private final OrgLabor _orgLabor;
723    }