001    /**
002     * Copyright (c) 2000-2013 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.kernel.bean.AutoEscape;
018    import com.liferay.portal.kernel.exception.SystemException;
019    import com.liferay.portal.model.BaseModel;
020    import com.liferay.portal.model.CacheModel;
021    import com.liferay.portal.service.ServiceContext;
022    
023    import com.liferay.portlet.expando.model.ExpandoBridge;
024    
025    import java.io.Serializable;
026    
027    /**
028     * The base model interface for the AnnouncementsDelivery service. Represents a row in the "AnnouncementsDelivery" database table, with each column mapped to a property of this class.
029     *
030     * <p>
031     * This interface and its corresponding implementation {@link com.liferay.portlet.announcements.model.impl.AnnouncementsDeliveryModelImpl} exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link com.liferay.portlet.announcements.model.impl.AnnouncementsDeliveryImpl}.
032     * </p>
033     *
034     * @author Brian Wing Shun Chan
035     * @see AnnouncementsDelivery
036     * @see com.liferay.portlet.announcements.model.impl.AnnouncementsDeliveryImpl
037     * @see com.liferay.portlet.announcements.model.impl.AnnouncementsDeliveryModelImpl
038     * @generated
039     */
040    public interface AnnouncementsDeliveryModel extends BaseModel<AnnouncementsDelivery> {
041            /*
042             * NOTE FOR DEVELOPERS:
043             *
044             * Never modify or reference this interface directly. All methods that expect a announcements delivery model instance should use the {@link AnnouncementsDelivery} interface instead.
045             */
046    
047            /**
048             * Returns the primary key of this announcements delivery.
049             *
050             * @return the primary key of this announcements delivery
051             */
052            public long getPrimaryKey();
053    
054            /**
055             * Sets the primary key of this announcements delivery.
056             *
057             * @param primaryKey the primary key of this announcements delivery
058             */
059            public void setPrimaryKey(long primaryKey);
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    
068            /**
069             * Sets the delivery ID of this announcements delivery.
070             *
071             * @param deliveryId the delivery ID of this announcements delivery
072             */
073            public void setDeliveryId(long deliveryId);
074    
075            /**
076             * Returns the company ID of this announcements delivery.
077             *
078             * @return the company ID of this announcements delivery
079             */
080            public long getCompanyId();
081    
082            /**
083             * Sets the company ID of this announcements delivery.
084             *
085             * @param companyId the company ID of this announcements delivery
086             */
087            public void setCompanyId(long companyId);
088    
089            /**
090             * Returns the user ID of this announcements delivery.
091             *
092             * @return the user ID of this announcements delivery
093             */
094            public long getUserId();
095    
096            /**
097             * Sets the user ID of this announcements delivery.
098             *
099             * @param userId the user ID of this announcements delivery
100             */
101            public void setUserId(long userId);
102    
103            /**
104             * Returns the user uuid of this announcements delivery.
105             *
106             * @return the user uuid of this announcements delivery
107             * @throws SystemException if a system exception occurred
108             */
109            public String getUserUuid() throws SystemException;
110    
111            /**
112             * Sets the user uuid of this announcements delivery.
113             *
114             * @param userUuid the user uuid of this announcements delivery
115             */
116            public void setUserUuid(String userUuid);
117    
118            /**
119             * Returns the type of this announcements delivery.
120             *
121             * @return the type of this announcements delivery
122             */
123            @AutoEscape
124            public String getType();
125    
126            /**
127             * Sets the type of this announcements delivery.
128             *
129             * @param type the type of this announcements delivery
130             */
131            public void setType(String type);
132    
133            /**
134             * Returns the email of this announcements delivery.
135             *
136             * @return the email of this announcements delivery
137             */
138            public boolean getEmail();
139    
140            /**
141             * Returns <code>true</code> if this announcements delivery is email.
142             *
143             * @return <code>true</code> if this announcements delivery is email; <code>false</code> otherwise
144             */
145            public boolean isEmail();
146    
147            /**
148             * Sets whether this announcements delivery is email.
149             *
150             * @param email the email of this announcements delivery
151             */
152            public void setEmail(boolean email);
153    
154            /**
155             * Returns the sms of this announcements delivery.
156             *
157             * @return the sms of this announcements delivery
158             */
159            public boolean getSms();
160    
161            /**
162             * Returns <code>true</code> if this announcements delivery is sms.
163             *
164             * @return <code>true</code> if this announcements delivery is sms; <code>false</code> otherwise
165             */
166            public boolean isSms();
167    
168            /**
169             * Sets whether this announcements delivery is sms.
170             *
171             * @param sms the sms of this announcements delivery
172             */
173            public void setSms(boolean sms);
174    
175            /**
176             * Returns the website of this announcements delivery.
177             *
178             * @return the website of this announcements delivery
179             */
180            public boolean getWebsite();
181    
182            /**
183             * Returns <code>true</code> if this announcements delivery is website.
184             *
185             * @return <code>true</code> if this announcements delivery is website; <code>false</code> otherwise
186             */
187            public boolean isWebsite();
188    
189            /**
190             * Sets whether this announcements delivery is website.
191             *
192             * @param website the website of this announcements delivery
193             */
194            public void setWebsite(boolean website);
195    
196            public boolean isNew();
197    
198            public void setNew(boolean n);
199    
200            public boolean isCachedModel();
201    
202            public void setCachedModel(boolean cachedModel);
203    
204            public boolean isEscapedModel();
205    
206            public Serializable getPrimaryKeyObj();
207    
208            public void setPrimaryKeyObj(Serializable primaryKeyObj);
209    
210            public ExpandoBridge getExpandoBridge();
211    
212            public void setExpandoBridgeAttributes(ServiceContext serviceContext);
213    
214            public Object clone();
215    
216            public int compareTo(AnnouncementsDelivery announcementsDelivery);
217    
218            public int hashCode();
219    
220            public CacheModel<AnnouncementsDelivery> toCacheModel();
221    
222            public AnnouncementsDelivery toEscapedModel();
223    
224            public AnnouncementsDelivery toUnescapedModel();
225    
226            public String toString();
227    
228            public String toXmlString();
229    }