001
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
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
177 public long getPrimaryKey() {
178 return _orgLabor.getPrimaryKey();
179 }
180
181
186 public void setPrimaryKey(long primaryKey) {
187 _orgLabor.setPrimaryKey(primaryKey);
188 }
189
190
195 public long getOrgLaborId() {
196 return _orgLabor.getOrgLaborId();
197 }
198
199
204 public void setOrgLaborId(long orgLaborId) {
205 _orgLabor.setOrgLaborId(orgLaborId);
206 }
207
208
213 public long getOrganizationId() {
214 return _orgLabor.getOrganizationId();
215 }
216
217
222 public void setOrganizationId(long organizationId) {
223 _orgLabor.setOrganizationId(organizationId);
224 }
225
226
231 public int getTypeId() {
232 return _orgLabor.getTypeId();
233 }
234
235
240 public void setTypeId(int typeId) {
241 _orgLabor.setTypeId(typeId);
242 }
243
244
249 public int getSunOpen() {
250 return _orgLabor.getSunOpen();
251 }
252
253
258 public void setSunOpen(int sunOpen) {
259 _orgLabor.setSunOpen(sunOpen);
260 }
261
262
267 public int getSunClose() {
268 return _orgLabor.getSunClose();
269 }
270
271
276 public void setSunClose(int sunClose) {
277 _orgLabor.setSunClose(sunClose);
278 }
279
280
285 public int getMonOpen() {
286 return _orgLabor.getMonOpen();
287 }
288
289
294 public void setMonOpen(int monOpen) {
295 _orgLabor.setMonOpen(monOpen);
296 }
297
298
303 public int getMonClose() {
304 return _orgLabor.getMonClose();
305 }
306
307
312 public void setMonClose(int monClose) {
313 _orgLabor.setMonClose(monClose);
314 }
315
316
321 public int getTueOpen() {
322 return _orgLabor.getTueOpen();
323 }
324
325
330 public void setTueOpen(int tueOpen) {
331 _orgLabor.setTueOpen(tueOpen);
332 }
333
334
339 public int getTueClose() {
340 return _orgLabor.getTueClose();
341 }
342
343
348 public void setTueClose(int tueClose) {
349 _orgLabor.setTueClose(tueClose);
350 }
351
352
357 public int getWedOpen() {
358 return _orgLabor.getWedOpen();
359 }
360
361
366 public void setWedOpen(int wedOpen) {
367 _orgLabor.setWedOpen(wedOpen);
368 }
369
370
375 public int getWedClose() {
376 return _orgLabor.getWedClose();
377 }
378
379
384 public void setWedClose(int wedClose) {
385 _orgLabor.setWedClose(wedClose);
386 }
387
388
393 public int getThuOpen() {
394 return _orgLabor.getThuOpen();
395 }
396
397
402 public void setThuOpen(int thuOpen) {
403 _orgLabor.setThuOpen(thuOpen);
404 }
405
406
411 public int getThuClose() {
412 return _orgLabor.getThuClose();
413 }
414
415
420 public void setThuClose(int thuClose) {
421 _orgLabor.setThuClose(thuClose);
422 }
423
424
429 public int getFriOpen() {
430 return _orgLabor.getFriOpen();
431 }
432
433
438 public void setFriOpen(int friOpen) {
439 _orgLabor.setFriOpen(friOpen);
440 }
441
442
447 public int getFriClose() {
448 return _orgLabor.getFriClose();
449 }
450
451
456 public void setFriClose(int friClose) {
457 _orgLabor.setFriClose(friClose);
458 }
459
460
465 public int getSatOpen() {
466 return _orgLabor.getSatOpen();
467 }
468
469
474 public void setSatOpen(int satOpen) {
475 _orgLabor.setSatOpen(satOpen);
476 }
477
478
483 public int getSatClose() {
484 return _orgLabor.getSatClose();
485 }
486
487
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
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 }