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