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