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.service.persistence.BasePersistence;
018    
019    import com.liferay.portlet.polls.model.PollsQuestion;
020    
021    /**
022     * The persistence interface for the polls question service.
023     *
024     * <p>
025     * Caching information and settings can be found in <code>portal.properties</code>
026     * </p>
027     *
028     * @author Brian Wing Shun Chan
029     * @see PollsQuestionPersistenceImpl
030     * @see PollsQuestionUtil
031     * @generated
032     */
033    public interface PollsQuestionPersistence extends BasePersistence<PollsQuestion> {
034            /*
035             * NOTE FOR DEVELOPERS:
036             *
037             * Never modify or reference this interface directly. Always use {@link PollsQuestionUtil} to access the polls question persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
038             */
039    
040            /**
041            * Caches the polls question in the entity cache if it is enabled.
042            *
043            * @param pollsQuestion the polls question
044            */
045            public void cacheResult(
046                    com.liferay.portlet.polls.model.PollsQuestion pollsQuestion);
047    
048            /**
049            * Caches the polls questions in the entity cache if it is enabled.
050            *
051            * @param pollsQuestions the polls questions
052            */
053            public void cacheResult(
054                    java.util.List<com.liferay.portlet.polls.model.PollsQuestion> pollsQuestions);
055    
056            /**
057            * Creates a new polls question with the primary key. Does not add the polls question to the database.
058            *
059            * @param questionId the primary key for the new polls question
060            * @return the new polls question
061            */
062            public com.liferay.portlet.polls.model.PollsQuestion create(long questionId);
063    
064            /**
065            * Removes the polls question with the primary key from the database. Also notifies the appropriate model listeners.
066            *
067            * @param questionId the primary key of the polls question
068            * @return the polls question that was removed
069            * @throws com.liferay.portlet.polls.NoSuchQuestionException if a polls question with the primary key could not be found
070            * @throws SystemException if a system exception occurred
071            */
072            public com.liferay.portlet.polls.model.PollsQuestion remove(long questionId)
073                    throws com.liferay.portal.kernel.exception.SystemException,
074                            com.liferay.portlet.polls.NoSuchQuestionException;
075    
076            public com.liferay.portlet.polls.model.PollsQuestion updateImpl(
077                    com.liferay.portlet.polls.model.PollsQuestion pollsQuestion,
078                    boolean merge)
079                    throws com.liferay.portal.kernel.exception.SystemException;
080    
081            /**
082            * Returns the polls question with the primary key or throws a {@link com.liferay.portlet.polls.NoSuchQuestionException} if it could not be found.
083            *
084            * @param questionId the primary key of the polls question
085            * @return the polls question
086            * @throws com.liferay.portlet.polls.NoSuchQuestionException if a polls question with the primary key could not be found
087            * @throws SystemException if a system exception occurred
088            */
089            public com.liferay.portlet.polls.model.PollsQuestion findByPrimaryKey(
090                    long questionId)
091                    throws com.liferay.portal.kernel.exception.SystemException,
092                            com.liferay.portlet.polls.NoSuchQuestionException;
093    
094            /**
095            * Returns the polls question with the primary key or returns <code>null</code> if it could not be found.
096            *
097            * @param questionId the primary key of the polls question
098            * @return the polls question, or <code>null</code> if a polls question with the primary key could not be found
099            * @throws SystemException if a system exception occurred
100            */
101            public com.liferay.portlet.polls.model.PollsQuestion fetchByPrimaryKey(
102                    long questionId)
103                    throws com.liferay.portal.kernel.exception.SystemException;
104    
105            /**
106            * Returns all the polls questions where uuid = &#63;.
107            *
108            * @param uuid the uuid
109            * @return the matching polls questions
110            * @throws SystemException if a system exception occurred
111            */
112            public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByUuid(
113                    java.lang.String uuid)
114                    throws com.liferay.portal.kernel.exception.SystemException;
115    
116            /**
117            * Returns a range of all the polls questions where uuid = &#63;.
118            *
119            * <p>
120            * 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.
121            * </p>
122            *
123            * @param uuid the uuid
124            * @param start the lower bound of the range of polls questions
125            * @param end the upper bound of the range of polls questions (not inclusive)
126            * @return the range of matching polls questions
127            * @throws SystemException if a system exception occurred
128            */
129            public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByUuid(
130                    java.lang.String uuid, int start, int end)
131                    throws com.liferay.portal.kernel.exception.SystemException;
132    
133            /**
134            * Returns an ordered range of all the polls questions where uuid = &#63;.
135            *
136            * <p>
137            * 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.
138            * </p>
139            *
140            * @param uuid the uuid
141            * @param start the lower bound of the range of polls questions
142            * @param end the upper bound of the range of polls questions (not inclusive)
143            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
144            * @return the ordered range of matching polls questions
145            * @throws SystemException if a system exception occurred
146            */
147            public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByUuid(
148                    java.lang.String uuid, int start, int end,
149                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
150                    throws com.liferay.portal.kernel.exception.SystemException;
151    
152            /**
153            * Returns the first polls question in the ordered set where uuid = &#63;.
154            *
155            * @param uuid the uuid
156            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
157            * @return the first matching polls question
158            * @throws com.liferay.portlet.polls.NoSuchQuestionException if a matching polls question could not be found
159            * @throws SystemException if a system exception occurred
160            */
161            public com.liferay.portlet.polls.model.PollsQuestion findByUuid_First(
162                    java.lang.String uuid,
163                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
164                    throws com.liferay.portal.kernel.exception.SystemException,
165                            com.liferay.portlet.polls.NoSuchQuestionException;
166    
167            /**
168            * Returns the first polls question in the ordered set where uuid = &#63;.
169            *
170            * @param uuid the uuid
171            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
172            * @return the first matching polls question, or <code>null</code> if a matching polls question could not be found
173            * @throws SystemException if a system exception occurred
174            */
175            public com.liferay.portlet.polls.model.PollsQuestion fetchByUuid_First(
176                    java.lang.String uuid,
177                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
178                    throws com.liferay.portal.kernel.exception.SystemException;
179    
180            /**
181            * Returns the last polls question in the ordered set where uuid = &#63;.
182            *
183            * @param uuid the uuid
184            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
185            * @return the last matching polls question
186            * @throws com.liferay.portlet.polls.NoSuchQuestionException if a matching polls question could not be found
187            * @throws SystemException if a system exception occurred
188            */
189            public com.liferay.portlet.polls.model.PollsQuestion findByUuid_Last(
190                    java.lang.String uuid,
191                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
192                    throws com.liferay.portal.kernel.exception.SystemException,
193                            com.liferay.portlet.polls.NoSuchQuestionException;
194    
195            /**
196            * Returns the last polls question in the ordered set where uuid = &#63;.
197            *
198            * @param uuid the uuid
199            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
200            * @return the last matching polls question, or <code>null</code> if a matching polls question could not be found
201            * @throws SystemException if a system exception occurred
202            */
203            public com.liferay.portlet.polls.model.PollsQuestion fetchByUuid_Last(
204                    java.lang.String uuid,
205                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
206                    throws com.liferay.portal.kernel.exception.SystemException;
207    
208            /**
209            * Returns the polls questions before and after the current polls question in the ordered set where uuid = &#63;.
210            *
211            * @param questionId the primary key of the current polls question
212            * @param uuid the uuid
213            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
214            * @return the previous, current, and next polls question
215            * @throws com.liferay.portlet.polls.NoSuchQuestionException if a polls question with the primary key could not be found
216            * @throws SystemException if a system exception occurred
217            */
218            public com.liferay.portlet.polls.model.PollsQuestion[] findByUuid_PrevAndNext(
219                    long questionId, java.lang.String uuid,
220                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
221                    throws com.liferay.portal.kernel.exception.SystemException,
222                            com.liferay.portlet.polls.NoSuchQuestionException;
223    
224            /**
225            * Returns the polls question where uuid = &#63; and groupId = &#63; or throws a {@link com.liferay.portlet.polls.NoSuchQuestionException} if it could not be found.
226            *
227            * @param uuid the uuid
228            * @param groupId the group ID
229            * @return the matching polls question
230            * @throws com.liferay.portlet.polls.NoSuchQuestionException if a matching polls question could not be found
231            * @throws SystemException if a system exception occurred
232            */
233            public com.liferay.portlet.polls.model.PollsQuestion findByUUID_G(
234                    java.lang.String uuid, long groupId)
235                    throws com.liferay.portal.kernel.exception.SystemException,
236                            com.liferay.portlet.polls.NoSuchQuestionException;
237    
238            /**
239            * Returns the polls question where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
240            *
241            * @param uuid the uuid
242            * @param groupId the group ID
243            * @return the matching polls question, or <code>null</code> if a matching polls question could not be found
244            * @throws SystemException if a system exception occurred
245            */
246            public com.liferay.portlet.polls.model.PollsQuestion fetchByUUID_G(
247                    java.lang.String uuid, long groupId)
248                    throws com.liferay.portal.kernel.exception.SystemException;
249    
250            /**
251            * Returns the polls question where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
252            *
253            * @param uuid the uuid
254            * @param groupId the group ID
255            * @param retrieveFromCache whether to use the finder cache
256            * @return the matching polls question, or <code>null</code> if a matching polls question could not be found
257            * @throws SystemException if a system exception occurred
258            */
259            public com.liferay.portlet.polls.model.PollsQuestion fetchByUUID_G(
260                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
261                    throws com.liferay.portal.kernel.exception.SystemException;
262    
263            /**
264            * Returns all the polls questions where groupId = &#63;.
265            *
266            * @param groupId the group ID
267            * @return the matching polls questions
268            * @throws SystemException if a system exception occurred
269            */
270            public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByGroupId(
271                    long groupId)
272                    throws com.liferay.portal.kernel.exception.SystemException;
273    
274            /**
275            * Returns a range of all the polls questions where groupId = &#63;.
276            *
277            * <p>
278            * 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.
279            * </p>
280            *
281            * @param groupId the group ID
282            * @param start the lower bound of the range of polls questions
283            * @param end the upper bound of the range of polls questions (not inclusive)
284            * @return the range of matching polls questions
285            * @throws SystemException if a system exception occurred
286            */
287            public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByGroupId(
288                    long groupId, int start, int end)
289                    throws com.liferay.portal.kernel.exception.SystemException;
290    
291            /**
292            * Returns an ordered range of all the polls questions where groupId = &#63;.
293            *
294            * <p>
295            * 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.
296            * </p>
297            *
298            * @param groupId the group ID
299            * @param start the lower bound of the range of polls questions
300            * @param end the upper bound of the range of polls questions (not inclusive)
301            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
302            * @return the ordered range of matching polls questions
303            * @throws SystemException if a system exception occurred
304            */
305            public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByGroupId(
306                    long groupId, int start, int end,
307                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
308                    throws com.liferay.portal.kernel.exception.SystemException;
309    
310            /**
311            * Returns the first polls question in the ordered set where groupId = &#63;.
312            *
313            * @param groupId the group ID
314            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
315            * @return the first matching polls question
316            * @throws com.liferay.portlet.polls.NoSuchQuestionException if a matching polls question could not be found
317            * @throws SystemException if a system exception occurred
318            */
319            public com.liferay.portlet.polls.model.PollsQuestion findByGroupId_First(
320                    long groupId,
321                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
322                    throws com.liferay.portal.kernel.exception.SystemException,
323                            com.liferay.portlet.polls.NoSuchQuestionException;
324    
325            /**
326            * Returns the first polls question in the ordered set where groupId = &#63;.
327            *
328            * @param groupId the group ID
329            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
330            * @return the first matching polls question, or <code>null</code> if a matching polls question could not be found
331            * @throws SystemException if a system exception occurred
332            */
333            public com.liferay.portlet.polls.model.PollsQuestion fetchByGroupId_First(
334                    long groupId,
335                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
336                    throws com.liferay.portal.kernel.exception.SystemException;
337    
338            /**
339            * Returns the last polls question in the ordered set where groupId = &#63;.
340            *
341            * @param groupId the group ID
342            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
343            * @return the last matching polls question
344            * @throws com.liferay.portlet.polls.NoSuchQuestionException if a matching polls question could not be found
345            * @throws SystemException if a system exception occurred
346            */
347            public com.liferay.portlet.polls.model.PollsQuestion findByGroupId_Last(
348                    long groupId,
349                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
350                    throws com.liferay.portal.kernel.exception.SystemException,
351                            com.liferay.portlet.polls.NoSuchQuestionException;
352    
353            /**
354            * Returns the last polls question in the ordered set where groupId = &#63;.
355            *
356            * @param groupId the group ID
357            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
358            * @return the last matching polls question, or <code>null</code> if a matching polls question could not be found
359            * @throws SystemException if a system exception occurred
360            */
361            public com.liferay.portlet.polls.model.PollsQuestion fetchByGroupId_Last(
362                    long groupId,
363                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
364                    throws com.liferay.portal.kernel.exception.SystemException;
365    
366            /**
367            * Returns the polls questions before and after the current polls question in the ordered set where groupId = &#63;.
368            *
369            * @param questionId the primary key of the current polls question
370            * @param groupId the group ID
371            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
372            * @return the previous, current, and next polls question
373            * @throws com.liferay.portlet.polls.NoSuchQuestionException if a polls question with the primary key could not be found
374            * @throws SystemException if a system exception occurred
375            */
376            public com.liferay.portlet.polls.model.PollsQuestion[] findByGroupId_PrevAndNext(
377                    long questionId, long groupId,
378                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
379                    throws com.liferay.portal.kernel.exception.SystemException,
380                            com.liferay.portlet.polls.NoSuchQuestionException;
381    
382            /**
383            * Returns all the polls questions that the user has permission to view where groupId = &#63;.
384            *
385            * @param groupId the group ID
386            * @return the matching polls questions that the user has permission to view
387            * @throws SystemException if a system exception occurred
388            */
389            public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> filterFindByGroupId(
390                    long groupId)
391                    throws com.liferay.portal.kernel.exception.SystemException;
392    
393            /**
394            * Returns a range of all the polls questions that the user has permission to view where groupId = &#63;.
395            *
396            * <p>
397            * 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.
398            * </p>
399            *
400            * @param groupId the group ID
401            * @param start the lower bound of the range of polls questions
402            * @param end the upper bound of the range of polls questions (not inclusive)
403            * @return the range of matching polls questions that the user has permission to view
404            * @throws SystemException if a system exception occurred
405            */
406            public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> filterFindByGroupId(
407                    long groupId, int start, int end)
408                    throws com.liferay.portal.kernel.exception.SystemException;
409    
410            /**
411            * Returns an ordered range of all the polls questions that the user has permissions to view where groupId = &#63;.
412            *
413            * <p>
414            * 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.
415            * </p>
416            *
417            * @param groupId the group ID
418            * @param start the lower bound of the range of polls questions
419            * @param end the upper bound of the range of polls questions (not inclusive)
420            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
421            * @return the ordered range of matching polls questions that the user has permission to view
422            * @throws SystemException if a system exception occurred
423            */
424            public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> filterFindByGroupId(
425                    long groupId, int start, int end,
426                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
427                    throws com.liferay.portal.kernel.exception.SystemException;
428    
429            /**
430            * Returns the polls questions before and after the current polls question in the ordered set of polls questions that the user has permission to view where groupId = &#63;.
431            *
432            * @param questionId the primary key of the current polls question
433            * @param groupId the group ID
434            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
435            * @return the previous, current, and next polls question
436            * @throws com.liferay.portlet.polls.NoSuchQuestionException if a polls question with the primary key could not be found
437            * @throws SystemException if a system exception occurred
438            */
439            public com.liferay.portlet.polls.model.PollsQuestion[] filterFindByGroupId_PrevAndNext(
440                    long questionId, long groupId,
441                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
442                    throws com.liferay.portal.kernel.exception.SystemException,
443                            com.liferay.portlet.polls.NoSuchQuestionException;
444    
445            /**
446            * Returns all the polls questions.
447            *
448            * @return the polls questions
449            * @throws SystemException if a system exception occurred
450            */
451            public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findAll()
452                    throws com.liferay.portal.kernel.exception.SystemException;
453    
454            /**
455            * Returns a range of all the polls questions.
456            *
457            * <p>
458            * 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.
459            * </p>
460            *
461            * @param start the lower bound of the range of polls questions
462            * @param end the upper bound of the range of polls questions (not inclusive)
463            * @return the range of polls questions
464            * @throws SystemException if a system exception occurred
465            */
466            public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findAll(
467                    int start, int end)
468                    throws com.liferay.portal.kernel.exception.SystemException;
469    
470            /**
471            * Returns an ordered range of all the polls questions.
472            *
473            * <p>
474            * 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.
475            * </p>
476            *
477            * @param start the lower bound of the range of polls questions
478            * @param end the upper bound of the range of polls questions (not inclusive)
479            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
480            * @return the ordered range of polls questions
481            * @throws SystemException if a system exception occurred
482            */
483            public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findAll(
484                    int start, int end,
485                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
486                    throws com.liferay.portal.kernel.exception.SystemException;
487    
488            /**
489            * Removes all the polls questions where uuid = &#63; from the database.
490            *
491            * @param uuid the uuid
492            * @throws SystemException if a system exception occurred
493            */
494            public void removeByUuid(java.lang.String uuid)
495                    throws com.liferay.portal.kernel.exception.SystemException;
496    
497            /**
498            * Removes the polls question where uuid = &#63; and groupId = &#63; from the database.
499            *
500            * @param uuid the uuid
501            * @param groupId the group ID
502            * @return the polls question that was removed
503            * @throws SystemException if a system exception occurred
504            */
505            public com.liferay.portlet.polls.model.PollsQuestion removeByUUID_G(
506                    java.lang.String uuid, long groupId)
507                    throws com.liferay.portal.kernel.exception.SystemException,
508                            com.liferay.portlet.polls.NoSuchQuestionException;
509    
510            /**
511            * Removes all the polls questions where groupId = &#63; from the database.
512            *
513            * @param groupId the group ID
514            * @throws SystemException if a system exception occurred
515            */
516            public void removeByGroupId(long groupId)
517                    throws com.liferay.portal.kernel.exception.SystemException;
518    
519            /**
520            * Removes all the polls questions from the database.
521            *
522            * @throws SystemException if a system exception occurred
523            */
524            public void removeAll()
525                    throws com.liferay.portal.kernel.exception.SystemException;
526    
527            /**
528            * Returns the number of polls questions where uuid = &#63;.
529            *
530            * @param uuid the uuid
531            * @return the number of matching polls questions
532            * @throws SystemException if a system exception occurred
533            */
534            public int countByUuid(java.lang.String uuid)
535                    throws com.liferay.portal.kernel.exception.SystemException;
536    
537            /**
538            * Returns the number of polls questions where uuid = &#63; and groupId = &#63;.
539            *
540            * @param uuid the uuid
541            * @param groupId the group ID
542            * @return the number of matching polls questions
543            * @throws SystemException if a system exception occurred
544            */
545            public int countByUUID_G(java.lang.String uuid, long groupId)
546                    throws com.liferay.portal.kernel.exception.SystemException;
547    
548            /**
549            * Returns the number of polls questions where groupId = &#63;.
550            *
551            * @param groupId the group ID
552            * @return the number of matching polls questions
553            * @throws SystemException if a system exception occurred
554            */
555            public int countByGroupId(long groupId)
556                    throws com.liferay.portal.kernel.exception.SystemException;
557    
558            /**
559            * Returns the number of polls questions that the user has permission to view where groupId = &#63;.
560            *
561            * @param groupId the group ID
562            * @return the number of matching polls questions that the user has permission to view
563            * @throws SystemException if a system exception occurred
564            */
565            public int filterCountByGroupId(long groupId)
566                    throws com.liferay.portal.kernel.exception.SystemException;
567    
568            /**
569            * Returns the number of polls questions.
570            *
571            * @return the number of polls questions
572            * @throws SystemException if a system exception occurred
573            */
574            public int countAll()
575                    throws com.liferay.portal.kernel.exception.SystemException;
576    }