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