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