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.exception.SystemException;
018    import com.liferay.portal.model.BaseModel;
019    import com.liferay.portal.model.CacheModel;
020    import com.liferay.portal.service.ServiceContext;
021    
022    import com.liferay.portlet.expando.model.ExpandoBridge;
023    
024    import java.io.Serializable;
025    
026    import java.util.Date;
027    
028    /**
029     * The base model interface for the AnnouncementsFlag service. Represents a row in the "AnnouncementsFlag" database table, with each column mapped to a property of this class.
030     *
031     * <p>
032     * This interface and its corresponding implementation {@link com.liferay.portlet.announcements.model.impl.AnnouncementsFlagModelImpl} 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.AnnouncementsFlagImpl}.
033     * </p>
034     *
035     * @author Brian Wing Shun Chan
036     * @see AnnouncementsFlag
037     * @see com.liferay.portlet.announcements.model.impl.AnnouncementsFlagImpl
038     * @see com.liferay.portlet.announcements.model.impl.AnnouncementsFlagModelImpl
039     * @generated
040     */
041    public interface AnnouncementsFlagModel extends BaseModel<AnnouncementsFlag> {
042            /*
043             * NOTE FOR DEVELOPERS:
044             *
045             * Never modify or reference this interface directly. All methods that expect a announcements flag model instance should use the {@link AnnouncementsFlag} interface instead.
046             */
047    
048            /**
049             * Returns the primary key of this announcements flag.
050             *
051             * @return the primary key of this announcements flag
052             */
053            public long getPrimaryKey();
054    
055            /**
056             * Sets the primary key of this announcements flag.
057             *
058             * @param primaryKey the primary key of this announcements flag
059             */
060            public void setPrimaryKey(long primaryKey);
061    
062            /**
063             * Returns the flag ID of this announcements flag.
064             *
065             * @return the flag ID of this announcements flag
066             */
067            public long getFlagId();
068    
069            /**
070             * Sets the flag ID of this announcements flag.
071             *
072             * @param flagId the flag ID of this announcements flag
073             */
074            public void setFlagId(long flagId);
075    
076            /**
077             * Returns the user ID of this announcements flag.
078             *
079             * @return the user ID of this announcements flag
080             */
081            public long getUserId();
082    
083            /**
084             * Sets the user ID of this announcements flag.
085             *
086             * @param userId the user ID of this announcements flag
087             */
088            public void setUserId(long userId);
089    
090            /**
091             * Returns the user uuid of this announcements flag.
092             *
093             * @return the user uuid of this announcements flag
094             * @throws SystemException if a system exception occurred
095             */
096            public String getUserUuid() throws SystemException;
097    
098            /**
099             * Sets the user uuid of this announcements flag.
100             *
101             * @param userUuid the user uuid of this announcements flag
102             */
103            public void setUserUuid(String userUuid);
104    
105            /**
106             * Returns the create date of this announcements flag.
107             *
108             * @return the create date of this announcements flag
109             */
110            public Date getCreateDate();
111    
112            /**
113             * Sets the create date of this announcements flag.
114             *
115             * @param createDate the create date of this announcements flag
116             */
117            public void setCreateDate(Date createDate);
118    
119            /**
120             * Returns the entry ID of this announcements flag.
121             *
122             * @return the entry ID of this announcements flag
123             */
124            public long getEntryId();
125    
126            /**
127             * Sets the entry ID of this announcements flag.
128             *
129             * @param entryId the entry ID of this announcements flag
130             */
131            public void setEntryId(long entryId);
132    
133            /**
134             * Returns the value of this announcements flag.
135             *
136             * @return the value of this announcements flag
137             */
138            public int getValue();
139    
140            /**
141             * Sets the value of this announcements flag.
142             *
143             * @param value the value of this announcements flag
144             */
145            public void setValue(int value);
146    
147            public boolean isNew();
148    
149            public void setNew(boolean n);
150    
151            public boolean isCachedModel();
152    
153            public void setCachedModel(boolean cachedModel);
154    
155            public boolean isEscapedModel();
156    
157            public Serializable getPrimaryKeyObj();
158    
159            public void setPrimaryKeyObj(Serializable primaryKeyObj);
160    
161            public ExpandoBridge getExpandoBridge();
162    
163            public void setExpandoBridgeAttributes(ServiceContext serviceContext);
164    
165            public Object clone();
166    
167            public int compareTo(AnnouncementsFlag announcementsFlag);
168    
169            public int hashCode();
170    
171            public CacheModel<AnnouncementsFlag> toCacheModel();
172    
173            public AnnouncementsFlag toEscapedModel();
174    
175            public AnnouncementsFlag toUnescapedModel();
176    
177            public String toString();
178    
179            public String toXmlString();
180    }