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