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