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