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