001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.dynamicdatamapping.model;
016    
017    import com.liferay.portal.model.ModelWrapper;
018    
019    /**
020     * <p>
021     * This class is a wrapper for {@link DDMContent}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       DDMContent
026     * @generated
027     */
028    public class DDMContentWrapper implements DDMContent, ModelWrapper<DDMContent> {
029            public DDMContentWrapper(DDMContent ddmContent) {
030                    _ddmContent = ddmContent;
031            }
032    
033            public Class<?> getModelClass() {
034                    return DDMContent.class;
035            }
036    
037            public String getModelClassName() {
038                    return DDMContent.class.getName();
039            }
040    
041            /**
042            * Returns the primary key of this d d m content.
043            *
044            * @return the primary key of this d d m content
045            */
046            public long getPrimaryKey() {
047                    return _ddmContent.getPrimaryKey();
048            }
049    
050            /**
051            * Sets the primary key of this d d m content.
052            *
053            * @param primaryKey the primary key of this d d m content
054            */
055            public void setPrimaryKey(long primaryKey) {
056                    _ddmContent.setPrimaryKey(primaryKey);
057            }
058    
059            /**
060            * Returns the uuid of this d d m content.
061            *
062            * @return the uuid of this d d m content
063            */
064            public java.lang.String getUuid() {
065                    return _ddmContent.getUuid();
066            }
067    
068            /**
069            * Sets the uuid of this d d m content.
070            *
071            * @param uuid the uuid of this d d m content
072            */
073            public void setUuid(java.lang.String uuid) {
074                    _ddmContent.setUuid(uuid);
075            }
076    
077            /**
078            * Returns the content ID of this d d m content.
079            *
080            * @return the content ID of this d d m content
081            */
082            public long getContentId() {
083                    return _ddmContent.getContentId();
084            }
085    
086            /**
087            * Sets the content ID of this d d m content.
088            *
089            * @param contentId the content ID of this d d m content
090            */
091            public void setContentId(long contentId) {
092                    _ddmContent.setContentId(contentId);
093            }
094    
095            /**
096            * Returns the group ID of this d d m content.
097            *
098            * @return the group ID of this d d m content
099            */
100            public long getGroupId() {
101                    return _ddmContent.getGroupId();
102            }
103    
104            /**
105            * Sets the group ID of this d d m content.
106            *
107            * @param groupId the group ID of this d d m content
108            */
109            public void setGroupId(long groupId) {
110                    _ddmContent.setGroupId(groupId);
111            }
112    
113            /**
114            * Returns the company ID of this d d m content.
115            *
116            * @return the company ID of this d d m content
117            */
118            public long getCompanyId() {
119                    return _ddmContent.getCompanyId();
120            }
121    
122            /**
123            * Sets the company ID of this d d m content.
124            *
125            * @param companyId the company ID of this d d m content
126            */
127            public void setCompanyId(long companyId) {
128                    _ddmContent.setCompanyId(companyId);
129            }
130    
131            /**
132            * Returns the user ID of this d d m content.
133            *
134            * @return the user ID of this d d m content
135            */
136            public long getUserId() {
137                    return _ddmContent.getUserId();
138            }
139    
140            /**
141            * Sets the user ID of this d d m content.
142            *
143            * @param userId the user ID of this d d m content
144            */
145            public void setUserId(long userId) {
146                    _ddmContent.setUserId(userId);
147            }
148    
149            /**
150            * Returns the user uuid of this d d m content.
151            *
152            * @return the user uuid of this d d m content
153            * @throws SystemException if a system exception occurred
154            */
155            public java.lang.String getUserUuid()
156                    throws com.liferay.portal.kernel.exception.SystemException {
157                    return _ddmContent.getUserUuid();
158            }
159    
160            /**
161            * Sets the user uuid of this d d m content.
162            *
163            * @param userUuid the user uuid of this d d m content
164            */
165            public void setUserUuid(java.lang.String userUuid) {
166                    _ddmContent.setUserUuid(userUuid);
167            }
168    
169            /**
170            * Returns the user name of this d d m content.
171            *
172            * @return the user name of this d d m content
173            */
174            public java.lang.String getUserName() {
175                    return _ddmContent.getUserName();
176            }
177    
178            /**
179            * Sets the user name of this d d m content.
180            *
181            * @param userName the user name of this d d m content
182            */
183            public void setUserName(java.lang.String userName) {
184                    _ddmContent.setUserName(userName);
185            }
186    
187            /**
188            * Returns the create date of this d d m content.
189            *
190            * @return the create date of this d d m content
191            */
192            public java.util.Date getCreateDate() {
193                    return _ddmContent.getCreateDate();
194            }
195    
196            /**
197            * Sets the create date of this d d m content.
198            *
199            * @param createDate the create date of this d d m content
200            */
201            public void setCreateDate(java.util.Date createDate) {
202                    _ddmContent.setCreateDate(createDate);
203            }
204    
205            /**
206            * Returns the modified date of this d d m content.
207            *
208            * @return the modified date of this d d m content
209            */
210            public java.util.Date getModifiedDate() {
211                    return _ddmContent.getModifiedDate();
212            }
213    
214            /**
215            * Sets the modified date of this d d m content.
216            *
217            * @param modifiedDate the modified date of this d d m content
218            */
219            public void setModifiedDate(java.util.Date modifiedDate) {
220                    _ddmContent.setModifiedDate(modifiedDate);
221            }
222    
223            /**
224            * Returns the name of this d d m content.
225            *
226            * @return the name of this d d m content
227            */
228            public java.lang.String getName() {
229                    return _ddmContent.getName();
230            }
231    
232            /**
233            * Returns the localized name of this d d m content in the language. Uses the default language if no localization exists for the requested language.
234            *
235            * @param locale the locale of the language
236            * @return the localized name of this d d m content
237            */
238            public java.lang.String getName(java.util.Locale locale) {
239                    return _ddmContent.getName(locale);
240            }
241    
242            /**
243            * Returns the localized name of this d d m content in the language, optionally using the default language if no localization exists for the requested language.
244            *
245            * @param locale the local of the language
246            * @param useDefault whether to use the default language if no localization exists for the requested language
247            * @return the localized name of this d d m content. If <code>useDefault</code> is <code>false</code> and no localization exists for the requested language, an empty string will be returned.
248            */
249            public java.lang.String getName(java.util.Locale locale, boolean useDefault) {
250                    return _ddmContent.getName(locale, useDefault);
251            }
252    
253            /**
254            * Returns the localized name of this d d m content in the language. Uses the default language if no localization exists for the requested language.
255            *
256            * @param languageId the ID of the language
257            * @return the localized name of this d d m content
258            */
259            public java.lang.String getName(java.lang.String languageId) {
260                    return _ddmContent.getName(languageId);
261            }
262    
263            /**
264            * Returns the localized name of this d d m content in the language, optionally using the default language if no localization exists for the requested language.
265            *
266            * @param languageId the ID of the language
267            * @param useDefault whether to use the default language if no localization exists for the requested language
268            * @return the localized name of this d d m content
269            */
270            public java.lang.String getName(java.lang.String languageId,
271                    boolean useDefault) {
272                    return _ddmContent.getName(languageId, useDefault);
273            }
274    
275            public java.lang.String getNameCurrentLanguageId() {
276                    return _ddmContent.getNameCurrentLanguageId();
277            }
278    
279            public java.lang.String getNameCurrentValue() {
280                    return _ddmContent.getNameCurrentValue();
281            }
282    
283            /**
284            * Returns a map of the locales and localized names of this d d m content.
285            *
286            * @return the locales and localized names of this d d m content
287            */
288            public java.util.Map<java.util.Locale, java.lang.String> getNameMap() {
289                    return _ddmContent.getNameMap();
290            }
291    
292            /**
293            * Sets the name of this d d m content.
294            *
295            * @param name the name of this d d m content
296            */
297            public void setName(java.lang.String name) {
298                    _ddmContent.setName(name);
299            }
300    
301            /**
302            * Sets the localized name of this d d m content in the language.
303            *
304            * @param name the localized name of this d d m content
305            * @param locale the locale of the language
306            */
307            public void setName(java.lang.String name, java.util.Locale locale) {
308                    _ddmContent.setName(name, locale);
309            }
310    
311            /**
312            * Sets the localized name of this d d m content in the language, and sets the default locale.
313            *
314            * @param name the localized name of this d d m content
315            * @param locale the locale of the language
316            * @param defaultLocale the default locale
317            */
318            public void setName(java.lang.String name, java.util.Locale locale,
319                    java.util.Locale defaultLocale) {
320                    _ddmContent.setName(name, locale, defaultLocale);
321            }
322    
323            public void setNameCurrentLanguageId(java.lang.String languageId) {
324                    _ddmContent.setNameCurrentLanguageId(languageId);
325            }
326    
327            /**
328            * Sets the localized names of this d d m content from the map of locales and localized names.
329            *
330            * @param nameMap the locales and localized names of this d d m content
331            */
332            public void setNameMap(
333                    java.util.Map<java.util.Locale, java.lang.String> nameMap) {
334                    _ddmContent.setNameMap(nameMap);
335            }
336    
337            /**
338            * Sets the localized names of this d d m content from the map of locales and localized names, and sets the default locale.
339            *
340            * @param nameMap the locales and localized names of this d d m content
341            * @param defaultLocale the default locale
342            */
343            public void setNameMap(
344                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
345                    java.util.Locale defaultLocale) {
346                    _ddmContent.setNameMap(nameMap, defaultLocale);
347            }
348    
349            /**
350            * Returns the description of this d d m content.
351            *
352            * @return the description of this d d m content
353            */
354            public java.lang.String getDescription() {
355                    return _ddmContent.getDescription();
356            }
357    
358            /**
359            * Sets the description of this d d m content.
360            *
361            * @param description the description of this d d m content
362            */
363            public void setDescription(java.lang.String description) {
364                    _ddmContent.setDescription(description);
365            }
366    
367            /**
368            * Returns the xml of this d d m content.
369            *
370            * @return the xml of this d d m content
371            */
372            public java.lang.String getXml() {
373                    return _ddmContent.getXml();
374            }
375    
376            /**
377            * Sets the xml of this d d m content.
378            *
379            * @param xml the xml of this d d m content
380            */
381            public void setXml(java.lang.String xml) {
382                    _ddmContent.setXml(xml);
383            }
384    
385            public boolean isNew() {
386                    return _ddmContent.isNew();
387            }
388    
389            public void setNew(boolean n) {
390                    _ddmContent.setNew(n);
391            }
392    
393            public boolean isCachedModel() {
394                    return _ddmContent.isCachedModel();
395            }
396    
397            public void setCachedModel(boolean cachedModel) {
398                    _ddmContent.setCachedModel(cachedModel);
399            }
400    
401            public boolean isEscapedModel() {
402                    return _ddmContent.isEscapedModel();
403            }
404    
405            public java.io.Serializable getPrimaryKeyObj() {
406                    return _ddmContent.getPrimaryKeyObj();
407            }
408    
409            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
410                    _ddmContent.setPrimaryKeyObj(primaryKeyObj);
411            }
412    
413            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
414                    return _ddmContent.getExpandoBridge();
415            }
416    
417            public void setExpandoBridgeAttributes(
418                    com.liferay.portal.service.ServiceContext serviceContext) {
419                    _ddmContent.setExpandoBridgeAttributes(serviceContext);
420            }
421    
422            @Override
423            public java.lang.Object clone() {
424                    return new DDMContentWrapper((DDMContent)_ddmContent.clone());
425            }
426    
427            public int compareTo(
428                    com.liferay.portlet.dynamicdatamapping.model.DDMContent ddmContent) {
429                    return _ddmContent.compareTo(ddmContent);
430            }
431    
432            @Override
433            public int hashCode() {
434                    return _ddmContent.hashCode();
435            }
436    
437            public com.liferay.portal.model.CacheModel<com.liferay.portlet.dynamicdatamapping.model.DDMContent> toCacheModel() {
438                    return _ddmContent.toCacheModel();
439            }
440    
441            public com.liferay.portlet.dynamicdatamapping.model.DDMContent toEscapedModel() {
442                    return new DDMContentWrapper(_ddmContent.toEscapedModel());
443            }
444    
445            @Override
446            public java.lang.String toString() {
447                    return _ddmContent.toString();
448            }
449    
450            public java.lang.String toXmlString() {
451                    return _ddmContent.toXmlString();
452            }
453    
454            public void persist()
455                    throws com.liferay.portal.kernel.exception.SystemException {
456                    _ddmContent.persist();
457            }
458    
459            /**
460             * @deprecated Renamed to {@link #getWrappedModel}
461             */
462            public DDMContent getWrappedDDMContent() {
463                    return _ddmContent;
464            }
465    
466            public DDMContent getWrappedModel() {
467                    return _ddmContent;
468            }
469    
470            public void resetOriginalValues() {
471                    _ddmContent.resetOriginalValues();
472            }
473    
474            private DDMContent _ddmContent;
475    }