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