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