001
014
015 package com.liferay.portlet.polls.service.persistence;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019 import com.liferay.portal.kernel.exception.SystemException;
020 import com.liferay.portal.kernel.util.OrderByComparator;
021 import com.liferay.portal.service.ServiceContext;
022
023 import com.liferay.portlet.polls.model.PollsQuestion;
024
025 import java.util.List;
026
027
033 public class PollsQuestionUtil {
034
037 public static void clearCache() {
038 getPersistence().clearCache();
039 }
040
041
044 public static void clearCache(PollsQuestion pollsQuestion) {
045 getPersistence().clearCache(pollsQuestion);
046 }
047
048
051 public long countWithDynamicQuery(DynamicQuery dynamicQuery)
052 throws SystemException {
053 return getPersistence().countWithDynamicQuery(dynamicQuery);
054 }
055
056
059 public static List<PollsQuestion> findWithDynamicQuery(
060 DynamicQuery dynamicQuery) throws SystemException {
061 return getPersistence().findWithDynamicQuery(dynamicQuery);
062 }
063
064
067 public static List<PollsQuestion> findWithDynamicQuery(
068 DynamicQuery dynamicQuery, int start, int end)
069 throws SystemException {
070 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
071 }
072
073
076 public static List<PollsQuestion> findWithDynamicQuery(
077 DynamicQuery dynamicQuery, int start, int end,
078 OrderByComparator orderByComparator) throws SystemException {
079 return getPersistence()
080 .findWithDynamicQuery(dynamicQuery, start, end,
081 orderByComparator);
082 }
083
084
087 public static PollsQuestion remove(PollsQuestion pollsQuestion)
088 throws SystemException {
089 return getPersistence().remove(pollsQuestion);
090 }
091
092
095 public static PollsQuestion update(PollsQuestion pollsQuestion,
096 boolean merge) throws SystemException {
097 return getPersistence().update(pollsQuestion, merge);
098 }
099
100
103 public static PollsQuestion update(PollsQuestion pollsQuestion,
104 boolean merge, ServiceContext serviceContext) throws SystemException {
105 return getPersistence().update(pollsQuestion, merge, serviceContext);
106 }
107
108 public static void cacheResult(
109 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion) {
110 getPersistence().cacheResult(pollsQuestion);
111 }
112
113 public static void cacheResult(
114 java.util.List<com.liferay.portlet.polls.model.PollsQuestion> pollsQuestions) {
115 getPersistence().cacheResult(pollsQuestions);
116 }
117
118 public static com.liferay.portlet.polls.model.PollsQuestion create(
119 long questionId) {
120 return getPersistence().create(questionId);
121 }
122
123 public static com.liferay.portlet.polls.model.PollsQuestion remove(
124 long questionId)
125 throws com.liferay.portal.kernel.exception.SystemException,
126 com.liferay.portlet.polls.NoSuchQuestionException {
127 return getPersistence().remove(questionId);
128 }
129
130 public static com.liferay.portlet.polls.model.PollsQuestion updateImpl(
131 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion,
132 boolean merge)
133 throws com.liferay.portal.kernel.exception.SystemException {
134 return getPersistence().updateImpl(pollsQuestion, merge);
135 }
136
137 public static com.liferay.portlet.polls.model.PollsQuestion findByPrimaryKey(
138 long questionId)
139 throws com.liferay.portal.kernel.exception.SystemException,
140 com.liferay.portlet.polls.NoSuchQuestionException {
141 return getPersistence().findByPrimaryKey(questionId);
142 }
143
144 public static com.liferay.portlet.polls.model.PollsQuestion fetchByPrimaryKey(
145 long questionId)
146 throws com.liferay.portal.kernel.exception.SystemException {
147 return getPersistence().fetchByPrimaryKey(questionId);
148 }
149
150 public static java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByUuid(
151 java.lang.String uuid)
152 throws com.liferay.portal.kernel.exception.SystemException {
153 return getPersistence().findByUuid(uuid);
154 }
155
156 public static java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByUuid(
157 java.lang.String uuid, int start, int end)
158 throws com.liferay.portal.kernel.exception.SystemException {
159 return getPersistence().findByUuid(uuid, start, end);
160 }
161
162 public static java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByUuid(
163 java.lang.String uuid, int start, int end,
164 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
165 throws com.liferay.portal.kernel.exception.SystemException {
166 return getPersistence().findByUuid(uuid, start, end, orderByComparator);
167 }
168
169 public static com.liferay.portlet.polls.model.PollsQuestion findByUuid_First(
170 java.lang.String uuid,
171 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
172 throws com.liferay.portal.kernel.exception.SystemException,
173 com.liferay.portlet.polls.NoSuchQuestionException {
174 return getPersistence().findByUuid_First(uuid, orderByComparator);
175 }
176
177 public static com.liferay.portlet.polls.model.PollsQuestion findByUuid_Last(
178 java.lang.String uuid,
179 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
180 throws com.liferay.portal.kernel.exception.SystemException,
181 com.liferay.portlet.polls.NoSuchQuestionException {
182 return getPersistence().findByUuid_Last(uuid, orderByComparator);
183 }
184
185 public static com.liferay.portlet.polls.model.PollsQuestion[] findByUuid_PrevAndNext(
186 long questionId, java.lang.String uuid,
187 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
188 throws com.liferay.portal.kernel.exception.SystemException,
189 com.liferay.portlet.polls.NoSuchQuestionException {
190 return getPersistence()
191 .findByUuid_PrevAndNext(questionId, uuid, orderByComparator);
192 }
193
194 public static com.liferay.portlet.polls.model.PollsQuestion findByUUID_G(
195 java.lang.String uuid, long groupId)
196 throws com.liferay.portal.kernel.exception.SystemException,
197 com.liferay.portlet.polls.NoSuchQuestionException {
198 return getPersistence().findByUUID_G(uuid, groupId);
199 }
200
201 public static com.liferay.portlet.polls.model.PollsQuestion fetchByUUID_G(
202 java.lang.String uuid, long groupId)
203 throws com.liferay.portal.kernel.exception.SystemException {
204 return getPersistence().fetchByUUID_G(uuid, groupId);
205 }
206
207 public static com.liferay.portlet.polls.model.PollsQuestion fetchByUUID_G(
208 java.lang.String uuid, long groupId, boolean retrieveFromCache)
209 throws com.liferay.portal.kernel.exception.SystemException {
210 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
211 }
212
213 public static java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByGroupId(
214 long groupId)
215 throws com.liferay.portal.kernel.exception.SystemException {
216 return getPersistence().findByGroupId(groupId);
217 }
218
219 public static java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByGroupId(
220 long groupId, int start, int end)
221 throws com.liferay.portal.kernel.exception.SystemException {
222 return getPersistence().findByGroupId(groupId, start, end);
223 }
224
225 public static java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByGroupId(
226 long groupId, int start, int end,
227 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
228 throws com.liferay.portal.kernel.exception.SystemException {
229 return getPersistence()
230 .findByGroupId(groupId, start, end, orderByComparator);
231 }
232
233 public static com.liferay.portlet.polls.model.PollsQuestion findByGroupId_First(
234 long groupId,
235 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
236 throws com.liferay.portal.kernel.exception.SystemException,
237 com.liferay.portlet.polls.NoSuchQuestionException {
238 return getPersistence().findByGroupId_First(groupId, orderByComparator);
239 }
240
241 public static com.liferay.portlet.polls.model.PollsQuestion findByGroupId_Last(
242 long groupId,
243 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
244 throws com.liferay.portal.kernel.exception.SystemException,
245 com.liferay.portlet.polls.NoSuchQuestionException {
246 return getPersistence().findByGroupId_Last(groupId, orderByComparator);
247 }
248
249 public static com.liferay.portlet.polls.model.PollsQuestion[] findByGroupId_PrevAndNext(
250 long questionId, long groupId,
251 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
252 throws com.liferay.portal.kernel.exception.SystemException,
253 com.liferay.portlet.polls.NoSuchQuestionException {
254 return getPersistence()
255 .findByGroupId_PrevAndNext(questionId, groupId,
256 orderByComparator);
257 }
258
259 public static java.util.List<com.liferay.portlet.polls.model.PollsQuestion> filterFindByGroupId(
260 long groupId)
261 throws com.liferay.portal.kernel.exception.SystemException {
262 return getPersistence().filterFindByGroupId(groupId);
263 }
264
265 public static java.util.List<com.liferay.portlet.polls.model.PollsQuestion> filterFindByGroupId(
266 long groupId, int start, int end)
267 throws com.liferay.portal.kernel.exception.SystemException {
268 return getPersistence().filterFindByGroupId(groupId, start, end);
269 }
270
271 public static java.util.List<com.liferay.portlet.polls.model.PollsQuestion> filterFindByGroupId(
272 long groupId, int start, int end,
273 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
274 throws com.liferay.portal.kernel.exception.SystemException {
275 return getPersistence()
276 .filterFindByGroupId(groupId, start, end, orderByComparator);
277 }
278
279 public static java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findAll()
280 throws com.liferay.portal.kernel.exception.SystemException {
281 return getPersistence().findAll();
282 }
283
284 public static java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findAll(
285 int start, int end)
286 throws com.liferay.portal.kernel.exception.SystemException {
287 return getPersistence().findAll(start, end);
288 }
289
290 public static java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findAll(
291 int start, int end,
292 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
293 throws com.liferay.portal.kernel.exception.SystemException {
294 return getPersistence().findAll(start, end, orderByComparator);
295 }
296
297 public static void removeByUuid(java.lang.String uuid)
298 throws com.liferay.portal.kernel.exception.SystemException {
299 getPersistence().removeByUuid(uuid);
300 }
301
302 public static void removeByUUID_G(java.lang.String uuid, long groupId)
303 throws com.liferay.portal.kernel.exception.SystemException,
304 com.liferay.portlet.polls.NoSuchQuestionException {
305 getPersistence().removeByUUID_G(uuid, groupId);
306 }
307
308 public static void removeByGroupId(long groupId)
309 throws com.liferay.portal.kernel.exception.SystemException {
310 getPersistence().removeByGroupId(groupId);
311 }
312
313 public static void removeAll()
314 throws com.liferay.portal.kernel.exception.SystemException {
315 getPersistence().removeAll();
316 }
317
318 public static int countByUuid(java.lang.String uuid)
319 throws com.liferay.portal.kernel.exception.SystemException {
320 return getPersistence().countByUuid(uuid);
321 }
322
323 public static int countByUUID_G(java.lang.String uuid, long groupId)
324 throws com.liferay.portal.kernel.exception.SystemException {
325 return getPersistence().countByUUID_G(uuid, groupId);
326 }
327
328 public static int countByGroupId(long groupId)
329 throws com.liferay.portal.kernel.exception.SystemException {
330 return getPersistence().countByGroupId(groupId);
331 }
332
333 public static int filterCountByGroupId(long groupId)
334 throws com.liferay.portal.kernel.exception.SystemException {
335 return getPersistence().filterCountByGroupId(groupId);
336 }
337
338 public static int countAll()
339 throws com.liferay.portal.kernel.exception.SystemException {
340 return getPersistence().countAll();
341 }
342
343 public static PollsQuestionPersistence getPersistence() {
344 if (_persistence == null) {
345 _persistence = (PollsQuestionPersistence)PortalBeanLocatorUtil.locate(PollsQuestionPersistence.class.getName());
346 }
347
348 return _persistence;
349 }
350
351 public void setPersistence(PollsQuestionPersistence persistence) {
352 _persistence = persistence;
353 }
354
355 private static PollsQuestionPersistence _persistence;
356 }