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