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