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 Website}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       Website
024     * @generated
025     */
026    public class WebsiteWrapper implements Website, ModelWrapper<Website> {
027            public WebsiteWrapper(Website website) {
028                    _website = website;
029            }
030    
031            public Class<?> getModelClass() {
032                    return Website.class;
033            }
034    
035            public String getModelClassName() {
036                    return Website.class.getName();
037            }
038    
039            /**
040            * Returns the primary key of this website.
041            *
042            * @return the primary key of this website
043            */
044            public long getPrimaryKey() {
045                    return _website.getPrimaryKey();
046            }
047    
048            /**
049            * Sets the primary key of this website.
050            *
051            * @param primaryKey the primary key of this website
052            */
053            public void setPrimaryKey(long primaryKey) {
054                    _website.setPrimaryKey(primaryKey);
055            }
056    
057            /**
058            * Returns the website ID of this website.
059            *
060            * @return the website ID of this website
061            */
062            public long getWebsiteId() {
063                    return _website.getWebsiteId();
064            }
065    
066            /**
067            * Sets the website ID of this website.
068            *
069            * @param websiteId the website ID of this website
070            */
071            public void setWebsiteId(long websiteId) {
072                    _website.setWebsiteId(websiteId);
073            }
074    
075            /**
076            * Returns the company ID of this website.
077            *
078            * @return the company ID of this website
079            */
080            public long getCompanyId() {
081                    return _website.getCompanyId();
082            }
083    
084            /**
085            * Sets the company ID of this website.
086            *
087            * @param companyId the company ID of this website
088            */
089            public void setCompanyId(long companyId) {
090                    _website.setCompanyId(companyId);
091            }
092    
093            /**
094            * Returns the user ID of this website.
095            *
096            * @return the user ID of this website
097            */
098            public long getUserId() {
099                    return _website.getUserId();
100            }
101    
102            /**
103            * Sets the user ID of this website.
104            *
105            * @param userId the user ID of this website
106            */
107            public void setUserId(long userId) {
108                    _website.setUserId(userId);
109            }
110    
111            /**
112            * Returns the user uuid of this website.
113            *
114            * @return the user uuid of this website
115            * @throws SystemException if a system exception occurred
116            */
117            public java.lang.String getUserUuid()
118                    throws com.liferay.portal.kernel.exception.SystemException {
119                    return _website.getUserUuid();
120            }
121    
122            /**
123            * Sets the user uuid of this website.
124            *
125            * @param userUuid the user uuid of this website
126            */
127            public void setUserUuid(java.lang.String userUuid) {
128                    _website.setUserUuid(userUuid);
129            }
130    
131            /**
132            * Returns the user name of this website.
133            *
134            * @return the user name of this website
135            */
136            public java.lang.String getUserName() {
137                    return _website.getUserName();
138            }
139    
140            /**
141            * Sets the user name of this website.
142            *
143            * @param userName the user name of this website
144            */
145            public void setUserName(java.lang.String userName) {
146                    _website.setUserName(userName);
147            }
148    
149            /**
150            * Returns the create date of this website.
151            *
152            * @return the create date of this website
153            */
154            public java.util.Date getCreateDate() {
155                    return _website.getCreateDate();
156            }
157    
158            /**
159            * Sets the create date of this website.
160            *
161            * @param createDate the create date of this website
162            */
163            public void setCreateDate(java.util.Date createDate) {
164                    _website.setCreateDate(createDate);
165            }
166    
167            /**
168            * Returns the modified date of this website.
169            *
170            * @return the modified date of this website
171            */
172            public java.util.Date getModifiedDate() {
173                    return _website.getModifiedDate();
174            }
175    
176            /**
177            * Sets the modified date of this website.
178            *
179            * @param modifiedDate the modified date of this website
180            */
181            public void setModifiedDate(java.util.Date modifiedDate) {
182                    _website.setModifiedDate(modifiedDate);
183            }
184    
185            /**
186            * Returns the fully qualified class name of this website.
187            *
188            * @return the fully qualified class name of this website
189            */
190            public java.lang.String getClassName() {
191                    return _website.getClassName();
192            }
193    
194            /**
195            * Returns the class name ID of this website.
196            *
197            * @return the class name ID of this website
198            */
199            public long getClassNameId() {
200                    return _website.getClassNameId();
201            }
202    
203            /**
204            * Sets the class name ID of this website.
205            *
206            * @param classNameId the class name ID of this website
207            */
208            public void setClassNameId(long classNameId) {
209                    _website.setClassNameId(classNameId);
210            }
211    
212            /**
213            * Returns the class p k of this website.
214            *
215            * @return the class p k of this website
216            */
217            public long getClassPK() {
218                    return _website.getClassPK();
219            }
220    
221            /**
222            * Sets the class p k of this website.
223            *
224            * @param classPK the class p k of this website
225            */
226            public void setClassPK(long classPK) {
227                    _website.setClassPK(classPK);
228            }
229    
230            /**
231            * Returns the url of this website.
232            *
233            * @return the url of this website
234            */
235            public java.lang.String getUrl() {
236                    return _website.getUrl();
237            }
238    
239            /**
240            * Sets the url of this website.
241            *
242            * @param url the url of this website
243            */
244            public void setUrl(java.lang.String url) {
245                    _website.setUrl(url);
246            }
247    
248            /**
249            * Returns the type ID of this website.
250            *
251            * @return the type ID of this website
252            */
253            public int getTypeId() {
254                    return _website.getTypeId();
255            }
256    
257            /**
258            * Sets the type ID of this website.
259            *
260            * @param typeId the type ID of this website
261            */
262            public void setTypeId(int typeId) {
263                    _website.setTypeId(typeId);
264            }
265    
266            /**
267            * Returns the primary of this website.
268            *
269            * @return the primary of this website
270            */
271            public boolean getPrimary() {
272                    return _website.getPrimary();
273            }
274    
275            /**
276            * Returns <code>true</code> if this website is primary.
277            *
278            * @return <code>true</code> if this website is primary; <code>false</code> otherwise
279            */
280            public boolean isPrimary() {
281                    return _website.isPrimary();
282            }
283    
284            /**
285            * Sets whether this website is primary.
286            *
287            * @param primary the primary of this website
288            */
289            public void setPrimary(boolean primary) {
290                    _website.setPrimary(primary);
291            }
292    
293            public boolean isNew() {
294                    return _website.isNew();
295            }
296    
297            public void setNew(boolean n) {
298                    _website.setNew(n);
299            }
300    
301            public boolean isCachedModel() {
302                    return _website.isCachedModel();
303            }
304    
305            public void setCachedModel(boolean cachedModel) {
306                    _website.setCachedModel(cachedModel);
307            }
308    
309            public boolean isEscapedModel() {
310                    return _website.isEscapedModel();
311            }
312    
313            public java.io.Serializable getPrimaryKeyObj() {
314                    return _website.getPrimaryKeyObj();
315            }
316    
317            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
318                    _website.setPrimaryKeyObj(primaryKeyObj);
319            }
320    
321            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
322                    return _website.getExpandoBridge();
323            }
324    
325            public void setExpandoBridgeAttributes(
326                    com.liferay.portal.service.ServiceContext serviceContext) {
327                    _website.setExpandoBridgeAttributes(serviceContext);
328            }
329    
330            @Override
331            public java.lang.Object clone() {
332                    return new WebsiteWrapper((Website)_website.clone());
333            }
334    
335            public int compareTo(com.liferay.portal.model.Website website) {
336                    return _website.compareTo(website);
337            }
338    
339            @Override
340            public int hashCode() {
341                    return _website.hashCode();
342            }
343    
344            public com.liferay.portal.model.CacheModel<com.liferay.portal.model.Website> toCacheModel() {
345                    return _website.toCacheModel();
346            }
347    
348            public com.liferay.portal.model.Website toEscapedModel() {
349                    return new WebsiteWrapper(_website.toEscapedModel());
350            }
351    
352            @Override
353            public java.lang.String toString() {
354                    return _website.toString();
355            }
356    
357            public java.lang.String toXmlString() {
358                    return _website.toXmlString();
359            }
360    
361            public void persist()
362                    throws com.liferay.portal.kernel.exception.SystemException {
363                    _website.persist();
364            }
365    
366            public com.liferay.portal.model.ListType getType()
367                    throws com.liferay.portal.kernel.exception.PortalException,
368                            com.liferay.portal.kernel.exception.SystemException {
369                    return _website.getType();
370            }
371    
372            /**
373             * @deprecated Renamed to {@link #getWrappedModel}
374             */
375            public Website getWrappedWebsite() {
376                    return _website;
377            }
378    
379            public Website getWrappedModel() {
380                    return _website;
381            }
382    
383            public void resetOriginalValues() {
384                    _website.resetOriginalValues();
385            }
386    
387            private Website _website;
388    }