001    /**
002     * Copyright (c) 2000-2012 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.model.ModelWrapper;
018    
019    /**
020     * <p>
021     * This class is a wrapper for {@link MDRAction}.
022     * </p>
023     *
024     * @author    Edward C. Han
025     * @see       MDRAction
026     * @generated
027     */
028    public class MDRActionWrapper implements MDRAction, ModelWrapper<MDRAction> {
029            public MDRActionWrapper(MDRAction mdrAction) {
030                    _mdrAction = mdrAction;
031            }
032    
033            public Class<?> getModelClass() {
034                    return MDRAction.class;
035            }
036    
037            public String getModelClassName() {
038                    return MDRAction.class.getName();
039            }
040    
041            /**
042            * Returns the primary key of this m d r action.
043            *
044            * @return the primary key of this m d r action
045            */
046            public long getPrimaryKey() {
047                    return _mdrAction.getPrimaryKey();
048            }
049    
050            /**
051            * Sets the primary key of this m d r action.
052            *
053            * @param primaryKey the primary key of this m d r action
054            */
055            public void setPrimaryKey(long primaryKey) {
056                    _mdrAction.setPrimaryKey(primaryKey);
057            }
058    
059            /**
060            * Returns the uuid of this m d r action.
061            *
062            * @return the uuid of this m d r action
063            */
064            public java.lang.String getUuid() {
065                    return _mdrAction.getUuid();
066            }
067    
068            /**
069            * Sets the uuid of this m d r action.
070            *
071            * @param uuid the uuid of this m d r action
072            */
073            public void setUuid(java.lang.String uuid) {
074                    _mdrAction.setUuid(uuid);
075            }
076    
077            /**
078            * Returns the action ID of this m d r action.
079            *
080            * @return the action ID of this m d r action
081            */
082            public long getActionId() {
083                    return _mdrAction.getActionId();
084            }
085    
086            /**
087            * Sets the action ID of this m d r action.
088            *
089            * @param actionId the action ID of this m d r action
090            */
091            public void setActionId(long actionId) {
092                    _mdrAction.setActionId(actionId);
093            }
094    
095            /**
096            * Returns the group ID of this m d r action.
097            *
098            * @return the group ID of this m d r action
099            */
100            public long getGroupId() {
101                    return _mdrAction.getGroupId();
102            }
103    
104            /**
105            * Sets the group ID of this m d r action.
106            *
107            * @param groupId the group ID of this m d r action
108            */
109            public void setGroupId(long groupId) {
110                    _mdrAction.setGroupId(groupId);
111            }
112    
113            /**
114            * Returns the company ID of this m d r action.
115            *
116            * @return the company ID of this m d r action
117            */
118            public long getCompanyId() {
119                    return _mdrAction.getCompanyId();
120            }
121    
122            /**
123            * Sets the company ID of this m d r action.
124            *
125            * @param companyId the company ID of this m d r action
126            */
127            public void setCompanyId(long companyId) {
128                    _mdrAction.setCompanyId(companyId);
129            }
130    
131            /**
132            * Returns the user ID of this m d r action.
133            *
134            * @return the user ID of this m d r action
135            */
136            public long getUserId() {
137                    return _mdrAction.getUserId();
138            }
139    
140            /**
141            * Sets the user ID of this m d r action.
142            *
143            * @param userId the user ID of this m d r action
144            */
145            public void setUserId(long userId) {
146                    _mdrAction.setUserId(userId);
147            }
148    
149            /**
150            * Returns the user uuid of this m d r action.
151            *
152            * @return the user uuid of this m d r action
153            * @throws SystemException if a system exception occurred
154            */
155            public java.lang.String getUserUuid()
156                    throws com.liferay.portal.kernel.exception.SystemException {
157                    return _mdrAction.getUserUuid();
158            }
159    
160            /**
161            * Sets the user uuid of this m d r action.
162            *
163            * @param userUuid the user uuid of this m d r action
164            */
165            public void setUserUuid(java.lang.String userUuid) {
166                    _mdrAction.setUserUuid(userUuid);
167            }
168    
169            /**
170            * Returns the user name of this m d r action.
171            *
172            * @return the user name of this m d r action
173            */
174            public java.lang.String getUserName() {
175                    return _mdrAction.getUserName();
176            }
177    
178            /**
179            * Sets the user name of this m d r action.
180            *
181            * @param userName the user name of this m d r action
182            */
183            public void setUserName(java.lang.String userName) {
184                    _mdrAction.setUserName(userName);
185            }
186    
187            /**
188            * Returns the create date of this m d r action.
189            *
190            * @return the create date of this m d r action
191            */
192            public java.util.Date getCreateDate() {
193                    return _mdrAction.getCreateDate();
194            }
195    
196            /**
197            * Sets the create date of this m d r action.
198            *
199            * @param createDate the create date of this m d r action
200            */
201            public void setCreateDate(java.util.Date createDate) {
202                    _mdrAction.setCreateDate(createDate);
203            }
204    
205            /**
206            * Returns the modified date of this m d r action.
207            *
208            * @return the modified date of this m d r action
209            */
210            public java.util.Date getModifiedDate() {
211                    return _mdrAction.getModifiedDate();
212            }
213    
214            /**
215            * Sets the modified date of this m d r action.
216            *
217            * @param modifiedDate the modified date of this m d r action
218            */
219            public void setModifiedDate(java.util.Date modifiedDate) {
220                    _mdrAction.setModifiedDate(modifiedDate);
221            }
222    
223            /**
224            * Returns the fully qualified class name of this m d r action.
225            *
226            * @return the fully qualified class name of this m d r action
227            */
228            public java.lang.String getClassName() {
229                    return _mdrAction.getClassName();
230            }
231    
232            /**
233            * Returns the class name ID of this m d r action.
234            *
235            * @return the class name ID of this m d r action
236            */
237            public long getClassNameId() {
238                    return _mdrAction.getClassNameId();
239            }
240    
241            /**
242            * Sets the class name ID of this m d r action.
243            *
244            * @param classNameId the class name ID of this m d r action
245            */
246            public void setClassNameId(long classNameId) {
247                    _mdrAction.setClassNameId(classNameId);
248            }
249    
250            /**
251            * Returns the class p k of this m d r action.
252            *
253            * @return the class p k of this m d r action
254            */
255            public long getClassPK() {
256                    return _mdrAction.getClassPK();
257            }
258    
259            /**
260            * Sets the class p k of this m d r action.
261            *
262            * @param classPK the class p k of this m d r action
263            */
264            public void setClassPK(long classPK) {
265                    _mdrAction.setClassPK(classPK);
266            }
267    
268            /**
269            * Returns the rule group instance ID of this m d r action.
270            *
271            * @return the rule group instance ID of this m d r action
272            */
273            public long getRuleGroupInstanceId() {
274                    return _mdrAction.getRuleGroupInstanceId();
275            }
276    
277            /**
278            * Sets the rule group instance ID of this m d r action.
279            *
280            * @param ruleGroupInstanceId the rule group instance ID of this m d r action
281            */
282            public void setRuleGroupInstanceId(long ruleGroupInstanceId) {
283                    _mdrAction.setRuleGroupInstanceId(ruleGroupInstanceId);
284            }
285    
286            /**
287            * Returns the name of this m d r action.
288            *
289            * @return the name of this m d r action
290            */
291            public java.lang.String getName() {
292                    return _mdrAction.getName();
293            }
294    
295            /**
296            * 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.
297            *
298            * @param locale the locale of the language
299            * @return the localized name of this m d r action
300            */
301            public java.lang.String getName(java.util.Locale locale) {
302                    return _mdrAction.getName(locale);
303            }
304    
305            /**
306            * 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.
307            *
308            * @param locale the local of the language
309            * @param useDefault whether to use the default language if no localization exists for the requested language
310            * @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.
311            */
312            public java.lang.String getName(java.util.Locale locale, boolean useDefault) {
313                    return _mdrAction.getName(locale, useDefault);
314            }
315    
316            /**
317            * 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.
318            *
319            * @param languageId the ID of the language
320            * @return the localized name of this m d r action
321            */
322            public java.lang.String getName(java.lang.String languageId) {
323                    return _mdrAction.getName(languageId);
324            }
325    
326            /**
327            * 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.
328            *
329            * @param languageId the ID of the language
330            * @param useDefault whether to use the default language if no localization exists for the requested language
331            * @return the localized name of this m d r action
332            */
333            public java.lang.String getName(java.lang.String languageId,
334                    boolean useDefault) {
335                    return _mdrAction.getName(languageId, useDefault);
336            }
337    
338            public java.lang.String getNameCurrentLanguageId() {
339                    return _mdrAction.getNameCurrentLanguageId();
340            }
341    
342            public java.lang.String getNameCurrentValue() {
343                    return _mdrAction.getNameCurrentValue();
344            }
345    
346            /**
347            * Returns a map of the locales and localized names of this m d r action.
348            *
349            * @return the locales and localized names of this m d r action
350            */
351            public java.util.Map<java.util.Locale, java.lang.String> getNameMap() {
352                    return _mdrAction.getNameMap();
353            }
354    
355            /**
356            * Sets the name of this m d r action.
357            *
358            * @param name the name of this m d r action
359            */
360            public void setName(java.lang.String name) {
361                    _mdrAction.setName(name);
362            }
363    
364            /**
365            * Sets the localized name of this m d r action in the language.
366            *
367            * @param name the localized name of this m d r action
368            * @param locale the locale of the language
369            */
370            public void setName(java.lang.String name, java.util.Locale locale) {
371                    _mdrAction.setName(name, locale);
372            }
373    
374            /**
375            * Sets the localized name of this m d r action in the language, and sets the default locale.
376            *
377            * @param name the localized name of this m d r action
378            * @param locale the locale of the language
379            * @param defaultLocale the default locale
380            */
381            public void setName(java.lang.String name, java.util.Locale locale,
382                    java.util.Locale defaultLocale) {
383                    _mdrAction.setName(name, locale, defaultLocale);
384            }
385    
386            public void setNameCurrentLanguageId(java.lang.String languageId) {
387                    _mdrAction.setNameCurrentLanguageId(languageId);
388            }
389    
390            /**
391            * Sets the localized names of this m d r action from the map of locales and localized names.
392            *
393            * @param nameMap the locales and localized names of this m d r action
394            */
395            public void setNameMap(
396                    java.util.Map<java.util.Locale, java.lang.String> nameMap) {
397                    _mdrAction.setNameMap(nameMap);
398            }
399    
400            /**
401            * Sets the localized names of this m d r action from the map of locales and localized names, and sets the default locale.
402            *
403            * @param nameMap the locales and localized names of this m d r action
404            * @param defaultLocale the default locale
405            */
406            public void setNameMap(
407                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
408                    java.util.Locale defaultLocale) {
409                    _mdrAction.setNameMap(nameMap, defaultLocale);
410            }
411    
412            /**
413            * Returns the description of this m d r action.
414            *
415            * @return the description of this m d r action
416            */
417            public java.lang.String getDescription() {
418                    return _mdrAction.getDescription();
419            }
420    
421            /**
422            * 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.
423            *
424            * @param locale the locale of the language
425            * @return the localized description of this m d r action
426            */
427            public java.lang.String getDescription(java.util.Locale locale) {
428                    return _mdrAction.getDescription(locale);
429            }
430    
431            /**
432            * 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.
433            *
434            * @param locale the local of the language
435            * @param useDefault whether to use the default language if no localization exists for the requested language
436            * @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.
437            */
438            public java.lang.String getDescription(java.util.Locale locale,
439                    boolean useDefault) {
440                    return _mdrAction.getDescription(locale, useDefault);
441            }
442    
443            /**
444            * 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.
445            *
446            * @param languageId the ID of the language
447            * @return the localized description of this m d r action
448            */
449            public java.lang.String getDescription(java.lang.String languageId) {
450                    return _mdrAction.getDescription(languageId);
451            }
452    
453            /**
454            * 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.
455            *
456            * @param languageId the ID of the language
457            * @param useDefault whether to use the default language if no localization exists for the requested language
458            * @return the localized description of this m d r action
459            */
460            public java.lang.String getDescription(java.lang.String languageId,
461                    boolean useDefault) {
462                    return _mdrAction.getDescription(languageId, useDefault);
463            }
464    
465            public java.lang.String getDescriptionCurrentLanguageId() {
466                    return _mdrAction.getDescriptionCurrentLanguageId();
467            }
468    
469            public java.lang.String getDescriptionCurrentValue() {
470                    return _mdrAction.getDescriptionCurrentValue();
471            }
472    
473            /**
474            * Returns a map of the locales and localized descriptions of this m d r action.
475            *
476            * @return the locales and localized descriptions of this m d r action
477            */
478            public java.util.Map<java.util.Locale, java.lang.String> getDescriptionMap() {
479                    return _mdrAction.getDescriptionMap();
480            }
481    
482            /**
483            * Sets the description of this m d r action.
484            *
485            * @param description the description of this m d r action
486            */
487            public void setDescription(java.lang.String description) {
488                    _mdrAction.setDescription(description);
489            }
490    
491            /**
492            * Sets the localized description of this m d r action in the language.
493            *
494            * @param description the localized description of this m d r action
495            * @param locale the locale of the language
496            */
497            public void setDescription(java.lang.String description,
498                    java.util.Locale locale) {
499                    _mdrAction.setDescription(description, locale);
500            }
501    
502            /**
503            * Sets the localized description of this m d r action in the language, and sets the default locale.
504            *
505            * @param description the localized description of this m d r action
506            * @param locale the locale of the language
507            * @param defaultLocale the default locale
508            */
509            public void setDescription(java.lang.String description,
510                    java.util.Locale locale, java.util.Locale defaultLocale) {
511                    _mdrAction.setDescription(description, locale, defaultLocale);
512            }
513    
514            public void setDescriptionCurrentLanguageId(java.lang.String languageId) {
515                    _mdrAction.setDescriptionCurrentLanguageId(languageId);
516            }
517    
518            /**
519            * Sets the localized descriptions of this m d r action from the map of locales and localized descriptions.
520            *
521            * @param descriptionMap the locales and localized descriptions of this m d r action
522            */
523            public void setDescriptionMap(
524                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap) {
525                    _mdrAction.setDescriptionMap(descriptionMap);
526            }
527    
528            /**
529            * Sets the localized descriptions of this m d r action from the map of locales and localized descriptions, and sets the default locale.
530            *
531            * @param descriptionMap the locales and localized descriptions of this m d r action
532            * @param defaultLocale the default locale
533            */
534            public void setDescriptionMap(
535                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
536                    java.util.Locale defaultLocale) {
537                    _mdrAction.setDescriptionMap(descriptionMap, defaultLocale);
538            }
539    
540            /**
541            * Returns the type of this m d r action.
542            *
543            * @return the type of this m d r action
544            */
545            public java.lang.String getType() {
546                    return _mdrAction.getType();
547            }
548    
549            /**
550            * Sets the type of this m d r action.
551            *
552            * @param type the type of this m d r action
553            */
554            public void setType(java.lang.String type) {
555                    _mdrAction.setType(type);
556            }
557    
558            /**
559            * Returns the type settings of this m d r action.
560            *
561            * @return the type settings of this m d r action
562            */
563            public java.lang.String getTypeSettings() {
564                    return _mdrAction.getTypeSettings();
565            }
566    
567            /**
568            * Sets the type settings of this m d r action.
569            *
570            * @param typeSettings the type settings of this m d r action
571            */
572            public void setTypeSettings(java.lang.String typeSettings) {
573                    _mdrAction.setTypeSettings(typeSettings);
574            }
575    
576            public boolean isNew() {
577                    return _mdrAction.isNew();
578            }
579    
580            public void setNew(boolean n) {
581                    _mdrAction.setNew(n);
582            }
583    
584            public boolean isCachedModel() {
585                    return _mdrAction.isCachedModel();
586            }
587    
588            public void setCachedModel(boolean cachedModel) {
589                    _mdrAction.setCachedModel(cachedModel);
590            }
591    
592            public boolean isEscapedModel() {
593                    return _mdrAction.isEscapedModel();
594            }
595    
596            public java.io.Serializable getPrimaryKeyObj() {
597                    return _mdrAction.getPrimaryKeyObj();
598            }
599    
600            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
601                    _mdrAction.setPrimaryKeyObj(primaryKeyObj);
602            }
603    
604            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
605                    return _mdrAction.getExpandoBridge();
606            }
607    
608            public void setExpandoBridgeAttributes(
609                    com.liferay.portal.service.ServiceContext serviceContext) {
610                    _mdrAction.setExpandoBridgeAttributes(serviceContext);
611            }
612    
613            @Override
614            public java.lang.Object clone() {
615                    return new MDRActionWrapper((MDRAction)_mdrAction.clone());
616            }
617    
618            public int compareTo(
619                    com.liferay.portlet.mobiledevicerules.model.MDRAction mdrAction) {
620                    return _mdrAction.compareTo(mdrAction);
621            }
622    
623            @Override
624            public int hashCode() {
625                    return _mdrAction.hashCode();
626            }
627    
628            public com.liferay.portal.model.CacheModel<com.liferay.portlet.mobiledevicerules.model.MDRAction> toCacheModel() {
629                    return _mdrAction.toCacheModel();
630            }
631    
632            public com.liferay.portlet.mobiledevicerules.model.MDRAction toEscapedModel() {
633                    return new MDRActionWrapper(_mdrAction.toEscapedModel());
634            }
635    
636            @Override
637            public java.lang.String toString() {
638                    return _mdrAction.toString();
639            }
640    
641            public java.lang.String toXmlString() {
642                    return _mdrAction.toXmlString();
643            }
644    
645            public void persist()
646                    throws com.liferay.portal.kernel.exception.SystemException {
647                    _mdrAction.persist();
648            }
649    
650            public com.liferay.portal.kernel.util.UnicodeProperties getTypeSettingsProperties() {
651                    return _mdrAction.getTypeSettingsProperties();
652            }
653    
654            public void setTypeSettingsProperties(
655                    com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties) {
656                    _mdrAction.setTypeSettingsProperties(typeSettingsProperties);
657            }
658    
659            /**
660             * @deprecated Renamed to {@link #getWrappedModel}
661             */
662            public MDRAction getWrappedMDRAction() {
663                    return _mdrAction;
664            }
665    
666            public MDRAction getWrappedModel() {
667                    return _mdrAction;
668            }
669    
670            public void resetOriginalValues() {
671                    _mdrAction.resetOriginalValues();
672            }
673    
674            private MDRAction _mdrAction;
675    }