001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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            * Gets 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            * Gets the layout set prototype ID of this layout set prototype.
059            *
060            * @return the layout set prototype ID of this layout set prototype
061            */
062            public long getLayoutSetPrototypeId() {
063                    return _layoutSetPrototype.getLayoutSetPrototypeId();
064            }
065    
066            /**
067            * Sets the layout set prototype ID of this layout set prototype.
068            *
069            * @param layoutSetPrototypeId the layout set prototype ID of this layout set prototype
070            */
071            public void setLayoutSetPrototypeId(long layoutSetPrototypeId) {
072                    _layoutSetPrototype.setLayoutSetPrototypeId(layoutSetPrototypeId);
073            }
074    
075            /**
076            * Gets the company ID of this layout set prototype.
077            *
078            * @return the company ID of this layout set prototype
079            */
080            public long getCompanyId() {
081                    return _layoutSetPrototype.getCompanyId();
082            }
083    
084            /**
085            * Sets the company ID of this layout set prototype.
086            *
087            * @param companyId the company ID of this layout set prototype
088            */
089            public void setCompanyId(long companyId) {
090                    _layoutSetPrototype.setCompanyId(companyId);
091            }
092    
093            /**
094            * Gets the name of this layout set prototype.
095            *
096            * @return the name of this layout set prototype
097            */
098            public java.lang.String getName() {
099                    return _layoutSetPrototype.getName();
100            }
101    
102            /**
103            * Gets the localized name of this layout set prototype. Uses the default language if no localization exists for the requested language.
104            *
105            * @param locale the locale to get the localized name for
106            * @return the localized name of this layout set prototype
107            */
108            public java.lang.String getName(java.util.Locale locale) {
109                    return _layoutSetPrototype.getName(locale);
110            }
111    
112            /**
113            * Gets the localized name of this layout set prototype, optionally using the default language if no localization exists for the requested language.
114            *
115            * @param locale the local to get the localized name for
116            * @param useDefault whether to use the default language if no localization exists for the requested language
117            * @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.
118            */
119            public java.lang.String getName(java.util.Locale locale, boolean useDefault) {
120                    return _layoutSetPrototype.getName(locale, useDefault);
121            }
122    
123            /**
124            * Gets the localized name of this layout set prototype. Uses the default language if no localization exists for the requested language.
125            *
126            * @param languageId the id of the language to get the localized name for
127            * @return the localized name of this layout set prototype
128            */
129            public java.lang.String getName(java.lang.String languageId) {
130                    return _layoutSetPrototype.getName(languageId);
131            }
132    
133            /**
134            * Gets the localized name of this layout set prototype, optionally using the default language if no localization exists for the requested language.
135            *
136            * @param languageId the id of the language to get the localized name for
137            * @param useDefault whether to use the default language if no localization exists for the requested language
138            * @return the localized name of this layout set prototype
139            */
140            public java.lang.String getName(java.lang.String languageId,
141                    boolean useDefault) {
142                    return _layoutSetPrototype.getName(languageId, useDefault);
143            }
144    
145            /**
146            * Gets a map of the locales and localized name of this layout set prototype.
147            *
148            * @return the locales and localized name
149            */
150            public java.util.Map<java.util.Locale, java.lang.String> getNameMap() {
151                    return _layoutSetPrototype.getNameMap();
152            }
153    
154            /**
155            * Sets the name of this layout set prototype.
156            *
157            * @param name the name of this layout set prototype
158            */
159            public void setName(java.lang.String name) {
160                    _layoutSetPrototype.setName(name);
161            }
162    
163            /**
164            * Sets the localized name of this layout set prototype.
165            *
166            * @param locale the locale to set the localized name for
167            * @param name the localized name of this layout set prototype
168            */
169            public void setName(java.util.Locale locale, java.lang.String name) {
170                    _layoutSetPrototype.setName(locale, name);
171            }
172    
173            /**
174            * Sets the localized names of this layout set prototype from the map of locales and localized names.
175            *
176            * @param nameMap the locales and localized names of this layout set prototype
177            */
178            public void setNameMap(
179                    java.util.Map<java.util.Locale, java.lang.String> nameMap) {
180                    _layoutSetPrototype.setNameMap(nameMap);
181            }
182    
183            /**
184            * Gets the description of this layout set prototype.
185            *
186            * @return the description of this layout set prototype
187            */
188            public java.lang.String getDescription() {
189                    return _layoutSetPrototype.getDescription();
190            }
191    
192            /**
193            * Sets the description of this layout set prototype.
194            *
195            * @param description the description of this layout set prototype
196            */
197            public void setDescription(java.lang.String description) {
198                    _layoutSetPrototype.setDescription(description);
199            }
200    
201            /**
202            * Gets the settings of this layout set prototype.
203            *
204            * @return the settings of this layout set prototype
205            */
206            public java.lang.String getSettings() {
207                    return _layoutSetPrototype.getSettings();
208            }
209    
210            /**
211            * Sets the settings of this layout set prototype.
212            *
213            * @param settings the settings of this layout set prototype
214            */
215            public void setSettings(java.lang.String settings) {
216                    _layoutSetPrototype.setSettings(settings);
217            }
218    
219            /**
220            * Gets the active of this layout set prototype.
221            *
222            * @return the active of this layout set prototype
223            */
224            public boolean getActive() {
225                    return _layoutSetPrototype.getActive();
226            }
227    
228            /**
229            * Determines if this layout set prototype is active.
230            *
231            * @return <code>true</code> if this layout set prototype is active; <code>false</code> otherwise
232            */
233            public boolean isActive() {
234                    return _layoutSetPrototype.isActive();
235            }
236    
237            /**
238            * Sets whether this layout set prototype is active.
239            *
240            * @param active the active of this layout set prototype
241            */
242            public void setActive(boolean active) {
243                    _layoutSetPrototype.setActive(active);
244            }
245    
246            public boolean isNew() {
247                    return _layoutSetPrototype.isNew();
248            }
249    
250            public void setNew(boolean n) {
251                    _layoutSetPrototype.setNew(n);
252            }
253    
254            public boolean isCachedModel() {
255                    return _layoutSetPrototype.isCachedModel();
256            }
257    
258            public void setCachedModel(boolean cachedModel) {
259                    _layoutSetPrototype.setCachedModel(cachedModel);
260            }
261    
262            public boolean isEscapedModel() {
263                    return _layoutSetPrototype.isEscapedModel();
264            }
265    
266            public void setEscapedModel(boolean escapedModel) {
267                    _layoutSetPrototype.setEscapedModel(escapedModel);
268            }
269    
270            public java.io.Serializable getPrimaryKeyObj() {
271                    return _layoutSetPrototype.getPrimaryKeyObj();
272            }
273    
274            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
275                    _layoutSetPrototype.setPrimaryKeyObj(primaryKeyObj);
276            }
277    
278            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
279                    return _layoutSetPrototype.getExpandoBridge();
280            }
281    
282            public void setExpandoBridgeAttributes(
283                    com.liferay.portal.service.ServiceContext serviceContext) {
284                    _layoutSetPrototype.setExpandoBridgeAttributes(serviceContext);
285            }
286    
287            @Override
288            public java.lang.Object clone() {
289                    return new LayoutSetPrototypeWrapper((LayoutSetPrototype)_layoutSetPrototype.clone());
290            }
291    
292            public int compareTo(
293                    com.liferay.portal.model.LayoutSetPrototype layoutSetPrototype) {
294                    return _layoutSetPrototype.compareTo(layoutSetPrototype);
295            }
296    
297            @Override
298            public int hashCode() {
299                    return _layoutSetPrototype.hashCode();
300            }
301    
302            public com.liferay.portal.model.CacheModel<com.liferay.portal.model.LayoutSetPrototype> toCacheModel() {
303                    return _layoutSetPrototype.toCacheModel();
304            }
305    
306            public com.liferay.portal.model.LayoutSetPrototype toEscapedModel() {
307                    return new LayoutSetPrototypeWrapper(_layoutSetPrototype.toEscapedModel());
308            }
309    
310            @Override
311            public java.lang.String toString() {
312                    return _layoutSetPrototype.toString();
313            }
314    
315            public java.lang.String toXmlString() {
316                    return _layoutSetPrototype.toXmlString();
317            }
318    
319            public void persist()
320                    throws com.liferay.portal.kernel.exception.SystemException {
321                    _layoutSetPrototype.persist();
322            }
323    
324            public com.liferay.portal.model.Group getGroup()
325                    throws com.liferay.portal.kernel.exception.PortalException,
326                            com.liferay.portal.kernel.exception.SystemException {
327                    return _layoutSetPrototype.getGroup();
328            }
329    
330            public com.liferay.portal.model.LayoutSet getLayoutSet()
331                    throws com.liferay.portal.kernel.exception.PortalException,
332                            com.liferay.portal.kernel.exception.SystemException {
333                    return _layoutSetPrototype.getLayoutSet();
334            }
335    
336            public LayoutSetPrototype getWrappedLayoutSetPrototype() {
337                    return _layoutSetPrototype;
338            }
339    
340            public void resetOriginalValues() {
341                    _layoutSetPrototype.resetOriginalValues();
342            }
343    
344            private LayoutSetPrototype _layoutSetPrototype;
345    }