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