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("parentStructureId", getParentStructureId());
065                    attributes.put("name", getName());
066                    attributes.put("description", getDescription());
067                    attributes.put("definition", getDefinition());
068                    attributes.put("storageType", getStorageType());
069                    attributes.put("type", getType());
070                    attributes.put("status", getStatus());
071                    attributes.put("statusByUserId", getStatusByUserId());
072                    attributes.put("statusByUserName", getStatusByUserName());
073                    attributes.put("statusDate", getStatusDate());
074    
075                    return attributes;
076            }
077    
078            @Override
079            public void setModelAttributes(Map<String, Object> attributes) {
080                    Long structureVersionId = (Long)attributes.get("structureVersionId");
081    
082                    if (structureVersionId != null) {
083                            setStructureVersionId(structureVersionId);
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                    Long structureId = (Long)attributes.get("structureId");
117    
118                    if (structureId != null) {
119                            setStructureId(structureId);
120                    }
121    
122                    String version = (String)attributes.get("version");
123    
124                    if (version != null) {
125                            setVersion(version);
126                    }
127    
128                    Long parentStructureId = (Long)attributes.get("parentStructureId");
129    
130                    if (parentStructureId != null) {
131                            setParentStructureId(parentStructureId);
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                    String definition = (String)attributes.get("definition");
147    
148                    if (definition != null) {
149                            setDefinition(definition);
150                    }
151    
152                    String storageType = (String)attributes.get("storageType");
153    
154                    if (storageType != null) {
155                            setStorageType(storageType);
156                    }
157    
158                    Integer type = (Integer)attributes.get("type");
159    
160                    if (type != null) {
161                            setType(type);
162                    }
163    
164                    Integer status = (Integer)attributes.get("status");
165    
166                    if (status != null) {
167                            setStatus(status);
168                    }
169    
170                    Long statusByUserId = (Long)attributes.get("statusByUserId");
171    
172                    if (statusByUserId != null) {
173                            setStatusByUserId(statusByUserId);
174                    }
175    
176                    String statusByUserName = (String)attributes.get("statusByUserName");
177    
178                    if (statusByUserName != null) {
179                            setStatusByUserName(statusByUserName);
180                    }
181    
182                    Date statusDate = (Date)attributes.get("statusDate");
183    
184                    if (statusDate != null) {
185                            setStatusDate(statusDate);
186                    }
187            }
188    
189            @Override
190            public java.lang.Object clone() {
191                    return new DDMStructureVersionWrapper((DDMStructureVersion)_ddmStructureVersion.clone());
192            }
193    
194            @Override
195            public int compareTo(
196                    com.liferay.portlet.dynamicdatamapping.model.DDMStructureVersion ddmStructureVersion) {
197                    return _ddmStructureVersion.compareTo(ddmStructureVersion);
198            }
199    
200            /**
201            * @deprecated As of 6.1.0, replaced by {@link #isApproved()}
202            */
203            @Deprecated
204            @Override
205            public boolean getApproved() {
206                    return _ddmStructureVersion.getApproved();
207            }
208    
209            @Override
210            public java.lang.String[] getAvailableLanguageIds() {
211                    return _ddmStructureVersion.getAvailableLanguageIds();
212            }
213    
214            /**
215            * Returns the company ID of this d d m structure version.
216            *
217            * @return the company ID of this d d m structure version
218            */
219            @Override
220            public long getCompanyId() {
221                    return _ddmStructureVersion.getCompanyId();
222            }
223    
224            /**
225            * Returns the create date of this d d m structure version.
226            *
227            * @return the create date of this d d m structure version
228            */
229            @Override
230            public Date getCreateDate() {
231                    return _ddmStructureVersion.getCreateDate();
232            }
233    
234            @Override
235            public com.liferay.portlet.dynamicdatamapping.model.DDMForm getDDMForm() {
236                    return _ddmStructureVersion.getDDMForm();
237            }
238    
239            @Override
240            public com.liferay.portlet.dynamicdatamapping.model.DDMFormLayout getDDMFormLayout()
241                    throws com.liferay.portal.kernel.exception.PortalException {
242                    return _ddmStructureVersion.getDDMFormLayout();
243            }
244    
245            @Override
246            public java.lang.String getDefaultLanguageId() {
247                    return _ddmStructureVersion.getDefaultLanguageId();
248            }
249    
250            /**
251            * Returns the definition of this d d m structure version.
252            *
253            * @return the definition of this d d m structure version
254            */
255            @Override
256            public java.lang.String getDefinition() {
257                    return _ddmStructureVersion.getDefinition();
258            }
259    
260            /**
261            * Returns the description of this d d m structure version.
262            *
263            * @return the description of this d d m structure version
264            */
265            @Override
266            public java.lang.String getDescription() {
267                    return _ddmStructureVersion.getDescription();
268            }
269    
270            /**
271            * 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.
272            *
273            * @param languageId the ID of the language
274            * @return the localized description of this d d m structure version
275            */
276            @Override
277            public java.lang.String getDescription(java.lang.String languageId) {
278                    return _ddmStructureVersion.getDescription(languageId);
279            }
280    
281            /**
282            * 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.
283            *
284            * @param languageId the ID of the language
285            * @param useDefault whether to use the default language if no localization exists for the requested language
286            * @return the localized description of this d d m structure version
287            */
288            @Override
289            public java.lang.String getDescription(java.lang.String languageId,
290                    boolean useDefault) {
291                    return _ddmStructureVersion.getDescription(languageId, useDefault);
292            }
293    
294            /**
295            * 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.
296            *
297            * @param locale the locale of the language
298            * @return the localized description of this d d m structure version
299            */
300            @Override
301            public java.lang.String getDescription(java.util.Locale locale) {
302                    return _ddmStructureVersion.getDescription(locale);
303            }
304    
305            /**
306            * 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.
307            *
308            * @param locale the local of the language
309            * @param useDefault whether to use the default language if no localization exists for the requested language
310            * @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.
311            */
312            @Override
313            public java.lang.String getDescription(java.util.Locale locale,
314                    boolean useDefault) {
315                    return _ddmStructureVersion.getDescription(locale, useDefault);
316            }
317    
318            @Override
319            public java.lang.String getDescriptionCurrentLanguageId() {
320                    return _ddmStructureVersion.getDescriptionCurrentLanguageId();
321            }
322    
323            @Override
324            public java.lang.String getDescriptionCurrentValue() {
325                    return _ddmStructureVersion.getDescriptionCurrentValue();
326            }
327    
328            /**
329            * Returns a map of the locales and localized descriptions of this d d m structure version.
330            *
331            * @return the locales and localized descriptions of this d d m structure version
332            */
333            @Override
334            public Map<java.util.Locale, java.lang.String> getDescriptionMap() {
335                    return _ddmStructureVersion.getDescriptionMap();
336            }
337    
338            @Override
339            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
340                    return _ddmStructureVersion.getExpandoBridge();
341            }
342    
343            /**
344            * Returns the group ID of this d d m structure version.
345            *
346            * @return the group ID of this d d m structure version
347            */
348            @Override
349            public long getGroupId() {
350                    return _ddmStructureVersion.getGroupId();
351            }
352    
353            /**
354            * Returns the name of this d d m structure version.
355            *
356            * @return the name of this d d m structure version
357            */
358            @Override
359            public java.lang.String getName() {
360                    return _ddmStructureVersion.getName();
361            }
362    
363            /**
364            * 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.
365            *
366            * @param languageId the ID of the language
367            * @return the localized name of this d d m structure version
368            */
369            @Override
370            public java.lang.String getName(java.lang.String languageId) {
371                    return _ddmStructureVersion.getName(languageId);
372            }
373    
374            /**
375            * 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.
376            *
377            * @param languageId the ID of the language
378            * @param useDefault whether to use the default language if no localization exists for the requested language
379            * @return the localized name of this d d m structure version
380            */
381            @Override
382            public java.lang.String getName(java.lang.String languageId,
383                    boolean useDefault) {
384                    return _ddmStructureVersion.getName(languageId, useDefault);
385            }
386    
387            /**
388            * 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.
389            *
390            * @param locale the locale of the language
391            * @return the localized name of this d d m structure version
392            */
393            @Override
394            public java.lang.String getName(java.util.Locale locale) {
395                    return _ddmStructureVersion.getName(locale);
396            }
397    
398            /**
399            * 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.
400            *
401            * @param locale the local of the language
402            * @param useDefault whether to use the default language if no localization exists for the requested language
403            * @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.
404            */
405            @Override
406            public java.lang.String getName(java.util.Locale locale, boolean useDefault) {
407                    return _ddmStructureVersion.getName(locale, useDefault);
408            }
409    
410            @Override
411            public java.lang.String getNameCurrentLanguageId() {
412                    return _ddmStructureVersion.getNameCurrentLanguageId();
413            }
414    
415            @Override
416            public java.lang.String getNameCurrentValue() {
417                    return _ddmStructureVersion.getNameCurrentValue();
418            }
419    
420            /**
421            * Returns a map of the locales and localized names of this d d m structure version.
422            *
423            * @return the locales and localized names of this d d m structure version
424            */
425            @Override
426            public Map<java.util.Locale, java.lang.String> getNameMap() {
427                    return _ddmStructureVersion.getNameMap();
428            }
429    
430            /**
431            * Returns the parent structure ID of this d d m structure version.
432            *
433            * @return the parent structure ID of this d d m structure version
434            */
435            @Override
436            public long getParentStructureId() {
437                    return _ddmStructureVersion.getParentStructureId();
438            }
439    
440            /**
441            * Returns the primary key of this d d m structure version.
442            *
443            * @return the primary key of this d d m structure version
444            */
445            @Override
446            public long getPrimaryKey() {
447                    return _ddmStructureVersion.getPrimaryKey();
448            }
449    
450            @Override
451            public java.io.Serializable getPrimaryKeyObj() {
452                    return _ddmStructureVersion.getPrimaryKeyObj();
453            }
454    
455            /**
456            * Returns the status of this d d m structure version.
457            *
458            * @return the status of this d d m structure version
459            */
460            @Override
461            public int getStatus() {
462                    return _ddmStructureVersion.getStatus();
463            }
464    
465            /**
466            * Returns the status by user ID of this d d m structure version.
467            *
468            * @return the status by user ID of this d d m structure version
469            */
470            @Override
471            public long getStatusByUserId() {
472                    return _ddmStructureVersion.getStatusByUserId();
473            }
474    
475            /**
476            * Returns the status by user name of this d d m structure version.
477            *
478            * @return the status by user name of this d d m structure version
479            */
480            @Override
481            public java.lang.String getStatusByUserName() {
482                    return _ddmStructureVersion.getStatusByUserName();
483            }
484    
485            /**
486            * Returns the status by user uuid of this d d m structure version.
487            *
488            * @return the status by user uuid of this d d m structure version
489            */
490            @Override
491            public java.lang.String getStatusByUserUuid() {
492                    return _ddmStructureVersion.getStatusByUserUuid();
493            }
494    
495            /**
496            * Returns the status date of this d d m structure version.
497            *
498            * @return the status date of this d d m structure version
499            */
500            @Override
501            public Date getStatusDate() {
502                    return _ddmStructureVersion.getStatusDate();
503            }
504    
505            /**
506            * Returns the storage type of this d d m structure version.
507            *
508            * @return the storage type of this d d m structure version
509            */
510            @Override
511            public java.lang.String getStorageType() {
512                    return _ddmStructureVersion.getStorageType();
513            }
514    
515            @Override
516            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure getStructure()
517                    throws com.liferay.portal.kernel.exception.PortalException {
518                    return _ddmStructureVersion.getStructure();
519            }
520    
521            /**
522            * Returns the structure ID of this d d m structure version.
523            *
524            * @return the structure ID of this d d m structure version
525            */
526            @Override
527            public long getStructureId() {
528                    return _ddmStructureVersion.getStructureId();
529            }
530    
531            /**
532            * Returns the structure version ID of this d d m structure version.
533            *
534            * @return the structure version ID of this d d m structure version
535            */
536            @Override
537            public long getStructureVersionId() {
538                    return _ddmStructureVersion.getStructureVersionId();
539            }
540    
541            /**
542            * Returns the type of this d d m structure version.
543            *
544            * @return the type of this d d m structure version
545            */
546            @Override
547            public int getType() {
548                    return _ddmStructureVersion.getType();
549            }
550    
551            /**
552            * Returns the user ID of this d d m structure version.
553            *
554            * @return the user ID of this d d m structure version
555            */
556            @Override
557            public long getUserId() {
558                    return _ddmStructureVersion.getUserId();
559            }
560    
561            /**
562            * Returns the user name of this d d m structure version.
563            *
564            * @return the user name of this d d m structure version
565            */
566            @Override
567            public java.lang.String getUserName() {
568                    return _ddmStructureVersion.getUserName();
569            }
570    
571            /**
572            * Returns the user uuid of this d d m structure version.
573            *
574            * @return the user uuid of this d d m structure version
575            */
576            @Override
577            public java.lang.String getUserUuid() {
578                    return _ddmStructureVersion.getUserUuid();
579            }
580    
581            /**
582            * Returns the version of this d d m structure version.
583            *
584            * @return the version of this d d m structure version
585            */
586            @Override
587            public java.lang.String getVersion() {
588                    return _ddmStructureVersion.getVersion();
589            }
590    
591            @Override
592            public int hashCode() {
593                    return _ddmStructureVersion.hashCode();
594            }
595    
596            /**
597            * Returns <code>true</code> if this d d m structure version is approved.
598            *
599            * @return <code>true</code> if this d d m structure version is approved; <code>false</code> otherwise
600            */
601            @Override
602            public boolean isApproved() {
603                    return _ddmStructureVersion.isApproved();
604            }
605    
606            @Override
607            public boolean isCachedModel() {
608                    return _ddmStructureVersion.isCachedModel();
609            }
610    
611            /**
612            * Returns <code>true</code> if this d d m structure version is denied.
613            *
614            * @return <code>true</code> if this d d m structure version is denied; <code>false</code> otherwise
615            */
616            @Override
617            public boolean isDenied() {
618                    return _ddmStructureVersion.isDenied();
619            }
620    
621            /**
622            * Returns <code>true</code> if this d d m structure version is a draft.
623            *
624            * @return <code>true</code> if this d d m structure version is a draft; <code>false</code> otherwise
625            */
626            @Override
627            public boolean isDraft() {
628                    return _ddmStructureVersion.isDraft();
629            }
630    
631            @Override
632            public boolean isEscapedModel() {
633                    return _ddmStructureVersion.isEscapedModel();
634            }
635    
636            /**
637            * Returns <code>true</code> if this d d m structure version is expired.
638            *
639            * @return <code>true</code> if this d d m structure version is expired; <code>false</code> otherwise
640            */
641            @Override
642            public boolean isExpired() {
643                    return _ddmStructureVersion.isExpired();
644            }
645    
646            /**
647            * Returns <code>true</code> if this d d m structure version is inactive.
648            *
649            * @return <code>true</code> if this d d m structure version is inactive; <code>false</code> otherwise
650            */
651            @Override
652            public boolean isInactive() {
653                    return _ddmStructureVersion.isInactive();
654            }
655    
656            /**
657            * Returns <code>true</code> if this d d m structure version is incomplete.
658            *
659            * @return <code>true</code> if this d d m structure version is incomplete; <code>false</code> otherwise
660            */
661            @Override
662            public boolean isIncomplete() {
663                    return _ddmStructureVersion.isIncomplete();
664            }
665    
666            @Override
667            public boolean isNew() {
668                    return _ddmStructureVersion.isNew();
669            }
670    
671            /**
672            * Returns <code>true</code> if this d d m structure version is pending.
673            *
674            * @return <code>true</code> if this d d m structure version is pending; <code>false</code> otherwise
675            */
676            @Override
677            public boolean isPending() {
678                    return _ddmStructureVersion.isPending();
679            }
680    
681            /**
682            * Returns <code>true</code> if this d d m structure version is scheduled.
683            *
684            * @return <code>true</code> if this d d m structure version is scheduled; <code>false</code> otherwise
685            */
686            @Override
687            public boolean isScheduled() {
688                    return _ddmStructureVersion.isScheduled();
689            }
690    
691            @Override
692            public void persist() {
693                    _ddmStructureVersion.persist();
694            }
695    
696            @Override
697            public void prepareLocalizedFieldsForImport()
698                    throws com.liferay.portal.LocaleException {
699                    _ddmStructureVersion.prepareLocalizedFieldsForImport();
700            }
701    
702            @Override
703            public void prepareLocalizedFieldsForImport(
704                    java.util.Locale defaultImportLocale)
705                    throws com.liferay.portal.LocaleException {
706                    _ddmStructureVersion.prepareLocalizedFieldsForImport(defaultImportLocale);
707            }
708    
709            @Override
710            public void setCachedModel(boolean cachedModel) {
711                    _ddmStructureVersion.setCachedModel(cachedModel);
712            }
713    
714            /**
715            * Sets the company ID of this d d m structure version.
716            *
717            * @param companyId the company ID of this d d m structure version
718            */
719            @Override
720            public void setCompanyId(long companyId) {
721                    _ddmStructureVersion.setCompanyId(companyId);
722            }
723    
724            /**
725            * Sets the create date of this d d m structure version.
726            *
727            * @param createDate the create date of this d d m structure version
728            */
729            @Override
730            public void setCreateDate(Date createDate) {
731                    _ddmStructureVersion.setCreateDate(createDate);
732            }
733    
734            @Override
735            public void setDDMForm(
736                    com.liferay.portlet.dynamicdatamapping.model.DDMForm ddmForm) {
737                    _ddmStructureVersion.setDDMForm(ddmForm);
738            }
739    
740            /**
741            * Sets the definition of this d d m structure version.
742            *
743            * @param definition the definition of this d d m structure version
744            */
745            @Override
746            public void setDefinition(java.lang.String definition) {
747                    _ddmStructureVersion.setDefinition(definition);
748            }
749    
750            /**
751            * Sets the description of this d d m structure version.
752            *
753            * @param description the description of this d d m structure version
754            */
755            @Override
756            public void setDescription(java.lang.String description) {
757                    _ddmStructureVersion.setDescription(description);
758            }
759    
760            /**
761            * Sets the localized description of this d d m structure version in the language.
762            *
763            * @param description the localized description of this d d m structure version
764            * @param locale the locale of the language
765            */
766            @Override
767            public void setDescription(java.lang.String description,
768                    java.util.Locale locale) {
769                    _ddmStructureVersion.setDescription(description, locale);
770            }
771    
772            /**
773            * Sets the localized description of this d d m structure version in the language, and sets the default locale.
774            *
775            * @param description the localized description of this d d m structure version
776            * @param locale the locale of the language
777            * @param defaultLocale the default locale
778            */
779            @Override
780            public void setDescription(java.lang.String description,
781                    java.util.Locale locale, java.util.Locale defaultLocale) {
782                    _ddmStructureVersion.setDescription(description, locale, defaultLocale);
783            }
784    
785            @Override
786            public void setDescriptionCurrentLanguageId(java.lang.String languageId) {
787                    _ddmStructureVersion.setDescriptionCurrentLanguageId(languageId);
788            }
789    
790            /**
791            * Sets the localized descriptions of this d d m structure version from the map of locales and localized descriptions.
792            *
793            * @param descriptionMap the locales and localized descriptions of this d d m structure version
794            */
795            @Override
796            public void setDescriptionMap(
797                    Map<java.util.Locale, java.lang.String> descriptionMap) {
798                    _ddmStructureVersion.setDescriptionMap(descriptionMap);
799            }
800    
801            /**
802            * Sets the localized descriptions of this d d m structure version from the map of locales and localized descriptions, and sets the default locale.
803            *
804            * @param descriptionMap the locales and localized descriptions of this d d m structure version
805            * @param defaultLocale the default locale
806            */
807            @Override
808            public void setDescriptionMap(
809                    Map<java.util.Locale, java.lang.String> descriptionMap,
810                    java.util.Locale defaultLocale) {
811                    _ddmStructureVersion.setDescriptionMap(descriptionMap, defaultLocale);
812            }
813    
814            @Override
815            public void setExpandoBridgeAttributes(
816                    com.liferay.portal.model.BaseModel<?> baseModel) {
817                    _ddmStructureVersion.setExpandoBridgeAttributes(baseModel);
818            }
819    
820            @Override
821            public void setExpandoBridgeAttributes(
822                    com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
823                    _ddmStructureVersion.setExpandoBridgeAttributes(expandoBridge);
824            }
825    
826            @Override
827            public void setExpandoBridgeAttributes(
828                    com.liferay.portal.service.ServiceContext serviceContext) {
829                    _ddmStructureVersion.setExpandoBridgeAttributes(serviceContext);
830            }
831    
832            /**
833            * Sets the group ID of this d d m structure version.
834            *
835            * @param groupId the group ID of this d d m structure version
836            */
837            @Override
838            public void setGroupId(long groupId) {
839                    _ddmStructureVersion.setGroupId(groupId);
840            }
841    
842            /**
843            * Sets the name of this d d m structure version.
844            *
845            * @param name the name of this d d m structure version
846            */
847            @Override
848            public void setName(java.lang.String name) {
849                    _ddmStructureVersion.setName(name);
850            }
851    
852            /**
853            * Sets the localized name of this d d m structure version in the language.
854            *
855            * @param name the localized name of this d d m structure version
856            * @param locale the locale of the language
857            */
858            @Override
859            public void setName(java.lang.String name, java.util.Locale locale) {
860                    _ddmStructureVersion.setName(name, locale);
861            }
862    
863            /**
864            * Sets the localized name of this d d m structure version in the language, and sets the default locale.
865            *
866            * @param name the localized name of this d d m structure version
867            * @param locale the locale of the language
868            * @param defaultLocale the default locale
869            */
870            @Override
871            public void setName(java.lang.String name, java.util.Locale locale,
872                    java.util.Locale defaultLocale) {
873                    _ddmStructureVersion.setName(name, locale, defaultLocale);
874            }
875    
876            @Override
877            public void setNameCurrentLanguageId(java.lang.String languageId) {
878                    _ddmStructureVersion.setNameCurrentLanguageId(languageId);
879            }
880    
881            /**
882            * Sets the localized names of this d d m structure version from the map of locales and localized names.
883            *
884            * @param nameMap the locales and localized names of this d d m structure version
885            */
886            @Override
887            public void setNameMap(Map<java.util.Locale, java.lang.String> nameMap) {
888                    _ddmStructureVersion.setNameMap(nameMap);
889            }
890    
891            /**
892            * Sets the localized names of this d d m structure version from the map of locales and localized names, and sets the default locale.
893            *
894            * @param nameMap the locales and localized names of this d d m structure version
895            * @param defaultLocale the default locale
896            */
897            @Override
898            public void setNameMap(Map<java.util.Locale, java.lang.String> nameMap,
899                    java.util.Locale defaultLocale) {
900                    _ddmStructureVersion.setNameMap(nameMap, defaultLocale);
901            }
902    
903            @Override
904            public void setNew(boolean n) {
905                    _ddmStructureVersion.setNew(n);
906            }
907    
908            /**
909            * Sets the parent structure ID of this d d m structure version.
910            *
911            * @param parentStructureId the parent structure ID of this d d m structure version
912            */
913            @Override
914            public void setParentStructureId(long parentStructureId) {
915                    _ddmStructureVersion.setParentStructureId(parentStructureId);
916            }
917    
918            /**
919            * Sets the primary key of this d d m structure version.
920            *
921            * @param primaryKey the primary key of this d d m structure version
922            */
923            @Override
924            public void setPrimaryKey(long primaryKey) {
925                    _ddmStructureVersion.setPrimaryKey(primaryKey);
926            }
927    
928            @Override
929            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
930                    _ddmStructureVersion.setPrimaryKeyObj(primaryKeyObj);
931            }
932    
933            /**
934            * Sets the status of this d d m structure version.
935            *
936            * @param status the status of this d d m structure version
937            */
938            @Override
939            public void setStatus(int status) {
940                    _ddmStructureVersion.setStatus(status);
941            }
942    
943            /**
944            * Sets the status by user ID of this d d m structure version.
945            *
946            * @param statusByUserId the status by user ID of this d d m structure version
947            */
948            @Override
949            public void setStatusByUserId(long statusByUserId) {
950                    _ddmStructureVersion.setStatusByUserId(statusByUserId);
951            }
952    
953            /**
954            * Sets the status by user name of this d d m structure version.
955            *
956            * @param statusByUserName the status by user name of this d d m structure version
957            */
958            @Override
959            public void setStatusByUserName(java.lang.String statusByUserName) {
960                    _ddmStructureVersion.setStatusByUserName(statusByUserName);
961            }
962    
963            /**
964            * Sets the status by user uuid of this d d m structure version.
965            *
966            * @param statusByUserUuid the status by user uuid of this d d m structure version
967            */
968            @Override
969            public void setStatusByUserUuid(java.lang.String statusByUserUuid) {
970                    _ddmStructureVersion.setStatusByUserUuid(statusByUserUuid);
971            }
972    
973            /**
974            * Sets the status date of this d d m structure version.
975            *
976            * @param statusDate the status date of this d d m structure version
977            */
978            @Override
979            public void setStatusDate(Date statusDate) {
980                    _ddmStructureVersion.setStatusDate(statusDate);
981            }
982    
983            /**
984            * Sets the storage type of this d d m structure version.
985            *
986            * @param storageType the storage type of this d d m structure version
987            */
988            @Override
989            public void setStorageType(java.lang.String storageType) {
990                    _ddmStructureVersion.setStorageType(storageType);
991            }
992    
993            /**
994            * Sets the structure ID of this d d m structure version.
995            *
996            * @param structureId the structure ID of this d d m structure version
997            */
998            @Override
999            public void setStructureId(long structureId) {
1000                    _ddmStructureVersion.setStructureId(structureId);
1001            }
1002    
1003            /**
1004            * Sets the structure version ID of this d d m structure version.
1005            *
1006            * @param structureVersionId the structure version ID of this d d m structure version
1007            */
1008            @Override
1009            public void setStructureVersionId(long structureVersionId) {
1010                    _ddmStructureVersion.setStructureVersionId(structureVersionId);
1011            }
1012    
1013            /**
1014            * Sets the type of this d d m structure version.
1015            *
1016            * @param type the type of this d d m structure version
1017            */
1018            @Override
1019            public void setType(int type) {
1020                    _ddmStructureVersion.setType(type);
1021            }
1022    
1023            /**
1024            * Sets the user ID of this d d m structure version.
1025            *
1026            * @param userId the user ID of this d d m structure version
1027            */
1028            @Override
1029            public void setUserId(long userId) {
1030                    _ddmStructureVersion.setUserId(userId);
1031            }
1032    
1033            /**
1034            * Sets the user name of this d d m structure version.
1035            *
1036            * @param userName the user name of this d d m structure version
1037            */
1038            @Override
1039            public void setUserName(java.lang.String userName) {
1040                    _ddmStructureVersion.setUserName(userName);
1041            }
1042    
1043            /**
1044            * Sets the user uuid of this d d m structure version.
1045            *
1046            * @param userUuid the user uuid of this d d m structure version
1047            */
1048            @Override
1049            public void setUserUuid(java.lang.String userUuid) {
1050                    _ddmStructureVersion.setUserUuid(userUuid);
1051            }
1052    
1053            /**
1054            * Sets the version of this d d m structure version.
1055            *
1056            * @param version the version of this d d m structure version
1057            */
1058            @Override
1059            public void setVersion(java.lang.String version) {
1060                    _ddmStructureVersion.setVersion(version);
1061            }
1062    
1063            @Override
1064            public com.liferay.portal.model.CacheModel<com.liferay.portlet.dynamicdatamapping.model.DDMStructureVersion> toCacheModel() {
1065                    return _ddmStructureVersion.toCacheModel();
1066            }
1067    
1068            @Override
1069            public com.liferay.portlet.dynamicdatamapping.model.DDMStructureVersion toEscapedModel() {
1070                    return new DDMStructureVersionWrapper(_ddmStructureVersion.toEscapedModel());
1071            }
1072    
1073            @Override
1074            public java.lang.String toString() {
1075                    return _ddmStructureVersion.toString();
1076            }
1077    
1078            @Override
1079            public com.liferay.portlet.dynamicdatamapping.model.DDMStructureVersion toUnescapedModel() {
1080                    return new DDMStructureVersionWrapper(_ddmStructureVersion.toUnescapedModel());
1081            }
1082    
1083            @Override
1084            public java.lang.String toXmlString() {
1085                    return _ddmStructureVersion.toXmlString();
1086            }
1087    
1088            @Override
1089            public boolean equals(Object obj) {
1090                    if (this == obj) {
1091                            return true;
1092                    }
1093    
1094                    if (!(obj instanceof DDMStructureVersionWrapper)) {
1095                            return false;
1096                    }
1097    
1098                    DDMStructureVersionWrapper ddmStructureVersionWrapper = (DDMStructureVersionWrapper)obj;
1099    
1100                    if (Validator.equals(_ddmStructureVersion,
1101                                            ddmStructureVersionWrapper._ddmStructureVersion)) {
1102                            return true;
1103                    }
1104    
1105                    return false;
1106            }
1107    
1108            /**
1109             * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
1110             */
1111            @Deprecated
1112            public DDMStructureVersion getWrappedDDMStructureVersion() {
1113                    return _ddmStructureVersion;
1114            }
1115    
1116            @Override
1117            public DDMStructureVersion getWrappedModel() {
1118                    return _ddmStructureVersion;
1119            }
1120    
1121            @Override
1122            public boolean isEntityCacheEnabled() {
1123                    return _ddmStructureVersion.isEntityCacheEnabled();
1124            }
1125    
1126            @Override
1127            public boolean isFinderCacheEnabled() {
1128                    return _ddmStructureVersion.isFinderCacheEnabled();
1129            }
1130    
1131            @Override
1132            public void resetOriginalValues() {
1133                    _ddmStructureVersion.resetOriginalValues();
1134            }
1135    
1136            private final DDMStructureVersion _ddmStructureVersion;
1137    }