1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
13   */
14  
15  package com.liferay.portlet.polls.service.persistence;
16  
17  import com.liferay.portal.service.persistence.BasePersistence;
18  
19  import com.liferay.portlet.polls.model.PollsVote;
20  
21  /**
22   * <a href="PollsVotePersistence.java.html"><b><i>View Source</i></b></a>
23   *
24   * <p>
25   * ServiceBuilder generated this class. Modifications in this class will be
26   * overwritten the next time is generated.
27   * </p>
28   *
29   * @author    Brian Wing Shun Chan
30   * @see       PollsVotePersistenceImpl
31   * @see       PollsVoteUtil
32   * @generated
33   */
34  public interface PollsVotePersistence extends BasePersistence<PollsVote> {
35      public void cacheResult(com.liferay.portlet.polls.model.PollsVote pollsVote);
36  
37      public void cacheResult(
38          java.util.List<com.liferay.portlet.polls.model.PollsVote> pollsVotes);
39  
40      public com.liferay.portlet.polls.model.PollsVote create(long voteId);
41  
42      public com.liferay.portlet.polls.model.PollsVote remove(long voteId)
43          throws com.liferay.portal.SystemException,
44              com.liferay.portlet.polls.NoSuchVoteException;
45  
46      /**
47       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
48       */
49      public com.liferay.portlet.polls.model.PollsVote update(
50          com.liferay.portlet.polls.model.PollsVote pollsVote)
51          throws com.liferay.portal.SystemException;
52  
53      public com.liferay.portlet.polls.model.PollsVote updateImpl(
54          com.liferay.portlet.polls.model.PollsVote pollsVote, boolean merge)
55          throws com.liferay.portal.SystemException;
56  
57      public com.liferay.portlet.polls.model.PollsVote findByPrimaryKey(
58          long voteId)
59          throws com.liferay.portal.SystemException,
60              com.liferay.portlet.polls.NoSuchVoteException;
61  
62      public com.liferay.portlet.polls.model.PollsVote fetchByPrimaryKey(
63          long voteId) throws com.liferay.portal.SystemException;
64  
65      public java.util.List<com.liferay.portlet.polls.model.PollsVote> findByQuestionId(
66          long questionId) throws com.liferay.portal.SystemException;
67  
68      public java.util.List<com.liferay.portlet.polls.model.PollsVote> findByQuestionId(
69          long questionId, int start, int end)
70          throws com.liferay.portal.SystemException;
71  
72      public java.util.List<com.liferay.portlet.polls.model.PollsVote> findByQuestionId(
73          long questionId, int start, int end,
74          com.liferay.portal.kernel.util.OrderByComparator obc)
75          throws com.liferay.portal.SystemException;
76  
77      public com.liferay.portlet.polls.model.PollsVote findByQuestionId_First(
78          long questionId, com.liferay.portal.kernel.util.OrderByComparator obc)
79          throws com.liferay.portal.SystemException,
80              com.liferay.portlet.polls.NoSuchVoteException;
81  
82      public com.liferay.portlet.polls.model.PollsVote findByQuestionId_Last(
83          long questionId, com.liferay.portal.kernel.util.OrderByComparator obc)
84          throws com.liferay.portal.SystemException,
85              com.liferay.portlet.polls.NoSuchVoteException;
86  
87      public com.liferay.portlet.polls.model.PollsVote[] findByQuestionId_PrevAndNext(
88          long voteId, long questionId,
89          com.liferay.portal.kernel.util.OrderByComparator obc)
90          throws com.liferay.portal.SystemException,
91              com.liferay.portlet.polls.NoSuchVoteException;
92  
93      public java.util.List<com.liferay.portlet.polls.model.PollsVote> findByChoiceId(
94          long choiceId) throws com.liferay.portal.SystemException;
95  
96      public java.util.List<com.liferay.portlet.polls.model.PollsVote> findByChoiceId(
97          long choiceId, int start, int end)
98          throws com.liferay.portal.SystemException;
99  
100     public java.util.List<com.liferay.portlet.polls.model.PollsVote> findByChoiceId(
101         long choiceId, int start, int end,
102         com.liferay.portal.kernel.util.OrderByComparator obc)
103         throws com.liferay.portal.SystemException;
104 
105     public com.liferay.portlet.polls.model.PollsVote findByChoiceId_First(
106         long choiceId, com.liferay.portal.kernel.util.OrderByComparator obc)
107         throws com.liferay.portal.SystemException,
108             com.liferay.portlet.polls.NoSuchVoteException;
109 
110     public com.liferay.portlet.polls.model.PollsVote findByChoiceId_Last(
111         long choiceId, com.liferay.portal.kernel.util.OrderByComparator obc)
112         throws com.liferay.portal.SystemException,
113             com.liferay.portlet.polls.NoSuchVoteException;
114 
115     public com.liferay.portlet.polls.model.PollsVote[] findByChoiceId_PrevAndNext(
116         long voteId, long choiceId,
117         com.liferay.portal.kernel.util.OrderByComparator obc)
118         throws com.liferay.portal.SystemException,
119             com.liferay.portlet.polls.NoSuchVoteException;
120 
121     public com.liferay.portlet.polls.model.PollsVote findByQ_U(
122         long questionId, long userId)
123         throws com.liferay.portal.SystemException,
124             com.liferay.portlet.polls.NoSuchVoteException;
125 
126     public com.liferay.portlet.polls.model.PollsVote fetchByQ_U(
127         long questionId, long userId) throws com.liferay.portal.SystemException;
128 
129     public com.liferay.portlet.polls.model.PollsVote fetchByQ_U(
130         long questionId, long userId, boolean retrieveFromCache)
131         throws com.liferay.portal.SystemException;
132 
133     public java.util.List<com.liferay.portlet.polls.model.PollsVote> findAll()
134         throws com.liferay.portal.SystemException;
135 
136     public java.util.List<com.liferay.portlet.polls.model.PollsVote> findAll(
137         int start, int end) throws com.liferay.portal.SystemException;
138 
139     public java.util.List<com.liferay.portlet.polls.model.PollsVote> findAll(
140         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
141         throws com.liferay.portal.SystemException;
142 
143     public void removeByQuestionId(long questionId)
144         throws com.liferay.portal.SystemException;
145 
146     public void removeByChoiceId(long choiceId)
147         throws com.liferay.portal.SystemException;
148 
149     public void removeByQ_U(long questionId, long userId)
150         throws com.liferay.portal.SystemException,
151             com.liferay.portlet.polls.NoSuchVoteException;
152 
153     public void removeAll() throws com.liferay.portal.SystemException;
154 
155     public int countByQuestionId(long questionId)
156         throws com.liferay.portal.SystemException;
157 
158     public int countByChoiceId(long choiceId)
159         throws com.liferay.portal.SystemException;
160 
161     public int countByQ_U(long questionId, long userId)
162         throws com.liferay.portal.SystemException;
163 
164     public int countAll() throws com.liferay.portal.SystemException;
165 }