001    /**
002     * Copyright (c) 2000-2011 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    /**
018     * <p>
019     * This class is a wrapper for {@link DDMTemplate}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       DDMTemplate
024     * @generated
025     */
026    public class DDMTemplateWrapper implements DDMTemplate {
027            public DDMTemplateWrapper(DDMTemplate ddmTemplate) {
028                    _ddmTemplate = ddmTemplate;
029            }
030    
031            public Class<?> getModelClass() {
032                    return DDMTemplate.class;
033            }
034    
035            public String getModelClassName() {
036                    return DDMTemplate.class.getName();
037            }
038    
039            /**
040            * Returns the primary key of this d d m template.
041            *
042            * @return the primary key of this d d m template
043            */
044            public long getPrimaryKey() {
045                    return _ddmTemplate.getPrimaryKey();
046            }
047    
048            /**
049            * Sets the primary key of this d d m template.
050            *
051            * @param primaryKey the primary key of this d d m template
052            */
053            public void setPrimaryKey(long primaryKey) {
054                    _ddmTemplate.setPrimaryKey(primaryKey);
055            }
056    
057            /**
058            * Returns the uuid of this d d m template.
059            *
060            * @return the uuid of this d d m template
061            */
062            public java.lang.String getUuid() {
063                    return _ddmTemplate.getUuid();
064            }
065    
066            /**
067            * Sets the uuid of this d d m template.
068            *
069            * @param uuid the uuid of this d d m template
070            */
071            public void setUuid(java.lang.String uuid) {
072                    _ddmTemplate.setUuid(uuid);
073            }
074    
075            /**
076            * Returns the template ID of this d d m template.
077            *
078            * @return the template ID of this d d m template
079            */
080            public long getTemplateId() {
081                    return _ddmTemplate.getTemplateId();
082            }
083    
084            /**
085            * Sets the template ID of this d d m template.
086            *
087            * @param templateId the template ID of this d d m template
088            */
089            public void setTemplateId(long templateId) {
090                    _ddmTemplate.setTemplateId(templateId);
091            }
092    
093            /**
094            * Returns the group ID of this d d m template.
095            *
096            * @return the group ID of this d d m template
097            */
098            public long getGroupId() {
099                    return _ddmTemplate.getGroupId();
100            }
101    
102            /**
103            * Sets the group ID of this d d m template.
104            *
105            * @param groupId the group ID of this d d m template
106            */
107            public void setGroupId(long groupId) {
108                    _ddmTemplate.setGroupId(groupId);
109            }
110    
111            /**
112            * Returns the company ID of this d d m template.
113            *
114            * @return the company ID of this d d m template
115            */
116            public long getCompanyId() {
117                    return _ddmTemplate.getCompanyId();
118            }
119    
120            /**
121            * Sets the company ID of this d d m template.
122            *
123            * @param companyId the company ID of this d d m template
124            */
125            public void setCompanyId(long companyId) {
126                    _ddmTemplate.setCompanyId(companyId);
127            }
128    
129            /**
130            * Returns the user ID of this d d m template.
131            *
132            * @return the user ID of this d d m template
133            */
134            public long getUserId() {
135                    return _ddmTemplate.getUserId();
136            }
137    
138            /**
139            * Sets the user ID of this d d m template.
140            *
141            * @param userId the user ID of this d d m template
142            */
143            public void setUserId(long userId) {
144                    _ddmTemplate.setUserId(userId);
145            }
146    
147            /**
148            * Returns the user uuid of this d d m template.
149            *
150            * @return the user uuid of this d d m template
151            * @throws SystemException if a system exception occurred
152            */
153            public java.lang.String getUserUuid()
154                    throws com.liferay.portal.kernel.exception.SystemException {
155                    return _ddmTemplate.getUserUuid();
156            }
157    
158            /**
159            * Sets the user uuid of this d d m template.
160            *
161            * @param userUuid the user uuid of this d d m template
162            */
163            public void setUserUuid(java.lang.String userUuid) {
164                    _ddmTemplate.setUserUuid(userUuid);
165            }
166    
167            /**
168            * Returns the user name of this d d m template.
169            *
170            * @return the user name of this d d m template
171            */
172            public java.lang.String getUserName() {
173                    return _ddmTemplate.getUserName();
174            }
175    
176            /**
177            * Sets the user name of this d d m template.
178            *
179            * @param userName the user name of this d d m template
180            */
181            public void setUserName(java.lang.String userName) {
182                    _ddmTemplate.setUserName(userName);
183            }
184    
185            /**
186            * Returns the create date of this d d m template.
187            *
188            * @return the create date of this d d m template
189            */
190            public java.util.Date getCreateDate() {
191                    return _ddmTemplate.getCreateDate();
192            }
193    
194            /**
195            * Sets the create date of this d d m template.
196            *
197            * @param createDate the create date of this d d m template
198            */
199            public void setCreateDate(java.util.Date createDate) {
200                    _ddmTemplate.setCreateDate(createDate);
201            }
202    
203            /**
204            * Returns the modified date of this d d m template.
205            *
206            * @return the modified date of this d d m template
207            */
208            public java.util.Date getModifiedDate() {
209                    return _ddmTemplate.getModifiedDate();
210            }
211    
212            /**
213            * Sets the modified date of this d d m template.
214            *
215            * @param modifiedDate the modified date of this d d m template
216            */
217            public void setModifiedDate(java.util.Date modifiedDate) {
218                    _ddmTemplate.setModifiedDate(modifiedDate);
219            }
220    
221            /**
222            * Returns the structure ID of this d d m template.
223            *
224            * @return the structure ID of this d d m template
225            */
226            public long getStructureId() {
227                    return _ddmTemplate.getStructureId();
228            }
229    
230            /**
231            * Sets the structure ID of this d d m template.
232            *
233            * @param structureId the structure ID of this d d m template
234            */
235            public void setStructureId(long structureId) {
236                    _ddmTemplate.setStructureId(structureId);
237            }
238    
239            /**
240            * Returns the name of this d d m template.
241            *
242            * @return the name of this d d m template
243            */
244            public java.lang.String getName() {
245                    return _ddmTemplate.getName();
246            }
247    
248            /**
249            * 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.
250            *
251            * @param locale the locale of the language
252            * @return the localized name of this d d m template
253            */
254            public java.lang.String getName(java.util.Locale locale) {
255                    return _ddmTemplate.getName(locale);
256            }
257    
258            /**
259            * 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.
260            *
261            * @param locale the local of the language
262            * @param useDefault whether to use the default language if no localization exists for the requested language
263            * @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.
264            */
265            public java.lang.String getName(java.util.Locale locale, boolean useDefault) {
266                    return _ddmTemplate.getName(locale, useDefault);
267            }
268    
269            /**
270            * 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.
271            *
272            * @param languageId the ID of the language
273            * @return the localized name of this d d m template
274            */
275            public java.lang.String getName(java.lang.String languageId) {
276                    return _ddmTemplate.getName(languageId);
277            }
278    
279            /**
280            * 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.
281            *
282            * @param languageId the ID of the language
283            * @param useDefault whether to use the default language if no localization exists for the requested language
284            * @return the localized name of this d d m template
285            */
286            public java.lang.String getName(java.lang.String languageId,
287                    boolean useDefault) {
288                    return _ddmTemplate.getName(languageId, useDefault);
289            }
290    
291            public java.lang.String getNameCurrentLanguageId() {
292                    return _ddmTemplate.getNameCurrentLanguageId();
293            }
294    
295            public java.lang.String getNameCurrentValue() {
296                    return _ddmTemplate.getNameCurrentValue();
297            }
298    
299            /**
300            * Returns a map of the locales and localized names of this d d m template.
301            *
302            * @return the locales and localized names of this d d m template
303            */
304            public java.util.Map<java.util.Locale, java.lang.String> getNameMap() {
305                    return _ddmTemplate.getNameMap();
306            }
307    
308            /**
309            * Sets the name of this d d m template.
310            *
311            * @param name the name of this d d m template
312            */
313            public void setName(java.lang.String name) {
314                    _ddmTemplate.setName(name);
315            }
316    
317            /**
318            * Sets the localized name of this d d m template in the language.
319            *
320            * @param name the localized name of this d d m template
321            * @param locale the locale of the language
322            */
323            public void setName(java.lang.String name, java.util.Locale locale) {
324                    _ddmTemplate.setName(name, locale);
325            }
326    
327            /**
328            * Sets the localized name of this d d m template in the language, and sets the default locale.
329            *
330            * @param name the localized name of this d d m template
331            * @param locale the locale of the language
332            * @param defaultLocale the default locale
333            */
334            public void setName(java.lang.String name, java.util.Locale locale,
335                    java.util.Locale defaultLocale) {
336                    _ddmTemplate.setName(name, locale, defaultLocale);
337            }
338    
339            public void setNameCurrentLanguageId(java.lang.String languageId) {
340                    _ddmTemplate.setNameCurrentLanguageId(languageId);
341            }
342    
343            /**
344            * Sets the localized names of this d d m template from the map of locales and localized names.
345            *
346            * @param nameMap the locales and localized names of this d d m template
347            */
348            public void setNameMap(
349                    java.util.Map<java.util.Locale, java.lang.String> nameMap) {
350                    _ddmTemplate.setNameMap(nameMap);
351            }
352    
353            /**
354            * Sets the localized names of this d d m template from the map of locales and localized names, and sets the default locale.
355            *
356            * @param nameMap the locales and localized names of this d d m template
357            * @param defaultLocale the default locale
358            */
359            public void setNameMap(
360                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
361                    java.util.Locale defaultLocale) {
362                    _ddmTemplate.setNameMap(nameMap, defaultLocale);
363            }
364    
365            /**
366            * Returns the description of this d d m template.
367            *
368            * @return the description of this d d m template
369            */
370            public java.lang.String getDescription() {
371                    return _ddmTemplate.getDescription();
372            }
373    
374            /**
375            * 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.
376            *
377            * @param locale the locale of the language
378            * @return the localized description of this d d m template
379            */
380            public java.lang.String getDescription(java.util.Locale locale) {
381                    return _ddmTemplate.getDescription(locale);
382            }
383    
384            /**
385            * 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.
386            *
387            * @param locale the local of the language
388            * @param useDefault whether to use the default language if no localization exists for the requested language
389            * @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.
390            */
391            public java.lang.String getDescription(java.util.Locale locale,
392                    boolean useDefault) {
393                    return _ddmTemplate.getDescription(locale, useDefault);
394            }
395    
396            /**
397            * 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.
398            *
399            * @param languageId the ID of the language
400            * @return the localized description of this d d m template
401            */
402            public java.lang.String getDescription(java.lang.String languageId) {
403                    return _ddmTemplate.getDescription(languageId);
404            }
405    
406            /**
407            * 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.
408            *
409            * @param languageId the ID of the language
410            * @param useDefault whether to use the default language if no localization exists for the requested language
411            * @return the localized description of this d d m template
412            */
413            public java.lang.String getDescription(java.lang.String languageId,
414                    boolean useDefault) {
415                    return _ddmTemplate.getDescription(languageId, useDefault);
416            }
417    
418            public java.lang.String getDescriptionCurrentLanguageId() {
419                    return _ddmTemplate.getDescriptionCurrentLanguageId();
420            }
421    
422            public java.lang.String getDescriptionCurrentValue() {
423                    return _ddmTemplate.getDescriptionCurrentValue();
424            }
425    
426            /**
427            * Returns a map of the locales and localized descriptions of this d d m template.
428            *
429            * @return the locales and localized descriptions of this d d m template
430            */
431            public java.util.Map<java.util.Locale, java.lang.String> getDescriptionMap() {
432                    return _ddmTemplate.getDescriptionMap();
433            }
434    
435            /**
436            * Sets the description of this d d m template.
437            *
438            * @param description the description of this d d m template
439            */
440            public void setDescription(java.lang.String description) {
441                    _ddmTemplate.setDescription(description);
442            }
443    
444            /**
445            * Sets the localized description of this d d m template in the language.
446            *
447            * @param description the localized description of this d d m template
448            * @param locale the locale of the language
449            */
450            public void setDescription(java.lang.String description,
451                    java.util.Locale locale) {
452                    _ddmTemplate.setDescription(description, locale);
453            }
454    
455            /**
456            * Sets the localized description of this d d m template in the language, and sets the default locale.
457            *
458            * @param description the localized description of this d d m template
459            * @param locale the locale of the language
460            * @param defaultLocale the default locale
461            */
462            public void setDescription(java.lang.String description,
463                    java.util.Locale locale, java.util.Locale defaultLocale) {
464                    _ddmTemplate.setDescription(description, locale, defaultLocale);
465            }
466    
467            public void setDescriptionCurrentLanguageId(java.lang.String languageId) {
468                    _ddmTemplate.setDescriptionCurrentLanguageId(languageId);
469            }
470    
471            /**
472            * Sets the localized descriptions of this d d m template from the map of locales and localized descriptions.
473            *
474            * @param descriptionMap the locales and localized descriptions of this d d m template
475            */
476            public void setDescriptionMap(
477                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap) {
478                    _ddmTemplate.setDescriptionMap(descriptionMap);
479            }
480    
481            /**
482            * Sets the localized descriptions of this d d m template from the map of locales and localized descriptions, and sets the default locale.
483            *
484            * @param descriptionMap the locales and localized descriptions of this d d m template
485            * @param defaultLocale the default locale
486            */
487            public void setDescriptionMap(
488                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
489                    java.util.Locale defaultLocale) {
490                    _ddmTemplate.setDescriptionMap(descriptionMap, defaultLocale);
491            }
492    
493            /**
494            * Returns the type of this d d m template.
495            *
496            * @return the type of this d d m template
497            */
498            public java.lang.String getType() {
499                    return _ddmTemplate.getType();
500            }
501    
502            /**
503            * Sets the type of this d d m template.
504            *
505            * @param type the type of this d d m template
506            */
507            public void setType(java.lang.String type) {
508                    _ddmTemplate.setType(type);
509            }
510    
511            /**
512            * Returns the mode of this d d m template.
513            *
514            * @return the mode of this d d m template
515            */
516            public java.lang.String getMode() {
517                    return _ddmTemplate.getMode();
518            }
519    
520            /**
521            * Sets the mode of this d d m template.
522            *
523            * @param mode the mode of this d d m template
524            */
525            public void setMode(java.lang.String mode) {
526                    _ddmTemplate.setMode(mode);
527            }
528    
529            /**
530            * Returns the language of this d d m template.
531            *
532            * @return the language of this d d m template
533            */
534            public java.lang.String getLanguage() {
535                    return _ddmTemplate.getLanguage();
536            }
537    
538            /**
539            * Sets the language of this d d m template.
540            *
541            * @param language the language of this d d m template
542            */
543            public void setLanguage(java.lang.String language) {
544                    _ddmTemplate.setLanguage(language);
545            }
546    
547            /**
548            * Returns the script of this d d m template.
549            *
550            * @return the script of this d d m template
551            */
552            public java.lang.String getScript() {
553                    return _ddmTemplate.getScript();
554            }
555    
556            /**
557            * Sets the script of this d d m template.
558            *
559            * @param script the script of this d d m template
560            */
561            public void setScript(java.lang.String script) {
562                    _ddmTemplate.setScript(script);
563            }
564    
565            public boolean isNew() {
566                    return _ddmTemplate.isNew();
567            }
568    
569            public void setNew(boolean n) {
570                    _ddmTemplate.setNew(n);
571            }
572    
573            public boolean isCachedModel() {
574                    return _ddmTemplate.isCachedModel();
575            }
576    
577            public void setCachedModel(boolean cachedModel) {
578                    _ddmTemplate.setCachedModel(cachedModel);
579            }
580    
581            public boolean isEscapedModel() {
582                    return _ddmTemplate.isEscapedModel();
583            }
584    
585            public java.io.Serializable getPrimaryKeyObj() {
586                    return _ddmTemplate.getPrimaryKeyObj();
587            }
588    
589            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
590                    _ddmTemplate.setPrimaryKeyObj(primaryKeyObj);
591            }
592    
593            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
594                    return _ddmTemplate.getExpandoBridge();
595            }
596    
597            public void setExpandoBridgeAttributes(
598                    com.liferay.portal.service.ServiceContext serviceContext) {
599                    _ddmTemplate.setExpandoBridgeAttributes(serviceContext);
600            }
601    
602            @Override
603            public java.lang.Object clone() {
604                    return new DDMTemplateWrapper((DDMTemplate)_ddmTemplate.clone());
605            }
606    
607            public int compareTo(
608                    com.liferay.portlet.dynamicdatamapping.model.DDMTemplate ddmTemplate) {
609                    return _ddmTemplate.compareTo(ddmTemplate);
610            }
611    
612            @Override
613            public int hashCode() {
614                    return _ddmTemplate.hashCode();
615            }
616    
617            public com.liferay.portal.model.CacheModel<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> toCacheModel() {
618                    return _ddmTemplate.toCacheModel();
619            }
620    
621            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate toEscapedModel() {
622                    return new DDMTemplateWrapper(_ddmTemplate.toEscapedModel());
623            }
624    
625            @Override
626            public java.lang.String toString() {
627                    return _ddmTemplate.toString();
628            }
629    
630            public java.lang.String toXmlString() {
631                    return _ddmTemplate.toXmlString();
632            }
633    
634            public void persist()
635                    throws com.liferay.portal.kernel.exception.SystemException {
636                    _ddmTemplate.persist();
637            }
638    
639            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure getStructure()
640                    throws com.liferay.portal.kernel.exception.PortalException,
641                            com.liferay.portal.kernel.exception.SystemException {
642                    return _ddmTemplate.getStructure();
643            }
644    
645            public DDMTemplate getWrappedDDMTemplate() {
646                    return _ddmTemplate;
647            }
648    
649            public void resetOriginalValues() {
650                    _ddmTemplate.resetOriginalValues();
651            }
652    
653            private DDMTemplate _ddmTemplate;
654    }