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