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
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
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
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            * Returns 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
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            * Returns 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
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            * Returns all the polls questions where uuid = &#63;.
108            *
109            * @param uuid the uuid
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            * Returns 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
125            * @param start the lower bound of the range of polls questions
126            * @param end the upper bound of the range of polls questions (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            * Returns 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
142            * @param start the lower bound of the range of polls questions
143            * @param end the upper bound of the range of polls questions (not inclusive)
144            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
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            * Returns 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
161            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
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            * Returns 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
180            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
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            * Returns 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
200            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
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            * 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.
213            *
214            * @param uuid the uuid
215            * @param groupId the group ID
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            * 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.
227            *
228            * @param uuid the uuid
229            * @param groupId the group ID
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            * 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.
239            *
240            * @param uuid the uuid
241            * @param groupId the group ID
242            * @param retrieveFromCache whether to use the finder cache
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, boolean retrieveFromCache)
248                    throws com.liferay.portal.kernel.exception.SystemException;
249    
250            /**
251            * Returns all the polls questions where groupId = &#63;.
252            *
253            * @param groupId the group ID
254            * @return the matching polls questions
255            * @throws SystemException if a system exception occurred
256            */
257            public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByGroupId(
258                    long groupId)
259                    throws com.liferay.portal.kernel.exception.SystemException;
260    
261            /**
262            * Returns a range of all the polls questions where groupId = &#63;.
263            *
264            * <p>
265            * 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.
266            * </p>
267            *
268            * @param groupId the group ID
269            * @param start the lower bound of the range of polls questions
270            * @param end the upper bound of the range of polls questions (not inclusive)
271            * @return the range of matching polls questions
272            * @throws SystemException if a system exception occurred
273            */
274            public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByGroupId(
275                    long groupId, int start, int end)
276                    throws com.liferay.portal.kernel.exception.SystemException;
277    
278            /**
279            * Returns an ordered range of all the polls questions where groupId = &#63;.
280            *
281            * <p>
282            * 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.
283            * </p>
284            *
285            * @param groupId the group ID
286            * @param start the lower bound of the range of polls questions
287            * @param end the upper bound of the range of polls questions (not inclusive)
288            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
289            * @return the ordered range of matching polls questions
290            * @throws SystemException if a system exception occurred
291            */
292            public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByGroupId(
293                    long groupId, int start, int end,
294                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
295                    throws com.liferay.portal.kernel.exception.SystemException;
296    
297            /**
298            * Returns the first polls question in the ordered set where groupId = &#63;.
299            *
300            * <p>
301            * 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.
302            * </p>
303            *
304            * @param groupId the group ID
305            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
306            * @return the first matching polls question
307            * @throws com.liferay.portlet.polls.NoSuchQuestionException if a matching polls question could not be found
308            * @throws SystemException if a system exception occurred
309            */
310            public com.liferay.portlet.polls.model.PollsQuestion findByGroupId_First(
311                    long groupId,
312                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
313                    throws com.liferay.portal.kernel.exception.SystemException,
314                            com.liferay.portlet.polls.NoSuchQuestionException;
315    
316            /**
317            * Returns the last polls question in the ordered set where groupId = &#63;.
318            *
319            * <p>
320            * 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.
321            * </p>
322            *
323            * @param groupId the group ID
324            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
325            * @return the last matching polls question
326            * @throws com.liferay.portlet.polls.NoSuchQuestionException if a matching polls question could not be found
327            * @throws SystemException if a system exception occurred
328            */
329            public com.liferay.portlet.polls.model.PollsQuestion findByGroupId_Last(
330                    long groupId,
331                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
332                    throws com.liferay.portal.kernel.exception.SystemException,
333                            com.liferay.portlet.polls.NoSuchQuestionException;
334    
335            /**
336            * Returns the polls questions before and after the current polls question in the ordered set where groupId = &#63;.
337            *
338            * <p>
339            * 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.
340            * </p>
341            *
342            * @param questionId the primary key of the current polls question
343            * @param groupId the group ID
344            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
345            * @return the previous, current, and next polls question
346            * @throws com.liferay.portlet.polls.NoSuchQuestionException if a polls question with the primary key could not be found
347            * @throws SystemException if a system exception occurred
348            */
349            public com.liferay.portlet.polls.model.PollsQuestion[] findByGroupId_PrevAndNext(
350                    long questionId, long groupId,
351                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
352                    throws com.liferay.portal.kernel.exception.SystemException,
353                            com.liferay.portlet.polls.NoSuchQuestionException;
354    
355            /**
356            * Returns all the polls questions that the user has permission to view where groupId = &#63;.
357            *
358            * @param groupId the group ID
359            * @return the matching polls questions that the user has permission to view
360            * @throws SystemException if a system exception occurred
361            */
362            public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> filterFindByGroupId(
363                    long groupId)
364                    throws com.liferay.portal.kernel.exception.SystemException;
365    
366            /**
367            * Returns a range of all the polls questions that the user has permission to view where groupId = &#63;.
368            *
369            * <p>
370            * 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.
371            * </p>
372            *
373            * @param groupId the group ID
374            * @param start the lower bound of the range of polls questions
375            * @param end the upper bound of the range of polls questions (not inclusive)
376            * @return the range of matching polls questions that the user has permission to view
377            * @throws SystemException if a system exception occurred
378            */
379            public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> filterFindByGroupId(
380                    long groupId, int start, int end)
381                    throws com.liferay.portal.kernel.exception.SystemException;
382    
383            /**
384            * Returns an ordered range of all the polls questions that the user has permissions to view where groupId = &#63;.
385            *
386            * <p>
387            * 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.
388            * </p>
389            *
390            * @param groupId the group ID
391            * @param start the lower bound of the range of polls questions
392            * @param end the upper bound of the range of polls questions (not inclusive)
393            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
394            * @return the ordered range of matching polls questions that the user has permission to view
395            * @throws SystemException if a system exception occurred
396            */
397            public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> filterFindByGroupId(
398                    long groupId, int start, int end,
399                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
400                    throws com.liferay.portal.kernel.exception.SystemException;
401    
402            /**
403            * 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;.
404            *
405            * @param questionId the primary key of the current polls question
406            * @param groupId the group ID
407            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
408            * @return the previous, current, and next polls question
409            * @throws com.liferay.portlet.polls.NoSuchQuestionException if a polls question with the primary key could not be found
410            * @throws SystemException if a system exception occurred
411            */
412            public com.liferay.portlet.polls.model.PollsQuestion[] filterFindByGroupId_PrevAndNext(
413                    long questionId, long groupId,
414                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
415                    throws com.liferay.portal.kernel.exception.SystemException,
416                            com.liferay.portlet.polls.NoSuchQuestionException;
417    
418            /**
419            * Returns all the polls questions.
420            *
421            * @return the polls questions
422            * @throws SystemException if a system exception occurred
423            */
424            public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findAll()
425                    throws com.liferay.portal.kernel.exception.SystemException;
426    
427            /**
428            * Returns a range of all the polls questions.
429            *
430            * <p>
431            * 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.
432            * </p>
433            *
434            * @param start the lower bound of the range of polls questions
435            * @param end the upper bound of the range of polls questions (not inclusive)
436            * @return the range of polls questions
437            * @throws SystemException if a system exception occurred
438            */
439            public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findAll(
440                    int start, int end)
441                    throws com.liferay.portal.kernel.exception.SystemException;
442    
443            /**
444            * Returns an ordered range of all the polls questions.
445            *
446            * <p>
447            * 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.
448            * </p>
449            *
450            * @param start the lower bound of the range of polls questions
451            * @param end the upper bound of the range of polls questions (not inclusive)
452            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
453            * @return the ordered range of polls questions
454            * @throws SystemException if a system exception occurred
455            */
456            public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findAll(
457                    int start, int end,
458                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
459                    throws com.liferay.portal.kernel.exception.SystemException;
460    
461            /**
462            * Removes all the polls questions where uuid = &#63; from the database.
463            *
464            * @param uuid the uuid
465            * @throws SystemException if a system exception occurred
466            */
467            public void removeByUuid(java.lang.String uuid)
468                    throws com.liferay.portal.kernel.exception.SystemException;
469    
470            /**
471            * Removes the polls question where uuid = &#63; and groupId = &#63; from the database.
472            *
473            * @param uuid the uuid
474            * @param groupId the group ID
475            * @throws SystemException if a system exception occurred
476            */
477            public void removeByUUID_G(java.lang.String uuid, long groupId)
478                    throws com.liferay.portal.kernel.exception.SystemException,
479                            com.liferay.portlet.polls.NoSuchQuestionException;
480    
481            /**
482            * Removes all the polls questions where groupId = &#63; from the database.
483            *
484            * @param groupId the group ID
485            * @throws SystemException if a system exception occurred
486            */
487            public void removeByGroupId(long groupId)
488                    throws com.liferay.portal.kernel.exception.SystemException;
489    
490            /**
491            * Removes all the polls questions from the database.
492            *
493            * @throws SystemException if a system exception occurred
494            */
495            public void removeAll()
496                    throws com.liferay.portal.kernel.exception.SystemException;
497    
498            /**
499            * Returns the number of polls questions where uuid = &#63;.
500            *
501            * @param uuid the uuid
502            * @return the number of matching polls questions
503            * @throws SystemException if a system exception occurred
504            */
505            public int countByUuid(java.lang.String uuid)
506                    throws com.liferay.portal.kernel.exception.SystemException;
507    
508            /**
509            * Returns the number of polls questions where uuid = &#63; and groupId = &#63;.
510            *
511            * @param uuid the uuid
512            * @param groupId the group ID
513            * @return the number of matching polls questions
514            * @throws SystemException if a system exception occurred
515            */
516            public int countByUUID_G(java.lang.String uuid, long groupId)
517                    throws com.liferay.portal.kernel.exception.SystemException;
518    
519            /**
520            * Returns the number of polls questions where groupId = &#63;.
521            *
522            * @param groupId the group ID
523            * @return the number of matching polls questions
524            * @throws SystemException if a system exception occurred
525            */
526            public int countByGroupId(long groupId)
527                    throws com.liferay.portal.kernel.exception.SystemException;
528    
529            /**
530            * Returns the number of polls questions that the user has permission to view where groupId = &#63;.
531            *
532            * @param groupId the group ID
533            * @return the number of matching polls questions that the user has permission to view
534            * @throws SystemException if a system exception occurred
535            */
536            public int filterCountByGroupId(long groupId)
537                    throws com.liferay.portal.kernel.exception.SystemException;
538    
539            /**
540            * Returns the number of polls questions.
541            *
542            * @return the number of polls questions
543            * @throws SystemException if a system exception occurred
544            */
545            public int countAll()
546                    throws com.liferay.portal.kernel.exception.SystemException;
547    
548            public PollsQuestion remove(PollsQuestion pollsQuestion)
549                    throws SystemException;
550    }