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