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