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