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