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