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     * <p>
029     * This interface is a model that represents the PollsVote table in the
030     * database.
031     * </p>
032     *
033     * @author    Brian Wing Shun Chan
034     * @see       PollsVote
035     * @see       com.liferay.portlet.polls.model.impl.PollsVoteImpl
036     * @see       com.liferay.portlet.polls.model.impl.PollsVoteModelImpl
037     * @generated
038     */
039    public interface PollsVoteModel extends BaseModel<PollsVote> {
040            public long getPrimaryKey();
041    
042            public void setPrimaryKey(long pk);
043    
044            public long getVoteId();
045    
046            public void setVoteId(long voteId);
047    
048            public long getUserId();
049    
050            public void setUserId(long userId);
051    
052            public String getUserUuid() throws SystemException;
053    
054            public void setUserUuid(String userUuid);
055    
056            public long getQuestionId();
057    
058            public void setQuestionId(long questionId);
059    
060            public long getChoiceId();
061    
062            public void setChoiceId(long choiceId);
063    
064            public Date getVoteDate();
065    
066            public void setVoteDate(Date voteDate);
067    
068            public PollsVote toEscapedModel();
069    
070            public boolean isNew();
071    
072            public void setNew(boolean n);
073    
074            public boolean isCachedModel();
075    
076            public void setCachedModel(boolean cachedModel);
077    
078            public boolean isEscapedModel();
079    
080            public void setEscapedModel(boolean escapedModel);
081    
082            public Serializable getPrimaryKeyObj();
083    
084            public ExpandoBridge getExpandoBridge();
085    
086            public void setExpandoBridgeAttributes(ServiceContext serviceContext);
087    
088            public Object clone();
089    
090            public int compareTo(PollsVote pollsVote);
091    
092            public int hashCode();
093    
094            public String toString();
095    
096            public String toXmlString();
097    }