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