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