001
014
015 package com.liferay.portlet.mobiledevicerules.model;
016
017 import com.liferay.portal.kernel.util.Validator;
018 import com.liferay.portal.model.ModelWrapper;
019
020 import java.util.Date;
021 import java.util.HashMap;
022 import java.util.Map;
023
024
033 public class MDRRuleGroupWrapper implements MDRRuleGroup,
034 ModelWrapper<MDRRuleGroup> {
035 public MDRRuleGroupWrapper(MDRRuleGroup mdrRuleGroup) {
036 _mdrRuleGroup = mdrRuleGroup;
037 }
038
039 public Class<?> getModelClass() {
040 return MDRRuleGroup.class;
041 }
042
043 public String getModelClassName() {
044 return MDRRuleGroup.class.getName();
045 }
046
047 public Map<String, Object> getModelAttributes() {
048 Map<String, Object> attributes = new HashMap<String, Object>();
049
050 attributes.put("uuid", getUuid());
051 attributes.put("ruleGroupId", getRuleGroupId());
052 attributes.put("groupId", getGroupId());
053 attributes.put("companyId", getCompanyId());
054 attributes.put("userId", getUserId());
055 attributes.put("userName", getUserName());
056 attributes.put("createDate", getCreateDate());
057 attributes.put("modifiedDate", getModifiedDate());
058 attributes.put("name", getName());
059 attributes.put("description", getDescription());
060
061 return attributes;
062 }
063
064 public void setModelAttributes(Map<String, Object> attributes) {
065 String uuid = (String)attributes.get("uuid");
066
067 if (uuid != null) {
068 setUuid(uuid);
069 }
070
071 Long ruleGroupId = (Long)attributes.get("ruleGroupId");
072
073 if (ruleGroupId != null) {
074 setRuleGroupId(ruleGroupId);
075 }
076
077 Long groupId = (Long)attributes.get("groupId");
078
079 if (groupId != null) {
080 setGroupId(groupId);
081 }
082
083 Long companyId = (Long)attributes.get("companyId");
084
085 if (companyId != null) {
086 setCompanyId(companyId);
087 }
088
089 Long userId = (Long)attributes.get("userId");
090
091 if (userId != null) {
092 setUserId(userId);
093 }
094
095 String userName = (String)attributes.get("userName");
096
097 if (userName != null) {
098 setUserName(userName);
099 }
100
101 Date createDate = (Date)attributes.get("createDate");
102
103 if (createDate != null) {
104 setCreateDate(createDate);
105 }
106
107 Date modifiedDate = (Date)attributes.get("modifiedDate");
108
109 if (modifiedDate != null) {
110 setModifiedDate(modifiedDate);
111 }
112
113 String name = (String)attributes.get("name");
114
115 if (name != null) {
116 setName(name);
117 }
118
119 String description = (String)attributes.get("description");
120
121 if (description != null) {
122 setDescription(description);
123 }
124 }
125
126
131 public long getPrimaryKey() {
132 return _mdrRuleGroup.getPrimaryKey();
133 }
134
135
140 public void setPrimaryKey(long primaryKey) {
141 _mdrRuleGroup.setPrimaryKey(primaryKey);
142 }
143
144
149 public java.lang.String getUuid() {
150 return _mdrRuleGroup.getUuid();
151 }
152
153
158 public void setUuid(java.lang.String uuid) {
159 _mdrRuleGroup.setUuid(uuid);
160 }
161
162
167 public long getRuleGroupId() {
168 return _mdrRuleGroup.getRuleGroupId();
169 }
170
171
176 public void setRuleGroupId(long ruleGroupId) {
177 _mdrRuleGroup.setRuleGroupId(ruleGroupId);
178 }
179
180
185 public long getGroupId() {
186 return _mdrRuleGroup.getGroupId();
187 }
188
189
194 public void setGroupId(long groupId) {
195 _mdrRuleGroup.setGroupId(groupId);
196 }
197
198
203 public long getCompanyId() {
204 return _mdrRuleGroup.getCompanyId();
205 }
206
207
212 public void setCompanyId(long companyId) {
213 _mdrRuleGroup.setCompanyId(companyId);
214 }
215
216
221 public long getUserId() {
222 return _mdrRuleGroup.getUserId();
223 }
224
225
230 public void setUserId(long userId) {
231 _mdrRuleGroup.setUserId(userId);
232 }
233
234
240 public java.lang.String getUserUuid()
241 throws com.liferay.portal.kernel.exception.SystemException {
242 return _mdrRuleGroup.getUserUuid();
243 }
244
245
250 public void setUserUuid(java.lang.String userUuid) {
251 _mdrRuleGroup.setUserUuid(userUuid);
252 }
253
254
259 public java.lang.String getUserName() {
260 return _mdrRuleGroup.getUserName();
261 }
262
263
268 public void setUserName(java.lang.String userName) {
269 _mdrRuleGroup.setUserName(userName);
270 }
271
272
277 public java.util.Date getCreateDate() {
278 return _mdrRuleGroup.getCreateDate();
279 }
280
281
286 public void setCreateDate(java.util.Date createDate) {
287 _mdrRuleGroup.setCreateDate(createDate);
288 }
289
290
295 public java.util.Date getModifiedDate() {
296 return _mdrRuleGroup.getModifiedDate();
297 }
298
299
304 public void setModifiedDate(java.util.Date modifiedDate) {
305 _mdrRuleGroup.setModifiedDate(modifiedDate);
306 }
307
308
313 public java.lang.String getName() {
314 return _mdrRuleGroup.getName();
315 }
316
317
323 public java.lang.String getName(java.util.Locale locale) {
324 return _mdrRuleGroup.getName(locale);
325 }
326
327
334 public java.lang.String getName(java.util.Locale locale, boolean useDefault) {
335 return _mdrRuleGroup.getName(locale, useDefault);
336 }
337
338
344 public java.lang.String getName(java.lang.String languageId) {
345 return _mdrRuleGroup.getName(languageId);
346 }
347
348
355 public java.lang.String getName(java.lang.String languageId,
356 boolean useDefault) {
357 return _mdrRuleGroup.getName(languageId, useDefault);
358 }
359
360 public java.lang.String getNameCurrentLanguageId() {
361 return _mdrRuleGroup.getNameCurrentLanguageId();
362 }
363
364 public java.lang.String getNameCurrentValue() {
365 return _mdrRuleGroup.getNameCurrentValue();
366 }
367
368
373 public java.util.Map<java.util.Locale, java.lang.String> getNameMap() {
374 return _mdrRuleGroup.getNameMap();
375 }
376
377
382 public void setName(java.lang.String name) {
383 _mdrRuleGroup.setName(name);
384 }
385
386
392 public void setName(java.lang.String name, java.util.Locale locale) {
393 _mdrRuleGroup.setName(name, locale);
394 }
395
396
403 public void setName(java.lang.String name, java.util.Locale locale,
404 java.util.Locale defaultLocale) {
405 _mdrRuleGroup.setName(name, locale, defaultLocale);
406 }
407
408 public void setNameCurrentLanguageId(java.lang.String languageId) {
409 _mdrRuleGroup.setNameCurrentLanguageId(languageId);
410 }
411
412
417 public void setNameMap(
418 java.util.Map<java.util.Locale, java.lang.String> nameMap) {
419 _mdrRuleGroup.setNameMap(nameMap);
420 }
421
422
428 public void setNameMap(
429 java.util.Map<java.util.Locale, java.lang.String> nameMap,
430 java.util.Locale defaultLocale) {
431 _mdrRuleGroup.setNameMap(nameMap, defaultLocale);
432 }
433
434
439 public java.lang.String getDescription() {
440 return _mdrRuleGroup.getDescription();
441 }
442
443
449 public java.lang.String getDescription(java.util.Locale locale) {
450 return _mdrRuleGroup.getDescription(locale);
451 }
452
453
460 public java.lang.String getDescription(java.util.Locale locale,
461 boolean useDefault) {
462 return _mdrRuleGroup.getDescription(locale, useDefault);
463 }
464
465
471 public java.lang.String getDescription(java.lang.String languageId) {
472 return _mdrRuleGroup.getDescription(languageId);
473 }
474
475
482 public java.lang.String getDescription(java.lang.String languageId,
483 boolean useDefault) {
484 return _mdrRuleGroup.getDescription(languageId, useDefault);
485 }
486
487 public java.lang.String getDescriptionCurrentLanguageId() {
488 return _mdrRuleGroup.getDescriptionCurrentLanguageId();
489 }
490
491 public java.lang.String getDescriptionCurrentValue() {
492 return _mdrRuleGroup.getDescriptionCurrentValue();
493 }
494
495
500 public java.util.Map<java.util.Locale, java.lang.String> getDescriptionMap() {
501 return _mdrRuleGroup.getDescriptionMap();
502 }
503
504
509 public void setDescription(java.lang.String description) {
510 _mdrRuleGroup.setDescription(description);
511 }
512
513
519 public void setDescription(java.lang.String description,
520 java.util.Locale locale) {
521 _mdrRuleGroup.setDescription(description, locale);
522 }
523
524
531 public void setDescription(java.lang.String description,
532 java.util.Locale locale, java.util.Locale defaultLocale) {
533 _mdrRuleGroup.setDescription(description, locale, defaultLocale);
534 }
535
536 public void setDescriptionCurrentLanguageId(java.lang.String languageId) {
537 _mdrRuleGroup.setDescriptionCurrentLanguageId(languageId);
538 }
539
540
545 public void setDescriptionMap(
546 java.util.Map<java.util.Locale, java.lang.String> descriptionMap) {
547 _mdrRuleGroup.setDescriptionMap(descriptionMap);
548 }
549
550
556 public void setDescriptionMap(
557 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
558 java.util.Locale defaultLocale) {
559 _mdrRuleGroup.setDescriptionMap(descriptionMap, defaultLocale);
560 }
561
562 public boolean isNew() {
563 return _mdrRuleGroup.isNew();
564 }
565
566 public void setNew(boolean n) {
567 _mdrRuleGroup.setNew(n);
568 }
569
570 public boolean isCachedModel() {
571 return _mdrRuleGroup.isCachedModel();
572 }
573
574 public void setCachedModel(boolean cachedModel) {
575 _mdrRuleGroup.setCachedModel(cachedModel);
576 }
577
578 public boolean isEscapedModel() {
579 return _mdrRuleGroup.isEscapedModel();
580 }
581
582 public java.io.Serializable getPrimaryKeyObj() {
583 return _mdrRuleGroup.getPrimaryKeyObj();
584 }
585
586 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
587 _mdrRuleGroup.setPrimaryKeyObj(primaryKeyObj);
588 }
589
590 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
591 return _mdrRuleGroup.getExpandoBridge();
592 }
593
594 public void setExpandoBridgeAttributes(
595 com.liferay.portal.service.ServiceContext serviceContext) {
596 _mdrRuleGroup.setExpandoBridgeAttributes(serviceContext);
597 }
598
599 public void prepareLocalizedFieldsForImport(
600 java.util.Locale defaultImportLocale)
601 throws com.liferay.portal.LocaleException {
602 _mdrRuleGroup.prepareLocalizedFieldsForImport(defaultImportLocale);
603 }
604
605 @Override
606 public java.lang.Object clone() {
607 return new MDRRuleGroupWrapper((MDRRuleGroup)_mdrRuleGroup.clone());
608 }
609
610 public int compareTo(
611 com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup mdrRuleGroup) {
612 return _mdrRuleGroup.compareTo(mdrRuleGroup);
613 }
614
615 @Override
616 public int hashCode() {
617 return _mdrRuleGroup.hashCode();
618 }
619
620 public com.liferay.portal.model.CacheModel<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> toCacheModel() {
621 return _mdrRuleGroup.toCacheModel();
622 }
623
624 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup toEscapedModel() {
625 return new MDRRuleGroupWrapper(_mdrRuleGroup.toEscapedModel());
626 }
627
628 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup toUnescapedModel() {
629 return new MDRRuleGroupWrapper(_mdrRuleGroup.toUnescapedModel());
630 }
631
632 @Override
633 public java.lang.String toString() {
634 return _mdrRuleGroup.toString();
635 }
636
637 public java.lang.String toXmlString() {
638 return _mdrRuleGroup.toXmlString();
639 }
640
641 public void persist()
642 throws com.liferay.portal.kernel.exception.SystemException {
643 _mdrRuleGroup.persist();
644 }
645
646 public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRule> getRules()
647 throws com.liferay.portal.kernel.exception.SystemException {
648 return _mdrRuleGroup.getRules();
649 }
650
651 @Override
652 public boolean equals(Object obj) {
653 if (this == obj) {
654 return true;
655 }
656
657 if (!(obj instanceof MDRRuleGroupWrapper)) {
658 return false;
659 }
660
661 MDRRuleGroupWrapper mdrRuleGroupWrapper = (MDRRuleGroupWrapper)obj;
662
663 if (Validator.equals(_mdrRuleGroup, mdrRuleGroupWrapper._mdrRuleGroup)) {
664 return true;
665 }
666
667 return false;
668 }
669
670
673 public MDRRuleGroup getWrappedMDRRuleGroup() {
674 return _mdrRuleGroup;
675 }
676
677 public MDRRuleGroup getWrappedModel() {
678 return _mdrRuleGroup;
679 }
680
681 public void resetOriginalValues() {
682 _mdrRuleGroup.resetOriginalValues();
683 }
684
685 private MDRRuleGroup _mdrRuleGroup;
686 }