001 /** 002 * Copyright (c) 2000-2010 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.exception.SystemException; 018 import com.liferay.portal.model.BaseModel; 019 import com.liferay.portal.service.ServiceContext; 020 021 import com.liferay.portlet.expando.model.ExpandoBridge; 022 023 import java.io.Serializable; 024 025 import java.util.Date; 026 027 /** 028 * 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. 029 * 030 * <p> 031 * 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}. 032 * </p> 033 * 034 * <p> 035 * Never modify or reference this interface directly. All methods that expect a polls vote model instance should use the {@link PollsVote} interface instead. 036 * </p> 037 * 038 * @author Brian Wing Shun Chan 039 * @see PollsVote 040 * @see com.liferay.portlet.polls.model.impl.PollsVoteImpl 041 * @see com.liferay.portlet.polls.model.impl.PollsVoteModelImpl 042 * @generated 043 */ 044 public interface PollsVoteModel extends BaseModel<PollsVote> { 045 /** 046 * Gets the primary key of this polls vote. 047 * 048 * @return the primary key of this polls vote 049 */ 050 public long getPrimaryKey(); 051 052 /** 053 * Sets the primary key of this polls vote 054 * 055 * @param pk the primary key of this polls vote 056 */ 057 public void setPrimaryKey(long pk); 058 059 /** 060 * Gets the vote id of this polls vote. 061 * 062 * @return the vote id of this polls vote 063 */ 064 public long getVoteId(); 065 066 /** 067 * Sets the vote id of this polls vote. 068 * 069 * @param voteId the vote id of this polls vote 070 */ 071 public void setVoteId(long voteId); 072 073 /** 074 * Gets the user id of this polls vote. 075 * 076 * @return the user id of this polls vote 077 */ 078 public long getUserId(); 079 080 /** 081 * Sets the user id of this polls vote. 082 * 083 * @param userId the user id of this polls vote 084 */ 085 public void setUserId(long userId); 086 087 /** 088 * Gets the user uuid of this polls vote. 089 * 090 * @return the user uuid of this polls vote 091 * @throws SystemException if a system exception occurred 092 */ 093 public String getUserUuid() throws SystemException; 094 095 /** 096 * Sets the user uuid of this polls vote. 097 * 098 * @param userUuid the user uuid of this polls vote 099 */ 100 public void setUserUuid(String userUuid); 101 102 /** 103 * Gets the question id of this polls vote. 104 * 105 * @return the question id of this polls vote 106 */ 107 public long getQuestionId(); 108 109 /** 110 * Sets the question id of this polls vote. 111 * 112 * @param questionId the question id of this polls vote 113 */ 114 public void setQuestionId(long questionId); 115 116 /** 117 * Gets the choice id of this polls vote. 118 * 119 * @return the choice id of this polls vote 120 */ 121 public long getChoiceId(); 122 123 /** 124 * Sets the choice id of this polls vote. 125 * 126 * @param choiceId the choice id of this polls vote 127 */ 128 public void setChoiceId(long choiceId); 129 130 /** 131 * Gets the vote date of this polls vote. 132 * 133 * @return the vote date of this polls vote 134 */ 135 public Date getVoteDate(); 136 137 /** 138 * Sets the vote date of this polls vote. 139 * 140 * @param voteDate the vote date of this polls vote 141 */ 142 public void setVoteDate(Date voteDate); 143 144 /** 145 * Gets a copy of this polls vote as an escaped model instance by wrapping it with an {@link com.liferay.portal.kernel.bean.AutoEscapeBeanHandler}. 146 * 147 * @return the escaped model instance 148 * @see com.liferay.portal.kernel.bean.AutoEscapeBeanHandler 149 */ 150 public PollsVote toEscapedModel(); 151 152 public boolean isNew(); 153 154 public void setNew(boolean n); 155 156 public boolean isCachedModel(); 157 158 public void setCachedModel(boolean cachedModel); 159 160 public boolean isEscapedModel(); 161 162 public void setEscapedModel(boolean escapedModel); 163 164 public Serializable getPrimaryKeyObj(); 165 166 public ExpandoBridge getExpandoBridge(); 167 168 public void setExpandoBridgeAttributes(ServiceContext serviceContext); 169 170 public Object clone(); 171 172 public int compareTo(PollsVote pollsVote); 173 174 public int hashCode(); 175 176 public String toString(); 177 178 public String toXmlString(); 179 }