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