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 Subscription}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       Subscription
024     * @generated
025     */
026    public class SubscriptionWrapper implements Subscription {
027            public SubscriptionWrapper(Subscription subscription) {
028                    _subscription = subscription;
029            }
030    
031            public Class<?> getModelClass() {
032                    return Subscription.class;
033            }
034    
035            public String getModelClassName() {
036                    return Subscription.class.getName();
037            }
038    
039            /**
040            * Returns the primary key of this subscription.
041            *
042            * @return the primary key of this subscription
043            */
044            public long getPrimaryKey() {
045                    return _subscription.getPrimaryKey();
046            }
047    
048            /**
049            * Sets the primary key of this subscription.
050            *
051            * @param primaryKey the primary key of this subscription
052            */
053            public void setPrimaryKey(long primaryKey) {
054                    _subscription.setPrimaryKey(primaryKey);
055            }
056    
057            /**
058            * Returns the subscription ID of this subscription.
059            *
060            * @return the subscription ID of this subscription
061            */
062            public long getSubscriptionId() {
063                    return _subscription.getSubscriptionId();
064            }
065    
066            /**
067            * Sets the subscription ID of this subscription.
068            *
069            * @param subscriptionId the subscription ID of this subscription
070            */
071            public void setSubscriptionId(long subscriptionId) {
072                    _subscription.setSubscriptionId(subscriptionId);
073            }
074    
075            /**
076            * Returns the company ID of this subscription.
077            *
078            * @return the company ID of this subscription
079            */
080            public long getCompanyId() {
081                    return _subscription.getCompanyId();
082            }
083    
084            /**
085            * Sets the company ID of this subscription.
086            *
087            * @param companyId the company ID of this subscription
088            */
089            public void setCompanyId(long companyId) {
090                    _subscription.setCompanyId(companyId);
091            }
092    
093            /**
094            * Returns the user ID of this subscription.
095            *
096            * @return the user ID of this subscription
097            */
098            public long getUserId() {
099                    return _subscription.getUserId();
100            }
101    
102            /**
103            * Sets the user ID of this subscription.
104            *
105            * @param userId the user ID of this subscription
106            */
107            public void setUserId(long userId) {
108                    _subscription.setUserId(userId);
109            }
110    
111            /**
112            * Returns the user uuid of this subscription.
113            *
114            * @return the user uuid of this subscription
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 _subscription.getUserUuid();
120            }
121    
122            /**
123            * Sets the user uuid of this subscription.
124            *
125            * @param userUuid the user uuid of this subscription
126            */
127            public void setUserUuid(java.lang.String userUuid) {
128                    _subscription.setUserUuid(userUuid);
129            }
130    
131            /**
132            * Returns the user name of this subscription.
133            *
134            * @return the user name of this subscription
135            */
136            public java.lang.String getUserName() {
137                    return _subscription.getUserName();
138            }
139    
140            /**
141            * Sets the user name of this subscription.
142            *
143            * @param userName the user name of this subscription
144            */
145            public void setUserName(java.lang.String userName) {
146                    _subscription.setUserName(userName);
147            }
148    
149            /**
150            * Returns the create date of this subscription.
151            *
152            * @return the create date of this subscription
153            */
154            public java.util.Date getCreateDate() {
155                    return _subscription.getCreateDate();
156            }
157    
158            /**
159            * Sets the create date of this subscription.
160            *
161            * @param createDate the create date of this subscription
162            */
163            public void setCreateDate(java.util.Date createDate) {
164                    _subscription.setCreateDate(createDate);
165            }
166    
167            /**
168            * Returns the modified date of this subscription.
169            *
170            * @return the modified date of this subscription
171            */
172            public java.util.Date getModifiedDate() {
173                    return _subscription.getModifiedDate();
174            }
175    
176            /**
177            * Sets the modified date of this subscription.
178            *
179            * @param modifiedDate the modified date of this subscription
180            */
181            public void setModifiedDate(java.util.Date modifiedDate) {
182                    _subscription.setModifiedDate(modifiedDate);
183            }
184    
185            /**
186            * Returns the fully qualified class name of this subscription.
187            *
188            * @return the fully qualified class name of this subscription
189            */
190            public java.lang.String getClassName() {
191                    return _subscription.getClassName();
192            }
193    
194            /**
195            * Returns the class name ID of this subscription.
196            *
197            * @return the class name ID of this subscription
198            */
199            public long getClassNameId() {
200                    return _subscription.getClassNameId();
201            }
202    
203            /**
204            * Sets the class name ID of this subscription.
205            *
206            * @param classNameId the class name ID of this subscription
207            */
208            public void setClassNameId(long classNameId) {
209                    _subscription.setClassNameId(classNameId);
210            }
211    
212            /**
213            * Returns the class p k of this subscription.
214            *
215            * @return the class p k of this subscription
216            */
217            public long getClassPK() {
218                    return _subscription.getClassPK();
219            }
220    
221            /**
222            * Sets the class p k of this subscription.
223            *
224            * @param classPK the class p k of this subscription
225            */
226            public void setClassPK(long classPK) {
227                    _subscription.setClassPK(classPK);
228            }
229    
230            /**
231            * Returns the frequency of this subscription.
232            *
233            * @return the frequency of this subscription
234            */
235            public java.lang.String getFrequency() {
236                    return _subscription.getFrequency();
237            }
238    
239            /**
240            * Sets the frequency of this subscription.
241            *
242            * @param frequency the frequency of this subscription
243            */
244            public void setFrequency(java.lang.String frequency) {
245                    _subscription.setFrequency(frequency);
246            }
247    
248            public boolean isNew() {
249                    return _subscription.isNew();
250            }
251    
252            public void setNew(boolean n) {
253                    _subscription.setNew(n);
254            }
255    
256            public boolean isCachedModel() {
257                    return _subscription.isCachedModel();
258            }
259    
260            public void setCachedModel(boolean cachedModel) {
261                    _subscription.setCachedModel(cachedModel);
262            }
263    
264            public boolean isEscapedModel() {
265                    return _subscription.isEscapedModel();
266            }
267    
268            public java.io.Serializable getPrimaryKeyObj() {
269                    return _subscription.getPrimaryKeyObj();
270            }
271    
272            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
273                    _subscription.setPrimaryKeyObj(primaryKeyObj);
274            }
275    
276            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
277                    return _subscription.getExpandoBridge();
278            }
279    
280            public void setExpandoBridgeAttributes(
281                    com.liferay.portal.service.ServiceContext serviceContext) {
282                    _subscription.setExpandoBridgeAttributes(serviceContext);
283            }
284    
285            @Override
286            public java.lang.Object clone() {
287                    return new SubscriptionWrapper((Subscription)_subscription.clone());
288            }
289    
290            public int compareTo(com.liferay.portal.model.Subscription subscription) {
291                    return _subscription.compareTo(subscription);
292            }
293    
294            @Override
295            public int hashCode() {
296                    return _subscription.hashCode();
297            }
298    
299            public com.liferay.portal.model.CacheModel<com.liferay.portal.model.Subscription> toCacheModel() {
300                    return _subscription.toCacheModel();
301            }
302    
303            public com.liferay.portal.model.Subscription toEscapedModel() {
304                    return new SubscriptionWrapper(_subscription.toEscapedModel());
305            }
306    
307            @Override
308            public java.lang.String toString() {
309                    return _subscription.toString();
310            }
311    
312            public java.lang.String toXmlString() {
313                    return _subscription.toXmlString();
314            }
315    
316            public void persist()
317                    throws com.liferay.portal.kernel.exception.SystemException {
318                    _subscription.persist();
319            }
320    
321            public Subscription getWrappedSubscription() {
322                    return _subscription;
323            }
324    
325            public void resetOriginalValues() {
326                    _subscription.resetOriginalValues();
327            }
328    
329            private Subscription _subscription;
330    }