001    /**
002     * Copyright (c) 2000-2012 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 com.liferay.portal.model.ModelWrapper;
018    
019    import java.util.Date;
020    import java.util.HashMap;
021    import java.util.Map;
022    
023    /**
024     * <p>
025     * This class is a wrapper for {@link DDMTemplate}.
026     * </p>
027     *
028     * @author    Brian Wing Shun Chan
029     * @see       DDMTemplate
030     * @generated
031     */
032    public class DDMTemplateWrapper implements DDMTemplate,
033            ModelWrapper<DDMTemplate> {
034            public DDMTemplateWrapper(DDMTemplate ddmTemplate) {
035                    _ddmTemplate = ddmTemplate;
036            }
037    
038            public Class<?> getModelClass() {
039                    return DDMTemplate.class;
040            }
041    
042            public String getModelClassName() {
043                    return DDMTemplate.class.getName();
044            }
045    
046            public Map<String, Object> getModelAttributes() {
047                    Map<String, Object> attributes = new HashMap<String, Object>();
048    
049                    attributes.put("uuid", getUuid());
050                    attributes.put("templateId", getTemplateId());
051                    attributes.put("groupId", getGroupId());
052                    attributes.put("companyId", getCompanyId());
053                    attributes.put("userId", getUserId());
054                    attributes.put("userName", getUserName());
055                    attributes.put("createDate", getCreateDate());
056                    attributes.put("modifiedDate", getModifiedDate());
057                    attributes.put("classNameId", getClassNameId());
058                    attributes.put("classPK", getClassPK());
059                    attributes.put("templateKey", getTemplateKey());
060                    attributes.put("name", getName());
061                    attributes.put("description", getDescription());
062                    attributes.put("type", getType());
063                    attributes.put("mode", getMode());
064                    attributes.put("language", getLanguage());
065                    attributes.put("script", getScript());
066                    attributes.put("cacheable", getCacheable());
067    
068                    return attributes;
069            }
070    
071            public void setModelAttributes(Map<String, Object> attributes) {
072                    String uuid = (String)attributes.get("uuid");
073    
074                    if (uuid != null) {
075                            setUuid(uuid);
076                    }
077    
078                    Long templateId = (Long)attributes.get("templateId");
079    
080                    if (templateId != null) {
081                            setTemplateId(templateId);
082                    }
083    
084                    Long groupId = (Long)attributes.get("groupId");
085    
086                    if (groupId != null) {
087                            setGroupId(groupId);
088                    }
089    
090                    Long companyId = (Long)attributes.get("companyId");
091    
092                    if (companyId != null) {
093                            setCompanyId(companyId);
094                    }
095    
096                    Long userId = (Long)attributes.get("userId");
097    
098                    if (userId != null) {
099                            setUserId(userId);
100                    }
101    
102                    String userName = (String)attributes.get("userName");
103    
104                    if (userName != null) {
105                            setUserName(userName);
106                    }
107    
108                    Date createDate = (Date)attributes.get("createDate");
109    
110                    if (createDate != null) {
111                            setCreateDate(createDate);
112                    }
113    
114                    Date modifiedDate = (Date)attributes.get("modifiedDate");
115    
116                    if (modifiedDate != null) {
117                            setModifiedDate(modifiedDate);
118                    }
119    
120                    Long classNameId = (Long)attributes.get("classNameId");
121    
122                    if (classNameId != null) {
123                            setClassNameId(classNameId);
124                    }
125    
126                    Long classPK = (Long)attributes.get("classPK");
127    
128                    if (classPK != null) {
129                            setClassPK(classPK);
130                    }
131    
132                    String templateKey = (String)attributes.get("templateKey");
133    
134                    if (templateKey != null) {
135                            setTemplateKey(templateKey);
136                    }
137    
138                    String name = (String)attributes.get("name");
139    
140                    if (name != null) {
141                            setName(name);
142                    }
143    
144                    String description = (String)attributes.get("description");
145    
146                    if (description != null) {
147                            setDescription(description);
148                    }
149    
150                    String type = (String)attributes.get("type");
151    
152                    if (type != null) {
153                            setType(type);
154                    }
155    
156                    String mode = (String)attributes.get("mode");
157    
158                    if (mode != null) {
159                            setMode(mode);
160                    }
161    
162                    String language = (String)attributes.get("language");
163    
164                    if (language != null) {
165                            setLanguage(language);
166                    }
167    
168                    String script = (String)attributes.get("script");
169    
170                    if (script != null) {
171                            setScript(script);
172                    }
173    
174                    Boolean cacheable = (Boolean)attributes.get("cacheable");
175    
176                    if (cacheable != null) {
177                            setCacheable(cacheable);
178                    }
179            }
180    
181            /**
182            * Returns the primary key of this d d m template.
183            *
184            * @return the primary key of this d d m template
185            */
186            public long getPrimaryKey() {
187                    return _ddmTemplate.getPrimaryKey();
188            }
189    
190            /**
191            * Sets the primary key of this d d m template.
192            *
193            * @param primaryKey the primary key of this d d m template
194            */
195            public void setPrimaryKey(long primaryKey) {
196                    _ddmTemplate.setPrimaryKey(primaryKey);
197            }
198    
199            /**
200            * Returns the uuid of this d d m template.
201            *
202            * @return the uuid of this d d m template
203            */
204            public java.lang.String getUuid() {
205                    return _ddmTemplate.getUuid();
206            }
207    
208            /**
209            * Sets the uuid of this d d m template.
210            *
211            * @param uuid the uuid of this d d m template
212            */
213            public void setUuid(java.lang.String uuid) {
214                    _ddmTemplate.setUuid(uuid);
215            }
216    
217            /**
218            * Returns the template ID of this d d m template.
219            *
220            * @return the template ID of this d d m template
221            */
222            public long getTemplateId() {
223                    return _ddmTemplate.getTemplateId();
224            }
225    
226            /**
227            * Sets the template ID of this d d m template.
228            *
229            * @param templateId the template ID of this d d m template
230            */
231            public void setTemplateId(long templateId) {
232                    _ddmTemplate.setTemplateId(templateId);
233            }
234    
235            /**
236            * Returns the group ID of this d d m template.
237            *
238            * @return the group ID of this d d m template
239            */
240            public long getGroupId() {
241                    return _ddmTemplate.getGroupId();
242            }
243    
244            /**
245            * Sets the group ID of this d d m template.
246            *
247            * @param groupId the group ID of this d d m template
248            */
249            public void setGroupId(long groupId) {
250                    _ddmTemplate.setGroupId(groupId);
251            }
252    
253            /**
254            * Returns the company ID of this d d m template.
255            *
256            * @return the company ID of this d d m template
257            */
258            public long getCompanyId() {
259                    return _ddmTemplate.getCompanyId();
260            }
261    
262            /**
263            * Sets the company ID of this d d m template.
264            *
265            * @param companyId the company ID of this d d m template
266            */
267            public void setCompanyId(long companyId) {
268                    _ddmTemplate.setCompanyId(companyId);
269            }
270    
271            /**
272            * Returns the user ID of this d d m template.
273            *
274            * @return the user ID of this d d m template
275            */
276            public long getUserId() {
277                    return _ddmTemplate.getUserId();
278            }
279    
280            /**
281            * Sets the user ID of this d d m template.
282            *
283            * @param userId the user ID of this d d m template
284            */
285            public void setUserId(long userId) {
286                    _ddmTemplate.setUserId(userId);
287            }
288    
289            /**
290            * Returns the user uuid of this d d m template.
291            *
292            * @return the user uuid of this d d m template
293            * @throws SystemException if a system exception occurred
294            */
295            public java.lang.String getUserUuid()
296                    throws com.liferay.portal.kernel.exception.SystemException {
297                    return _ddmTemplate.getUserUuid();
298            }
299    
300            /**
301            * Sets the user uuid of this d d m template.
302            *
303            * @param userUuid the user uuid of this d d m template
304            */
305            public void setUserUuid(java.lang.String userUuid) {
306                    _ddmTemplate.setUserUuid(userUuid);
307            }
308    
309            /**
310            * Returns the user name of this d d m template.
311            *
312            * @return the user name of this d d m template
313            */
314            public java.lang.String getUserName() {
315                    return _ddmTemplate.getUserName();
316            }
317    
318            /**
319            * Sets the user name of this d d m template.
320            *
321            * @param userName the user name of this d d m template
322            */
323            public void setUserName(java.lang.String userName) {
324                    _ddmTemplate.setUserName(userName);
325            }
326    
327            /**
328            * Returns the create date of this d d m template.
329            *
330            * @return the create date of this d d m template
331            */
332            public java.util.Date getCreateDate() {
333                    return _ddmTemplate.getCreateDate();
334            }
335    
336            /**
337            * Sets the create date of this d d m template.
338            *
339            * @param createDate the create date of this d d m template
340            */
341            public void setCreateDate(java.util.Date createDate) {
342                    _ddmTemplate.setCreateDate(createDate);
343            }
344    
345            /**
346            * Returns the modified date of this d d m template.
347            *
348            * @return the modified date of this d d m template
349            */
350            public java.util.Date getModifiedDate() {
351                    return _ddmTemplate.getModifiedDate();
352            }
353    
354            /**
355            * Sets the modified date of this d d m template.
356            *
357            * @param modifiedDate the modified date of this d d m template
358            */
359            public void setModifiedDate(java.util.Date modifiedDate) {
360                    _ddmTemplate.setModifiedDate(modifiedDate);
361            }
362    
363            /**
364            * Returns the fully qualified class name of this d d m template.
365            *
366            * @return the fully qualified class name of this d d m template
367            */
368            public java.lang.String getClassName() {
369                    return _ddmTemplate.getClassName();
370            }
371    
372            public void setClassName(java.lang.String className) {
373                    _ddmTemplate.setClassName(className);
374            }
375    
376            /**
377            * Returns the class name ID of this d d m template.
378            *
379            * @return the class name ID of this d d m template
380            */
381            public long getClassNameId() {
382                    return _ddmTemplate.getClassNameId();
383            }
384    
385            /**
386            * Sets the class name ID of this d d m template.
387            *
388            * @param classNameId the class name ID of this d d m template
389            */
390            public void setClassNameId(long classNameId) {
391                    _ddmTemplate.setClassNameId(classNameId);
392            }
393    
394            /**
395            * Returns the class p k of this d d m template.
396            *
397            * @return the class p k of this d d m template
398            */
399            public long getClassPK() {
400                    return _ddmTemplate.getClassPK();
401            }
402    
403            /**
404            * Sets the class p k of this d d m template.
405            *
406            * @param classPK the class p k of this d d m template
407            */
408            public void setClassPK(long classPK) {
409                    _ddmTemplate.setClassPK(classPK);
410            }
411    
412            /**
413            * Returns the template key of this d d m template.
414            *
415            * @return the template key of this d d m template
416            */
417            public java.lang.String getTemplateKey() {
418                    return _ddmTemplate.getTemplateKey();
419            }
420    
421            /**
422            * Sets the template key of this d d m template.
423            *
424            * @param templateKey the template key of this d d m template
425            */
426            public void setTemplateKey(java.lang.String templateKey) {
427                    _ddmTemplate.setTemplateKey(templateKey);
428            }
429    
430            /**
431            * Returns the name of this d d m template.
432            *
433            * @return the name of this d d m template
434            */
435            public java.lang.String getName() {
436                    return _ddmTemplate.getName();
437            }
438    
439            /**
440            * 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.
441            *
442            * @param locale the locale of the language
443            * @return the localized name of this d d m template
444            */
445            public java.lang.String getName(java.util.Locale locale) {
446                    return _ddmTemplate.getName(locale);
447            }
448    
449            /**
450            * 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.
451            *
452            * @param locale the local of the language
453            * @param useDefault whether to use the default language if no localization exists for the requested language
454            * @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.
455            */
456            public java.lang.String getName(java.util.Locale locale, boolean useDefault) {
457                    return _ddmTemplate.getName(locale, useDefault);
458            }
459    
460            /**
461            * 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.
462            *
463            * @param languageId the ID of the language
464            * @return the localized name of this d d m template
465            */
466            public java.lang.String getName(java.lang.String languageId) {
467                    return _ddmTemplate.getName(languageId);
468            }
469    
470            /**
471            * 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.
472            *
473            * @param languageId the ID of the language
474            * @param useDefault whether to use the default language if no localization exists for the requested language
475            * @return the localized name of this d d m template
476            */
477            public java.lang.String getName(java.lang.String languageId,
478                    boolean useDefault) {
479                    return _ddmTemplate.getName(languageId, useDefault);
480            }
481    
482            public java.lang.String getNameCurrentLanguageId() {
483                    return _ddmTemplate.getNameCurrentLanguageId();
484            }
485    
486            public java.lang.String getNameCurrentValue() {
487                    return _ddmTemplate.getNameCurrentValue();
488            }
489    
490            /**
491            * Returns a map of the locales and localized names of this d d m template.
492            *
493            * @return the locales and localized names of this d d m template
494            */
495            public java.util.Map<java.util.Locale, java.lang.String> getNameMap() {
496                    return _ddmTemplate.getNameMap();
497            }
498    
499            /**
500            * Sets the name of this d d m template.
501            *
502            * @param name the name of this d d m template
503            */
504            public void setName(java.lang.String name) {
505                    _ddmTemplate.setName(name);
506            }
507    
508            /**
509            * Sets the localized name of this d d m template in the language.
510            *
511            * @param name the localized name of this d d m template
512            * @param locale the locale of the language
513            */
514            public void setName(java.lang.String name, java.util.Locale locale) {
515                    _ddmTemplate.setName(name, locale);
516            }
517    
518            /**
519            * Sets the localized name of this d d m template in the language, and sets the default locale.
520            *
521            * @param name the localized name of this d d m template
522            * @param locale the locale of the language
523            * @param defaultLocale the default locale
524            */
525            public void setName(java.lang.String name, java.util.Locale locale,
526                    java.util.Locale defaultLocale) {
527                    _ddmTemplate.setName(name, locale, defaultLocale);
528            }
529    
530            public void setNameCurrentLanguageId(java.lang.String languageId) {
531                    _ddmTemplate.setNameCurrentLanguageId(languageId);
532            }
533    
534            /**
535            * Sets the localized names of this d d m template from the map of locales and localized names.
536            *
537            * @param nameMap the locales and localized names of this d d m template
538            */
539            public void setNameMap(
540                    java.util.Map<java.util.Locale, java.lang.String> nameMap) {
541                    _ddmTemplate.setNameMap(nameMap);
542            }
543    
544            /**
545            * Sets the localized names of this d d m template from the map of locales and localized names, and sets the default locale.
546            *
547            * @param nameMap the locales and localized names of this d d m template
548            * @param defaultLocale the default locale
549            */
550            public void setNameMap(
551                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
552                    java.util.Locale defaultLocale) {
553                    _ddmTemplate.setNameMap(nameMap, defaultLocale);
554            }
555    
556            /**
557            * Returns the description of this d d m template.
558            *
559            * @return the description of this d d m template
560            */
561            public java.lang.String getDescription() {
562                    return _ddmTemplate.getDescription();
563            }
564    
565            /**
566            * 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.
567            *
568            * @param locale the locale of the language
569            * @return the localized description of this d d m template
570            */
571            public java.lang.String getDescription(java.util.Locale locale) {
572                    return _ddmTemplate.getDescription(locale);
573            }
574    
575            /**
576            * 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.
577            *
578            * @param locale the local of the language
579            * @param useDefault whether to use the default language if no localization exists for the requested language
580            * @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.
581            */
582            public java.lang.String getDescription(java.util.Locale locale,
583                    boolean useDefault) {
584                    return _ddmTemplate.getDescription(locale, useDefault);
585            }
586    
587            /**
588            * 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.
589            *
590            * @param languageId the ID of the language
591            * @return the localized description of this d d m template
592            */
593            public java.lang.String getDescription(java.lang.String languageId) {
594                    return _ddmTemplate.getDescription(languageId);
595            }
596    
597            /**
598            * 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.
599            *
600            * @param languageId the ID of the language
601            * @param useDefault whether to use the default language if no localization exists for the requested language
602            * @return the localized description of this d d m template
603            */
604            public java.lang.String getDescription(java.lang.String languageId,
605                    boolean useDefault) {
606                    return _ddmTemplate.getDescription(languageId, useDefault);
607            }
608    
609            public java.lang.String getDescriptionCurrentLanguageId() {
610                    return _ddmTemplate.getDescriptionCurrentLanguageId();
611            }
612    
613            public java.lang.String getDescriptionCurrentValue() {
614                    return _ddmTemplate.getDescriptionCurrentValue();
615            }
616    
617            /**
618            * Returns a map of the locales and localized descriptions of this d d m template.
619            *
620            * @return the locales and localized descriptions of this d d m template
621            */
622            public java.util.Map<java.util.Locale, java.lang.String> getDescriptionMap() {
623                    return _ddmTemplate.getDescriptionMap();
624            }
625    
626            /**
627            * Sets the description of this d d m template.
628            *
629            * @param description the description of this d d m template
630            */
631            public void setDescription(java.lang.String description) {
632                    _ddmTemplate.setDescription(description);
633            }
634    
635            /**
636            * Sets the localized description of this d d m template in the language.
637            *
638            * @param description the localized description of this d d m template
639            * @param locale the locale of the language
640            */
641            public void setDescription(java.lang.String description,
642                    java.util.Locale locale) {
643                    _ddmTemplate.setDescription(description, locale);
644            }
645    
646            /**
647            * Sets the localized description of this d d m template in the language, and sets the default locale.
648            *
649            * @param description the localized description of this d d m template
650            * @param locale the locale of the language
651            * @param defaultLocale the default locale
652            */
653            public void setDescription(java.lang.String description,
654                    java.util.Locale locale, java.util.Locale defaultLocale) {
655                    _ddmTemplate.setDescription(description, locale, defaultLocale);
656            }
657    
658            public void setDescriptionCurrentLanguageId(java.lang.String languageId) {
659                    _ddmTemplate.setDescriptionCurrentLanguageId(languageId);
660            }
661    
662            /**
663            * Sets the localized descriptions of this d d m template from the map of locales and localized descriptions.
664            *
665            * @param descriptionMap the locales and localized descriptions of this d d m template
666            */
667            public void setDescriptionMap(
668                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap) {
669                    _ddmTemplate.setDescriptionMap(descriptionMap);
670            }
671    
672            /**
673            * Sets the localized descriptions of this d d m template from the map of locales and localized descriptions, and sets the default locale.
674            *
675            * @param descriptionMap the locales and localized descriptions of this d d m template
676            * @param defaultLocale the default locale
677            */
678            public void setDescriptionMap(
679                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
680                    java.util.Locale defaultLocale) {
681                    _ddmTemplate.setDescriptionMap(descriptionMap, defaultLocale);
682            }
683    
684            /**
685            * Returns the type of this d d m template.
686            *
687            * @return the type of this d d m template
688            */
689            public java.lang.String getType() {
690                    return _ddmTemplate.getType();
691            }
692    
693            /**
694            * Sets the type of this d d m template.
695            *
696            * @param type the type of this d d m template
697            */
698            public void setType(java.lang.String type) {
699                    _ddmTemplate.setType(type);
700            }
701    
702            /**
703            * Returns the mode of this d d m template.
704            *
705            * @return the mode of this d d m template
706            */
707            public java.lang.String getMode() {
708                    return _ddmTemplate.getMode();
709            }
710    
711            /**
712            * Sets the mode of this d d m template.
713            *
714            * @param mode the mode of this d d m template
715            */
716            public void setMode(java.lang.String mode) {
717                    _ddmTemplate.setMode(mode);
718            }
719    
720            /**
721            * Returns the language of this d d m template.
722            *
723            * @return the language of this d d m template
724            */
725            public java.lang.String getLanguage() {
726                    return _ddmTemplate.getLanguage();
727            }
728    
729            /**
730            * Sets the language of this d d m template.
731            *
732            * @param language the language of this d d m template
733            */
734            public void setLanguage(java.lang.String language) {
735                    _ddmTemplate.setLanguage(language);
736            }
737    
738            /**
739            * Returns the script of this d d m template.
740            *
741            * @return the script of this d d m template
742            */
743            public java.lang.String getScript() {
744                    return _ddmTemplate.getScript();
745            }
746    
747            /**
748            * Sets the script of this d d m template.
749            *
750            * @param script the script of this d d m template
751            */
752            public void setScript(java.lang.String script) {
753                    _ddmTemplate.setScript(script);
754            }
755    
756            /**
757            * Returns the cacheable of this d d m template.
758            *
759            * @return the cacheable of this d d m template
760            */
761            public boolean getCacheable() {
762                    return _ddmTemplate.getCacheable();
763            }
764    
765            /**
766            * Returns <code>true</code> if this d d m template is cacheable.
767            *
768            * @return <code>true</code> if this d d m template is cacheable; <code>false</code> otherwise
769            */
770            public boolean isCacheable() {
771                    return _ddmTemplate.isCacheable();
772            }
773    
774            /**
775            * Sets whether this d d m template is cacheable.
776            *
777            * @param cacheable the cacheable of this d d m template
778            */
779            public void setCacheable(boolean cacheable) {
780                    _ddmTemplate.setCacheable(cacheable);
781            }
782    
783            public boolean isNew() {
784                    return _ddmTemplate.isNew();
785            }
786    
787            public void setNew(boolean n) {
788                    _ddmTemplate.setNew(n);
789            }
790    
791            public boolean isCachedModel() {
792                    return _ddmTemplate.isCachedModel();
793            }
794    
795            public void setCachedModel(boolean cachedModel) {
796                    _ddmTemplate.setCachedModel(cachedModel);
797            }
798    
799            public boolean isEscapedModel() {
800                    return _ddmTemplate.isEscapedModel();
801            }
802    
803            public java.io.Serializable getPrimaryKeyObj() {
804                    return _ddmTemplate.getPrimaryKeyObj();
805            }
806    
807            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
808                    _ddmTemplate.setPrimaryKeyObj(primaryKeyObj);
809            }
810    
811            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
812                    return _ddmTemplate.getExpandoBridge();
813            }
814    
815            public void setExpandoBridgeAttributes(
816                    com.liferay.portal.service.ServiceContext serviceContext) {
817                    _ddmTemplate.setExpandoBridgeAttributes(serviceContext);
818            }
819    
820            public void prepareLocalizedFieldsForImport(
821                    java.util.Locale defaultImportLocale)
822                    throws com.liferay.portal.LocaleException {
823                    _ddmTemplate.prepareLocalizedFieldsForImport(defaultImportLocale);
824            }
825    
826            @Override
827            public java.lang.Object clone() {
828                    return new DDMTemplateWrapper((DDMTemplate)_ddmTemplate.clone());
829            }
830    
831            public int compareTo(
832                    com.liferay.portlet.dynamicdatamapping.model.DDMTemplate ddmTemplate) {
833                    return _ddmTemplate.compareTo(ddmTemplate);
834            }
835    
836            @Override
837            public int hashCode() {
838                    return _ddmTemplate.hashCode();
839            }
840    
841            public com.liferay.portal.model.CacheModel<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> toCacheModel() {
842                    return _ddmTemplate.toCacheModel();
843            }
844    
845            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate toEscapedModel() {
846                    return new DDMTemplateWrapper(_ddmTemplate.toEscapedModel());
847            }
848    
849            @Override
850            public java.lang.String toString() {
851                    return _ddmTemplate.toString();
852            }
853    
854            public java.lang.String toXmlString() {
855                    return _ddmTemplate.toXmlString();
856            }
857    
858            public void persist()
859                    throws com.liferay.portal.kernel.exception.SystemException {
860                    _ddmTemplate.persist();
861            }
862    
863            public java.lang.String getDefaultLanguageId() {
864                    return _ddmTemplate.getDefaultLanguageId();
865            }
866    
867            /**
868             * @deprecated Renamed to {@link #getWrappedModel}
869             */
870            public DDMTemplate getWrappedDDMTemplate() {
871                    return _ddmTemplate;
872            }
873    
874            public DDMTemplate getWrappedModel() {
875                    return _ddmTemplate;
876            }
877    
878            public void resetOriginalValues() {
879                    _ddmTemplate.resetOriginalValues();
880            }
881    
882            private DDMTemplate _ddmTemplate;
883    }