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.portlet.mobiledevicerules.model;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.lar.StagedModelType;
020    import com.liferay.portal.kernel.util.Validator;
021    import com.liferay.portal.model.ModelWrapper;
022    
023    import java.util.Date;
024    import java.util.HashMap;
025    import java.util.Map;
026    
027    /**
028     * <p>
029     * This class is a wrapper for {@link MDRAction}.
030     * </p>
031     *
032     * @author Edward C. Han
033     * @see MDRAction
034     * @generated
035     */
036    @ProviderType
037    public class MDRActionWrapper implements MDRAction, ModelWrapper<MDRAction> {
038            public MDRActionWrapper(MDRAction mdrAction) {
039                    _mdrAction = mdrAction;
040            }
041    
042            @Override
043            public Class<?> getModelClass() {
044                    return MDRAction.class;
045            }
046    
047            @Override
048            public String getModelClassName() {
049                    return MDRAction.class.getName();
050            }
051    
052            @Override
053            public Map<String, Object> getModelAttributes() {
054                    Map<String, Object> attributes = new HashMap<String, Object>();
055    
056                    attributes.put("uuid", getUuid());
057                    attributes.put("actionId", getActionId());
058                    attributes.put("groupId", getGroupId());
059                    attributes.put("companyId", getCompanyId());
060                    attributes.put("userId", getUserId());
061                    attributes.put("userName", getUserName());
062                    attributes.put("createDate", getCreateDate());
063                    attributes.put("modifiedDate", getModifiedDate());
064                    attributes.put("classNameId", getClassNameId());
065                    attributes.put("classPK", getClassPK());
066                    attributes.put("ruleGroupInstanceId", getRuleGroupInstanceId());
067                    attributes.put("name", getName());
068                    attributes.put("description", getDescription());
069                    attributes.put("type", getType());
070                    attributes.put("typeSettings", getTypeSettings());
071    
072                    return attributes;
073            }
074    
075            @Override
076            public void setModelAttributes(Map<String, Object> attributes) {
077                    String uuid = (String)attributes.get("uuid");
078    
079                    if (uuid != null) {
080                            setUuid(uuid);
081                    }
082    
083                    Long actionId = (Long)attributes.get("actionId");
084    
085                    if (actionId != null) {
086                            setActionId(actionId);
087                    }
088    
089                    Long groupId = (Long)attributes.get("groupId");
090    
091                    if (groupId != null) {
092                            setGroupId(groupId);
093                    }
094    
095                    Long companyId = (Long)attributes.get("companyId");
096    
097                    if (companyId != null) {
098                            setCompanyId(companyId);
099                    }
100    
101                    Long userId = (Long)attributes.get("userId");
102    
103                    if (userId != null) {
104                            setUserId(userId);
105                    }
106    
107                    String userName = (String)attributes.get("userName");
108    
109                    if (userName != null) {
110                            setUserName(userName);
111                    }
112    
113                    Date createDate = (Date)attributes.get("createDate");
114    
115                    if (createDate != null) {
116                            setCreateDate(createDate);
117                    }
118    
119                    Date modifiedDate = (Date)attributes.get("modifiedDate");
120    
121                    if (modifiedDate != null) {
122                            setModifiedDate(modifiedDate);
123                    }
124    
125                    Long classNameId = (Long)attributes.get("classNameId");
126    
127                    if (classNameId != null) {
128                            setClassNameId(classNameId);
129                    }
130    
131                    Long classPK = (Long)attributes.get("classPK");
132    
133                    if (classPK != null) {
134                            setClassPK(classPK);
135                    }
136    
137                    Long ruleGroupInstanceId = (Long)attributes.get("ruleGroupInstanceId");
138    
139                    if (ruleGroupInstanceId != null) {
140                            setRuleGroupInstanceId(ruleGroupInstanceId);
141                    }
142    
143                    String name = (String)attributes.get("name");
144    
145                    if (name != null) {
146                            setName(name);
147                    }
148    
149                    String description = (String)attributes.get("description");
150    
151                    if (description != null) {
152                            setDescription(description);
153                    }
154    
155                    String type = (String)attributes.get("type");
156    
157                    if (type != null) {
158                            setType(type);
159                    }
160    
161                    String typeSettings = (String)attributes.get("typeSettings");
162    
163                    if (typeSettings != null) {
164                            setTypeSettings(typeSettings);
165                    }
166            }
167    
168            @Override
169            public java.lang.Object clone() {
170                    return new MDRActionWrapper((MDRAction)_mdrAction.clone());
171            }
172    
173            @Override
174            public int compareTo(
175                    com.liferay.portlet.mobiledevicerules.model.MDRAction mdrAction) {
176                    return _mdrAction.compareTo(mdrAction);
177            }
178    
179            /**
180            * Returns the action ID of this m d r action.
181            *
182            * @return the action ID of this m d r action
183            */
184            @Override
185            public long getActionId() {
186                    return _mdrAction.getActionId();
187            }
188    
189            @Override
190            public java.lang.String[] getAvailableLanguageIds() {
191                    return _mdrAction.getAvailableLanguageIds();
192            }
193    
194            /**
195            * Returns the fully qualified class name of this m d r action.
196            *
197            * @return the fully qualified class name of this m d r action
198            */
199            @Override
200            public java.lang.String getClassName() {
201                    return _mdrAction.getClassName();
202            }
203    
204            /**
205            * Returns the class name ID of this m d r action.
206            *
207            * @return the class name ID of this m d r action
208            */
209            @Override
210            public long getClassNameId() {
211                    return _mdrAction.getClassNameId();
212            }
213    
214            /**
215            * Returns the class p k of this m d r action.
216            *
217            * @return the class p k of this m d r action
218            */
219            @Override
220            public long getClassPK() {
221                    return _mdrAction.getClassPK();
222            }
223    
224            /**
225            * Returns the company ID of this m d r action.
226            *
227            * @return the company ID of this m d r action
228            */
229            @Override
230            public long getCompanyId() {
231                    return _mdrAction.getCompanyId();
232            }
233    
234            /**
235            * Returns the create date of this m d r action.
236            *
237            * @return the create date of this m d r action
238            */
239            @Override
240            public java.util.Date getCreateDate() {
241                    return _mdrAction.getCreateDate();
242            }
243    
244            @Override
245            public java.lang.String getDefaultLanguageId() {
246                    return _mdrAction.getDefaultLanguageId();
247            }
248    
249            /**
250            * Returns the description of this m d r action.
251            *
252            * @return the description of this m d r action
253            */
254            @Override
255            public java.lang.String getDescription() {
256                    return _mdrAction.getDescription();
257            }
258    
259            /**
260            * Returns the localized description of this m d r action in the language. Uses the default language if no localization exists for the requested language.
261            *
262            * @param languageId the ID of the language
263            * @return the localized description of this m d r action
264            */
265            @Override
266            public java.lang.String getDescription(java.lang.String languageId) {
267                    return _mdrAction.getDescription(languageId);
268            }
269    
270            /**
271            * Returns the localized description of this m d r action in the language, optionally using the default language if no localization exists for the requested language.
272            *
273            * @param languageId the ID of the language
274            * @param useDefault whether to use the default language if no localization exists for the requested language
275            * @return the localized description of this m d r action
276            */
277            @Override
278            public java.lang.String getDescription(java.lang.String languageId,
279                    boolean useDefault) {
280                    return _mdrAction.getDescription(languageId, useDefault);
281            }
282    
283            /**
284            * Returns the localized description of this m d r action in the language. Uses the default language if no localization exists for the requested language.
285            *
286            * @param locale the locale of the language
287            * @return the localized description of this m d r action
288            */
289            @Override
290            public java.lang.String getDescription(java.util.Locale locale) {
291                    return _mdrAction.getDescription(locale);
292            }
293    
294            /**
295            * Returns the localized description of this m d r action in the language, optionally using the default language if no localization exists for the requested language.
296            *
297            * @param locale the local of the language
298            * @param useDefault whether to use the default language if no localization exists for the requested language
299            * @return the localized description of this m d r action. If <code>useDefault</code> is <code>false</code> and no localization exists for the requested language, an empty string will be returned.
300            */
301            @Override
302            public java.lang.String getDescription(java.util.Locale locale,
303                    boolean useDefault) {
304                    return _mdrAction.getDescription(locale, useDefault);
305            }
306    
307            @Override
308            public java.lang.String getDescriptionCurrentLanguageId() {
309                    return _mdrAction.getDescriptionCurrentLanguageId();
310            }
311    
312            @Override
313            public java.lang.String getDescriptionCurrentValue() {
314                    return _mdrAction.getDescriptionCurrentValue();
315            }
316    
317            /**
318            * Returns a map of the locales and localized descriptions of this m d r action.
319            *
320            * @return the locales and localized descriptions of this m d r action
321            */
322            @Override
323            public java.util.Map<java.util.Locale, java.lang.String> getDescriptionMap() {
324                    return _mdrAction.getDescriptionMap();
325            }
326    
327            @Override
328            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
329                    return _mdrAction.getExpandoBridge();
330            }
331    
332            /**
333            * Returns the group ID of this m d r action.
334            *
335            * @return the group ID of this m d r action
336            */
337            @Override
338            public long getGroupId() {
339                    return _mdrAction.getGroupId();
340            }
341    
342            /**
343            * Returns the modified date of this m d r action.
344            *
345            * @return the modified date of this m d r action
346            */
347            @Override
348            public java.util.Date getModifiedDate() {
349                    return _mdrAction.getModifiedDate();
350            }
351    
352            /**
353            * Returns the name of this m d r action.
354            *
355            * @return the name of this m d r action
356            */
357            @Override
358            public java.lang.String getName() {
359                    return _mdrAction.getName();
360            }
361    
362            /**
363            * Returns the localized name of this m d r action in the language. Uses the default language if no localization exists for the requested language.
364            *
365            * @param languageId the ID of the language
366            * @return the localized name of this m d r action
367            */
368            @Override
369            public java.lang.String getName(java.lang.String languageId) {
370                    return _mdrAction.getName(languageId);
371            }
372    
373            /**
374            * Returns the localized name of this m d r action in the language, optionally using the default language if no localization exists for the requested language.
375            *
376            * @param languageId the ID of the language
377            * @param useDefault whether to use the default language if no localization exists for the requested language
378            * @return the localized name of this m d r action
379            */
380            @Override
381            public java.lang.String getName(java.lang.String languageId,
382                    boolean useDefault) {
383                    return _mdrAction.getName(languageId, useDefault);
384            }
385    
386            /**
387            * Returns the localized name of this m d r action in the language. Uses the default language if no localization exists for the requested language.
388            *
389            * @param locale the locale of the language
390            * @return the localized name of this m d r action
391            */
392            @Override
393            public java.lang.String getName(java.util.Locale locale) {
394                    return _mdrAction.getName(locale);
395            }
396    
397            /**
398            * Returns the localized name of this m d r action in the language, optionally using the default language if no localization exists for the requested language.
399            *
400            * @param locale the local of the language
401            * @param useDefault whether to use the default language if no localization exists for the requested language
402            * @return the localized name of this m d r action. If <code>useDefault</code> is <code>false</code> and no localization exists for the requested language, an empty string will be returned.
403            */
404            @Override
405            public java.lang.String getName(java.util.Locale locale, boolean useDefault) {
406                    return _mdrAction.getName(locale, useDefault);
407            }
408    
409            @Override
410            public java.lang.String getNameCurrentLanguageId() {
411                    return _mdrAction.getNameCurrentLanguageId();
412            }
413    
414            @Override
415            public java.lang.String getNameCurrentValue() {
416                    return _mdrAction.getNameCurrentValue();
417            }
418    
419            /**
420            * Returns a map of the locales and localized names of this m d r action.
421            *
422            * @return the locales and localized names of this m d r action
423            */
424            @Override
425            public java.util.Map<java.util.Locale, java.lang.String> getNameMap() {
426                    return _mdrAction.getNameMap();
427            }
428    
429            /**
430            * Returns the primary key of this m d r action.
431            *
432            * @return the primary key of this m d r action
433            */
434            @Override
435            public long getPrimaryKey() {
436                    return _mdrAction.getPrimaryKey();
437            }
438    
439            @Override
440            public java.io.Serializable getPrimaryKeyObj() {
441                    return _mdrAction.getPrimaryKeyObj();
442            }
443    
444            /**
445            * Returns the rule group instance ID of this m d r action.
446            *
447            * @return the rule group instance ID of this m d r action
448            */
449            @Override
450            public long getRuleGroupInstanceId() {
451                    return _mdrAction.getRuleGroupInstanceId();
452            }
453    
454            /**
455            * Returns the type of this m d r action.
456            *
457            * @return the type of this m d r action
458            */
459            @Override
460            public java.lang.String getType() {
461                    return _mdrAction.getType();
462            }
463    
464            /**
465            * Returns the type settings of this m d r action.
466            *
467            * @return the type settings of this m d r action
468            */
469            @Override
470            public java.lang.String getTypeSettings() {
471                    return _mdrAction.getTypeSettings();
472            }
473    
474            @Override
475            public com.liferay.portal.kernel.util.UnicodeProperties getTypeSettingsProperties() {
476                    return _mdrAction.getTypeSettingsProperties();
477            }
478    
479            /**
480            * Returns the user ID of this m d r action.
481            *
482            * @return the user ID of this m d r action
483            */
484            @Override
485            public long getUserId() {
486                    return _mdrAction.getUserId();
487            }
488    
489            /**
490            * Returns the user name of this m d r action.
491            *
492            * @return the user name of this m d r action
493            */
494            @Override
495            public java.lang.String getUserName() {
496                    return _mdrAction.getUserName();
497            }
498    
499            /**
500            * Returns the user uuid of this m d r action.
501            *
502            * @return the user uuid of this m d r action
503            */
504            @Override
505            public java.lang.String getUserUuid() {
506                    return _mdrAction.getUserUuid();
507            }
508    
509            /**
510            * Returns the uuid of this m d r action.
511            *
512            * @return the uuid of this m d r action
513            */
514            @Override
515            public java.lang.String getUuid() {
516                    return _mdrAction.getUuid();
517            }
518    
519            @Override
520            public int hashCode() {
521                    return _mdrAction.hashCode();
522            }
523    
524            @Override
525            public boolean isCachedModel() {
526                    return _mdrAction.isCachedModel();
527            }
528    
529            @Override
530            public boolean isEscapedModel() {
531                    return _mdrAction.isEscapedModel();
532            }
533    
534            @Override
535            public boolean isNew() {
536                    return _mdrAction.isNew();
537            }
538    
539            @Override
540            public void persist() {
541                    _mdrAction.persist();
542            }
543    
544            @Override
545            public void prepareLocalizedFieldsForImport()
546                    throws com.liferay.portal.LocaleException {
547                    _mdrAction.prepareLocalizedFieldsForImport();
548            }
549    
550            @Override
551            public void prepareLocalizedFieldsForImport(
552                    java.util.Locale defaultImportLocale)
553                    throws com.liferay.portal.LocaleException {
554                    _mdrAction.prepareLocalizedFieldsForImport(defaultImportLocale);
555            }
556    
557            /**
558            * Sets the action ID of this m d r action.
559            *
560            * @param actionId the action ID of this m d r action
561            */
562            @Override
563            public void setActionId(long actionId) {
564                    _mdrAction.setActionId(actionId);
565            }
566    
567            @Override
568            public void setCachedModel(boolean cachedModel) {
569                    _mdrAction.setCachedModel(cachedModel);
570            }
571    
572            @Override
573            public void setClassName(java.lang.String className) {
574                    _mdrAction.setClassName(className);
575            }
576    
577            /**
578            * Sets the class name ID of this m d r action.
579            *
580            * @param classNameId the class name ID of this m d r action
581            */
582            @Override
583            public void setClassNameId(long classNameId) {
584                    _mdrAction.setClassNameId(classNameId);
585            }
586    
587            /**
588            * Sets the class p k of this m d r action.
589            *
590            * @param classPK the class p k of this m d r action
591            */
592            @Override
593            public void setClassPK(long classPK) {
594                    _mdrAction.setClassPK(classPK);
595            }
596    
597            /**
598            * Sets the company ID of this m d r action.
599            *
600            * @param companyId the company ID of this m d r action
601            */
602            @Override
603            public void setCompanyId(long companyId) {
604                    _mdrAction.setCompanyId(companyId);
605            }
606    
607            /**
608            * Sets the create date of this m d r action.
609            *
610            * @param createDate the create date of this m d r action
611            */
612            @Override
613            public void setCreateDate(java.util.Date createDate) {
614                    _mdrAction.setCreateDate(createDate);
615            }
616    
617            /**
618            * Sets the description of this m d r action.
619            *
620            * @param description the description of this m d r action
621            */
622            @Override
623            public void setDescription(java.lang.String description) {
624                    _mdrAction.setDescription(description);
625            }
626    
627            /**
628            * Sets the localized description of this m d r action in the language.
629            *
630            * @param description the localized description of this m d r action
631            * @param locale the locale of the language
632            */
633            @Override
634            public void setDescription(java.lang.String description,
635                    java.util.Locale locale) {
636                    _mdrAction.setDescription(description, locale);
637            }
638    
639            /**
640            * Sets the localized description of this m d r action in the language, and sets the default locale.
641            *
642            * @param description the localized description of this m d r action
643            * @param locale the locale of the language
644            * @param defaultLocale the default locale
645            */
646            @Override
647            public void setDescription(java.lang.String description,
648                    java.util.Locale locale, java.util.Locale defaultLocale) {
649                    _mdrAction.setDescription(description, locale, defaultLocale);
650            }
651    
652            @Override
653            public void setDescriptionCurrentLanguageId(java.lang.String languageId) {
654                    _mdrAction.setDescriptionCurrentLanguageId(languageId);
655            }
656    
657            /**
658            * Sets the localized descriptions of this m d r action from the map of locales and localized descriptions.
659            *
660            * @param descriptionMap the locales and localized descriptions of this m d r action
661            */
662            @Override
663            public void setDescriptionMap(
664                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap) {
665                    _mdrAction.setDescriptionMap(descriptionMap);
666            }
667    
668            /**
669            * Sets the localized descriptions of this m d r action from the map of locales and localized descriptions, and sets the default locale.
670            *
671            * @param descriptionMap the locales and localized descriptions of this m d r action
672            * @param defaultLocale the default locale
673            */
674            @Override
675            public void setDescriptionMap(
676                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
677                    java.util.Locale defaultLocale) {
678                    _mdrAction.setDescriptionMap(descriptionMap, defaultLocale);
679            }
680    
681            @Override
682            public void setExpandoBridgeAttributes(
683                    com.liferay.portal.model.BaseModel<?> baseModel) {
684                    _mdrAction.setExpandoBridgeAttributes(baseModel);
685            }
686    
687            @Override
688            public void setExpandoBridgeAttributes(
689                    com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
690                    _mdrAction.setExpandoBridgeAttributes(expandoBridge);
691            }
692    
693            @Override
694            public void setExpandoBridgeAttributes(
695                    com.liferay.portal.service.ServiceContext serviceContext) {
696                    _mdrAction.setExpandoBridgeAttributes(serviceContext);
697            }
698    
699            /**
700            * Sets the group ID of this m d r action.
701            *
702            * @param groupId the group ID of this m d r action
703            */
704            @Override
705            public void setGroupId(long groupId) {
706                    _mdrAction.setGroupId(groupId);
707            }
708    
709            /**
710            * Sets the modified date of this m d r action.
711            *
712            * @param modifiedDate the modified date of this m d r action
713            */
714            @Override
715            public void setModifiedDate(java.util.Date modifiedDate) {
716                    _mdrAction.setModifiedDate(modifiedDate);
717            }
718    
719            /**
720            * Sets the name of this m d r action.
721            *
722            * @param name the name of this m d r action
723            */
724            @Override
725            public void setName(java.lang.String name) {
726                    _mdrAction.setName(name);
727            }
728    
729            /**
730            * Sets the localized name of this m d r action in the language.
731            *
732            * @param name the localized name of this m d r action
733            * @param locale the locale of the language
734            */
735            @Override
736            public void setName(java.lang.String name, java.util.Locale locale) {
737                    _mdrAction.setName(name, locale);
738            }
739    
740            /**
741            * Sets the localized name of this m d r action in the language, and sets the default locale.
742            *
743            * @param name the localized name of this m d r action
744            * @param locale the locale of the language
745            * @param defaultLocale the default locale
746            */
747            @Override
748            public void setName(java.lang.String name, java.util.Locale locale,
749                    java.util.Locale defaultLocale) {
750                    _mdrAction.setName(name, locale, defaultLocale);
751            }
752    
753            @Override
754            public void setNameCurrentLanguageId(java.lang.String languageId) {
755                    _mdrAction.setNameCurrentLanguageId(languageId);
756            }
757    
758            /**
759            * Sets the localized names of this m d r action from the map of locales and localized names.
760            *
761            * @param nameMap the locales and localized names of this m d r action
762            */
763            @Override
764            public void setNameMap(
765                    java.util.Map<java.util.Locale, java.lang.String> nameMap) {
766                    _mdrAction.setNameMap(nameMap);
767            }
768    
769            /**
770            * Sets the localized names of this m d r action from the map of locales and localized names, and sets the default locale.
771            *
772            * @param nameMap the locales and localized names of this m d r action
773            * @param defaultLocale the default locale
774            */
775            @Override
776            public void setNameMap(
777                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
778                    java.util.Locale defaultLocale) {
779                    _mdrAction.setNameMap(nameMap, defaultLocale);
780            }
781    
782            @Override
783            public void setNew(boolean n) {
784                    _mdrAction.setNew(n);
785            }
786    
787            /**
788            * Sets the primary key of this m d r action.
789            *
790            * @param primaryKey the primary key of this m d r action
791            */
792            @Override
793            public void setPrimaryKey(long primaryKey) {
794                    _mdrAction.setPrimaryKey(primaryKey);
795            }
796    
797            @Override
798            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
799                    _mdrAction.setPrimaryKeyObj(primaryKeyObj);
800            }
801    
802            /**
803            * Sets the rule group instance ID of this m d r action.
804            *
805            * @param ruleGroupInstanceId the rule group instance ID of this m d r action
806            */
807            @Override
808            public void setRuleGroupInstanceId(long ruleGroupInstanceId) {
809                    _mdrAction.setRuleGroupInstanceId(ruleGroupInstanceId);
810            }
811    
812            /**
813            * Sets the type of this m d r action.
814            *
815            * @param type the type of this m d r action
816            */
817            @Override
818            public void setType(java.lang.String type) {
819                    _mdrAction.setType(type);
820            }
821    
822            /**
823            * Sets the type settings of this m d r action.
824            *
825            * @param typeSettings the type settings of this m d r action
826            */
827            @Override
828            public void setTypeSettings(java.lang.String typeSettings) {
829                    _mdrAction.setTypeSettings(typeSettings);
830            }
831    
832            @Override
833            public void setTypeSettingsProperties(
834                    com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties) {
835                    _mdrAction.setTypeSettingsProperties(typeSettingsProperties);
836            }
837    
838            /**
839            * Sets the user ID of this m d r action.
840            *
841            * @param userId the user ID of this m d r action
842            */
843            @Override
844            public void setUserId(long userId) {
845                    _mdrAction.setUserId(userId);
846            }
847    
848            /**
849            * Sets the user name of this m d r action.
850            *
851            * @param userName the user name of this m d r action
852            */
853            @Override
854            public void setUserName(java.lang.String userName) {
855                    _mdrAction.setUserName(userName);
856            }
857    
858            /**
859            * Sets the user uuid of this m d r action.
860            *
861            * @param userUuid the user uuid of this m d r action
862            */
863            @Override
864            public void setUserUuid(java.lang.String userUuid) {
865                    _mdrAction.setUserUuid(userUuid);
866            }
867    
868            /**
869            * Sets the uuid of this m d r action.
870            *
871            * @param uuid the uuid of this m d r action
872            */
873            @Override
874            public void setUuid(java.lang.String uuid) {
875                    _mdrAction.setUuid(uuid);
876            }
877    
878            @Override
879            public com.liferay.portal.model.CacheModel<com.liferay.portlet.mobiledevicerules.model.MDRAction> toCacheModel() {
880                    return _mdrAction.toCacheModel();
881            }
882    
883            @Override
884            public com.liferay.portlet.mobiledevicerules.model.MDRAction toEscapedModel() {
885                    return new MDRActionWrapper(_mdrAction.toEscapedModel());
886            }
887    
888            @Override
889            public java.lang.String toString() {
890                    return _mdrAction.toString();
891            }
892    
893            @Override
894            public com.liferay.portlet.mobiledevicerules.model.MDRAction toUnescapedModel() {
895                    return new MDRActionWrapper(_mdrAction.toUnescapedModel());
896            }
897    
898            @Override
899            public java.lang.String toXmlString() {
900                    return _mdrAction.toXmlString();
901            }
902    
903            @Override
904            public boolean equals(Object obj) {
905                    if (this == obj) {
906                            return true;
907                    }
908    
909                    if (!(obj instanceof MDRActionWrapper)) {
910                            return false;
911                    }
912    
913                    MDRActionWrapper mdrActionWrapper = (MDRActionWrapper)obj;
914    
915                    if (Validator.equals(_mdrAction, mdrActionWrapper._mdrAction)) {
916                            return true;
917                    }
918    
919                    return false;
920            }
921    
922            @Override
923            public StagedModelType getStagedModelType() {
924                    return _mdrAction.getStagedModelType();
925            }
926    
927            /**
928             * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
929             */
930            @Deprecated
931            public MDRAction getWrappedMDRAction() {
932                    return _mdrAction;
933            }
934    
935            @Override
936            public MDRAction getWrappedModel() {
937                    return _mdrAction;
938            }
939    
940            @Override
941            public boolean isEntityCacheEnabled() {
942                    return _mdrAction.isEntityCacheEnabled();
943            }
944    
945            @Override
946            public boolean isFinderCacheEnabled() {
947                    return _mdrAction.isFinderCacheEnabled();
948            }
949    
950            @Override
951            public void resetOriginalValues() {
952                    _mdrAction.resetOriginalValues();
953            }
954    
955            private final MDRAction _mdrAction;
956    }