001    /**
002     * Copyright (c) 2000-2012 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.messageboards.service.persistence;
016    
017    import com.liferay.portal.service.persistence.BasePersistence;
018    
019    import com.liferay.portlet.messageboards.model.MBThread;
020    
021    /**
022     * The persistence interface for the message boards thread service.
023     *
024     * <p>
025     * Caching information and settings can be found in <code>portal.properties</code>
026     * </p>
027     *
028     * @author Brian Wing Shun Chan
029     * @see MBThreadPersistenceImpl
030     * @see MBThreadUtil
031     * @generated
032     */
033    public interface MBThreadPersistence extends BasePersistence<MBThread> {
034            /*
035             * NOTE FOR DEVELOPERS:
036             *
037             * Never modify or reference this interface directly. Always use {@link MBThreadUtil} to access the message boards thread persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
038             */
039    
040            /**
041            * Caches the message boards thread in the entity cache if it is enabled.
042            *
043            * @param mbThread the message boards thread
044            */
045            public void cacheResult(
046                    com.liferay.portlet.messageboards.model.MBThread mbThread);
047    
048            /**
049            * Caches the message boards threads in the entity cache if it is enabled.
050            *
051            * @param mbThreads the message boards threads
052            */
053            public void cacheResult(
054                    java.util.List<com.liferay.portlet.messageboards.model.MBThread> mbThreads);
055    
056            /**
057            * Creates a new message boards thread with the primary key. Does not add the message boards thread to the database.
058            *
059            * @param threadId the primary key for the new message boards thread
060            * @return the new message boards thread
061            */
062            public com.liferay.portlet.messageboards.model.MBThread create(
063                    long threadId);
064    
065            /**
066            * Removes the message boards thread with the primary key from the database. Also notifies the appropriate model listeners.
067            *
068            * @param threadId the primary key of the message boards thread
069            * @return the message boards thread that was removed
070            * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a message boards thread with the primary key could not be found
071            * @throws SystemException if a system exception occurred
072            */
073            public com.liferay.portlet.messageboards.model.MBThread remove(
074                    long threadId)
075                    throws com.liferay.portal.kernel.exception.SystemException,
076                            com.liferay.portlet.messageboards.NoSuchThreadException;
077    
078            public com.liferay.portlet.messageboards.model.MBThread updateImpl(
079                    com.liferay.portlet.messageboards.model.MBThread mbThread, boolean merge)
080                    throws com.liferay.portal.kernel.exception.SystemException;
081    
082            /**
083            * Returns the message boards thread with the primary key or throws a {@link com.liferay.portlet.messageboards.NoSuchThreadException} if it could not be found.
084            *
085            * @param threadId the primary key of the message boards thread
086            * @return the message boards thread
087            * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a message boards thread with the primary key could not be found
088            * @throws SystemException if a system exception occurred
089            */
090            public com.liferay.portlet.messageboards.model.MBThread findByPrimaryKey(
091                    long threadId)
092                    throws com.liferay.portal.kernel.exception.SystemException,
093                            com.liferay.portlet.messageboards.NoSuchThreadException;
094    
095            /**
096            * Returns the message boards thread with the primary key or returns <code>null</code> if it could not be found.
097            *
098            * @param threadId the primary key of the message boards thread
099            * @return the message boards thread, or <code>null</code> if a message boards thread with the primary key could not be found
100            * @throws SystemException if a system exception occurred
101            */
102            public com.liferay.portlet.messageboards.model.MBThread fetchByPrimaryKey(
103                    long threadId)
104                    throws com.liferay.portal.kernel.exception.SystemException;
105    
106            /**
107            * Returns all the message boards threads where groupId = &#63;.
108            *
109            * @param groupId the group ID
110            * @return the matching message boards threads
111            * @throws SystemException if a system exception occurred
112            */
113            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByGroupId(
114                    long groupId)
115                    throws com.liferay.portal.kernel.exception.SystemException;
116    
117            /**
118            * Returns a range of all the message boards threads where groupId = &#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 groupId the group ID
125            * @param start the lower bound of the range of message boards threads
126            * @param end the upper bound of the range of message boards threads (not inclusive)
127            * @return the range of matching message boards threads
128            * @throws SystemException if a system exception occurred
129            */
130            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByGroupId(
131                    long groupId, int start, int end)
132                    throws com.liferay.portal.kernel.exception.SystemException;
133    
134            /**
135            * Returns an ordered range of all the message boards threads where groupId = &#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 groupId the group ID
142            * @param start the lower bound of the range of message boards threads
143            * @param end the upper bound of the range of message boards threads (not inclusive)
144            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
145            * @return the ordered range of matching message boards threads
146            * @throws SystemException if a system exception occurred
147            */
148            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByGroupId(
149                    long groupId, 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 message boards thread in the ordered set where groupId = &#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 groupId the group ID
161            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
162            * @return the first matching message boards thread
163            * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a matching message boards thread could not be found
164            * @throws SystemException if a system exception occurred
165            */
166            public com.liferay.portlet.messageboards.model.MBThread findByGroupId_First(
167                    long groupId,
168                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
169                    throws com.liferay.portal.kernel.exception.SystemException,
170                            com.liferay.portlet.messageboards.NoSuchThreadException;
171    
172            /**
173            * Returns the last message boards thread in the ordered set where groupId = &#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 groupId the group ID
180            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
181            * @return the last matching message boards thread
182            * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a matching message boards thread could not be found
183            * @throws SystemException if a system exception occurred
184            */
185            public com.liferay.portlet.messageboards.model.MBThread findByGroupId_Last(
186                    long groupId,
187                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
188                    throws com.liferay.portal.kernel.exception.SystemException,
189                            com.liferay.portlet.messageboards.NoSuchThreadException;
190    
191            /**
192            * Returns the message boards threads before and after the current message boards thread in the ordered set where groupId = &#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 threadId the primary key of the current message boards thread
199            * @param groupId the group ID
200            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
201            * @return the previous, current, and next message boards thread
202            * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a message boards thread with the primary key could not be found
203            * @throws SystemException if a system exception occurred
204            */
205            public com.liferay.portlet.messageboards.model.MBThread[] findByGroupId_PrevAndNext(
206                    long threadId, long groupId,
207                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
208                    throws com.liferay.portal.kernel.exception.SystemException,
209                            com.liferay.portlet.messageboards.NoSuchThreadException;
210    
211            /**
212            * Returns all the message boards threads that the user has permission to view where groupId = &#63;.
213            *
214            * @param groupId the group ID
215            * @return the matching message boards threads that the user has permission to view
216            * @throws SystemException if a system exception occurred
217            */
218            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> filterFindByGroupId(
219                    long groupId)
220                    throws com.liferay.portal.kernel.exception.SystemException;
221    
222            /**
223            * Returns a range of all the message boards threads that the user has permission to view where groupId = &#63;.
224            *
225            * <p>
226            * 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.
227            * </p>
228            *
229            * @param groupId the group ID
230            * @param start the lower bound of the range of message boards threads
231            * @param end the upper bound of the range of message boards threads (not inclusive)
232            * @return the range of matching message boards threads that the user has permission to view
233            * @throws SystemException if a system exception occurred
234            */
235            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> filterFindByGroupId(
236                    long groupId, int start, int end)
237                    throws com.liferay.portal.kernel.exception.SystemException;
238    
239            /**
240            * Returns an ordered range of all the message boards threads that the user has permissions to view where groupId = &#63;.
241            *
242            * <p>
243            * 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.
244            * </p>
245            *
246            * @param groupId the group ID
247            * @param start the lower bound of the range of message boards threads
248            * @param end the upper bound of the range of message boards threads (not inclusive)
249            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
250            * @return the ordered range of matching message boards threads that the user has permission to view
251            * @throws SystemException if a system exception occurred
252            */
253            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> filterFindByGroupId(
254                    long groupId, int start, int end,
255                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
256                    throws com.liferay.portal.kernel.exception.SystemException;
257    
258            /**
259            * Returns the message boards threads before and after the current message boards thread in the ordered set of message boards threads that the user has permission to view where groupId = &#63;.
260            *
261            * @param threadId the primary key of the current message boards thread
262            * @param groupId the group ID
263            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
264            * @return the previous, current, and next message boards thread
265            * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a message boards thread with the primary key could not be found
266            * @throws SystemException if a system exception occurred
267            */
268            public com.liferay.portlet.messageboards.model.MBThread[] filterFindByGroupId_PrevAndNext(
269                    long threadId, long groupId,
270                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
271                    throws com.liferay.portal.kernel.exception.SystemException,
272                            com.liferay.portlet.messageboards.NoSuchThreadException;
273    
274            /**
275            * Returns the message boards thread where rootMessageId = &#63; or throws a {@link com.liferay.portlet.messageboards.NoSuchThreadException} if it could not be found.
276            *
277            * @param rootMessageId the root message ID
278            * @return the matching message boards thread
279            * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a matching message boards thread could not be found
280            * @throws SystemException if a system exception occurred
281            */
282            public com.liferay.portlet.messageboards.model.MBThread findByRootMessageId(
283                    long rootMessageId)
284                    throws com.liferay.portal.kernel.exception.SystemException,
285                            com.liferay.portlet.messageboards.NoSuchThreadException;
286    
287            /**
288            * Returns the message boards thread where rootMessageId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
289            *
290            * @param rootMessageId the root message ID
291            * @return the matching message boards thread, or <code>null</code> if a matching message boards thread could not be found
292            * @throws SystemException if a system exception occurred
293            */
294            public com.liferay.portlet.messageboards.model.MBThread fetchByRootMessageId(
295                    long rootMessageId)
296                    throws com.liferay.portal.kernel.exception.SystemException;
297    
298            /**
299            * Returns the message boards thread where rootMessageId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
300            *
301            * @param rootMessageId the root message ID
302            * @param retrieveFromCache whether to use the finder cache
303            * @return the matching message boards thread, or <code>null</code> if a matching message boards thread could not be found
304            * @throws SystemException if a system exception occurred
305            */
306            public com.liferay.portlet.messageboards.model.MBThread fetchByRootMessageId(
307                    long rootMessageId, boolean retrieveFromCache)
308                    throws com.liferay.portal.kernel.exception.SystemException;
309    
310            /**
311            * Returns all the message boards threads where groupId = &#63; and categoryId = &#63;.
312            *
313            * @param groupId the group ID
314            * @param categoryId the category ID
315            * @return the matching message boards threads
316            * @throws SystemException if a system exception occurred
317            */
318            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C(
319                    long groupId, long categoryId)
320                    throws com.liferay.portal.kernel.exception.SystemException;
321    
322            /**
323            * Returns a range of all the message boards threads where groupId = &#63; and categoryId = &#63;.
324            *
325            * <p>
326            * 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.
327            * </p>
328            *
329            * @param groupId the group ID
330            * @param categoryId the category ID
331            * @param start the lower bound of the range of message boards threads
332            * @param end the upper bound of the range of message boards threads (not inclusive)
333            * @return the range of matching message boards threads
334            * @throws SystemException if a system exception occurred
335            */
336            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C(
337                    long groupId, long categoryId, int start, int end)
338                    throws com.liferay.portal.kernel.exception.SystemException;
339    
340            /**
341            * Returns an ordered range of all the message boards threads where groupId = &#63; and categoryId = &#63;.
342            *
343            * <p>
344            * 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.
345            * </p>
346            *
347            * @param groupId the group ID
348            * @param categoryId the category ID
349            * @param start the lower bound of the range of message boards threads
350            * @param end the upper bound of the range of message boards threads (not inclusive)
351            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
352            * @return the ordered range of matching message boards threads
353            * @throws SystemException if a system exception occurred
354            */
355            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C(
356                    long groupId, long categoryId, int start, int end,
357                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
358                    throws com.liferay.portal.kernel.exception.SystemException;
359    
360            /**
361            * Returns the first message boards thread in the ordered set where groupId = &#63; and categoryId = &#63;.
362            *
363            * <p>
364            * 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.
365            * </p>
366            *
367            * @param groupId the group ID
368            * @param categoryId the category ID
369            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
370            * @return the first matching message boards thread
371            * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a matching message boards thread could not be found
372            * @throws SystemException if a system exception occurred
373            */
374            public com.liferay.portlet.messageboards.model.MBThread findByG_C_First(
375                    long groupId, long categoryId,
376                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
377                    throws com.liferay.portal.kernel.exception.SystemException,
378                            com.liferay.portlet.messageboards.NoSuchThreadException;
379    
380            /**
381            * Returns the last message boards thread in the ordered set where groupId = &#63; and categoryId = &#63;.
382            *
383            * <p>
384            * 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.
385            * </p>
386            *
387            * @param groupId the group ID
388            * @param categoryId the category ID
389            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
390            * @return the last matching message boards thread
391            * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a matching message boards thread could not be found
392            * @throws SystemException if a system exception occurred
393            */
394            public com.liferay.portlet.messageboards.model.MBThread findByG_C_Last(
395                    long groupId, long categoryId,
396                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
397                    throws com.liferay.portal.kernel.exception.SystemException,
398                            com.liferay.portlet.messageboards.NoSuchThreadException;
399    
400            /**
401            * Returns the message boards threads before and after the current message boards thread in the ordered set where groupId = &#63; and categoryId = &#63;.
402            *
403            * <p>
404            * 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.
405            * </p>
406            *
407            * @param threadId the primary key of the current message boards thread
408            * @param groupId the group ID
409            * @param categoryId the category ID
410            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
411            * @return the previous, current, and next message boards thread
412            * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a message boards thread with the primary key could not be found
413            * @throws SystemException if a system exception occurred
414            */
415            public com.liferay.portlet.messageboards.model.MBThread[] findByG_C_PrevAndNext(
416                    long threadId, long groupId, long categoryId,
417                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
418                    throws com.liferay.portal.kernel.exception.SystemException,
419                            com.liferay.portlet.messageboards.NoSuchThreadException;
420    
421            /**
422            * Returns all the message boards threads where groupId = &#63; and categoryId = any &#63;.
423            *
424            * <p>
425            * 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.
426            * </p>
427            *
428            * @param groupId the group ID
429            * @param categoryIds the category IDs
430            * @return the matching message boards threads
431            * @throws SystemException if a system exception occurred
432            */
433            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C(
434                    long groupId, long[] categoryIds)
435                    throws com.liferay.portal.kernel.exception.SystemException;
436    
437            /**
438            * Returns a range of all the message boards threads where groupId = &#63; and categoryId = any &#63;.
439            *
440            * <p>
441            * 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.
442            * </p>
443            *
444            * @param groupId the group ID
445            * @param categoryIds the category IDs
446            * @param start the lower bound of the range of message boards threads
447            * @param end the upper bound of the range of message boards threads (not inclusive)
448            * @return the range of matching message boards threads
449            * @throws SystemException if a system exception occurred
450            */
451            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C(
452                    long groupId, long[] categoryIds, int start, int end)
453                    throws com.liferay.portal.kernel.exception.SystemException;
454    
455            /**
456            * Returns an ordered range of all the message boards threads where groupId = &#63; and categoryId = any &#63;.
457            *
458            * <p>
459            * 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.
460            * </p>
461            *
462            * @param groupId the group ID
463            * @param categoryIds the category IDs
464            * @param start the lower bound of the range of message boards threads
465            * @param end the upper bound of the range of message boards threads (not inclusive)
466            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
467            * @return the ordered range of matching message boards threads
468            * @throws SystemException if a system exception occurred
469            */
470            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C(
471                    long groupId, long[] categoryIds, int start, int end,
472                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
473                    throws com.liferay.portal.kernel.exception.SystemException;
474    
475            /**
476            * Returns all the message boards threads that the user has permission to view where groupId = &#63; and categoryId = &#63;.
477            *
478            * @param groupId the group ID
479            * @param categoryId the category ID
480            * @return the matching message boards threads that the user has permission to view
481            * @throws SystemException if a system exception occurred
482            */
483            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> filterFindByG_C(
484                    long groupId, long categoryId)
485                    throws com.liferay.portal.kernel.exception.SystemException;
486    
487            /**
488            * Returns a range of all the message boards threads that the user has permission to view where groupId = &#63; and categoryId = &#63;.
489            *
490            * <p>
491            * 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.
492            * </p>
493            *
494            * @param groupId the group ID
495            * @param categoryId the category ID
496            * @param start the lower bound of the range of message boards threads
497            * @param end the upper bound of the range of message boards threads (not inclusive)
498            * @return the range of matching message boards threads that the user has permission to view
499            * @throws SystemException if a system exception occurred
500            */
501            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> filterFindByG_C(
502                    long groupId, long categoryId, int start, int end)
503                    throws com.liferay.portal.kernel.exception.SystemException;
504    
505            /**
506            * Returns an ordered range of all the message boards threads that the user has permissions to view where groupId = &#63; and categoryId = &#63;.
507            *
508            * <p>
509            * 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.
510            * </p>
511            *
512            * @param groupId the group ID
513            * @param categoryId the category ID
514            * @param start the lower bound of the range of message boards threads
515            * @param end the upper bound of the range of message boards threads (not inclusive)
516            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
517            * @return the ordered range of matching message boards threads that the user has permission to view
518            * @throws SystemException if a system exception occurred
519            */
520            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> filterFindByG_C(
521                    long groupId, long categoryId, int start, int end,
522                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
523                    throws com.liferay.portal.kernel.exception.SystemException;
524    
525            /**
526            * Returns the message boards threads before and after the current message boards thread in the ordered set of message boards threads that the user has permission to view where groupId = &#63; and categoryId = &#63;.
527            *
528            * @param threadId the primary key of the current message boards thread
529            * @param groupId the group ID
530            * @param categoryId the category ID
531            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
532            * @return the previous, current, and next message boards thread
533            * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a message boards thread with the primary key could not be found
534            * @throws SystemException if a system exception occurred
535            */
536            public com.liferay.portlet.messageboards.model.MBThread[] filterFindByG_C_PrevAndNext(
537                    long threadId, long groupId, long categoryId,
538                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
539                    throws com.liferay.portal.kernel.exception.SystemException,
540                            com.liferay.portlet.messageboards.NoSuchThreadException;
541    
542            /**
543            * Returns all the message boards threads that the user has permission to view where groupId = &#63; and categoryId = any &#63;.
544            *
545            * @param groupId the group ID
546            * @param categoryIds the category IDs
547            * @return the matching message boards threads that the user has permission to view
548            * @throws SystemException if a system exception occurred
549            */
550            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> filterFindByG_C(
551                    long groupId, long[] categoryIds)
552                    throws com.liferay.portal.kernel.exception.SystemException;
553    
554            /**
555            * Returns a range of all the message boards threads that the user has permission to view where groupId = &#63; and categoryId = any &#63;.
556            *
557            * <p>
558            * 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.
559            * </p>
560            *
561            * @param groupId the group ID
562            * @param categoryIds the category IDs
563            * @param start the lower bound of the range of message boards threads
564            * @param end the upper bound of the range of message boards threads (not inclusive)
565            * @return the range of matching message boards threads that the user has permission to view
566            * @throws SystemException if a system exception occurred
567            */
568            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> filterFindByG_C(
569                    long groupId, long[] categoryIds, int start, int end)
570                    throws com.liferay.portal.kernel.exception.SystemException;
571    
572            /**
573            * Returns an ordered range of all the message boards threads that the user has permission to view where groupId = &#63; and categoryId = any &#63;.
574            *
575            * <p>
576            * 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.
577            * </p>
578            *
579            * @param groupId the group ID
580            * @param categoryIds the category IDs
581            * @param start the lower bound of the range of message boards threads
582            * @param end the upper bound of the range of message boards threads (not inclusive)
583            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
584            * @return the ordered range of matching message boards threads that the user has permission to view
585            * @throws SystemException if a system exception occurred
586            */
587            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> filterFindByG_C(
588                    long groupId, long[] categoryIds, int start, int end,
589                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
590                    throws com.liferay.portal.kernel.exception.SystemException;
591    
592            /**
593            * Returns all the message boards threads where groupId = &#63; and categoryId &ne; &#63;.
594            *
595            * @param groupId the group ID
596            * @param categoryId the category ID
597            * @return the matching message boards threads
598            * @throws SystemException if a system exception occurred
599            */
600            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_NotC(
601                    long groupId, long categoryId)
602                    throws com.liferay.portal.kernel.exception.SystemException;
603    
604            /**
605            * Returns a range of all the message boards threads where groupId = &#63; and categoryId &ne; &#63;.
606            *
607            * <p>
608            * 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.
609            * </p>
610            *
611            * @param groupId the group ID
612            * @param categoryId the category ID
613            * @param start the lower bound of the range of message boards threads
614            * @param end the upper bound of the range of message boards threads (not inclusive)
615            * @return the range of matching message boards threads
616            * @throws SystemException if a system exception occurred
617            */
618            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_NotC(
619                    long groupId, long categoryId, int start, int end)
620                    throws com.liferay.portal.kernel.exception.SystemException;
621    
622            /**
623            * Returns an ordered range of all the message boards threads where groupId = &#63; and categoryId &ne; &#63;.
624            *
625            * <p>
626            * 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.
627            * </p>
628            *
629            * @param groupId the group ID
630            * @param categoryId the category ID
631            * @param start the lower bound of the range of message boards threads
632            * @param end the upper bound of the range of message boards threads (not inclusive)
633            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
634            * @return the ordered range of matching message boards threads
635            * @throws SystemException if a system exception occurred
636            */
637            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_NotC(
638                    long groupId, long categoryId, int start, int end,
639                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
640                    throws com.liferay.portal.kernel.exception.SystemException;
641    
642            /**
643            * Returns the first message boards thread in the ordered set where groupId = &#63; and categoryId &ne; &#63;.
644            *
645            * <p>
646            * 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.
647            * </p>
648            *
649            * @param groupId the group ID
650            * @param categoryId the category ID
651            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
652            * @return the first matching message boards thread
653            * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a matching message boards thread could not be found
654            * @throws SystemException if a system exception occurred
655            */
656            public com.liferay.portlet.messageboards.model.MBThread findByG_NotC_First(
657                    long groupId, long categoryId,
658                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
659                    throws com.liferay.portal.kernel.exception.SystemException,
660                            com.liferay.portlet.messageboards.NoSuchThreadException;
661    
662            /**
663            * Returns the last message boards thread in the ordered set where groupId = &#63; and categoryId &ne; &#63;.
664            *
665            * <p>
666            * 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.
667            * </p>
668            *
669            * @param groupId the group ID
670            * @param categoryId the category ID
671            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
672            * @return the last matching message boards thread
673            * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a matching message boards thread could not be found
674            * @throws SystemException if a system exception occurred
675            */
676            public com.liferay.portlet.messageboards.model.MBThread findByG_NotC_Last(
677                    long groupId, long categoryId,
678                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
679                    throws com.liferay.portal.kernel.exception.SystemException,
680                            com.liferay.portlet.messageboards.NoSuchThreadException;
681    
682            /**
683            * Returns the message boards threads before and after the current message boards thread in the ordered set where groupId = &#63; and categoryId &ne; &#63;.
684            *
685            * <p>
686            * 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.
687            * </p>
688            *
689            * @param threadId the primary key of the current message boards thread
690            * @param groupId the group ID
691            * @param categoryId the category ID
692            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
693            * @return the previous, current, and next message boards thread
694            * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a message boards thread with the primary key could not be found
695            * @throws SystemException if a system exception occurred
696            */
697            public com.liferay.portlet.messageboards.model.MBThread[] findByG_NotC_PrevAndNext(
698                    long threadId, long groupId, long categoryId,
699                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
700                    throws com.liferay.portal.kernel.exception.SystemException,
701                            com.liferay.portlet.messageboards.NoSuchThreadException;
702    
703            /**
704            * Returns all the message boards threads that the user has permission to view where groupId = &#63; and categoryId &ne; &#63;.
705            *
706            * @param groupId the group ID
707            * @param categoryId the category ID
708            * @return the matching message boards threads that the user has permission to view
709            * @throws SystemException if a system exception occurred
710            */
711            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> filterFindByG_NotC(
712                    long groupId, long categoryId)
713                    throws com.liferay.portal.kernel.exception.SystemException;
714    
715            /**
716            * Returns a range of all the message boards threads that the user has permission to view where groupId = &#63; and categoryId &ne; &#63;.
717            *
718            * <p>
719            * 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.
720            * </p>
721            *
722            * @param groupId the group ID
723            * @param categoryId the category ID
724            * @param start the lower bound of the range of message boards threads
725            * @param end the upper bound of the range of message boards threads (not inclusive)
726            * @return the range of matching message boards threads that the user has permission to view
727            * @throws SystemException if a system exception occurred
728            */
729            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> filterFindByG_NotC(
730                    long groupId, long categoryId, int start, int end)
731                    throws com.liferay.portal.kernel.exception.SystemException;
732    
733            /**
734            * Returns an ordered range of all the message boards threads that the user has permissions to view where groupId = &#63; and categoryId &ne; &#63;.
735            *
736            * <p>
737            * 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.
738            * </p>
739            *
740            * @param groupId the group ID
741            * @param categoryId the category ID
742            * @param start the lower bound of the range of message boards threads
743            * @param end the upper bound of the range of message boards threads (not inclusive)
744            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
745            * @return the ordered range of matching message boards threads that the user has permission to view
746            * @throws SystemException if a system exception occurred
747            */
748            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> filterFindByG_NotC(
749                    long groupId, long categoryId, int start, int end,
750                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
751                    throws com.liferay.portal.kernel.exception.SystemException;
752    
753            /**
754            * Returns the message boards threads before and after the current message boards thread in the ordered set of message boards threads that the user has permission to view where groupId = &#63; and categoryId &ne; &#63;.
755            *
756            * @param threadId the primary key of the current message boards thread
757            * @param groupId the group ID
758            * @param categoryId the category ID
759            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
760            * @return the previous, current, and next message boards thread
761            * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a message boards thread with the primary key could not be found
762            * @throws SystemException if a system exception occurred
763            */
764            public com.liferay.portlet.messageboards.model.MBThread[] filterFindByG_NotC_PrevAndNext(
765                    long threadId, long groupId, long categoryId,
766                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
767                    throws com.liferay.portal.kernel.exception.SystemException,
768                            com.liferay.portlet.messageboards.NoSuchThreadException;
769    
770            /**
771            * Returns all the message boards threads where groupId = &#63; and status = &#63;.
772            *
773            * @param groupId the group ID
774            * @param status the status
775            * @return the matching message boards threads
776            * @throws SystemException if a system exception occurred
777            */
778            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_S(
779                    long groupId, int status)
780                    throws com.liferay.portal.kernel.exception.SystemException;
781    
782            /**
783            * Returns a range of all the message boards threads where groupId = &#63; and status = &#63;.
784            *
785            * <p>
786            * 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.
787            * </p>
788            *
789            * @param groupId the group ID
790            * @param status the status
791            * @param start the lower bound of the range of message boards threads
792            * @param end the upper bound of the range of message boards threads (not inclusive)
793            * @return the range of matching message boards threads
794            * @throws SystemException if a system exception occurred
795            */
796            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_S(
797                    long groupId, int status, int start, int end)
798                    throws com.liferay.portal.kernel.exception.SystemException;
799    
800            /**
801            * Returns an ordered range of all the message boards threads where groupId = &#63; and status = &#63;.
802            *
803            * <p>
804            * 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.
805            * </p>
806            *
807            * @param groupId the group ID
808            * @param status the status
809            * @param start the lower bound of the range of message boards threads
810            * @param end the upper bound of the range of message boards threads (not inclusive)
811            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
812            * @return the ordered range of matching message boards threads
813            * @throws SystemException if a system exception occurred
814            */
815            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_S(
816                    long groupId, int status, int start, int end,
817                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
818                    throws com.liferay.portal.kernel.exception.SystemException;
819    
820            /**
821            * Returns the first message boards thread in the ordered set where groupId = &#63; and status = &#63;.
822            *
823            * <p>
824            * 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.
825            * </p>
826            *
827            * @param groupId the group ID
828            * @param status the status
829            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
830            * @return the first matching message boards thread
831            * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a matching message boards thread could not be found
832            * @throws SystemException if a system exception occurred
833            */
834            public com.liferay.portlet.messageboards.model.MBThread findByG_S_First(
835                    long groupId, int status,
836                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
837                    throws com.liferay.portal.kernel.exception.SystemException,
838                            com.liferay.portlet.messageboards.NoSuchThreadException;
839    
840            /**
841            * Returns the last message boards thread in the ordered set where groupId = &#63; and status = &#63;.
842            *
843            * <p>
844            * 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.
845            * </p>
846            *
847            * @param groupId the group ID
848            * @param status the status
849            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
850            * @return the last matching message boards thread
851            * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a matching message boards thread could not be found
852            * @throws SystemException if a system exception occurred
853            */
854            public com.liferay.portlet.messageboards.model.MBThread findByG_S_Last(
855                    long groupId, int status,
856                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
857                    throws com.liferay.portal.kernel.exception.SystemException,
858                            com.liferay.portlet.messageboards.NoSuchThreadException;
859    
860            /**
861            * Returns the message boards threads before and after the current message boards thread in the ordered set where groupId = &#63; and status = &#63;.
862            *
863            * <p>
864            * 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.
865            * </p>
866            *
867            * @param threadId the primary key of the current message boards thread
868            * @param groupId the group ID
869            * @param status the status
870            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
871            * @return the previous, current, and next message boards thread
872            * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a message boards thread with the primary key could not be found
873            * @throws SystemException if a system exception occurred
874            */
875            public com.liferay.portlet.messageboards.model.MBThread[] findByG_S_PrevAndNext(
876                    long threadId, long groupId, int status,
877                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
878                    throws com.liferay.portal.kernel.exception.SystemException,
879                            com.liferay.portlet.messageboards.NoSuchThreadException;
880    
881            /**
882            * Returns all the message boards threads that the user has permission to view where groupId = &#63; and status = &#63;.
883            *
884            * @param groupId the group ID
885            * @param status the status
886            * @return the matching message boards threads that the user has permission to view
887            * @throws SystemException if a system exception occurred
888            */
889            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> filterFindByG_S(
890                    long groupId, int status)
891                    throws com.liferay.portal.kernel.exception.SystemException;
892    
893            /**
894            * Returns a range of all the message boards threads that the user has permission to view where groupId = &#63; and status = &#63;.
895            *
896            * <p>
897            * 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.
898            * </p>
899            *
900            * @param groupId the group ID
901            * @param status the status
902            * @param start the lower bound of the range of message boards threads
903            * @param end the upper bound of the range of message boards threads (not inclusive)
904            * @return the range of matching message boards threads that the user has permission to view
905            * @throws SystemException if a system exception occurred
906            */
907            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> filterFindByG_S(
908                    long groupId, int status, int start, int end)
909                    throws com.liferay.portal.kernel.exception.SystemException;
910    
911            /**
912            * Returns an ordered range of all the message boards threads that the user has permissions to view where groupId = &#63; and status = &#63;.
913            *
914            * <p>
915            * 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.
916            * </p>
917            *
918            * @param groupId the group ID
919            * @param status the status
920            * @param start the lower bound of the range of message boards threads
921            * @param end the upper bound of the range of message boards threads (not inclusive)
922            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
923            * @return the ordered range of matching message boards threads that the user has permission to view
924            * @throws SystemException if a system exception occurred
925            */
926            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> filterFindByG_S(
927                    long groupId, int status, int start, int end,
928                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
929                    throws com.liferay.portal.kernel.exception.SystemException;
930    
931            /**
932            * Returns the message boards threads before and after the current message boards thread in the ordered set of message boards threads that the user has permission to view where groupId = &#63; and status = &#63;.
933            *
934            * @param threadId the primary key of the current message boards thread
935            * @param groupId the group ID
936            * @param status the status
937            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
938            * @return the previous, current, and next message boards thread
939            * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a message boards thread with the primary key could not be found
940            * @throws SystemException if a system exception occurred
941            */
942            public com.liferay.portlet.messageboards.model.MBThread[] filterFindByG_S_PrevAndNext(
943                    long threadId, long groupId, int status,
944                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
945                    throws com.liferay.portal.kernel.exception.SystemException,
946                            com.liferay.portlet.messageboards.NoSuchThreadException;
947    
948            /**
949            * Returns all the message boards threads where categoryId = &#63; and priority = &#63;.
950            *
951            * @param categoryId the category ID
952            * @param priority the priority
953            * @return the matching message boards threads
954            * @throws SystemException if a system exception occurred
955            */
956            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByC_P(
957                    long categoryId, double priority)
958                    throws com.liferay.portal.kernel.exception.SystemException;
959    
960            /**
961            * Returns a range of all the message boards threads where categoryId = &#63; and priority = &#63;.
962            *
963            * <p>
964            * 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.
965            * </p>
966            *
967            * @param categoryId the category ID
968            * @param priority the priority
969            * @param start the lower bound of the range of message boards threads
970            * @param end the upper bound of the range of message boards threads (not inclusive)
971            * @return the range of matching message boards threads
972            * @throws SystemException if a system exception occurred
973            */
974            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByC_P(
975                    long categoryId, double priority, int start, int end)
976                    throws com.liferay.portal.kernel.exception.SystemException;
977    
978            /**
979            * Returns an ordered range of all the message boards threads where categoryId = &#63; and priority = &#63;.
980            *
981            * <p>
982            * 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.
983            * </p>
984            *
985            * @param categoryId the category ID
986            * @param priority the priority
987            * @param start the lower bound of the range of message boards threads
988            * @param end the upper bound of the range of message boards threads (not inclusive)
989            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
990            * @return the ordered range of matching message boards threads
991            * @throws SystemException if a system exception occurred
992            */
993            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByC_P(
994                    long categoryId, double priority, int start, int end,
995                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
996                    throws com.liferay.portal.kernel.exception.SystemException;
997    
998            /**
999            * Returns the first message boards thread in the ordered set where categoryId = &#63; and priority = &#63;.
1000            *
1001            * <p>
1002            * 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.
1003            * </p>
1004            *
1005            * @param categoryId the category ID
1006            * @param priority the priority
1007            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1008            * @return the first matching message boards thread
1009            * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a matching message boards thread could not be found
1010            * @throws SystemException if a system exception occurred
1011            */
1012            public com.liferay.portlet.messageboards.model.MBThread findByC_P_First(
1013                    long categoryId, double priority,
1014                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1015                    throws com.liferay.portal.kernel.exception.SystemException,
1016                            com.liferay.portlet.messageboards.NoSuchThreadException;
1017    
1018            /**
1019            * Returns the last message boards thread in the ordered set where categoryId = &#63; and priority = &#63;.
1020            *
1021            * <p>
1022            * 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.
1023            * </p>
1024            *
1025            * @param categoryId the category ID
1026            * @param priority the priority
1027            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1028            * @return the last matching message boards thread
1029            * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a matching message boards thread could not be found
1030            * @throws SystemException if a system exception occurred
1031            */
1032            public com.liferay.portlet.messageboards.model.MBThread findByC_P_Last(
1033                    long categoryId, double priority,
1034                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1035                    throws com.liferay.portal.kernel.exception.SystemException,
1036                            com.liferay.portlet.messageboards.NoSuchThreadException;
1037    
1038            /**
1039            * Returns the message boards threads before and after the current message boards thread in the ordered set where categoryId = &#63; and priority = &#63;.
1040            *
1041            * <p>
1042            * 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.
1043            * </p>
1044            *
1045            * @param threadId the primary key of the current message boards thread
1046            * @param categoryId the category ID
1047            * @param priority the priority
1048            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1049            * @return the previous, current, and next message boards thread
1050            * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a message boards thread with the primary key could not be found
1051            * @throws SystemException if a system exception occurred
1052            */
1053            public com.liferay.portlet.messageboards.model.MBThread[] findByC_P_PrevAndNext(
1054                    long threadId, long categoryId, double priority,
1055                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1056                    throws com.liferay.portal.kernel.exception.SystemException,
1057                            com.liferay.portlet.messageboards.NoSuchThreadException;
1058    
1059            /**
1060            * Returns all the message boards threads where lastPostDate = &#63; and priority = &#63;.
1061            *
1062            * @param lastPostDate the last post date
1063            * @param priority the priority
1064            * @return the matching message boards threads
1065            * @throws SystemException if a system exception occurred
1066            */
1067            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByL_P(
1068                    java.util.Date lastPostDate, double priority)
1069                    throws com.liferay.portal.kernel.exception.SystemException;
1070    
1071            /**
1072            * Returns a range of all the message boards threads where lastPostDate = &#63; and priority = &#63;.
1073            *
1074            * <p>
1075            * 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.
1076            * </p>
1077            *
1078            * @param lastPostDate the last post date
1079            * @param priority the priority
1080            * @param start the lower bound of the range of message boards threads
1081            * @param end the upper bound of the range of message boards threads (not inclusive)
1082            * @return the range of matching message boards threads
1083            * @throws SystemException if a system exception occurred
1084            */
1085            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByL_P(
1086                    java.util.Date lastPostDate, double priority, int start, int end)
1087                    throws com.liferay.portal.kernel.exception.SystemException;
1088    
1089            /**
1090            * Returns an ordered range of all the message boards threads where lastPostDate = &#63; and priority = &#63;.
1091            *
1092            * <p>
1093            * 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.
1094            * </p>
1095            *
1096            * @param lastPostDate the last post date
1097            * @param priority the priority
1098            * @param start the lower bound of the range of message boards threads
1099            * @param end the upper bound of the range of message boards threads (not inclusive)
1100            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1101            * @return the ordered range of matching message boards threads
1102            * @throws SystemException if a system exception occurred
1103            */
1104            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByL_P(
1105                    java.util.Date lastPostDate, double priority, int start, int end,
1106                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1107                    throws com.liferay.portal.kernel.exception.SystemException;
1108    
1109            /**
1110            * Returns the first message boards thread in the ordered set where lastPostDate = &#63; and priority = &#63;.
1111            *
1112            * <p>
1113            * 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.
1114            * </p>
1115            *
1116            * @param lastPostDate the last post date
1117            * @param priority the priority
1118            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1119            * @return the first matching message boards thread
1120            * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a matching message boards thread could not be found
1121            * @throws SystemException if a system exception occurred
1122            */
1123            public com.liferay.portlet.messageboards.model.MBThread findByL_P_First(
1124                    java.util.Date lastPostDate, double priority,
1125                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1126                    throws com.liferay.portal.kernel.exception.SystemException,
1127                            com.liferay.portlet.messageboards.NoSuchThreadException;
1128    
1129            /**
1130            * Returns the last message boards thread in the ordered set where lastPostDate = &#63; and priority = &#63;.
1131            *
1132            * <p>
1133            * 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.
1134            * </p>
1135            *
1136            * @param lastPostDate the last post date
1137            * @param priority the priority
1138            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1139            * @return the last matching message boards thread
1140            * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a matching message boards thread could not be found
1141            * @throws SystemException if a system exception occurred
1142            */
1143            public com.liferay.portlet.messageboards.model.MBThread findByL_P_Last(
1144                    java.util.Date lastPostDate, double priority,
1145                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1146                    throws com.liferay.portal.kernel.exception.SystemException,
1147                            com.liferay.portlet.messageboards.NoSuchThreadException;
1148    
1149            /**
1150            * Returns the message boards threads before and after the current message boards thread in the ordered set where lastPostDate = &#63; and priority = &#63;.
1151            *
1152            * <p>
1153            * 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.
1154            * </p>
1155            *
1156            * @param threadId the primary key of the current message boards thread
1157            * @param lastPostDate the last post date
1158            * @param priority the priority
1159            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1160            * @return the previous, current, and next message boards thread
1161            * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a message boards thread with the primary key could not be found
1162            * @throws SystemException if a system exception occurred
1163            */
1164            public com.liferay.portlet.messageboards.model.MBThread[] findByL_P_PrevAndNext(
1165                    long threadId, java.util.Date lastPostDate, double priority,
1166                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1167                    throws com.liferay.portal.kernel.exception.SystemException,
1168                            com.liferay.portlet.messageboards.NoSuchThreadException;
1169    
1170            /**
1171            * Returns all the message boards threads where groupId = &#63; and categoryId = &#63; and lastPostDate = &#63;.
1172            *
1173            * @param groupId the group ID
1174            * @param categoryId the category ID
1175            * @param lastPostDate the last post date
1176            * @return the matching message boards threads
1177            * @throws SystemException if a system exception occurred
1178            */
1179            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C_L(
1180                    long groupId, long categoryId, java.util.Date lastPostDate)
1181                    throws com.liferay.portal.kernel.exception.SystemException;
1182    
1183            /**
1184            * Returns a range of all the message boards threads where groupId = &#63; and categoryId = &#63; and lastPostDate = &#63;.
1185            *
1186            * <p>
1187            * 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.
1188            * </p>
1189            *
1190            * @param groupId the group ID
1191            * @param categoryId the category ID
1192            * @param lastPostDate the last post date
1193            * @param start the lower bound of the range of message boards threads
1194            * @param end the upper bound of the range of message boards threads (not inclusive)
1195            * @return the range of matching message boards threads
1196            * @throws SystemException if a system exception occurred
1197            */
1198            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C_L(
1199                    long groupId, long categoryId, java.util.Date lastPostDate, int start,
1200                    int end) throws com.liferay.portal.kernel.exception.SystemException;
1201    
1202            /**
1203            * Returns an ordered range of all the message boards threads where groupId = &#63; and categoryId = &#63; and lastPostDate = &#63;.
1204            *
1205            * <p>
1206            * 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.
1207            * </p>
1208            *
1209            * @param groupId the group ID
1210            * @param categoryId the category ID
1211            * @param lastPostDate the last post date
1212            * @param start the lower bound of the range of message boards threads
1213            * @param end the upper bound of the range of message boards threads (not inclusive)
1214            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1215            * @return the ordered range of matching message boards threads
1216            * @throws SystemException if a system exception occurred
1217            */
1218            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C_L(
1219                    long groupId, long categoryId, java.util.Date lastPostDate, int start,
1220                    int end,
1221                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1222                    throws com.liferay.portal.kernel.exception.SystemException;
1223    
1224            /**
1225            * Returns the first message boards thread in the ordered set where groupId = &#63; and categoryId = &#63; and lastPostDate = &#63;.
1226            *
1227            * <p>
1228            * 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.
1229            * </p>
1230            *
1231            * @param groupId the group ID
1232            * @param categoryId the category ID
1233            * @param lastPostDate the last post date
1234            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1235            * @return the first matching message boards thread
1236            * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a matching message boards thread could not be found
1237            * @throws SystemException if a system exception occurred
1238            */
1239            public com.liferay.portlet.messageboards.model.MBThread findByG_C_L_First(
1240                    long groupId, long categoryId, java.util.Date lastPostDate,
1241                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1242                    throws com.liferay.portal.kernel.exception.SystemException,
1243                            com.liferay.portlet.messageboards.NoSuchThreadException;
1244    
1245            /**
1246            * Returns the last message boards thread in the ordered set where groupId = &#63; and categoryId = &#63; and lastPostDate = &#63;.
1247            *
1248            * <p>
1249            * 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.
1250            * </p>
1251            *
1252            * @param groupId the group ID
1253            * @param categoryId the category ID
1254            * @param lastPostDate the last post date
1255            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1256            * @return the last matching message boards thread
1257            * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a matching message boards thread could not be found
1258            * @throws SystemException if a system exception occurred
1259            */
1260            public com.liferay.portlet.messageboards.model.MBThread findByG_C_L_Last(
1261                    long groupId, long categoryId, java.util.Date lastPostDate,
1262                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1263                    throws com.liferay.portal.kernel.exception.SystemException,
1264                            com.liferay.portlet.messageboards.NoSuchThreadException;
1265    
1266            /**
1267            * Returns the message boards threads before and after the current message boards thread in the ordered set where groupId = &#63; and categoryId = &#63; and lastPostDate = &#63;.
1268            *
1269            * <p>
1270            * 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.
1271            * </p>
1272            *
1273            * @param threadId the primary key of the current message boards thread
1274            * @param groupId the group ID
1275            * @param categoryId the category ID
1276            * @param lastPostDate the last post date
1277            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1278            * @return the previous, current, and next message boards thread
1279            * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a message boards thread with the primary key could not be found
1280            * @throws SystemException if a system exception occurred
1281            */
1282            public com.liferay.portlet.messageboards.model.MBThread[] findByG_C_L_PrevAndNext(
1283                    long threadId, long groupId, long categoryId,
1284                    java.util.Date lastPostDate,
1285                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1286                    throws com.liferay.portal.kernel.exception.SystemException,
1287                            com.liferay.portlet.messageboards.NoSuchThreadException;
1288    
1289            /**
1290            * Returns all the message boards threads that the user has permission to view where groupId = &#63; and categoryId = &#63; and lastPostDate = &#63;.
1291            *
1292            * @param groupId the group ID
1293            * @param categoryId the category ID
1294            * @param lastPostDate the last post date
1295            * @return the matching message boards threads that the user has permission to view
1296            * @throws SystemException if a system exception occurred
1297            */
1298            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> filterFindByG_C_L(
1299                    long groupId, long categoryId, java.util.Date lastPostDate)
1300                    throws com.liferay.portal.kernel.exception.SystemException;
1301    
1302            /**
1303            * Returns a range of all the message boards threads that the user has permission to view where groupId = &#63; and categoryId = &#63; and lastPostDate = &#63;.
1304            *
1305            * <p>
1306            * 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.
1307            * </p>
1308            *
1309            * @param groupId the group ID
1310            * @param categoryId the category ID
1311            * @param lastPostDate the last post date
1312            * @param start the lower bound of the range of message boards threads
1313            * @param end the upper bound of the range of message boards threads (not inclusive)
1314            * @return the range of matching message boards threads that the user has permission to view
1315            * @throws SystemException if a system exception occurred
1316            */
1317            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> filterFindByG_C_L(
1318                    long groupId, long categoryId, java.util.Date lastPostDate, int start,
1319                    int end) throws com.liferay.portal.kernel.exception.SystemException;
1320    
1321            /**
1322            * Returns an ordered range of all the message boards threads that the user has permissions to view where groupId = &#63; and categoryId = &#63; and lastPostDate = &#63;.
1323            *
1324            * <p>
1325            * 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.
1326            * </p>
1327            *
1328            * @param groupId the group ID
1329            * @param categoryId the category ID
1330            * @param lastPostDate the last post date
1331            * @param start the lower bound of the range of message boards threads
1332            * @param end the upper bound of the range of message boards threads (not inclusive)
1333            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1334            * @return the ordered range of matching message boards threads that the user has permission to view
1335            * @throws SystemException if a system exception occurred
1336            */
1337            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> filterFindByG_C_L(
1338                    long groupId, long categoryId, java.util.Date lastPostDate, int start,
1339                    int end,
1340                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1341                    throws com.liferay.portal.kernel.exception.SystemException;
1342    
1343            /**
1344            * Returns the message boards threads before and after the current message boards thread in the ordered set of message boards threads that the user has permission to view where groupId = &#63; and categoryId = &#63; and lastPostDate = &#63;.
1345            *
1346            * @param threadId the primary key of the current message boards thread
1347            * @param groupId the group ID
1348            * @param categoryId the category ID
1349            * @param lastPostDate the last post date
1350            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1351            * @return the previous, current, and next message boards thread
1352            * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a message boards thread with the primary key could not be found
1353            * @throws SystemException if a system exception occurred
1354            */
1355            public com.liferay.portlet.messageboards.model.MBThread[] filterFindByG_C_L_PrevAndNext(
1356                    long threadId, long groupId, long categoryId,
1357                    java.util.Date lastPostDate,
1358                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1359                    throws com.liferay.portal.kernel.exception.SystemException,
1360                            com.liferay.portlet.messageboards.NoSuchThreadException;
1361    
1362            /**
1363            * Returns all the message boards threads where groupId = &#63; and categoryId = &#63; and status = &#63;.
1364            *
1365            * @param groupId the group ID
1366            * @param categoryId the category ID
1367            * @param status the status
1368            * @return the matching message boards threads
1369            * @throws SystemException if a system exception occurred
1370            */
1371            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C_S(
1372                    long groupId, long categoryId, int status)
1373                    throws com.liferay.portal.kernel.exception.SystemException;
1374    
1375            /**
1376            * Returns a range of all the message boards threads where groupId = &#63; and categoryId = &#63; and status = &#63;.
1377            *
1378            * <p>
1379            * 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.
1380            * </p>
1381            *
1382            * @param groupId the group ID
1383            * @param categoryId the category ID
1384            * @param status the status
1385            * @param start the lower bound of the range of message boards threads
1386            * @param end the upper bound of the range of message boards threads (not inclusive)
1387            * @return the range of matching message boards threads
1388            * @throws SystemException if a system exception occurred
1389            */
1390            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C_S(
1391                    long groupId, long categoryId, int status, int start, int end)
1392                    throws com.liferay.portal.kernel.exception.SystemException;
1393    
1394            /**
1395            * Returns an ordered range of all the message boards threads where groupId = &#63; and categoryId = &#63; and status = &#63;.
1396            *
1397            * <p>
1398            * 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.
1399            * </p>
1400            *
1401            * @param groupId the group ID
1402            * @param categoryId the category ID
1403            * @param status the status
1404            * @param start the lower bound of the range of message boards threads
1405            * @param end the upper bound of the range of message boards threads (not inclusive)
1406            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1407            * @return the ordered range of matching message boards threads
1408            * @throws SystemException if a system exception occurred
1409            */
1410            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C_S(
1411                    long groupId, long categoryId, int status, int start, int end,
1412                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1413                    throws com.liferay.portal.kernel.exception.SystemException;
1414    
1415            /**
1416            * Returns the first message boards thread in the ordered set where groupId = &#63; and categoryId = &#63; and status = &#63;.
1417            *
1418            * <p>
1419            * 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.
1420            * </p>
1421            *
1422            * @param groupId the group ID
1423            * @param categoryId the category ID
1424            * @param status the status
1425            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1426            * @return the first matching message boards thread
1427            * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a matching message boards thread could not be found
1428            * @throws SystemException if a system exception occurred
1429            */
1430            public com.liferay.portlet.messageboards.model.MBThread findByG_C_S_First(
1431                    long groupId, long categoryId, int status,
1432                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1433                    throws com.liferay.portal.kernel.exception.SystemException,
1434                            com.liferay.portlet.messageboards.NoSuchThreadException;
1435    
1436            /**
1437            * Returns the last message boards thread in the ordered set where groupId = &#63; and categoryId = &#63; and status = &#63;.
1438            *
1439            * <p>
1440            * 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.
1441            * </p>
1442            *
1443            * @param groupId the group ID
1444            * @param categoryId the category ID
1445            * @param status the status
1446            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1447            * @return the last matching message boards thread
1448            * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a matching message boards thread could not be found
1449            * @throws SystemException if a system exception occurred
1450            */
1451            public com.liferay.portlet.messageboards.model.MBThread findByG_C_S_Last(
1452                    long groupId, long categoryId, int status,
1453                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1454                    throws com.liferay.portal.kernel.exception.SystemException,
1455                            com.liferay.portlet.messageboards.NoSuchThreadException;
1456    
1457            /**
1458            * Returns the message boards threads before and after the current message boards thread in the ordered set where groupId = &#63; and categoryId = &#63; and status = &#63;.
1459            *
1460            * <p>
1461            * 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.
1462            * </p>
1463            *
1464            * @param threadId the primary key of the current message boards thread
1465            * @param groupId the group ID
1466            * @param categoryId the category ID
1467            * @param status the status
1468            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1469            * @return the previous, current, and next message boards thread
1470            * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a message boards thread with the primary key could not be found
1471            * @throws SystemException if a system exception occurred
1472            */
1473            public com.liferay.portlet.messageboards.model.MBThread[] findByG_C_S_PrevAndNext(
1474                    long threadId, long groupId, long categoryId, int status,
1475                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1476                    throws com.liferay.portal.kernel.exception.SystemException,
1477                            com.liferay.portlet.messageboards.NoSuchThreadException;
1478    
1479            /**
1480            * Returns all the message boards threads where groupId = &#63; and categoryId = any &#63; and status = &#63;.
1481            *
1482            * <p>
1483            * 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.
1484            * </p>
1485            *
1486            * @param groupId the group ID
1487            * @param categoryIds the category IDs
1488            * @param status the status
1489            * @return the matching message boards threads
1490            * @throws SystemException if a system exception occurred
1491            */
1492            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C_S(
1493                    long groupId, long[] categoryIds, int status)
1494                    throws com.liferay.portal.kernel.exception.SystemException;
1495    
1496            /**
1497            * Returns a range of all the message boards threads where groupId = &#63; and categoryId = any &#63; and status = &#63;.
1498            *
1499            * <p>
1500            * 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.
1501            * </p>
1502            *
1503            * @param groupId the group ID
1504            * @param categoryIds the category IDs
1505            * @param status the status
1506            * @param start the lower bound of the range of message boards threads
1507            * @param end the upper bound of the range of message boards threads (not inclusive)
1508            * @return the range of matching message boards threads
1509            * @throws SystemException if a system exception occurred
1510            */
1511            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C_S(
1512                    long groupId, long[] categoryIds, int status, int start, int end)
1513                    throws com.liferay.portal.kernel.exception.SystemException;
1514    
1515            /**
1516            * Returns an ordered range of all the message boards threads where groupId = &#63; and categoryId = any &#63; and status = &#63;.
1517            *
1518            * <p>
1519            * 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.
1520            * </p>
1521            *
1522            * @param groupId the group ID
1523            * @param categoryIds the category IDs
1524            * @param status the status
1525            * @param start the lower bound of the range of message boards threads
1526            * @param end the upper bound of the range of message boards threads (not inclusive)
1527            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1528            * @return the ordered range of matching message boards threads
1529            * @throws SystemException if a system exception occurred
1530            */
1531            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C_S(
1532                    long groupId, long[] categoryIds, int status, int start, int end,
1533                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1534                    throws com.liferay.portal.kernel.exception.SystemException;
1535    
1536            /**
1537            * Returns all the message boards threads that the user has permission to view where groupId = &#63; and categoryId = &#63; and status = &#63;.
1538            *
1539            * @param groupId the group ID
1540            * @param categoryId the category ID
1541            * @param status the status
1542            * @return the matching message boards threads that the user has permission to view
1543            * @throws SystemException if a system exception occurred
1544            */
1545            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> filterFindByG_C_S(
1546                    long groupId, long categoryId, int status)
1547                    throws com.liferay.portal.kernel.exception.SystemException;
1548    
1549            /**
1550            * Returns a range of all the message boards threads that the user has permission to view where groupId = &#63; and categoryId = &#63; and status = &#63;.
1551            *
1552            * <p>
1553            * 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.
1554            * </p>
1555            *
1556            * @param groupId the group ID
1557            * @param categoryId the category ID
1558            * @param status the status
1559            * @param start the lower bound of the range of message boards threads
1560            * @param end the upper bound of the range of message boards threads (not inclusive)
1561            * @return the range of matching message boards threads that the user has permission to view
1562            * @throws SystemException if a system exception occurred
1563            */
1564            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> filterFindByG_C_S(
1565                    long groupId, long categoryId, int status, int start, int end)
1566                    throws com.liferay.portal.kernel.exception.SystemException;
1567    
1568            /**
1569            * Returns an ordered range of all the message boards threads that the user has permissions to view where groupId = &#63; and categoryId = &#63; and status = &#63;.
1570            *
1571            * <p>
1572            * 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.
1573            * </p>
1574            *
1575            * @param groupId the group ID
1576            * @param categoryId the category ID
1577            * @param status the status
1578            * @param start the lower bound of the range of message boards threads
1579            * @param end the upper bound of the range of message boards threads (not inclusive)
1580            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1581            * @return the ordered range of matching message boards threads that the user has permission to view
1582            * @throws SystemException if a system exception occurred
1583            */
1584            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> filterFindByG_C_S(
1585                    long groupId, long categoryId, int status, int start, int end,
1586                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1587                    throws com.liferay.portal.kernel.exception.SystemException;
1588    
1589            /**
1590            * Returns the message boards threads before and after the current message boards thread in the ordered set of message boards threads that the user has permission to view where groupId = &#63; and categoryId = &#63; and status = &#63;.
1591            *
1592            * @param threadId the primary key of the current message boards thread
1593            * @param groupId the group ID
1594            * @param categoryId the category ID
1595            * @param status the status
1596            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1597            * @return the previous, current, and next message boards thread
1598            * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a message boards thread with the primary key could not be found
1599            * @throws SystemException if a system exception occurred
1600            */
1601            public com.liferay.portlet.messageboards.model.MBThread[] filterFindByG_C_S_PrevAndNext(
1602                    long threadId, long groupId, long categoryId, int status,
1603                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1604                    throws com.liferay.portal.kernel.exception.SystemException,
1605                            com.liferay.portlet.messageboards.NoSuchThreadException;
1606    
1607            /**
1608            * Returns all the message boards threads that the user has permission to view where groupId = &#63; and categoryId = any &#63; and status = &#63;.
1609            *
1610            * @param groupId the group ID
1611            * @param categoryIds the category IDs
1612            * @param status the status
1613            * @return the matching message boards threads that the user has permission to view
1614            * @throws SystemException if a system exception occurred
1615            */
1616            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> filterFindByG_C_S(
1617                    long groupId, long[] categoryIds, int status)
1618                    throws com.liferay.portal.kernel.exception.SystemException;
1619    
1620            /**
1621            * Returns a range of all the message boards threads that the user has permission to view where groupId = &#63; and categoryId = any &#63; and status = &#63;.
1622            *
1623            * <p>
1624            * 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.
1625            * </p>
1626            *
1627            * @param groupId the group ID
1628            * @param categoryIds the category IDs
1629            * @param status the status
1630            * @param start the lower bound of the range of message boards threads
1631            * @param end the upper bound of the range of message boards threads (not inclusive)
1632            * @return the range of matching message boards threads that the user has permission to view
1633            * @throws SystemException if a system exception occurred
1634            */
1635            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> filterFindByG_C_S(
1636                    long groupId, long[] categoryIds, int status, int start, int end)
1637                    throws com.liferay.portal.kernel.exception.SystemException;
1638    
1639            /**
1640            * Returns an ordered range of all the message boards threads that the user has permission to view where groupId = &#63; and categoryId = any &#63; and status = &#63;.
1641            *
1642            * <p>
1643            * 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.
1644            * </p>
1645            *
1646            * @param groupId the group ID
1647            * @param categoryIds the category IDs
1648            * @param status the status
1649            * @param start the lower bound of the range of message boards threads
1650            * @param end the upper bound of the range of message boards threads (not inclusive)
1651            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1652            * @return the ordered range of matching message boards threads that the user has permission to view
1653            * @throws SystemException if a system exception occurred
1654            */
1655            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> filterFindByG_C_S(
1656                    long groupId, long[] categoryIds, int status, int start, int end,
1657                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1658                    throws com.liferay.portal.kernel.exception.SystemException;
1659    
1660            /**
1661            * Returns all the message boards threads where groupId = &#63; and categoryId &ne; &#63; and status = &#63;.
1662            *
1663            * @param groupId the group ID
1664            * @param categoryId the category ID
1665            * @param status the status
1666            * @return the matching message boards threads
1667            * @throws SystemException if a system exception occurred
1668            */
1669            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_NotC_S(
1670                    long groupId, long categoryId, int status)
1671                    throws com.liferay.portal.kernel.exception.SystemException;
1672    
1673            /**
1674            * Returns a range of all the message boards threads where groupId = &#63; and categoryId &ne; &#63; and status = &#63;.
1675            *
1676            * <p>
1677            * 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.
1678            * </p>
1679            *
1680            * @param groupId the group ID
1681            * @param categoryId the category ID
1682            * @param status the status
1683            * @param start the lower bound of the range of message boards threads
1684            * @param end the upper bound of the range of message boards threads (not inclusive)
1685            * @return the range of matching message boards threads
1686            * @throws SystemException if a system exception occurred
1687            */
1688            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_NotC_S(
1689                    long groupId, long categoryId, int status, int start, int end)
1690                    throws com.liferay.portal.kernel.exception.SystemException;
1691    
1692            /**
1693            * Returns an ordered range of all the message boards threads where groupId = &#63; and categoryId &ne; &#63; and status = &#63;.
1694            *
1695            * <p>
1696            * 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.
1697            * </p>
1698            *
1699            * @param groupId the group ID
1700            * @param categoryId the category ID
1701            * @param status the status
1702            * @param start the lower bound of the range of message boards threads
1703            * @param end the upper bound of the range of message boards threads (not inclusive)
1704            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1705            * @return the ordered range of matching message boards threads
1706            * @throws SystemException if a system exception occurred
1707            */
1708            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_NotC_S(
1709                    long groupId, long categoryId, int status, int start, int end,
1710                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1711                    throws com.liferay.portal.kernel.exception.SystemException;
1712    
1713            /**
1714            * Returns the first message boards thread in the ordered set where groupId = &#63; and categoryId &ne; &#63; and status = &#63;.
1715            *
1716            * <p>
1717            * 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.
1718            * </p>
1719            *
1720            * @param groupId the group ID
1721            * @param categoryId the category ID
1722            * @param status the status
1723            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1724            * @return the first matching message boards thread
1725            * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a matching message boards thread could not be found
1726            * @throws SystemException if a system exception occurred
1727            */
1728            public com.liferay.portlet.messageboards.model.MBThread findByG_NotC_S_First(
1729                    long groupId, long categoryId, int status,
1730                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1731                    throws com.liferay.portal.kernel.exception.SystemException,
1732                            com.liferay.portlet.messageboards.NoSuchThreadException;
1733    
1734            /**
1735            * Returns the last message boards thread in the ordered set where groupId = &#63; and categoryId &ne; &#63; and status = &#63;.
1736            *
1737            * <p>
1738            * 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.
1739            * </p>
1740            *
1741            * @param groupId the group ID
1742            * @param categoryId the category ID
1743            * @param status the status
1744            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1745            * @return the last matching message boards thread
1746            * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a matching message boards thread could not be found
1747            * @throws SystemException if a system exception occurred
1748            */
1749            public com.liferay.portlet.messageboards.model.MBThread findByG_NotC_S_Last(
1750                    long groupId, long categoryId, int status,
1751                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1752                    throws com.liferay.portal.kernel.exception.SystemException,
1753                            com.liferay.portlet.messageboards.NoSuchThreadException;
1754    
1755            /**
1756            * Returns the message boards threads before and after the current message boards thread in the ordered set where groupId = &#63; and categoryId &ne; &#63; and status = &#63;.
1757            *
1758            * <p>
1759            * 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.
1760            * </p>
1761            *
1762            * @param threadId the primary key of the current message boards thread
1763            * @param groupId the group ID
1764            * @param categoryId the category ID
1765            * @param status the status
1766            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1767            * @return the previous, current, and next message boards thread
1768            * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a message boards thread with the primary key could not be found
1769            * @throws SystemException if a system exception occurred
1770            */
1771            public com.liferay.portlet.messageboards.model.MBThread[] findByG_NotC_S_PrevAndNext(
1772                    long threadId, long groupId, long categoryId, int status,
1773                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1774                    throws com.liferay.portal.kernel.exception.SystemException,
1775                            com.liferay.portlet.messageboards.NoSuchThreadException;
1776    
1777            /**
1778            * Returns all the message boards threads that the user has permission to view where groupId = &#63; and categoryId &ne; &#63; and status = &#63;.
1779            *
1780            * @param groupId the group ID
1781            * @param categoryId the category ID
1782            * @param status the status
1783            * @return the matching message boards threads that the user has permission to view
1784            * @throws SystemException if a system exception occurred
1785            */
1786            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> filterFindByG_NotC_S(
1787                    long groupId, long categoryId, int status)
1788                    throws com.liferay.portal.kernel.exception.SystemException;
1789    
1790            /**
1791            * Returns a range of all the message boards threads that the user has permission to view where groupId = &#63; and categoryId &ne; &#63; and status = &#63;.
1792            *
1793            * <p>
1794            * 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.
1795            * </p>
1796            *
1797            * @param groupId the group ID
1798            * @param categoryId the category ID
1799            * @param status the status
1800            * @param start the lower bound of the range of message boards threads
1801            * @param end the upper bound of the range of message boards threads (not inclusive)
1802            * @return the range of matching message boards threads that the user has permission to view
1803            * @throws SystemException if a system exception occurred
1804            */
1805            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> filterFindByG_NotC_S(
1806                    long groupId, long categoryId, int status, int start, int end)
1807                    throws com.liferay.portal.kernel.exception.SystemException;
1808    
1809            /**
1810            * Returns an ordered range of all the message boards threads that the user has permissions to view where groupId = &#63; and categoryId &ne; &#63; and status = &#63;.
1811            *
1812            * <p>
1813            * 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.
1814            * </p>
1815            *
1816            * @param groupId the group ID
1817            * @param categoryId the category ID
1818            * @param status the status
1819            * @param start the lower bound of the range of message boards threads
1820            * @param end the upper bound of the range of message boards threads (not inclusive)
1821            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1822            * @return the ordered range of matching message boards threads that the user has permission to view
1823            * @throws SystemException if a system exception occurred
1824            */
1825            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> filterFindByG_NotC_S(
1826                    long groupId, long categoryId, int status, int start, int end,
1827                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1828                    throws com.liferay.portal.kernel.exception.SystemException;
1829    
1830            /**
1831            * Returns the message boards threads before and after the current message boards thread in the ordered set of message boards threads that the user has permission to view where groupId = &#63; and categoryId &ne; &#63; and status = &#63;.
1832            *
1833            * @param threadId the primary key of the current message boards thread
1834            * @param groupId the group ID
1835            * @param categoryId the category ID
1836            * @param status the status
1837            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1838            * @return the previous, current, and next message boards thread
1839            * @throws com.liferay.portlet.messageboards.NoSuchThreadException if a message boards thread with the primary key could not be found
1840            * @throws SystemException if a system exception occurred
1841            */
1842            public com.liferay.portlet.messageboards.model.MBThread[] filterFindByG_NotC_S_PrevAndNext(
1843                    long threadId, long groupId, long categoryId, int status,
1844                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1845                    throws com.liferay.portal.kernel.exception.SystemException,
1846                            com.liferay.portlet.messageboards.NoSuchThreadException;
1847    
1848            /**
1849            * Returns all the message boards threads.
1850            *
1851            * @return the message boards threads
1852            * @throws SystemException if a system exception occurred
1853            */
1854            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findAll()
1855                    throws com.liferay.portal.kernel.exception.SystemException;
1856    
1857            /**
1858            * Returns a range of all the message boards threads.
1859            *
1860            * <p>
1861            * 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.
1862            * </p>
1863            *
1864            * @param start the lower bound of the range of message boards threads
1865            * @param end the upper bound of the range of message boards threads (not inclusive)
1866            * @return the range of message boards threads
1867            * @throws SystemException if a system exception occurred
1868            */
1869            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findAll(
1870                    int start, int end)
1871                    throws com.liferay.portal.kernel.exception.SystemException;
1872    
1873            /**
1874            * Returns an ordered range of all the message boards threads.
1875            *
1876            * <p>
1877            * 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.
1878            * </p>
1879            *
1880            * @param start the lower bound of the range of message boards threads
1881            * @param end the upper bound of the range of message boards threads (not inclusive)
1882            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1883            * @return the ordered range of message boards threads
1884            * @throws SystemException if a system exception occurred
1885            */
1886            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> findAll(
1887                    int start, int end,
1888                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1889                    throws com.liferay.portal.kernel.exception.SystemException;
1890    
1891            /**
1892            * Removes all the message boards threads where groupId = &#63; from the database.
1893            *
1894            * @param groupId the group ID
1895            * @throws SystemException if a system exception occurred
1896            */
1897            public void removeByGroupId(long groupId)
1898                    throws com.liferay.portal.kernel.exception.SystemException;
1899    
1900            /**
1901            * Removes the message boards thread where rootMessageId = &#63; from the database.
1902            *
1903            * @param rootMessageId the root message ID
1904            * @throws SystemException if a system exception occurred
1905            */
1906            public void removeByRootMessageId(long rootMessageId)
1907                    throws com.liferay.portal.kernel.exception.SystemException,
1908                            com.liferay.portlet.messageboards.NoSuchThreadException;
1909    
1910            /**
1911            * Removes all the message boards threads where groupId = &#63; and categoryId = &#63; from the database.
1912            *
1913            * @param groupId the group ID
1914            * @param categoryId the category ID
1915            * @throws SystemException if a system exception occurred
1916            */
1917            public void removeByG_C(long groupId, long categoryId)
1918                    throws com.liferay.portal.kernel.exception.SystemException;
1919    
1920            /**
1921            * Removes all the message boards threads where groupId = &#63; and categoryId &ne; &#63; from the database.
1922            *
1923            * @param groupId the group ID
1924            * @param categoryId the category ID
1925            * @throws SystemException if a system exception occurred
1926            */
1927            public void removeByG_NotC(long groupId, long categoryId)
1928                    throws com.liferay.portal.kernel.exception.SystemException;
1929    
1930            /**
1931            * Removes all the message boards threads where groupId = &#63; and status = &#63; from the database.
1932            *
1933            * @param groupId the group ID
1934            * @param status the status
1935            * @throws SystemException if a system exception occurred
1936            */
1937            public void removeByG_S(long groupId, int status)
1938                    throws com.liferay.portal.kernel.exception.SystemException;
1939    
1940            /**
1941            * Removes all the message boards threads where categoryId = &#63; and priority = &#63; from the database.
1942            *
1943            * @param categoryId the category ID
1944            * @param priority the priority
1945            * @throws SystemException if a system exception occurred
1946            */
1947            public void removeByC_P(long categoryId, double priority)
1948                    throws com.liferay.portal.kernel.exception.SystemException;
1949    
1950            /**
1951            * Removes all the message boards threads where lastPostDate = &#63; and priority = &#63; from the database.
1952            *
1953            * @param lastPostDate the last post date
1954            * @param priority the priority
1955            * @throws SystemException if a system exception occurred
1956            */
1957            public void removeByL_P(java.util.Date lastPostDate, double priority)
1958                    throws com.liferay.portal.kernel.exception.SystemException;
1959    
1960            /**
1961            * Removes all the message boards threads where groupId = &#63; and categoryId = &#63; and lastPostDate = &#63; from the database.
1962            *
1963            * @param groupId the group ID
1964            * @param categoryId the category ID
1965            * @param lastPostDate the last post date
1966            * @throws SystemException if a system exception occurred
1967            */
1968            public void removeByG_C_L(long groupId, long categoryId,
1969                    java.util.Date lastPostDate)
1970                    throws com.liferay.portal.kernel.exception.SystemException;
1971    
1972            /**
1973            * Removes all the message boards threads where groupId = &#63; and categoryId = &#63; and status = &#63; from the database.
1974            *
1975            * @param groupId the group ID
1976            * @param categoryId the category ID
1977            * @param status the status
1978            * @throws SystemException if a system exception occurred
1979            */
1980            public void removeByG_C_S(long groupId, long categoryId, int status)
1981                    throws com.liferay.portal.kernel.exception.SystemException;
1982    
1983            /**
1984            * Removes all the message boards threads where groupId = &#63; and categoryId &ne; &#63; and status = &#63; from the database.
1985            *
1986            * @param groupId the group ID
1987            * @param categoryId the category ID
1988            * @param status the status
1989            * @throws SystemException if a system exception occurred
1990            */
1991            public void removeByG_NotC_S(long groupId, long categoryId, int status)
1992                    throws com.liferay.portal.kernel.exception.SystemException;
1993    
1994            /**
1995            * Removes all the message boards threads from the database.
1996            *
1997            * @throws SystemException if a system exception occurred
1998            */
1999            public void removeAll()
2000                    throws com.liferay.portal.kernel.exception.SystemException;
2001    
2002            /**
2003            * Returns the number of message boards threads where groupId = &#63;.
2004            *
2005            * @param groupId the group ID
2006            * @return the number of matching message boards threads
2007            * @throws SystemException if a system exception occurred
2008            */
2009            public int countByGroupId(long groupId)
2010                    throws com.liferay.portal.kernel.exception.SystemException;
2011    
2012            /**
2013            * Returns the number of message boards threads that the user has permission to view where groupId = &#63;.
2014            *
2015            * @param groupId the group ID
2016            * @return the number of matching message boards threads that the user has permission to view
2017            * @throws SystemException if a system exception occurred
2018            */
2019            public int filterCountByGroupId(long groupId)
2020                    throws com.liferay.portal.kernel.exception.SystemException;
2021    
2022            /**
2023            * Returns the number of message boards threads where rootMessageId = &#63;.
2024            *
2025            * @param rootMessageId the root message ID
2026            * @return the number of matching message boards threads
2027            * @throws SystemException if a system exception occurred
2028            */
2029            public int countByRootMessageId(long rootMessageId)
2030                    throws com.liferay.portal.kernel.exception.SystemException;
2031    
2032            /**
2033            * Returns the number of message boards threads where groupId = &#63; and categoryId = &#63;.
2034            *
2035            * @param groupId the group ID
2036            * @param categoryId the category ID
2037            * @return the number of matching message boards threads
2038            * @throws SystemException if a system exception occurred
2039            */
2040            public int countByG_C(long groupId, long categoryId)
2041                    throws com.liferay.portal.kernel.exception.SystemException;
2042    
2043            /**
2044            * Returns the number of message boards threads where groupId = &#63; and categoryId = any &#63;.
2045            *
2046            * @param groupId the group ID
2047            * @param categoryIds the category IDs
2048            * @return the number of matching message boards threads
2049            * @throws SystemException if a system exception occurred
2050            */
2051            public int countByG_C(long groupId, long[] categoryIds)
2052                    throws com.liferay.portal.kernel.exception.SystemException;
2053    
2054            /**
2055            * Returns the number of message boards threads that the user has permission to view where groupId = &#63; and categoryId = &#63;.
2056            *
2057            * @param groupId the group ID
2058            * @param categoryId the category ID
2059            * @return the number of matching message boards threads that the user has permission to view
2060            * @throws SystemException if a system exception occurred
2061            */
2062            public int filterCountByG_C(long groupId, long categoryId)
2063                    throws com.liferay.portal.kernel.exception.SystemException;
2064    
2065            /**
2066            * Returns the number of message boards threads that the user has permission to view where groupId = &#63; and categoryId = any &#63;.
2067            *
2068            * @param groupId the group ID
2069            * @param categoryIds the category IDs
2070            * @return the number of matching message boards threads that the user has permission to view
2071            * @throws SystemException if a system exception occurred
2072            */
2073            public int filterCountByG_C(long groupId, long[] categoryIds)
2074                    throws com.liferay.portal.kernel.exception.SystemException;
2075    
2076            /**
2077            * Returns the number of message boards threads where groupId = &#63; and categoryId &ne; &#63;.
2078            *
2079            * @param groupId the group ID
2080            * @param categoryId the category ID
2081            * @return the number of matching message boards threads
2082            * @throws SystemException if a system exception occurred
2083            */
2084            public int countByG_NotC(long groupId, long categoryId)
2085                    throws com.liferay.portal.kernel.exception.SystemException;
2086    
2087            /**
2088            * Returns the number of message boards threads that the user has permission to view where groupId = &#63; and categoryId &ne; &#63;.
2089            *
2090            * @param groupId the group ID
2091            * @param categoryId the category ID
2092            * @return the number of matching message boards threads that the user has permission to view
2093            * @throws SystemException if a system exception occurred
2094            */
2095            public int filterCountByG_NotC(long groupId, long categoryId)
2096                    throws com.liferay.portal.kernel.exception.SystemException;
2097    
2098            /**
2099            * Returns the number of message boards threads where groupId = &#63; and status = &#63;.
2100            *
2101            * @param groupId the group ID
2102            * @param status the status
2103            * @return the number of matching message boards threads
2104            * @throws SystemException if a system exception occurred
2105            */
2106            public int countByG_S(long groupId, int status)
2107                    throws com.liferay.portal.kernel.exception.SystemException;
2108    
2109            /**
2110            * Returns the number of message boards threads that the user has permission to view where groupId = &#63; and status = &#63;.
2111            *
2112            * @param groupId the group ID
2113            * @param status the status
2114            * @return the number of matching message boards threads that the user has permission to view
2115            * @throws SystemException if a system exception occurred
2116            */
2117            public int filterCountByG_S(long groupId, int status)
2118                    throws com.liferay.portal.kernel.exception.SystemException;
2119    
2120            /**
2121            * Returns the number of message boards threads where categoryId = &#63; and priority = &#63;.
2122            *
2123            * @param categoryId the category ID
2124            * @param priority the priority
2125            * @return the number of matching message boards threads
2126            * @throws SystemException if a system exception occurred
2127            */
2128            public int countByC_P(long categoryId, double priority)
2129                    throws com.liferay.portal.kernel.exception.SystemException;
2130    
2131            /**
2132            * Returns the number of message boards threads where lastPostDate = &#63; and priority = &#63;.
2133            *
2134            * @param lastPostDate the last post date
2135            * @param priority the priority
2136            * @return the number of matching message boards threads
2137            * @throws SystemException if a system exception occurred
2138            */
2139            public int countByL_P(java.util.Date lastPostDate, double priority)
2140                    throws com.liferay.portal.kernel.exception.SystemException;
2141    
2142            /**
2143            * Returns the number of message boards threads where groupId = &#63; and categoryId = &#63; and lastPostDate = &#63;.
2144            *
2145            * @param groupId the group ID
2146            * @param categoryId the category ID
2147            * @param lastPostDate the last post date
2148            * @return the number of matching message boards threads
2149            * @throws SystemException if a system exception occurred
2150            */
2151            public int countByG_C_L(long groupId, long categoryId,
2152                    java.util.Date lastPostDate)
2153                    throws com.liferay.portal.kernel.exception.SystemException;
2154    
2155            /**
2156            * Returns the number of message boards threads that the user has permission to view where groupId = &#63; and categoryId = &#63; and lastPostDate = &#63;.
2157            *
2158            * @param groupId the group ID
2159            * @param categoryId the category ID
2160            * @param lastPostDate the last post date
2161            * @return the number of matching message boards threads that the user has permission to view
2162            * @throws SystemException if a system exception occurred
2163            */
2164            public int filterCountByG_C_L(long groupId, long categoryId,
2165                    java.util.Date lastPostDate)
2166                    throws com.liferay.portal.kernel.exception.SystemException;
2167    
2168            /**
2169            * Returns the number of message boards threads where groupId = &#63; and categoryId = &#63; and status = &#63;.
2170            *
2171            * @param groupId the group ID
2172            * @param categoryId the category ID
2173            * @param status the status
2174            * @return the number of matching message boards threads
2175            * @throws SystemException if a system exception occurred
2176            */
2177            public int countByG_C_S(long groupId, long categoryId, int status)
2178                    throws com.liferay.portal.kernel.exception.SystemException;
2179    
2180            /**
2181            * Returns the number of message boards threads where groupId = &#63; and categoryId = any &#63; and status = &#63;.
2182            *
2183            * @param groupId the group ID
2184            * @param categoryIds the category IDs
2185            * @param status the status
2186            * @return the number of matching message boards threads
2187            * @throws SystemException if a system exception occurred
2188            */
2189            public int countByG_C_S(long groupId, long[] categoryIds, int status)
2190                    throws com.liferay.portal.kernel.exception.SystemException;
2191    
2192            /**
2193            * Returns the number of message boards threads that the user has permission to view where groupId = &#63; and categoryId = &#63; and status = &#63;.
2194            *
2195            * @param groupId the group ID
2196            * @param categoryId the category ID
2197            * @param status the status
2198            * @return the number of matching message boards threads that the user has permission to view
2199            * @throws SystemException if a system exception occurred
2200            */
2201            public int filterCountByG_C_S(long groupId, long categoryId, int status)
2202                    throws com.liferay.portal.kernel.exception.SystemException;
2203    
2204            /**
2205            * Returns the number of message boards threads that the user has permission to view where groupId = &#63; and categoryId = any &#63; and status = &#63;.
2206            *
2207            * @param groupId the group ID
2208            * @param categoryIds the category IDs
2209            * @param status the status
2210            * @return the number of matching message boards threads that the user has permission to view
2211            * @throws SystemException if a system exception occurred
2212            */
2213            public int filterCountByG_C_S(long groupId, long[] categoryIds, int status)
2214                    throws com.liferay.portal.kernel.exception.SystemException;
2215    
2216            /**
2217            * Returns the number of message boards threads where groupId = &#63; and categoryId &ne; &#63; and status = &#63;.
2218            *
2219            * @param groupId the group ID
2220            * @param categoryId the category ID
2221            * @param status the status
2222            * @return the number of matching message boards threads
2223            * @throws SystemException if a system exception occurred
2224            */
2225            public int countByG_NotC_S(long groupId, long categoryId, int status)
2226                    throws com.liferay.portal.kernel.exception.SystemException;
2227    
2228            /**
2229            * Returns the number of message boards threads that the user has permission to view where groupId = &#63; and categoryId &ne; &#63; and status = &#63;.
2230            *
2231            * @param groupId the group ID
2232            * @param categoryId the category ID
2233            * @param status the status
2234            * @return the number of matching message boards threads that the user has permission to view
2235            * @throws SystemException if a system exception occurred
2236            */
2237            public int filterCountByG_NotC_S(long groupId, long categoryId, int status)
2238                    throws com.liferay.portal.kernel.exception.SystemException;
2239    
2240            /**
2241            * Returns the number of message boards threads.
2242            *
2243            * @return the number of message boards threads
2244            * @throws SystemException if a system exception occurred
2245            */
2246            public int countAll()
2247                    throws com.liferay.portal.kernel.exception.SystemException;
2248    }