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.polls.model;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.AutoEscape;
020    import com.liferay.portal.kernel.exception.SystemException;
021    import com.liferay.portal.model.BaseModel;
022    import com.liferay.portal.model.CacheModel;
023    import com.liferay.portal.model.StagedGroupedModel;
024    import com.liferay.portal.service.ServiceContext;
025    
026    import com.liferay.portlet.expando.model.ExpandoBridge;
027    
028    import java.io.Serializable;
029    
030    import java.util.Date;
031    
032    /**
033     * The base model interface for the PollsVote service. Represents a row in the "PollsVote" database table, with each column mapped to a property of this class.
034     *
035     * <p>
036     * This interface and its corresponding implementation {@link com.liferay.portlet.polls.model.impl.PollsVoteModelImpl} 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.polls.model.impl.PollsVoteImpl}.
037     * </p>
038     *
039     * @author Brian Wing Shun Chan
040     * @see PollsVote
041     * @see com.liferay.portlet.polls.model.impl.PollsVoteImpl
042     * @see com.liferay.portlet.polls.model.impl.PollsVoteModelImpl
043     * @generated
044     */
045    @ProviderType
046    public interface PollsVoteModel extends BaseModel<PollsVote>, StagedGroupedModel {
047            /*
048             * NOTE FOR DEVELOPERS:
049             *
050             * Never modify or reference this interface directly. All methods that expect a polls vote model instance should use the {@link PollsVote} interface instead.
051             */
052    
053            /**
054             * Returns the primary key of this polls vote.
055             *
056             * @return the primary key of this polls vote
057             */
058            public long getPrimaryKey();
059    
060            /**
061             * Sets the primary key of this polls vote.
062             *
063             * @param primaryKey the primary key of this polls vote
064             */
065            public void setPrimaryKey(long primaryKey);
066    
067            /**
068             * Returns the uuid of this polls vote.
069             *
070             * @return the uuid of this polls vote
071             */
072            @AutoEscape
073            @Override
074            public String getUuid();
075    
076            /**
077             * Sets the uuid of this polls vote.
078             *
079             * @param uuid the uuid of this polls vote
080             */
081            @Override
082            public void setUuid(String uuid);
083    
084            /**
085             * Returns the vote ID of this polls vote.
086             *
087             * @return the vote ID of this polls vote
088             */
089            public long getVoteId();
090    
091            /**
092             * Sets the vote ID of this polls vote.
093             *
094             * @param voteId the vote ID of this polls vote
095             */
096            public void setVoteId(long voteId);
097    
098            /**
099             * Returns the group ID of this polls vote.
100             *
101             * @return the group ID of this polls vote
102             */
103            @Override
104            public long getGroupId();
105    
106            /**
107             * Sets the group ID of this polls vote.
108             *
109             * @param groupId the group ID of this polls vote
110             */
111            @Override
112            public void setGroupId(long groupId);
113    
114            /**
115             * Returns the company ID of this polls vote.
116             *
117             * @return the company ID of this polls vote
118             */
119            @Override
120            public long getCompanyId();
121    
122            /**
123             * Sets the company ID of this polls vote.
124             *
125             * @param companyId the company ID of this polls vote
126             */
127            @Override
128            public void setCompanyId(long companyId);
129    
130            /**
131             * Returns the user ID of this polls vote.
132             *
133             * @return the user ID of this polls vote
134             */
135            @Override
136            public long getUserId();
137    
138            /**
139             * Sets the user ID of this polls vote.
140             *
141             * @param userId the user ID of this polls vote
142             */
143            @Override
144            public void setUserId(long userId);
145    
146            /**
147             * Returns the user uuid of this polls vote.
148             *
149             * @return the user uuid of this polls vote
150             * @throws SystemException if a system exception occurred
151             */
152            @Override
153            public String getUserUuid() throws SystemException;
154    
155            /**
156             * Sets the user uuid of this polls vote.
157             *
158             * @param userUuid the user uuid of this polls vote
159             */
160            @Override
161            public void setUserUuid(String userUuid);
162    
163            /**
164             * Returns the user name of this polls vote.
165             *
166             * @return the user name of this polls vote
167             */
168            @AutoEscape
169            @Override
170            public String getUserName();
171    
172            /**
173             * Sets the user name of this polls vote.
174             *
175             * @param userName the user name of this polls vote
176             */
177            @Override
178            public void setUserName(String userName);
179    
180            /**
181             * Returns the create date of this polls vote.
182             *
183             * @return the create date of this polls vote
184             */
185            @Override
186            public Date getCreateDate();
187    
188            /**
189             * Sets the create date of this polls vote.
190             *
191             * @param createDate the create date of this polls vote
192             */
193            @Override
194            public void setCreateDate(Date createDate);
195    
196            /**
197             * Returns the modified date of this polls vote.
198             *
199             * @return the modified date of this polls vote
200             */
201            @Override
202            public Date getModifiedDate();
203    
204            /**
205             * Sets the modified date of this polls vote.
206             *
207             * @param modifiedDate the modified date of this polls vote
208             */
209            @Override
210            public void setModifiedDate(Date modifiedDate);
211    
212            /**
213             * Returns the question ID of this polls vote.
214             *
215             * @return the question ID of this polls vote
216             */
217            public long getQuestionId();
218    
219            /**
220             * Sets the question ID of this polls vote.
221             *
222             * @param questionId the question ID of this polls vote
223             */
224            public void setQuestionId(long questionId);
225    
226            /**
227             * Returns the choice ID of this polls vote.
228             *
229             * @return the choice ID of this polls vote
230             */
231            public long getChoiceId();
232    
233            /**
234             * Sets the choice ID of this polls vote.
235             *
236             * @param choiceId the choice ID of this polls vote
237             */
238            public void setChoiceId(long choiceId);
239    
240            /**
241             * Returns the vote date of this polls vote.
242             *
243             * @return the vote date of this polls vote
244             */
245            public Date getVoteDate();
246    
247            /**
248             * Sets the vote date of this polls vote.
249             *
250             * @param voteDate the vote date of this polls vote
251             */
252            public void setVoteDate(Date voteDate);
253    
254            @Override
255            public boolean isNew();
256    
257            @Override
258            public void setNew(boolean n);
259    
260            @Override
261            public boolean isCachedModel();
262    
263            @Override
264            public void setCachedModel(boolean cachedModel);
265    
266            @Override
267            public boolean isEscapedModel();
268    
269            @Override
270            public Serializable getPrimaryKeyObj();
271    
272            @Override
273            public void setPrimaryKeyObj(Serializable primaryKeyObj);
274    
275            @Override
276            public ExpandoBridge getExpandoBridge();
277    
278            @Override
279            public void setExpandoBridgeAttributes(BaseModel<?> baseModel);
280    
281            @Override
282            public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge);
283    
284            @Override
285            public void setExpandoBridgeAttributes(ServiceContext serviceContext);
286    
287            @Override
288            public Object clone();
289    
290            @Override
291            public int compareTo(PollsVote pollsVote);
292    
293            @Override
294            public int hashCode();
295    
296            @Override
297            public CacheModel<PollsVote> toCacheModel();
298    
299            @Override
300            public PollsVote toEscapedModel();
301    
302            @Override
303            public PollsVote toUnescapedModel();
304    
305            @Override
306            public String toString();
307    
308            @Override
309            public String toXmlString();
310    }