001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
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.kernel.util.ReferenceRegistry;
022    import com.liferay.portal.service.ServiceContext;
023    
024    import com.liferay.portlet.polls.model.PollsVote;
025    
026    import java.util.List;
027    
028    /**
029     * The persistence utility for the polls vote service. This utility wraps {@link PollsVotePersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
030     *
031     * <p>
032     * Caching information and settings can be found in <code>portal.properties</code>
033     * </p>
034     *
035     * @author Brian Wing Shun Chan
036     * @see PollsVotePersistence
037     * @see PollsVotePersistenceImpl
038     * @generated
039     */
040    public class PollsVoteUtil {
041            /*
042             * NOTE FOR DEVELOPERS:
043             *
044             * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
045             */
046    
047            /**
048             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
049             */
050            public static void clearCache() {
051                    getPersistence().clearCache();
052            }
053    
054            /**
055             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
056             */
057            public static void clearCache(PollsVote pollsVote) {
058                    getPersistence().clearCache(pollsVote);
059            }
060    
061            /**
062             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
063             */
064            public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
065                    throws SystemException {
066                    return getPersistence().countWithDynamicQuery(dynamicQuery);
067            }
068    
069            /**
070             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
071             */
072            public static List<PollsVote> findWithDynamicQuery(
073                    DynamicQuery dynamicQuery) throws SystemException {
074                    return getPersistence().findWithDynamicQuery(dynamicQuery);
075            }
076    
077            /**
078             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
079             */
080            public static List<PollsVote> findWithDynamicQuery(
081                    DynamicQuery dynamicQuery, int start, int end)
082                    throws SystemException {
083                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
084            }
085    
086            /**
087             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
088             */
089            public static List<PollsVote> findWithDynamicQuery(
090                    DynamicQuery dynamicQuery, int start, int end,
091                    OrderByComparator orderByComparator) throws SystemException {
092                    return getPersistence()
093                                       .findWithDynamicQuery(dynamicQuery, start, end,
094                            orderByComparator);
095            }
096    
097            /**
098             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel)
099             */
100            public static PollsVote update(PollsVote pollsVote)
101                    throws SystemException {
102                    return getPersistence().update(pollsVote);
103            }
104    
105            /**
106             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext)
107             */
108            public static PollsVote update(PollsVote pollsVote,
109                    ServiceContext serviceContext) throws SystemException {
110                    return getPersistence().update(pollsVote, serviceContext);
111            }
112    
113            /**
114            * Returns all the polls votes where uuid = &#63;.
115            *
116            * @param uuid the uuid
117            * @return the matching polls votes
118            * @throws SystemException if a system exception occurred
119            */
120            public static java.util.List<com.liferay.portlet.polls.model.PollsVote> findByUuid(
121                    java.lang.String uuid)
122                    throws com.liferay.portal.kernel.exception.SystemException {
123                    return getPersistence().findByUuid(uuid);
124            }
125    
126            /**
127            * Returns a range of all the polls votes where uuid = &#63;.
128            *
129            * <p>
130            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.polls.model.impl.PollsVoteModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
131            * </p>
132            *
133            * @param uuid the uuid
134            * @param start the lower bound of the range of polls votes
135            * @param end the upper bound of the range of polls votes (not inclusive)
136            * @return the range of matching polls votes
137            * @throws SystemException if a system exception occurred
138            */
139            public static java.util.List<com.liferay.portlet.polls.model.PollsVote> findByUuid(
140                    java.lang.String uuid, int start, int end)
141                    throws com.liferay.portal.kernel.exception.SystemException {
142                    return getPersistence().findByUuid(uuid, start, end);
143            }
144    
145            /**
146            * Returns an ordered range of all the polls votes where uuid = &#63;.
147            *
148            * <p>
149            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.polls.model.impl.PollsVoteModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
150            * </p>
151            *
152            * @param uuid the uuid
153            * @param start the lower bound of the range of polls votes
154            * @param end the upper bound of the range of polls votes (not inclusive)
155            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
156            * @return the ordered range of matching polls votes
157            * @throws SystemException if a system exception occurred
158            */
159            public static java.util.List<com.liferay.portlet.polls.model.PollsVote> findByUuid(
160                    java.lang.String uuid, int start, int end,
161                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
162                    throws com.liferay.portal.kernel.exception.SystemException {
163                    return getPersistence().findByUuid(uuid, start, end, orderByComparator);
164            }
165    
166            /**
167            * Returns the first polls vote in the ordered set where uuid = &#63;.
168            *
169            * @param uuid the uuid
170            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
171            * @return the first matching polls vote
172            * @throws com.liferay.portlet.polls.NoSuchVoteException if a matching polls vote could not be found
173            * @throws SystemException if a system exception occurred
174            */
175            public static com.liferay.portlet.polls.model.PollsVote findByUuid_First(
176                    java.lang.String uuid,
177                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
178                    throws com.liferay.portal.kernel.exception.SystemException,
179                            com.liferay.portlet.polls.NoSuchVoteException {
180                    return getPersistence().findByUuid_First(uuid, orderByComparator);
181            }
182    
183            /**
184            * Returns the first polls vote in the ordered set where uuid = &#63;.
185            *
186            * @param uuid the uuid
187            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
188            * @return the first matching polls vote, or <code>null</code> if a matching polls vote could not be found
189            * @throws SystemException if a system exception occurred
190            */
191            public static com.liferay.portlet.polls.model.PollsVote fetchByUuid_First(
192                    java.lang.String uuid,
193                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
194                    throws com.liferay.portal.kernel.exception.SystemException {
195                    return getPersistence().fetchByUuid_First(uuid, orderByComparator);
196            }
197    
198            /**
199            * Returns the last polls vote in the ordered set where uuid = &#63;.
200            *
201            * @param uuid the uuid
202            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
203            * @return the last matching polls vote
204            * @throws com.liferay.portlet.polls.NoSuchVoteException if a matching polls vote could not be found
205            * @throws SystemException if a system exception occurred
206            */
207            public static com.liferay.portlet.polls.model.PollsVote findByUuid_Last(
208                    java.lang.String uuid,
209                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
210                    throws com.liferay.portal.kernel.exception.SystemException,
211                            com.liferay.portlet.polls.NoSuchVoteException {
212                    return getPersistence().findByUuid_Last(uuid, orderByComparator);
213            }
214    
215            /**
216            * Returns the last polls vote in the ordered set where uuid = &#63;.
217            *
218            * @param uuid the uuid
219            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
220            * @return the last matching polls vote, or <code>null</code> if a matching polls vote could not be found
221            * @throws SystemException if a system exception occurred
222            */
223            public static com.liferay.portlet.polls.model.PollsVote fetchByUuid_Last(
224                    java.lang.String uuid,
225                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
226                    throws com.liferay.portal.kernel.exception.SystemException {
227                    return getPersistence().fetchByUuid_Last(uuid, orderByComparator);
228            }
229    
230            /**
231            * Returns the polls votes before and after the current polls vote in the ordered set where uuid = &#63;.
232            *
233            * @param voteId the primary key of the current polls vote
234            * @param uuid the uuid
235            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
236            * @return the previous, current, and next polls vote
237            * @throws com.liferay.portlet.polls.NoSuchVoteException if a polls vote with the primary key could not be found
238            * @throws SystemException if a system exception occurred
239            */
240            public static com.liferay.portlet.polls.model.PollsVote[] findByUuid_PrevAndNext(
241                    long voteId, java.lang.String uuid,
242                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
243                    throws com.liferay.portal.kernel.exception.SystemException,
244                            com.liferay.portlet.polls.NoSuchVoteException {
245                    return getPersistence()
246                                       .findByUuid_PrevAndNext(voteId, uuid, orderByComparator);
247            }
248    
249            /**
250            * Removes all the polls votes where uuid = &#63; from the database.
251            *
252            * @param uuid the uuid
253            * @throws SystemException if a system exception occurred
254            */
255            public static void removeByUuid(java.lang.String uuid)
256                    throws com.liferay.portal.kernel.exception.SystemException {
257                    getPersistence().removeByUuid(uuid);
258            }
259    
260            /**
261            * Returns the number of polls votes where uuid = &#63;.
262            *
263            * @param uuid the uuid
264            * @return the number of matching polls votes
265            * @throws SystemException if a system exception occurred
266            */
267            public static int countByUuid(java.lang.String uuid)
268                    throws com.liferay.portal.kernel.exception.SystemException {
269                    return getPersistence().countByUuid(uuid);
270            }
271    
272            /**
273            * Returns the polls vote where uuid = &#63; and groupId = &#63; or throws a {@link com.liferay.portlet.polls.NoSuchVoteException} if it could not be found.
274            *
275            * @param uuid the uuid
276            * @param groupId the group ID
277            * @return the matching polls vote
278            * @throws com.liferay.portlet.polls.NoSuchVoteException if a matching polls vote could not be found
279            * @throws SystemException if a system exception occurred
280            */
281            public static com.liferay.portlet.polls.model.PollsVote findByUUID_G(
282                    java.lang.String uuid, long groupId)
283                    throws com.liferay.portal.kernel.exception.SystemException,
284                            com.liferay.portlet.polls.NoSuchVoteException {
285                    return getPersistence().findByUUID_G(uuid, groupId);
286            }
287    
288            /**
289            * Returns the polls vote where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
290            *
291            * @param uuid the uuid
292            * @param groupId the group ID
293            * @return the matching polls vote, or <code>null</code> if a matching polls vote could not be found
294            * @throws SystemException if a system exception occurred
295            */
296            public static com.liferay.portlet.polls.model.PollsVote fetchByUUID_G(
297                    java.lang.String uuid, long groupId)
298                    throws com.liferay.portal.kernel.exception.SystemException {
299                    return getPersistence().fetchByUUID_G(uuid, groupId);
300            }
301    
302            /**
303            * Returns the polls vote where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
304            *
305            * @param uuid the uuid
306            * @param groupId the group ID
307            * @param retrieveFromCache whether to use the finder cache
308            * @return the matching polls vote, or <code>null</code> if a matching polls vote could not be found
309            * @throws SystemException if a system exception occurred
310            */
311            public static com.liferay.portlet.polls.model.PollsVote fetchByUUID_G(
312                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
313                    throws com.liferay.portal.kernel.exception.SystemException {
314                    return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
315            }
316    
317            /**
318            * Removes the polls vote where uuid = &#63; and groupId = &#63; from the database.
319            *
320            * @param uuid the uuid
321            * @param groupId the group ID
322            * @return the polls vote that was removed
323            * @throws SystemException if a system exception occurred
324            */
325            public static com.liferay.portlet.polls.model.PollsVote removeByUUID_G(
326                    java.lang.String uuid, long groupId)
327                    throws com.liferay.portal.kernel.exception.SystemException,
328                            com.liferay.portlet.polls.NoSuchVoteException {
329                    return getPersistence().removeByUUID_G(uuid, groupId);
330            }
331    
332            /**
333            * Returns the number of polls votes where uuid = &#63; and groupId = &#63;.
334            *
335            * @param uuid the uuid
336            * @param groupId the group ID
337            * @return the number of matching polls votes
338            * @throws SystemException if a system exception occurred
339            */
340            public static int countByUUID_G(java.lang.String uuid, long groupId)
341                    throws com.liferay.portal.kernel.exception.SystemException {
342                    return getPersistence().countByUUID_G(uuid, groupId);
343            }
344    
345            /**
346            * Returns all the polls votes where uuid = &#63; and companyId = &#63;.
347            *
348            * @param uuid the uuid
349            * @param companyId the company ID
350            * @return the matching polls votes
351            * @throws SystemException if a system exception occurred
352            */
353            public static java.util.List<com.liferay.portlet.polls.model.PollsVote> findByUuid_C(
354                    java.lang.String uuid, long companyId)
355                    throws com.liferay.portal.kernel.exception.SystemException {
356                    return getPersistence().findByUuid_C(uuid, companyId);
357            }
358    
359            /**
360            * Returns a range of all the polls votes where uuid = &#63; and companyId = &#63;.
361            *
362            * <p>
363            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.polls.model.impl.PollsVoteModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
364            * </p>
365            *
366            * @param uuid the uuid
367            * @param companyId the company ID
368            * @param start the lower bound of the range of polls votes
369            * @param end the upper bound of the range of polls votes (not inclusive)
370            * @return the range of matching polls votes
371            * @throws SystemException if a system exception occurred
372            */
373            public static java.util.List<com.liferay.portlet.polls.model.PollsVote> findByUuid_C(
374                    java.lang.String uuid, long companyId, int start, int end)
375                    throws com.liferay.portal.kernel.exception.SystemException {
376                    return getPersistence().findByUuid_C(uuid, companyId, start, end);
377            }
378    
379            /**
380            * Returns an ordered range of all the polls votes where uuid = &#63; and companyId = &#63;.
381            *
382            * <p>
383            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.polls.model.impl.PollsVoteModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
384            * </p>
385            *
386            * @param uuid the uuid
387            * @param companyId the company ID
388            * @param start the lower bound of the range of polls votes
389            * @param end the upper bound of the range of polls votes (not inclusive)
390            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
391            * @return the ordered range of matching polls votes
392            * @throws SystemException if a system exception occurred
393            */
394            public static java.util.List<com.liferay.portlet.polls.model.PollsVote> findByUuid_C(
395                    java.lang.String uuid, long companyId, int start, int end,
396                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
397                    throws com.liferay.portal.kernel.exception.SystemException {
398                    return getPersistence()
399                                       .findByUuid_C(uuid, companyId, start, end, orderByComparator);
400            }
401    
402            /**
403            * Returns the first polls vote in the ordered set where uuid = &#63; and companyId = &#63;.
404            *
405            * @param uuid the uuid
406            * @param companyId the company ID
407            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
408            * @return the first matching polls vote
409            * @throws com.liferay.portlet.polls.NoSuchVoteException if a matching polls vote could not be found
410            * @throws SystemException if a system exception occurred
411            */
412            public static com.liferay.portlet.polls.model.PollsVote findByUuid_C_First(
413                    java.lang.String uuid, long companyId,
414                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
415                    throws com.liferay.portal.kernel.exception.SystemException,
416                            com.liferay.portlet.polls.NoSuchVoteException {
417                    return getPersistence()
418                                       .findByUuid_C_First(uuid, companyId, orderByComparator);
419            }
420    
421            /**
422            * Returns the first polls vote in the ordered set where uuid = &#63; and companyId = &#63;.
423            *
424            * @param uuid the uuid
425            * @param companyId the company ID
426            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
427            * @return the first matching polls vote, or <code>null</code> if a matching polls vote could not be found
428            * @throws SystemException if a system exception occurred
429            */
430            public static com.liferay.portlet.polls.model.PollsVote fetchByUuid_C_First(
431                    java.lang.String uuid, long companyId,
432                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
433                    throws com.liferay.portal.kernel.exception.SystemException {
434                    return getPersistence()
435                                       .fetchByUuid_C_First(uuid, companyId, orderByComparator);
436            }
437    
438            /**
439            * Returns the last polls vote in the ordered set where uuid = &#63; and companyId = &#63;.
440            *
441            * @param uuid the uuid
442            * @param companyId the company ID
443            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
444            * @return the last matching polls vote
445            * @throws com.liferay.portlet.polls.NoSuchVoteException if a matching polls vote could not be found
446            * @throws SystemException if a system exception occurred
447            */
448            public static com.liferay.portlet.polls.model.PollsVote findByUuid_C_Last(
449                    java.lang.String uuid, long companyId,
450                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
451                    throws com.liferay.portal.kernel.exception.SystemException,
452                            com.liferay.portlet.polls.NoSuchVoteException {
453                    return getPersistence()
454                                       .findByUuid_C_Last(uuid, companyId, orderByComparator);
455            }
456    
457            /**
458            * Returns the last polls vote in the ordered set where uuid = &#63; and companyId = &#63;.
459            *
460            * @param uuid the uuid
461            * @param companyId the company ID
462            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
463            * @return the last matching polls vote, or <code>null</code> if a matching polls vote could not be found
464            * @throws SystemException if a system exception occurred
465            */
466            public static com.liferay.portlet.polls.model.PollsVote fetchByUuid_C_Last(
467                    java.lang.String uuid, long companyId,
468                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
469                    throws com.liferay.portal.kernel.exception.SystemException {
470                    return getPersistence()
471                                       .fetchByUuid_C_Last(uuid, companyId, orderByComparator);
472            }
473    
474            /**
475            * Returns the polls votes before and after the current polls vote in the ordered set where uuid = &#63; and companyId = &#63;.
476            *
477            * @param voteId the primary key of the current polls vote
478            * @param uuid the uuid
479            * @param companyId the company ID
480            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
481            * @return the previous, current, and next polls vote
482            * @throws com.liferay.portlet.polls.NoSuchVoteException if a polls vote with the primary key could not be found
483            * @throws SystemException if a system exception occurred
484            */
485            public static com.liferay.portlet.polls.model.PollsVote[] findByUuid_C_PrevAndNext(
486                    long voteId, java.lang.String uuid, long companyId,
487                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
488                    throws com.liferay.portal.kernel.exception.SystemException,
489                            com.liferay.portlet.polls.NoSuchVoteException {
490                    return getPersistence()
491                                       .findByUuid_C_PrevAndNext(voteId, uuid, companyId,
492                            orderByComparator);
493            }
494    
495            /**
496            * Removes all the polls votes where uuid = &#63; and companyId = &#63; from the database.
497            *
498            * @param uuid the uuid
499            * @param companyId the company ID
500            * @throws SystemException if a system exception occurred
501            */
502            public static void removeByUuid_C(java.lang.String uuid, long companyId)
503                    throws com.liferay.portal.kernel.exception.SystemException {
504                    getPersistence().removeByUuid_C(uuid, companyId);
505            }
506    
507            /**
508            * Returns the number of polls votes where uuid = &#63; and companyId = &#63;.
509            *
510            * @param uuid the uuid
511            * @param companyId the company ID
512            * @return the number of matching polls votes
513            * @throws SystemException if a system exception occurred
514            */
515            public static int countByUuid_C(java.lang.String uuid, long companyId)
516                    throws com.liferay.portal.kernel.exception.SystemException {
517                    return getPersistence().countByUuid_C(uuid, companyId);
518            }
519    
520            /**
521            * Returns all the polls votes where questionId = &#63;.
522            *
523            * @param questionId the question ID
524            * @return the matching polls votes
525            * @throws SystemException if a system exception occurred
526            */
527            public static java.util.List<com.liferay.portlet.polls.model.PollsVote> findByQuestionId(
528                    long questionId)
529                    throws com.liferay.portal.kernel.exception.SystemException {
530                    return getPersistence().findByQuestionId(questionId);
531            }
532    
533            /**
534            * Returns a range of all the polls votes where questionId = &#63;.
535            *
536            * <p>
537            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.polls.model.impl.PollsVoteModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
538            * </p>
539            *
540            * @param questionId the question ID
541            * @param start the lower bound of the range of polls votes
542            * @param end the upper bound of the range of polls votes (not inclusive)
543            * @return the range of matching polls votes
544            * @throws SystemException if a system exception occurred
545            */
546            public static java.util.List<com.liferay.portlet.polls.model.PollsVote> findByQuestionId(
547                    long questionId, int start, int end)
548                    throws com.liferay.portal.kernel.exception.SystemException {
549                    return getPersistence().findByQuestionId(questionId, start, end);
550            }
551    
552            /**
553            * Returns an ordered range of all the polls votes where questionId = &#63;.
554            *
555            * <p>
556            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.polls.model.impl.PollsVoteModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
557            * </p>
558            *
559            * @param questionId the question ID
560            * @param start the lower bound of the range of polls votes
561            * @param end the upper bound of the range of polls votes (not inclusive)
562            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
563            * @return the ordered range of matching polls votes
564            * @throws SystemException if a system exception occurred
565            */
566            public static java.util.List<com.liferay.portlet.polls.model.PollsVote> findByQuestionId(
567                    long questionId, int start, int end,
568                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
569                    throws com.liferay.portal.kernel.exception.SystemException {
570                    return getPersistence()
571                                       .findByQuestionId(questionId, start, end, orderByComparator);
572            }
573    
574            /**
575            * Returns the first polls vote in the ordered set where questionId = &#63;.
576            *
577            * @param questionId the question ID
578            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
579            * @return the first matching polls vote
580            * @throws com.liferay.portlet.polls.NoSuchVoteException if a matching polls vote could not be found
581            * @throws SystemException if a system exception occurred
582            */
583            public static com.liferay.portlet.polls.model.PollsVote findByQuestionId_First(
584                    long questionId,
585                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
586                    throws com.liferay.portal.kernel.exception.SystemException,
587                            com.liferay.portlet.polls.NoSuchVoteException {
588                    return getPersistence()
589                                       .findByQuestionId_First(questionId, orderByComparator);
590            }
591    
592            /**
593            * Returns the first polls vote in the ordered set where questionId = &#63;.
594            *
595            * @param questionId the question ID
596            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
597            * @return the first matching polls vote, or <code>null</code> if a matching polls vote could not be found
598            * @throws SystemException if a system exception occurred
599            */
600            public static com.liferay.portlet.polls.model.PollsVote fetchByQuestionId_First(
601                    long questionId,
602                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
603                    throws com.liferay.portal.kernel.exception.SystemException {
604                    return getPersistence()
605                                       .fetchByQuestionId_First(questionId, orderByComparator);
606            }
607    
608            /**
609            * Returns the last polls vote in the ordered set where questionId = &#63;.
610            *
611            * @param questionId the question ID
612            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
613            * @return the last matching polls vote
614            * @throws com.liferay.portlet.polls.NoSuchVoteException if a matching polls vote could not be found
615            * @throws SystemException if a system exception occurred
616            */
617            public static com.liferay.portlet.polls.model.PollsVote findByQuestionId_Last(
618                    long questionId,
619                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
620                    throws com.liferay.portal.kernel.exception.SystemException,
621                            com.liferay.portlet.polls.NoSuchVoteException {
622                    return getPersistence()
623                                       .findByQuestionId_Last(questionId, orderByComparator);
624            }
625    
626            /**
627            * Returns the last polls vote in the ordered set where questionId = &#63;.
628            *
629            * @param questionId the question ID
630            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
631            * @return the last matching polls vote, or <code>null</code> if a matching polls vote could not be found
632            * @throws SystemException if a system exception occurred
633            */
634            public static com.liferay.portlet.polls.model.PollsVote fetchByQuestionId_Last(
635                    long questionId,
636                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
637                    throws com.liferay.portal.kernel.exception.SystemException {
638                    return getPersistence()
639                                       .fetchByQuestionId_Last(questionId, orderByComparator);
640            }
641    
642            /**
643            * Returns the polls votes before and after the current polls vote in the ordered set where questionId = &#63;.
644            *
645            * @param voteId the primary key of the current polls vote
646            * @param questionId the question ID
647            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
648            * @return the previous, current, and next polls vote
649            * @throws com.liferay.portlet.polls.NoSuchVoteException if a polls vote with the primary key could not be found
650            * @throws SystemException if a system exception occurred
651            */
652            public static com.liferay.portlet.polls.model.PollsVote[] findByQuestionId_PrevAndNext(
653                    long voteId, long questionId,
654                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
655                    throws com.liferay.portal.kernel.exception.SystemException,
656                            com.liferay.portlet.polls.NoSuchVoteException {
657                    return getPersistence()
658                                       .findByQuestionId_PrevAndNext(voteId, questionId,
659                            orderByComparator);
660            }
661    
662            /**
663            * Removes all the polls votes where questionId = &#63; from the database.
664            *
665            * @param questionId the question ID
666            * @throws SystemException if a system exception occurred
667            */
668            public static void removeByQuestionId(long questionId)
669                    throws com.liferay.portal.kernel.exception.SystemException {
670                    getPersistence().removeByQuestionId(questionId);
671            }
672    
673            /**
674            * Returns the number of polls votes where questionId = &#63;.
675            *
676            * @param questionId the question ID
677            * @return the number of matching polls votes
678            * @throws SystemException if a system exception occurred
679            */
680            public static int countByQuestionId(long questionId)
681                    throws com.liferay.portal.kernel.exception.SystemException {
682                    return getPersistence().countByQuestionId(questionId);
683            }
684    
685            /**
686            * Returns all the polls votes where choiceId = &#63;.
687            *
688            * @param choiceId the choice ID
689            * @return the matching polls votes
690            * @throws SystemException if a system exception occurred
691            */
692            public static java.util.List<com.liferay.portlet.polls.model.PollsVote> findByChoiceId(
693                    long choiceId)
694                    throws com.liferay.portal.kernel.exception.SystemException {
695                    return getPersistence().findByChoiceId(choiceId);
696            }
697    
698            /**
699            * Returns a range of all the polls votes where choiceId = &#63;.
700            *
701            * <p>
702            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.polls.model.impl.PollsVoteModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
703            * </p>
704            *
705            * @param choiceId the choice ID
706            * @param start the lower bound of the range of polls votes
707            * @param end the upper bound of the range of polls votes (not inclusive)
708            * @return the range of matching polls votes
709            * @throws SystemException if a system exception occurred
710            */
711            public static java.util.List<com.liferay.portlet.polls.model.PollsVote> findByChoiceId(
712                    long choiceId, int start, int end)
713                    throws com.liferay.portal.kernel.exception.SystemException {
714                    return getPersistence().findByChoiceId(choiceId, start, end);
715            }
716    
717            /**
718            * Returns an ordered range of all the polls votes where choiceId = &#63;.
719            *
720            * <p>
721            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.polls.model.impl.PollsVoteModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
722            * </p>
723            *
724            * @param choiceId the choice ID
725            * @param start the lower bound of the range of polls votes
726            * @param end the upper bound of the range of polls votes (not inclusive)
727            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
728            * @return the ordered range of matching polls votes
729            * @throws SystemException if a system exception occurred
730            */
731            public static java.util.List<com.liferay.portlet.polls.model.PollsVote> findByChoiceId(
732                    long choiceId, int start, int end,
733                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
734                    throws com.liferay.portal.kernel.exception.SystemException {
735                    return getPersistence()
736                                       .findByChoiceId(choiceId, start, end, orderByComparator);
737            }
738    
739            /**
740            * Returns the first polls vote in the ordered set where choiceId = &#63;.
741            *
742            * @param choiceId the choice ID
743            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
744            * @return the first matching polls vote
745            * @throws com.liferay.portlet.polls.NoSuchVoteException if a matching polls vote could not be found
746            * @throws SystemException if a system exception occurred
747            */
748            public static com.liferay.portlet.polls.model.PollsVote findByChoiceId_First(
749                    long choiceId,
750                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
751                    throws com.liferay.portal.kernel.exception.SystemException,
752                            com.liferay.portlet.polls.NoSuchVoteException {
753                    return getPersistence().findByChoiceId_First(choiceId, orderByComparator);
754            }
755    
756            /**
757            * Returns the first polls vote in the ordered set where choiceId = &#63;.
758            *
759            * @param choiceId the choice ID
760            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
761            * @return the first matching polls vote, or <code>null</code> if a matching polls vote could not be found
762            * @throws SystemException if a system exception occurred
763            */
764            public static com.liferay.portlet.polls.model.PollsVote fetchByChoiceId_First(
765                    long choiceId,
766                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
767                    throws com.liferay.portal.kernel.exception.SystemException {
768                    return getPersistence()
769                                       .fetchByChoiceId_First(choiceId, orderByComparator);
770            }
771    
772            /**
773            * Returns the last polls vote in the ordered set where choiceId = &#63;.
774            *
775            * @param choiceId the choice ID
776            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
777            * @return the last matching polls vote
778            * @throws com.liferay.portlet.polls.NoSuchVoteException if a matching polls vote could not be found
779            * @throws SystemException if a system exception occurred
780            */
781            public static com.liferay.portlet.polls.model.PollsVote findByChoiceId_Last(
782                    long choiceId,
783                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
784                    throws com.liferay.portal.kernel.exception.SystemException,
785                            com.liferay.portlet.polls.NoSuchVoteException {
786                    return getPersistence().findByChoiceId_Last(choiceId, orderByComparator);
787            }
788    
789            /**
790            * Returns the last polls vote in the ordered set where choiceId = &#63;.
791            *
792            * @param choiceId the choice ID
793            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
794            * @return the last matching polls vote, or <code>null</code> if a matching polls vote could not be found
795            * @throws SystemException if a system exception occurred
796            */
797            public static com.liferay.portlet.polls.model.PollsVote fetchByChoiceId_Last(
798                    long choiceId,
799                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
800                    throws com.liferay.portal.kernel.exception.SystemException {
801                    return getPersistence().fetchByChoiceId_Last(choiceId, orderByComparator);
802            }
803    
804            /**
805            * Returns the polls votes before and after the current polls vote in the ordered set where choiceId = &#63;.
806            *
807            * @param voteId the primary key of the current polls vote
808            * @param choiceId the choice ID
809            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
810            * @return the previous, current, and next polls vote
811            * @throws com.liferay.portlet.polls.NoSuchVoteException if a polls vote with the primary key could not be found
812            * @throws SystemException if a system exception occurred
813            */
814            public static com.liferay.portlet.polls.model.PollsVote[] findByChoiceId_PrevAndNext(
815                    long voteId, long choiceId,
816                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
817                    throws com.liferay.portal.kernel.exception.SystemException,
818                            com.liferay.portlet.polls.NoSuchVoteException {
819                    return getPersistence()
820                                       .findByChoiceId_PrevAndNext(voteId, choiceId,
821                            orderByComparator);
822            }
823    
824            /**
825            * Removes all the polls votes where choiceId = &#63; from the database.
826            *
827            * @param choiceId the choice ID
828            * @throws SystemException if a system exception occurred
829            */
830            public static void removeByChoiceId(long choiceId)
831                    throws com.liferay.portal.kernel.exception.SystemException {
832                    getPersistence().removeByChoiceId(choiceId);
833            }
834    
835            /**
836            * Returns the number of polls votes where choiceId = &#63;.
837            *
838            * @param choiceId the choice ID
839            * @return the number of matching polls votes
840            * @throws SystemException if a system exception occurred
841            */
842            public static int countByChoiceId(long choiceId)
843                    throws com.liferay.portal.kernel.exception.SystemException {
844                    return getPersistence().countByChoiceId(choiceId);
845            }
846    
847            /**
848            * Returns the polls vote where questionId = &#63; and userId = &#63; or throws a {@link com.liferay.portlet.polls.NoSuchVoteException} if it could not be found.
849            *
850            * @param questionId the question ID
851            * @param userId the user ID
852            * @return the matching polls vote
853            * @throws com.liferay.portlet.polls.NoSuchVoteException if a matching polls vote could not be found
854            * @throws SystemException if a system exception occurred
855            */
856            public static com.liferay.portlet.polls.model.PollsVote findByQ_U(
857                    long questionId, long userId)
858                    throws com.liferay.portal.kernel.exception.SystemException,
859                            com.liferay.portlet.polls.NoSuchVoteException {
860                    return getPersistence().findByQ_U(questionId, userId);
861            }
862    
863            /**
864            * Returns the polls vote where questionId = &#63; and userId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
865            *
866            * @param questionId the question ID
867            * @param userId the user ID
868            * @return the matching polls vote, or <code>null</code> if a matching polls vote could not be found
869            * @throws SystemException if a system exception occurred
870            */
871            public static com.liferay.portlet.polls.model.PollsVote fetchByQ_U(
872                    long questionId, long userId)
873                    throws com.liferay.portal.kernel.exception.SystemException {
874                    return getPersistence().fetchByQ_U(questionId, userId);
875            }
876    
877            /**
878            * Returns the polls vote where questionId = &#63; and userId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
879            *
880            * @param questionId the question ID
881            * @param userId the user ID
882            * @param retrieveFromCache whether to use the finder cache
883            * @return the matching polls vote, or <code>null</code> if a matching polls vote could not be found
884            * @throws SystemException if a system exception occurred
885            */
886            public static com.liferay.portlet.polls.model.PollsVote fetchByQ_U(
887                    long questionId, long userId, boolean retrieveFromCache)
888                    throws com.liferay.portal.kernel.exception.SystemException {
889                    return getPersistence().fetchByQ_U(questionId, userId, retrieveFromCache);
890            }
891    
892            /**
893            * Removes the polls vote where questionId = &#63; and userId = &#63; from the database.
894            *
895            * @param questionId the question ID
896            * @param userId the user ID
897            * @return the polls vote that was removed
898            * @throws SystemException if a system exception occurred
899            */
900            public static com.liferay.portlet.polls.model.PollsVote removeByQ_U(
901                    long questionId, long userId)
902                    throws com.liferay.portal.kernel.exception.SystemException,
903                            com.liferay.portlet.polls.NoSuchVoteException {
904                    return getPersistence().removeByQ_U(questionId, userId);
905            }
906    
907            /**
908            * Returns the number of polls votes where questionId = &#63; and userId = &#63;.
909            *
910            * @param questionId the question ID
911            * @param userId the user ID
912            * @return the number of matching polls votes
913            * @throws SystemException if a system exception occurred
914            */
915            public static int countByQ_U(long questionId, long userId)
916                    throws com.liferay.portal.kernel.exception.SystemException {
917                    return getPersistence().countByQ_U(questionId, userId);
918            }
919    
920            /**
921            * Caches the polls vote in the entity cache if it is enabled.
922            *
923            * @param pollsVote the polls vote
924            */
925            public static void cacheResult(
926                    com.liferay.portlet.polls.model.PollsVote pollsVote) {
927                    getPersistence().cacheResult(pollsVote);
928            }
929    
930            /**
931            * Caches the polls votes in the entity cache if it is enabled.
932            *
933            * @param pollsVotes the polls votes
934            */
935            public static void cacheResult(
936                    java.util.List<com.liferay.portlet.polls.model.PollsVote> pollsVotes) {
937                    getPersistence().cacheResult(pollsVotes);
938            }
939    
940            /**
941            * Creates a new polls vote with the primary key. Does not add the polls vote to the database.
942            *
943            * @param voteId the primary key for the new polls vote
944            * @return the new polls vote
945            */
946            public static com.liferay.portlet.polls.model.PollsVote create(long voteId) {
947                    return getPersistence().create(voteId);
948            }
949    
950            /**
951            * Removes the polls vote with the primary key from the database. Also notifies the appropriate model listeners.
952            *
953            * @param voteId the primary key of the polls vote
954            * @return the polls vote that was removed
955            * @throws com.liferay.portlet.polls.NoSuchVoteException if a polls vote with the primary key could not be found
956            * @throws SystemException if a system exception occurred
957            */
958            public static com.liferay.portlet.polls.model.PollsVote remove(long voteId)
959                    throws com.liferay.portal.kernel.exception.SystemException,
960                            com.liferay.portlet.polls.NoSuchVoteException {
961                    return getPersistence().remove(voteId);
962            }
963    
964            public static com.liferay.portlet.polls.model.PollsVote updateImpl(
965                    com.liferay.portlet.polls.model.PollsVote pollsVote)
966                    throws com.liferay.portal.kernel.exception.SystemException {
967                    return getPersistence().updateImpl(pollsVote);
968            }
969    
970            /**
971            * Returns the polls vote with the primary key or throws a {@link com.liferay.portlet.polls.NoSuchVoteException} if it could not be found.
972            *
973            * @param voteId the primary key of the polls vote
974            * @return the polls vote
975            * @throws com.liferay.portlet.polls.NoSuchVoteException if a polls vote with the primary key could not be found
976            * @throws SystemException if a system exception occurred
977            */
978            public static com.liferay.portlet.polls.model.PollsVote findByPrimaryKey(
979                    long voteId)
980                    throws com.liferay.portal.kernel.exception.SystemException,
981                            com.liferay.portlet.polls.NoSuchVoteException {
982                    return getPersistence().findByPrimaryKey(voteId);
983            }
984    
985            /**
986            * Returns the polls vote with the primary key or returns <code>null</code> if it could not be found.
987            *
988            * @param voteId the primary key of the polls vote
989            * @return the polls vote, or <code>null</code> if a polls vote with the primary key could not be found
990            * @throws SystemException if a system exception occurred
991            */
992            public static com.liferay.portlet.polls.model.PollsVote fetchByPrimaryKey(
993                    long voteId) throws com.liferay.portal.kernel.exception.SystemException {
994                    return getPersistence().fetchByPrimaryKey(voteId);
995            }
996    
997            /**
998            * Returns all the polls votes.
999            *
1000            * @return the polls votes
1001            * @throws SystemException if a system exception occurred
1002            */
1003            public static java.util.List<com.liferay.portlet.polls.model.PollsVote> findAll()
1004                    throws com.liferay.portal.kernel.exception.SystemException {
1005                    return getPersistence().findAll();
1006            }
1007    
1008            /**
1009            * Returns a range of all the polls votes.
1010            *
1011            * <p>
1012            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.polls.model.impl.PollsVoteModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1013            * </p>
1014            *
1015            * @param start the lower bound of the range of polls votes
1016            * @param end the upper bound of the range of polls votes (not inclusive)
1017            * @return the range of polls votes
1018            * @throws SystemException if a system exception occurred
1019            */
1020            public static java.util.List<com.liferay.portlet.polls.model.PollsVote> findAll(
1021                    int start, int end)
1022                    throws com.liferay.portal.kernel.exception.SystemException {
1023                    return getPersistence().findAll(start, end);
1024            }
1025    
1026            /**
1027            * Returns an ordered range of all the polls votes.
1028            *
1029            * <p>
1030            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.polls.model.impl.PollsVoteModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1031            * </p>
1032            *
1033            * @param start the lower bound of the range of polls votes
1034            * @param end the upper bound of the range of polls votes (not inclusive)
1035            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1036            * @return the ordered range of polls votes
1037            * @throws SystemException if a system exception occurred
1038            */
1039            public static java.util.List<com.liferay.portlet.polls.model.PollsVote> findAll(
1040                    int start, int end,
1041                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1042                    throws com.liferay.portal.kernel.exception.SystemException {
1043                    return getPersistence().findAll(start, end, orderByComparator);
1044            }
1045    
1046            /**
1047            * Removes all the polls votes from the database.
1048            *
1049            * @throws SystemException if a system exception occurred
1050            */
1051            public static void removeAll()
1052                    throws com.liferay.portal.kernel.exception.SystemException {
1053                    getPersistence().removeAll();
1054            }
1055    
1056            /**
1057            * Returns the number of polls votes.
1058            *
1059            * @return the number of polls votes
1060            * @throws SystemException if a system exception occurred
1061            */
1062            public static int countAll()
1063                    throws com.liferay.portal.kernel.exception.SystemException {
1064                    return getPersistence().countAll();
1065            }
1066    
1067            public static PollsVotePersistence getPersistence() {
1068                    if (_persistence == null) {
1069                            _persistence = (PollsVotePersistence)PortalBeanLocatorUtil.locate(PollsVotePersistence.class.getName());
1070    
1071                            ReferenceRegistry.registerReference(PollsVoteUtil.class,
1072                                    "_persistence");
1073                    }
1074    
1075                    return _persistence;
1076            }
1077    
1078            /**
1079             * @deprecated As of 6.2.0
1080             */
1081            public void setPersistence(PollsVotePersistence persistence) {
1082            }
1083    
1084            private static PollsVotePersistence _persistence;
1085    }