1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
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.kernel.exception.SystemException,
44              com.liferay.portlet.polls.NoSuchVoteException;
45  
46      public com.liferay.portlet.polls.model.PollsVote updateImpl(
47          com.liferay.portlet.polls.model.PollsVote pollsVote, boolean merge)
48          throws com.liferay.portal.kernel.exception.SystemException;
49  
50      public com.liferay.portlet.polls.model.PollsVote findByPrimaryKey(
51          long voteId)
52          throws com.liferay.portal.kernel.exception.SystemException,
53              com.liferay.portlet.polls.NoSuchVoteException;
54  
55      public com.liferay.portlet.polls.model.PollsVote fetchByPrimaryKey(
56          long voteId) throws com.liferay.portal.kernel.exception.SystemException;
57  
58      public java.util.List<com.liferay.portlet.polls.model.PollsVote> findByQuestionId(
59          long questionId)
60          throws com.liferay.portal.kernel.exception.SystemException;
61  
62      public java.util.List<com.liferay.portlet.polls.model.PollsVote> findByQuestionId(
63          long questionId, int start, int end)
64          throws com.liferay.portal.kernel.exception.SystemException;
65  
66      public java.util.List<com.liferay.portlet.polls.model.PollsVote> findByQuestionId(
67          long questionId, int start, int end,
68          com.liferay.portal.kernel.util.OrderByComparator obc)
69          throws com.liferay.portal.kernel.exception.SystemException;
70  
71      public com.liferay.portlet.polls.model.PollsVote findByQuestionId_First(
72          long questionId, com.liferay.portal.kernel.util.OrderByComparator obc)
73          throws com.liferay.portal.kernel.exception.SystemException,
74              com.liferay.portlet.polls.NoSuchVoteException;
75  
76      public com.liferay.portlet.polls.model.PollsVote findByQuestionId_Last(
77          long questionId, com.liferay.portal.kernel.util.OrderByComparator obc)
78          throws com.liferay.portal.kernel.exception.SystemException,
79              com.liferay.portlet.polls.NoSuchVoteException;
80  
81      public com.liferay.portlet.polls.model.PollsVote[] findByQuestionId_PrevAndNext(
82          long voteId, long questionId,
83          com.liferay.portal.kernel.util.OrderByComparator obc)
84          throws com.liferay.portal.kernel.exception.SystemException,
85              com.liferay.portlet.polls.NoSuchVoteException;
86  
87      public java.util.List<com.liferay.portlet.polls.model.PollsVote> findByChoiceId(
88          long choiceId)
89          throws com.liferay.portal.kernel.exception.SystemException;
90  
91      public java.util.List<com.liferay.portlet.polls.model.PollsVote> findByChoiceId(
92          long choiceId, int start, int end)
93          throws com.liferay.portal.kernel.exception.SystemException;
94  
95      public java.util.List<com.liferay.portlet.polls.model.PollsVote> findByChoiceId(
96          long choiceId, int start, int end,
97          com.liferay.portal.kernel.util.OrderByComparator obc)
98          throws com.liferay.portal.kernel.exception.SystemException;
99  
100     public com.liferay.portlet.polls.model.PollsVote findByChoiceId_First(
101         long choiceId, com.liferay.portal.kernel.util.OrderByComparator obc)
102         throws com.liferay.portal.kernel.exception.SystemException,
103             com.liferay.portlet.polls.NoSuchVoteException;
104 
105     public com.liferay.portlet.polls.model.PollsVote findByChoiceId_Last(
106         long choiceId, com.liferay.portal.kernel.util.OrderByComparator obc)
107         throws com.liferay.portal.kernel.exception.SystemException,
108             com.liferay.portlet.polls.NoSuchVoteException;
109 
110     public com.liferay.portlet.polls.model.PollsVote[] findByChoiceId_PrevAndNext(
111         long voteId, long choiceId,
112         com.liferay.portal.kernel.util.OrderByComparator obc)
113         throws com.liferay.portal.kernel.exception.SystemException,
114             com.liferay.portlet.polls.NoSuchVoteException;
115 
116     public com.liferay.portlet.polls.model.PollsVote findByQ_U(
117         long questionId, long userId)
118         throws com.liferay.portal.kernel.exception.SystemException,
119             com.liferay.portlet.polls.NoSuchVoteException;
120 
121     public com.liferay.portlet.polls.model.PollsVote fetchByQ_U(
122         long questionId, long userId)
123         throws com.liferay.portal.kernel.exception.SystemException;
124 
125     public com.liferay.portlet.polls.model.PollsVote fetchByQ_U(
126         long questionId, long userId, boolean retrieveFromCache)
127         throws com.liferay.portal.kernel.exception.SystemException;
128 
129     public java.util.List<com.liferay.portlet.polls.model.PollsVote> findAll()
130         throws com.liferay.portal.kernel.exception.SystemException;
131 
132     public java.util.List<com.liferay.portlet.polls.model.PollsVote> findAll(
133         int start, int end)
134         throws com.liferay.portal.kernel.exception.SystemException;
135 
136     public java.util.List<com.liferay.portlet.polls.model.PollsVote> findAll(
137         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
138         throws com.liferay.portal.kernel.exception.SystemException;
139 
140     public void removeByQuestionId(long questionId)
141         throws com.liferay.portal.kernel.exception.SystemException;
142 
143     public void removeByChoiceId(long choiceId)
144         throws com.liferay.portal.kernel.exception.SystemException;
145 
146     public void removeByQ_U(long questionId, long userId)
147         throws com.liferay.portal.kernel.exception.SystemException,
148             com.liferay.portlet.polls.NoSuchVoteException;
149 
150     public void removeAll()
151         throws com.liferay.portal.kernel.exception.SystemException;
152 
153     public int countByQuestionId(long questionId)
154         throws com.liferay.portal.kernel.exception.SystemException;
155 
156     public int countByChoiceId(long choiceId)
157         throws com.liferay.portal.kernel.exception.SystemException;
158 
159     public int countByQ_U(long questionId, long userId)
160         throws com.liferay.portal.kernel.exception.SystemException;
161 
162     public int countAll()
163         throws com.liferay.portal.kernel.exception.SystemException;
164 }