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    import com.liferay.portal.kernel.util.Validator;
023    
024    import java.io.Serializable;
025    
026    import java.util.HashMap;
027    import java.util.Map;
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 java.lang.Object clone() {
200                    return new OrgLaborWrapper((OrgLabor)_orgLabor.clone());
201            }
202    
203            @Override
204            public int compareTo(com.liferay.portal.kernel.model.OrgLabor orgLabor) {
205                    return _orgLabor.compareTo(orgLabor);
206            }
207    
208            /**
209            * Returns the company ID of this org labor.
210            *
211            * @return the company ID of this org labor
212            */
213            @Override
214            public long getCompanyId() {
215                    return _orgLabor.getCompanyId();
216            }
217    
218            @Override
219            public ExpandoBridge getExpandoBridge() {
220                    return _orgLabor.getExpandoBridge();
221            }
222    
223            /**
224            * Returns the fri close of this org labor.
225            *
226            * @return the fri close of this org labor
227            */
228            @Override
229            public int getFriClose() {
230                    return _orgLabor.getFriClose();
231            }
232    
233            /**
234            * Returns the fri open of this org labor.
235            *
236            * @return the fri open of this org labor
237            */
238            @Override
239            public int getFriOpen() {
240                    return _orgLabor.getFriOpen();
241            }
242    
243            /**
244            * Returns the mon close of this org labor.
245            *
246            * @return the mon close of this org labor
247            */
248            @Override
249            public int getMonClose() {
250                    return _orgLabor.getMonClose();
251            }
252    
253            /**
254            * Returns the mon open of this org labor.
255            *
256            * @return the mon open of this org labor
257            */
258            @Override
259            public int getMonOpen() {
260                    return _orgLabor.getMonOpen();
261            }
262    
263            /**
264            * Returns the mvcc version of this org labor.
265            *
266            * @return the mvcc version of this org labor
267            */
268            @Override
269            public long getMvccVersion() {
270                    return _orgLabor.getMvccVersion();
271            }
272    
273            /**
274            * Returns the org labor ID of this org labor.
275            *
276            * @return the org labor ID of this org labor
277            */
278            @Override
279            public long getOrgLaborId() {
280                    return _orgLabor.getOrgLaborId();
281            }
282    
283            /**
284            * Returns the organization ID of this org labor.
285            *
286            * @return the organization ID of this org labor
287            */
288            @Override
289            public long getOrganizationId() {
290                    return _orgLabor.getOrganizationId();
291            }
292    
293            /**
294            * Returns the primary key of this org labor.
295            *
296            * @return the primary key of this org labor
297            */
298            @Override
299            public long getPrimaryKey() {
300                    return _orgLabor.getPrimaryKey();
301            }
302    
303            @Override
304            public Serializable getPrimaryKeyObj() {
305                    return _orgLabor.getPrimaryKeyObj();
306            }
307    
308            /**
309            * Returns the sat close of this org labor.
310            *
311            * @return the sat close of this org labor
312            */
313            @Override
314            public int getSatClose() {
315                    return _orgLabor.getSatClose();
316            }
317    
318            /**
319            * Returns the sat open of this org labor.
320            *
321            * @return the sat open of this org labor
322            */
323            @Override
324            public int getSatOpen() {
325                    return _orgLabor.getSatOpen();
326            }
327    
328            /**
329            * Returns the sun close of this org labor.
330            *
331            * @return the sun close of this org labor
332            */
333            @Override
334            public int getSunClose() {
335                    return _orgLabor.getSunClose();
336            }
337    
338            /**
339            * Returns the sun open of this org labor.
340            *
341            * @return the sun open of this org labor
342            */
343            @Override
344            public int getSunOpen() {
345                    return _orgLabor.getSunOpen();
346            }
347    
348            /**
349            * Returns the thu close of this org labor.
350            *
351            * @return the thu close of this org labor
352            */
353            @Override
354            public int getThuClose() {
355                    return _orgLabor.getThuClose();
356            }
357    
358            /**
359            * Returns the thu open of this org labor.
360            *
361            * @return the thu open of this org labor
362            */
363            @Override
364            public int getThuOpen() {
365                    return _orgLabor.getThuOpen();
366            }
367    
368            /**
369            * Returns the tue close of this org labor.
370            *
371            * @return the tue close of this org labor
372            */
373            @Override
374            public int getTueClose() {
375                    return _orgLabor.getTueClose();
376            }
377    
378            /**
379            * Returns the tue open of this org labor.
380            *
381            * @return the tue open of this org labor
382            */
383            @Override
384            public int getTueOpen() {
385                    return _orgLabor.getTueOpen();
386            }
387    
388            @Override
389            public com.liferay.portal.kernel.model.ListType getType()
390                    throws com.liferay.portal.kernel.exception.PortalException {
391                    return _orgLabor.getType();
392            }
393    
394            /**
395            * Returns the type ID of this org labor.
396            *
397            * @return the type ID of this org labor
398            */
399            @Override
400            public long getTypeId() {
401                    return _orgLabor.getTypeId();
402            }
403    
404            /**
405            * Returns the wed close of this org labor.
406            *
407            * @return the wed close of this org labor
408            */
409            @Override
410            public int getWedClose() {
411                    return _orgLabor.getWedClose();
412            }
413    
414            /**
415            * Returns the wed open of this org labor.
416            *
417            * @return the wed open of this org labor
418            */
419            @Override
420            public int getWedOpen() {
421                    return _orgLabor.getWedOpen();
422            }
423    
424            @Override
425            public int hashCode() {
426                    return _orgLabor.hashCode();
427            }
428    
429            @Override
430            public boolean isCachedModel() {
431                    return _orgLabor.isCachedModel();
432            }
433    
434            @Override
435            public boolean isEscapedModel() {
436                    return _orgLabor.isEscapedModel();
437            }
438    
439            @Override
440            public boolean isNew() {
441                    return _orgLabor.isNew();
442            }
443    
444            @Override
445            public void persist() {
446                    _orgLabor.persist();
447            }
448    
449            @Override
450            public void setCachedModel(boolean cachedModel) {
451                    _orgLabor.setCachedModel(cachedModel);
452            }
453    
454            /**
455            * Sets the company ID of this org labor.
456            *
457            * @param companyId the company ID of this org labor
458            */
459            @Override
460            public void setCompanyId(long companyId) {
461                    _orgLabor.setCompanyId(companyId);
462            }
463    
464            @Override
465            public void setExpandoBridgeAttributes(BaseModel<?> baseModel) {
466                    _orgLabor.setExpandoBridgeAttributes(baseModel);
467            }
468    
469            @Override
470            public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge) {
471                    _orgLabor.setExpandoBridgeAttributes(expandoBridge);
472            }
473    
474            @Override
475            public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
476                    _orgLabor.setExpandoBridgeAttributes(serviceContext);
477            }
478    
479            /**
480            * Sets the fri close of this org labor.
481            *
482            * @param friClose the fri close of this org labor
483            */
484            @Override
485            public void setFriClose(int friClose) {
486                    _orgLabor.setFriClose(friClose);
487            }
488    
489            /**
490            * Sets the fri open of this org labor.
491            *
492            * @param friOpen the fri open of this org labor
493            */
494            @Override
495            public void setFriOpen(int friOpen) {
496                    _orgLabor.setFriOpen(friOpen);
497            }
498    
499            /**
500            * Sets the mon close of this org labor.
501            *
502            * @param monClose the mon close of this org labor
503            */
504            @Override
505            public void setMonClose(int monClose) {
506                    _orgLabor.setMonClose(monClose);
507            }
508    
509            /**
510            * Sets the mon open of this org labor.
511            *
512            * @param monOpen the mon open of this org labor
513            */
514            @Override
515            public void setMonOpen(int monOpen) {
516                    _orgLabor.setMonOpen(monOpen);
517            }
518    
519            /**
520            * Sets the mvcc version of this org labor.
521            *
522            * @param mvccVersion the mvcc version of this org labor
523            */
524            @Override
525            public void setMvccVersion(long mvccVersion) {
526                    _orgLabor.setMvccVersion(mvccVersion);
527            }
528    
529            @Override
530            public void setNew(boolean n) {
531                    _orgLabor.setNew(n);
532            }
533    
534            /**
535            * Sets the org labor ID of this org labor.
536            *
537            * @param orgLaborId the org labor ID of this org labor
538            */
539            @Override
540            public void setOrgLaborId(long orgLaborId) {
541                    _orgLabor.setOrgLaborId(orgLaborId);
542            }
543    
544            /**
545            * Sets the organization ID of this org labor.
546            *
547            * @param organizationId the organization ID of this org labor
548            */
549            @Override
550            public void setOrganizationId(long organizationId) {
551                    _orgLabor.setOrganizationId(organizationId);
552            }
553    
554            /**
555            * Sets the primary key of this org labor.
556            *
557            * @param primaryKey the primary key of this org labor
558            */
559            @Override
560            public void setPrimaryKey(long primaryKey) {
561                    _orgLabor.setPrimaryKey(primaryKey);
562            }
563    
564            @Override
565            public void setPrimaryKeyObj(Serializable primaryKeyObj) {
566                    _orgLabor.setPrimaryKeyObj(primaryKeyObj);
567            }
568    
569            /**
570            * Sets the sat close of this org labor.
571            *
572            * @param satClose the sat close of this org labor
573            */
574            @Override
575            public void setSatClose(int satClose) {
576                    _orgLabor.setSatClose(satClose);
577            }
578    
579            /**
580            * Sets the sat open of this org labor.
581            *
582            * @param satOpen the sat open of this org labor
583            */
584            @Override
585            public void setSatOpen(int satOpen) {
586                    _orgLabor.setSatOpen(satOpen);
587            }
588    
589            /**
590            * Sets the sun close of this org labor.
591            *
592            * @param sunClose the sun close of this org labor
593            */
594            @Override
595            public void setSunClose(int sunClose) {
596                    _orgLabor.setSunClose(sunClose);
597            }
598    
599            /**
600            * Sets the sun open of this org labor.
601            *
602            * @param sunOpen the sun open of this org labor
603            */
604            @Override
605            public void setSunOpen(int sunOpen) {
606                    _orgLabor.setSunOpen(sunOpen);
607            }
608    
609            /**
610            * Sets the thu close of this org labor.
611            *
612            * @param thuClose the thu close of this org labor
613            */
614            @Override
615            public void setThuClose(int thuClose) {
616                    _orgLabor.setThuClose(thuClose);
617            }
618    
619            /**
620            * Sets the thu open of this org labor.
621            *
622            * @param thuOpen the thu open of this org labor
623            */
624            @Override
625            public void setThuOpen(int thuOpen) {
626                    _orgLabor.setThuOpen(thuOpen);
627            }
628    
629            /**
630            * Sets the tue close of this org labor.
631            *
632            * @param tueClose the tue close of this org labor
633            */
634            @Override
635            public void setTueClose(int tueClose) {
636                    _orgLabor.setTueClose(tueClose);
637            }
638    
639            /**
640            * Sets the tue open of this org labor.
641            *
642            * @param tueOpen the tue open of this org labor
643            */
644            @Override
645            public void setTueOpen(int tueOpen) {
646                    _orgLabor.setTueOpen(tueOpen);
647            }
648    
649            /**
650            * Sets the type ID of this org labor.
651            *
652            * @param typeId the type ID of this org labor
653            */
654            @Override
655            public void setTypeId(long typeId) {
656                    _orgLabor.setTypeId(typeId);
657            }
658    
659            /**
660            * Sets the wed close of this org labor.
661            *
662            * @param wedClose the wed close of this org labor
663            */
664            @Override
665            public void setWedClose(int wedClose) {
666                    _orgLabor.setWedClose(wedClose);
667            }
668    
669            /**
670            * Sets the wed open of this org labor.
671            *
672            * @param wedOpen the wed open of this org labor
673            */
674            @Override
675            public void setWedOpen(int wedOpen) {
676                    _orgLabor.setWedOpen(wedOpen);
677            }
678    
679            @Override
680            public CacheModel<com.liferay.portal.kernel.model.OrgLabor> toCacheModel() {
681                    return _orgLabor.toCacheModel();
682            }
683    
684            @Override
685            public com.liferay.portal.kernel.model.OrgLabor toEscapedModel() {
686                    return new OrgLaborWrapper(_orgLabor.toEscapedModel());
687            }
688    
689            @Override
690            public java.lang.String toString() {
691                    return _orgLabor.toString();
692            }
693    
694            @Override
695            public com.liferay.portal.kernel.model.OrgLabor toUnescapedModel() {
696                    return new OrgLaborWrapper(_orgLabor.toUnescapedModel());
697            }
698    
699            @Override
700            public java.lang.String toXmlString() {
701                    return _orgLabor.toXmlString();
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 (Validator.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    }