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