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.service.persistence;
016    
017    import com.liferay.portal.service.persistence.BasePersistence;
018    
019    import com.liferay.portlet.polls.model.PollsVote;
020    
021    /**
022     * @author    Brian Wing Shun Chan
023     * @see       PollsVotePersistenceImpl
024     * @see       PollsVoteUtil
025     * @generated
026     */
027    public interface PollsVotePersistence extends BasePersistence<PollsVote> {
028            public void cacheResult(com.liferay.portlet.polls.model.PollsVote pollsVote);
029    
030            public void cacheResult(
031                    java.util.List<com.liferay.portlet.polls.model.PollsVote> pollsVotes);
032    
033            public com.liferay.portlet.polls.model.PollsVote create(long voteId);
034    
035            public com.liferay.portlet.polls.model.PollsVote remove(long voteId)
036                    throws com.liferay.portal.kernel.exception.SystemException,
037                            com.liferay.portlet.polls.NoSuchVoteException;
038    
039            public com.liferay.portlet.polls.model.PollsVote updateImpl(
040                    com.liferay.portlet.polls.model.PollsVote pollsVote, boolean merge)
041                    throws com.liferay.portal.kernel.exception.SystemException;
042    
043            public com.liferay.portlet.polls.model.PollsVote findByPrimaryKey(
044                    long voteId)
045                    throws com.liferay.portal.kernel.exception.SystemException,
046                            com.liferay.portlet.polls.NoSuchVoteException;
047    
048            public com.liferay.portlet.polls.model.PollsVote fetchByPrimaryKey(
049                    long voteId) throws com.liferay.portal.kernel.exception.SystemException;
050    
051            public java.util.List<com.liferay.portlet.polls.model.PollsVote> findByQuestionId(
052                    long questionId)
053                    throws com.liferay.portal.kernel.exception.SystemException;
054    
055            public java.util.List<com.liferay.portlet.polls.model.PollsVote> findByQuestionId(
056                    long questionId, int start, int end)
057                    throws com.liferay.portal.kernel.exception.SystemException;
058    
059            public java.util.List<com.liferay.portlet.polls.model.PollsVote> findByQuestionId(
060                    long questionId, int start, int end,
061                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
062                    throws com.liferay.portal.kernel.exception.SystemException;
063    
064            public com.liferay.portlet.polls.model.PollsVote findByQuestionId_First(
065                    long questionId,
066                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
067                    throws com.liferay.portal.kernel.exception.SystemException,
068                            com.liferay.portlet.polls.NoSuchVoteException;
069    
070            public com.liferay.portlet.polls.model.PollsVote findByQuestionId_Last(
071                    long questionId,
072                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
073                    throws com.liferay.portal.kernel.exception.SystemException,
074                            com.liferay.portlet.polls.NoSuchVoteException;
075    
076            public com.liferay.portlet.polls.model.PollsVote[] findByQuestionId_PrevAndNext(
077                    long voteId, long questionId,
078                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
079                    throws com.liferay.portal.kernel.exception.SystemException,
080                            com.liferay.portlet.polls.NoSuchVoteException;
081    
082            public java.util.List<com.liferay.portlet.polls.model.PollsVote> findByChoiceId(
083                    long choiceId)
084                    throws com.liferay.portal.kernel.exception.SystemException;
085    
086            public java.util.List<com.liferay.portlet.polls.model.PollsVote> findByChoiceId(
087                    long choiceId, int start, int end)
088                    throws com.liferay.portal.kernel.exception.SystemException;
089    
090            public java.util.List<com.liferay.portlet.polls.model.PollsVote> findByChoiceId(
091                    long choiceId, int start, int end,
092                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
093                    throws com.liferay.portal.kernel.exception.SystemException;
094    
095            public com.liferay.portlet.polls.model.PollsVote findByChoiceId_First(
096                    long choiceId,
097                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
098                    throws com.liferay.portal.kernel.exception.SystemException,
099                            com.liferay.portlet.polls.NoSuchVoteException;
100    
101            public com.liferay.portlet.polls.model.PollsVote findByChoiceId_Last(
102                    long choiceId,
103                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
104                    throws com.liferay.portal.kernel.exception.SystemException,
105                            com.liferay.portlet.polls.NoSuchVoteException;
106    
107            public com.liferay.portlet.polls.model.PollsVote[] findByChoiceId_PrevAndNext(
108                    long voteId, long choiceId,
109                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
110                    throws com.liferay.portal.kernel.exception.SystemException,
111                            com.liferay.portlet.polls.NoSuchVoteException;
112    
113            public com.liferay.portlet.polls.model.PollsVote findByQ_U(
114                    long questionId, long userId)
115                    throws com.liferay.portal.kernel.exception.SystemException,
116                            com.liferay.portlet.polls.NoSuchVoteException;
117    
118            public com.liferay.portlet.polls.model.PollsVote fetchByQ_U(
119                    long questionId, long userId)
120                    throws com.liferay.portal.kernel.exception.SystemException;
121    
122            public com.liferay.portlet.polls.model.PollsVote fetchByQ_U(
123                    long questionId, long userId, boolean retrieveFromCache)
124                    throws com.liferay.portal.kernel.exception.SystemException;
125    
126            public java.util.List<com.liferay.portlet.polls.model.PollsVote> findAll()
127                    throws com.liferay.portal.kernel.exception.SystemException;
128    
129            public java.util.List<com.liferay.portlet.polls.model.PollsVote> findAll(
130                    int start, int end)
131                    throws com.liferay.portal.kernel.exception.SystemException;
132    
133            public java.util.List<com.liferay.portlet.polls.model.PollsVote> findAll(
134                    int start, int end,
135                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
136                    throws com.liferay.portal.kernel.exception.SystemException;
137    
138            public void removeByQuestionId(long questionId)
139                    throws com.liferay.portal.kernel.exception.SystemException;
140    
141            public void removeByChoiceId(long choiceId)
142                    throws com.liferay.portal.kernel.exception.SystemException;
143    
144            public void removeByQ_U(long questionId, long userId)
145                    throws com.liferay.portal.kernel.exception.SystemException,
146                            com.liferay.portlet.polls.NoSuchVoteException;
147    
148            public void removeAll()
149                    throws com.liferay.portal.kernel.exception.SystemException;
150    
151            public int countByQuestionId(long questionId)
152                    throws com.liferay.portal.kernel.exception.SystemException;
153    
154            public int countByChoiceId(long choiceId)
155                    throws com.liferay.portal.kernel.exception.SystemException;
156    
157            public int countByQ_U(long questionId, long userId)
158                    throws com.liferay.portal.kernel.exception.SystemException;
159    
160            public int countAll()
161                    throws com.liferay.portal.kernel.exception.SystemException;
162    }