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