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