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 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            * Gets 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            * Gets 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            * Gets 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            * Gets 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            * Gets 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            * Gets 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            * Gets 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            * Gets 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            * Gets the class name of the model instance this subscription is polymorphically associated with.
187            *
188            * @return the class name of the model instance this subscription is polymorphically associated with
189            */
190            public java.lang.String getClassName() {
191                    return _subscription.getClassName();
192            }
193    
194            /**
195            * Gets 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            * Gets 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            * Gets 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 void setEscapedModel(boolean escapedModel) {
269                    _subscription.setEscapedModel(escapedModel);
270            }
271    
272            public java.io.Serializable getPrimaryKeyObj() {
273                    return _subscription.getPrimaryKeyObj();
274            }
275    
276            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
277                    _subscription.setPrimaryKeyObj(primaryKeyObj);
278            }
279    
280            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
281                    return _subscription.getExpandoBridge();
282            }
283    
284            public void setExpandoBridgeAttributes(
285                    com.liferay.portal.service.ServiceContext serviceContext) {
286                    _subscription.setExpandoBridgeAttributes(serviceContext);
287            }
288    
289            @Override
290            public java.lang.Object clone() {
291                    return new SubscriptionWrapper((Subscription)_subscription.clone());
292            }
293    
294            public int compareTo(com.liferay.portal.model.Subscription subscription) {
295                    return _subscription.compareTo(subscription);
296            }
297    
298            @Override
299            public int hashCode() {
300                    return _subscription.hashCode();
301            }
302    
303            public com.liferay.portal.model.CacheModel<com.liferay.portal.model.Subscription> toCacheModel() {
304                    return _subscription.toCacheModel();
305            }
306    
307            public com.liferay.portal.model.Subscription toEscapedModel() {
308                    return new SubscriptionWrapper(_subscription.toEscapedModel());
309            }
310    
311            @Override
312            public java.lang.String toString() {
313                    return _subscription.toString();
314            }
315    
316            public java.lang.String toXmlString() {
317                    return _subscription.toXmlString();
318            }
319    
320            public void persist()
321                    throws com.liferay.portal.kernel.exception.SystemException {
322                    _subscription.persist();
323            }
324    
325            public Subscription getWrappedSubscription() {
326                    return _subscription;
327            }
328    
329            public void resetOriginalValues() {
330                    _subscription.resetOriginalValues();
331            }
332    
333            private Subscription _subscription;
334    }