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.AuditedModel; 020 import com.liferay.portal.model.BaseModel; 021 import com.liferay.portal.model.CacheModel; 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 AuditedModel, BaseModel<PollsVote> { 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 vote ID of this polls vote. 066 * 067 * @return the vote ID of this polls vote 068 */ 069 public long getVoteId(); 070 071 /** 072 * Sets the vote ID of this polls vote. 073 * 074 * @param voteId the vote ID of this polls vote 075 */ 076 public void setVoteId(long voteId); 077 078 /** 079 * Returns the company ID of this polls vote. 080 * 081 * @return the company ID of this polls vote 082 */ 083 public long getCompanyId(); 084 085 /** 086 * Sets the company ID of this polls vote. 087 * 088 * @param companyId the company ID of this polls vote 089 */ 090 public void setCompanyId(long companyId); 091 092 /** 093 * Returns the user ID of this polls vote. 094 * 095 * @return the user ID of this polls vote 096 */ 097 public long getUserId(); 098 099 /** 100 * Sets the user ID of this polls vote. 101 * 102 * @param userId the user ID of this polls vote 103 */ 104 public void setUserId(long userId); 105 106 /** 107 * Returns the user uuid of this polls vote. 108 * 109 * @return the user uuid of this polls vote 110 * @throws SystemException if a system exception occurred 111 */ 112 public String getUserUuid() throws SystemException; 113 114 /** 115 * Sets the user uuid of this polls vote. 116 * 117 * @param userUuid the user uuid of this polls vote 118 */ 119 public void setUserUuid(String userUuid); 120 121 /** 122 * Returns the user name of this polls vote. 123 * 124 * @return the user name of this polls vote 125 */ 126 @AutoEscape 127 public String getUserName(); 128 129 /** 130 * Sets the user name of this polls vote. 131 * 132 * @param userName the user name of this polls vote 133 */ 134 public void setUserName(String userName); 135 136 /** 137 * Returns the create date of this polls vote. 138 * 139 * @return the create date of this polls vote 140 */ 141 public Date getCreateDate(); 142 143 /** 144 * Sets the create date of this polls vote. 145 * 146 * @param createDate the create date of this polls vote 147 */ 148 public void setCreateDate(Date createDate); 149 150 /** 151 * Returns the modified date of this polls vote. 152 * 153 * @return the modified date of this polls vote 154 */ 155 public Date getModifiedDate(); 156 157 /** 158 * Sets the modified date of this polls vote. 159 * 160 * @param modifiedDate the modified date of this polls vote 161 */ 162 public void setModifiedDate(Date modifiedDate); 163 164 /** 165 * Returns the question ID of this polls vote. 166 * 167 * @return the question ID of this polls vote 168 */ 169 public long getQuestionId(); 170 171 /** 172 * Sets the question ID of this polls vote. 173 * 174 * @param questionId the question ID of this polls vote 175 */ 176 public void setQuestionId(long questionId); 177 178 /** 179 * Returns the choice ID of this polls vote. 180 * 181 * @return the choice ID of this polls vote 182 */ 183 public long getChoiceId(); 184 185 /** 186 * Sets the choice ID of this polls vote. 187 * 188 * @param choiceId the choice ID of this polls vote 189 */ 190 public void setChoiceId(long choiceId); 191 192 /** 193 * Returns the vote date of this polls vote. 194 * 195 * @return the vote date of this polls vote 196 */ 197 public Date getVoteDate(); 198 199 /** 200 * Sets the vote date of this polls vote. 201 * 202 * @param voteDate the vote date of this polls vote 203 */ 204 public void setVoteDate(Date voteDate); 205 206 public boolean isNew(); 207 208 public void setNew(boolean n); 209 210 public boolean isCachedModel(); 211 212 public void setCachedModel(boolean cachedModel); 213 214 public boolean isEscapedModel(); 215 216 public Serializable getPrimaryKeyObj(); 217 218 public void setPrimaryKeyObj(Serializable primaryKeyObj); 219 220 public ExpandoBridge getExpandoBridge(); 221 222 public void setExpandoBridgeAttributes(ServiceContext serviceContext); 223 224 public Object clone(); 225 226 public int compareTo(PollsVote pollsVote); 227 228 public int hashCode(); 229 230 public CacheModel<PollsVote> toCacheModel(); 231 232 public PollsVote toEscapedModel(); 233 234 public PollsVote toUnescapedModel(); 235 236 public String toString(); 237 238 public String toXmlString(); 239 }