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