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