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