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