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