1
19
20 package com.liferay.portlet.polls.service.persistence;
21
22
28 public class PollsVoteUtil {
29 public static void cacheResult(
30 com.liferay.portlet.polls.model.PollsVote pollsVote) {
31 getPersistence().cacheResult(pollsVote);
32 }
33
34 public static void cacheResult(
35 java.util.List<com.liferay.portlet.polls.model.PollsVote> pollsVotes) {
36 getPersistence().cacheResult(pollsVotes);
37 }
38
39 public static void clearCache() {
40 getPersistence().clearCache();
41 }
42
43 public static com.liferay.portlet.polls.model.PollsVote create(long voteId) {
44 return getPersistence().create(voteId);
45 }
46
47 public static com.liferay.portlet.polls.model.PollsVote remove(long voteId)
48 throws com.liferay.portal.SystemException,
49 com.liferay.portlet.polls.NoSuchVoteException {
50 return getPersistence().remove(voteId);
51 }
52
53 public static com.liferay.portlet.polls.model.PollsVote remove(
54 com.liferay.portlet.polls.model.PollsVote pollsVote)
55 throws com.liferay.portal.SystemException {
56 return getPersistence().remove(pollsVote);
57 }
58
59
62 public static com.liferay.portlet.polls.model.PollsVote update(
63 com.liferay.portlet.polls.model.PollsVote pollsVote)
64 throws com.liferay.portal.SystemException {
65 return getPersistence().update(pollsVote);
66 }
67
68
81 public static com.liferay.portlet.polls.model.PollsVote update(
82 com.liferay.portlet.polls.model.PollsVote pollsVote, boolean merge)
83 throws com.liferay.portal.SystemException {
84 return getPersistence().update(pollsVote, merge);
85 }
86
87 public static com.liferay.portlet.polls.model.PollsVote updateImpl(
88 com.liferay.portlet.polls.model.PollsVote pollsVote, boolean merge)
89 throws com.liferay.portal.SystemException {
90 return getPersistence().updateImpl(pollsVote, merge);
91 }
92
93 public static com.liferay.portlet.polls.model.PollsVote findByPrimaryKey(
94 long voteId)
95 throws com.liferay.portal.SystemException,
96 com.liferay.portlet.polls.NoSuchVoteException {
97 return getPersistence().findByPrimaryKey(voteId);
98 }
99
100 public static com.liferay.portlet.polls.model.PollsVote fetchByPrimaryKey(
101 long voteId) throws com.liferay.portal.SystemException {
102 return getPersistence().fetchByPrimaryKey(voteId);
103 }
104
105 public static java.util.List<com.liferay.portlet.polls.model.PollsVote> findByQuestionId(
106 long questionId) throws com.liferay.portal.SystemException {
107 return getPersistence().findByQuestionId(questionId);
108 }
109
110 public static java.util.List<com.liferay.portlet.polls.model.PollsVote> findByQuestionId(
111 long questionId, int start, int end)
112 throws com.liferay.portal.SystemException {
113 return getPersistence().findByQuestionId(questionId, start, end);
114 }
115
116 public static java.util.List<com.liferay.portlet.polls.model.PollsVote> findByQuestionId(
117 long questionId, int start, int end,
118 com.liferay.portal.kernel.util.OrderByComparator obc)
119 throws com.liferay.portal.SystemException {
120 return getPersistence().findByQuestionId(questionId, start, end, obc);
121 }
122
123 public static com.liferay.portlet.polls.model.PollsVote findByQuestionId_First(
124 long questionId, com.liferay.portal.kernel.util.OrderByComparator obc)
125 throws com.liferay.portal.SystemException,
126 com.liferay.portlet.polls.NoSuchVoteException {
127 return getPersistence().findByQuestionId_First(questionId, obc);
128 }
129
130 public static com.liferay.portlet.polls.model.PollsVote findByQuestionId_Last(
131 long questionId, com.liferay.portal.kernel.util.OrderByComparator obc)
132 throws com.liferay.portal.SystemException,
133 com.liferay.portlet.polls.NoSuchVoteException {
134 return getPersistence().findByQuestionId_Last(questionId, obc);
135 }
136
137 public static com.liferay.portlet.polls.model.PollsVote[] findByQuestionId_PrevAndNext(
138 long voteId, long questionId,
139 com.liferay.portal.kernel.util.OrderByComparator obc)
140 throws com.liferay.portal.SystemException,
141 com.liferay.portlet.polls.NoSuchVoteException {
142 return getPersistence()
143 .findByQuestionId_PrevAndNext(voteId, questionId, obc);
144 }
145
146 public static java.util.List<com.liferay.portlet.polls.model.PollsVote> findByChoiceId(
147 long choiceId) throws com.liferay.portal.SystemException {
148 return getPersistence().findByChoiceId(choiceId);
149 }
150
151 public static java.util.List<com.liferay.portlet.polls.model.PollsVote> findByChoiceId(
152 long choiceId, int start, int end)
153 throws com.liferay.portal.SystemException {
154 return getPersistence().findByChoiceId(choiceId, start, end);
155 }
156
157 public static java.util.List<com.liferay.portlet.polls.model.PollsVote> findByChoiceId(
158 long choiceId, int start, int end,
159 com.liferay.portal.kernel.util.OrderByComparator obc)
160 throws com.liferay.portal.SystemException {
161 return getPersistence().findByChoiceId(choiceId, start, end, obc);
162 }
163
164 public static com.liferay.portlet.polls.model.PollsVote findByChoiceId_First(
165 long choiceId, com.liferay.portal.kernel.util.OrderByComparator obc)
166 throws com.liferay.portal.SystemException,
167 com.liferay.portlet.polls.NoSuchVoteException {
168 return getPersistence().findByChoiceId_First(choiceId, obc);
169 }
170
171 public static com.liferay.portlet.polls.model.PollsVote findByChoiceId_Last(
172 long choiceId, com.liferay.portal.kernel.util.OrderByComparator obc)
173 throws com.liferay.portal.SystemException,
174 com.liferay.portlet.polls.NoSuchVoteException {
175 return getPersistence().findByChoiceId_Last(choiceId, obc);
176 }
177
178 public static com.liferay.portlet.polls.model.PollsVote[] findByChoiceId_PrevAndNext(
179 long voteId, long choiceId,
180 com.liferay.portal.kernel.util.OrderByComparator obc)
181 throws com.liferay.portal.SystemException,
182 com.liferay.portlet.polls.NoSuchVoteException {
183 return getPersistence().findByChoiceId_PrevAndNext(voteId, choiceId, obc);
184 }
185
186 public static com.liferay.portlet.polls.model.PollsVote findByQ_U(
187 long questionId, long userId)
188 throws com.liferay.portal.SystemException,
189 com.liferay.portlet.polls.NoSuchVoteException {
190 return getPersistence().findByQ_U(questionId, userId);
191 }
192
193 public static com.liferay.portlet.polls.model.PollsVote fetchByQ_U(
194 long questionId, long userId) throws com.liferay.portal.SystemException {
195 return getPersistence().fetchByQ_U(questionId, userId);
196 }
197
198 public static com.liferay.portlet.polls.model.PollsVote fetchByQ_U(
199 long questionId, long userId, boolean retrieveFromCache)
200 throws com.liferay.portal.SystemException {
201 return getPersistence().fetchByQ_U(questionId, userId, retrieveFromCache);
202 }
203
204 public static java.util.List<Object> findWithDynamicQuery(
205 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
206 throws com.liferay.portal.SystemException {
207 return getPersistence().findWithDynamicQuery(dynamicQuery);
208 }
209
210 public static java.util.List<Object> findWithDynamicQuery(
211 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
212 int end) throws com.liferay.portal.SystemException {
213 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
214 }
215
216 public static java.util.List<com.liferay.portlet.polls.model.PollsVote> findAll()
217 throws com.liferay.portal.SystemException {
218 return getPersistence().findAll();
219 }
220
221 public static java.util.List<com.liferay.portlet.polls.model.PollsVote> findAll(
222 int start, int end) throws com.liferay.portal.SystemException {
223 return getPersistence().findAll(start, end);
224 }
225
226 public static java.util.List<com.liferay.portlet.polls.model.PollsVote> findAll(
227 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
228 throws com.liferay.portal.SystemException {
229 return getPersistence().findAll(start, end, obc);
230 }
231
232 public static void removeByQuestionId(long questionId)
233 throws com.liferay.portal.SystemException {
234 getPersistence().removeByQuestionId(questionId);
235 }
236
237 public static void removeByChoiceId(long choiceId)
238 throws com.liferay.portal.SystemException {
239 getPersistence().removeByChoiceId(choiceId);
240 }
241
242 public static void removeByQ_U(long questionId, long userId)
243 throws com.liferay.portal.SystemException,
244 com.liferay.portlet.polls.NoSuchVoteException {
245 getPersistence().removeByQ_U(questionId, userId);
246 }
247
248 public static void removeAll() throws com.liferay.portal.SystemException {
249 getPersistence().removeAll();
250 }
251
252 public static int countByQuestionId(long questionId)
253 throws com.liferay.portal.SystemException {
254 return getPersistence().countByQuestionId(questionId);
255 }
256
257 public static int countByChoiceId(long choiceId)
258 throws com.liferay.portal.SystemException {
259 return getPersistence().countByChoiceId(choiceId);
260 }
261
262 public static int countByQ_U(long questionId, long userId)
263 throws com.liferay.portal.SystemException {
264 return getPersistence().countByQ_U(questionId, userId);
265 }
266
267 public static int countAll() throws com.liferay.portal.SystemException {
268 return getPersistence().countAll();
269 }
270
271 public static PollsVotePersistence getPersistence() {
272 return _persistence;
273 }
274
275 public void setPersistence(PollsVotePersistence persistence) {
276 _persistence = persistence;
277 }
278
279 private static PollsVotePersistence _persistence;
280 }