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