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