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