001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.messageboards.service.persistence;
016    
017    import com.liferay.portal.service.persistence.BasePersistence;
018    
019    import com.liferay.portlet.messageboards.model.MBMessage;
020    
021    /**
022     * The persistence interface for the message-boards message service.
023     *
024     * <p>
025     * Caching information and settings can be found in <code>portal.properties</code>
026     * </p>
027     *
028     * @author Brian Wing Shun Chan
029     * @see MBMessagePersistenceImpl
030     * @see MBMessageUtil
031     * @generated
032     */
033    public interface MBMessagePersistence extends BasePersistence<MBMessage> {
034            /*
035             * NOTE FOR DEVELOPERS:
036             *
037             * Never modify or reference this interface directly. Always use {@link MBMessageUtil} to access the message-boards message persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
038             */
039    
040            /**
041            * Caches the message-boards message in the entity cache if it is enabled.
042            *
043            * @param mbMessage the message-boards message
044            */
045            public void cacheResult(
046                    com.liferay.portlet.messageboards.model.MBMessage mbMessage);
047    
048            /**
049            * Caches the message-boards messages in the entity cache if it is enabled.
050            *
051            * @param mbMessages the message-boards messages
052            */
053            public void cacheResult(
054                    java.util.List<com.liferay.portlet.messageboards.model.MBMessage> mbMessages);
055    
056            /**
057            * Creates a new message-boards message with the primary key. Does not add the message-boards message to the database.
058            *
059            * @param messageId the primary key for the new message-boards message
060            * @return the new message-boards message
061            */
062            public com.liferay.portlet.messageboards.model.MBMessage create(
063                    long messageId);
064    
065            /**
066            * Removes the message-boards message with the primary key from the database. Also notifies the appropriate model listeners.
067            *
068            * @param messageId the primary key of the message-boards message
069            * @return the message-boards message that was removed
070            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found
071            * @throws SystemException if a system exception occurred
072            */
073            public com.liferay.portlet.messageboards.model.MBMessage remove(
074                    long messageId)
075                    throws com.liferay.portal.kernel.exception.SystemException,
076                            com.liferay.portlet.messageboards.NoSuchMessageException;
077    
078            public com.liferay.portlet.messageboards.model.MBMessage updateImpl(
079                    com.liferay.portlet.messageboards.model.MBMessage mbMessage)
080                    throws com.liferay.portal.kernel.exception.SystemException;
081    
082            /**
083            * Returns the message-boards message with the primary key or throws a {@link com.liferay.portlet.messageboards.NoSuchMessageException} if it could not be found.
084            *
085            * @param messageId the primary key of the message-boards message
086            * @return the message-boards message
087            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found
088            * @throws SystemException if a system exception occurred
089            */
090            public com.liferay.portlet.messageboards.model.MBMessage findByPrimaryKey(
091                    long messageId)
092                    throws com.liferay.portal.kernel.exception.SystemException,
093                            com.liferay.portlet.messageboards.NoSuchMessageException;
094    
095            /**
096            * Returns the message-boards message with the primary key or returns <code>null</code> if it could not be found.
097            *
098            * @param messageId the primary key of the message-boards message
099            * @return the message-boards message, or <code>null</code> if a message-boards message with the primary key could not be found
100            * @throws SystemException if a system exception occurred
101            */
102            public com.liferay.portlet.messageboards.model.MBMessage fetchByPrimaryKey(
103                    long messageId)
104                    throws com.liferay.portal.kernel.exception.SystemException;
105    
106            /**
107            * Returns all the message-boards messages where uuid = &#63;.
108            *
109            * @param uuid the uuid
110            * @return the matching message-boards messages
111            * @throws SystemException if a system exception occurred
112            */
113            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByUuid(
114                    java.lang.String uuid)
115                    throws com.liferay.portal.kernel.exception.SystemException;
116    
117            /**
118            * Returns a range of all the message-boards messages where uuid = &#63;.
119            *
120            * <p>
121            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
122            * </p>
123            *
124            * @param uuid the uuid
125            * @param start the lower bound of the range of message-boards messages
126            * @param end the upper bound of the range of message-boards messages (not inclusive)
127            * @return the range of matching message-boards messages
128            * @throws SystemException if a system exception occurred
129            */
130            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByUuid(
131                    java.lang.String uuid, int start, int end)
132                    throws com.liferay.portal.kernel.exception.SystemException;
133    
134            /**
135            * Returns an ordered range of all the message-boards messages where uuid = &#63;.
136            *
137            * <p>
138            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
139            * </p>
140            *
141            * @param uuid the uuid
142            * @param start the lower bound of the range of message-boards messages
143            * @param end the upper bound of the range of message-boards messages (not inclusive)
144            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
145            * @return the ordered range of matching message-boards messages
146            * @throws SystemException if a system exception occurred
147            */
148            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByUuid(
149                    java.lang.String uuid, int start, int end,
150                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
151                    throws com.liferay.portal.kernel.exception.SystemException;
152    
153            /**
154            * Returns the first message-boards message in the ordered set where uuid = &#63;.
155            *
156            * @param uuid the uuid
157            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
158            * @return the first matching message-boards message
159            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found
160            * @throws SystemException if a system exception occurred
161            */
162            public com.liferay.portlet.messageboards.model.MBMessage findByUuid_First(
163                    java.lang.String uuid,
164                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
165                    throws com.liferay.portal.kernel.exception.SystemException,
166                            com.liferay.portlet.messageboards.NoSuchMessageException;
167    
168            /**
169            * Returns the first message-boards message in the ordered set where uuid = &#63;.
170            *
171            * @param uuid the uuid
172            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
173            * @return the first matching message-boards message, or <code>null</code> if a matching message-boards message could not be found
174            * @throws SystemException if a system exception occurred
175            */
176            public com.liferay.portlet.messageboards.model.MBMessage fetchByUuid_First(
177                    java.lang.String uuid,
178                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
179                    throws com.liferay.portal.kernel.exception.SystemException;
180    
181            /**
182            * Returns the last message-boards message in the ordered set where uuid = &#63;.
183            *
184            * @param uuid the uuid
185            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
186            * @return the last matching message-boards message
187            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found
188            * @throws SystemException if a system exception occurred
189            */
190            public com.liferay.portlet.messageboards.model.MBMessage findByUuid_Last(
191                    java.lang.String uuid,
192                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
193                    throws com.liferay.portal.kernel.exception.SystemException,
194                            com.liferay.portlet.messageboards.NoSuchMessageException;
195    
196            /**
197            * Returns the last message-boards message in the ordered set where uuid = &#63;.
198            *
199            * @param uuid the uuid
200            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
201            * @return the last matching message-boards message, or <code>null</code> if a matching message-boards message could not be found
202            * @throws SystemException if a system exception occurred
203            */
204            public com.liferay.portlet.messageboards.model.MBMessage fetchByUuid_Last(
205                    java.lang.String uuid,
206                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
207                    throws com.liferay.portal.kernel.exception.SystemException;
208    
209            /**
210            * Returns the message-boards messages before and after the current message-boards message in the ordered set where uuid = &#63;.
211            *
212            * @param messageId the primary key of the current message-boards message
213            * @param uuid the uuid
214            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
215            * @return the previous, current, and next message-boards message
216            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found
217            * @throws SystemException if a system exception occurred
218            */
219            public com.liferay.portlet.messageboards.model.MBMessage[] findByUuid_PrevAndNext(
220                    long messageId, java.lang.String uuid,
221                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
222                    throws com.liferay.portal.kernel.exception.SystemException,
223                            com.liferay.portlet.messageboards.NoSuchMessageException;
224    
225            /**
226            * Returns the message-boards message where uuid = &#63; and groupId = &#63; or throws a {@link com.liferay.portlet.messageboards.NoSuchMessageException} if it could not be found.
227            *
228            * @param uuid the uuid
229            * @param groupId the group ID
230            * @return the matching message-boards message
231            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found
232            * @throws SystemException if a system exception occurred
233            */
234            public com.liferay.portlet.messageboards.model.MBMessage findByUUID_G(
235                    java.lang.String uuid, long groupId)
236                    throws com.liferay.portal.kernel.exception.SystemException,
237                            com.liferay.portlet.messageboards.NoSuchMessageException;
238    
239            /**
240            * Returns the message-boards message where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
241            *
242            * @param uuid the uuid
243            * @param groupId the group ID
244            * @return the matching message-boards message, or <code>null</code> if a matching message-boards message could not be found
245            * @throws SystemException if a system exception occurred
246            */
247            public com.liferay.portlet.messageboards.model.MBMessage fetchByUUID_G(
248                    java.lang.String uuid, long groupId)
249                    throws com.liferay.portal.kernel.exception.SystemException;
250    
251            /**
252            * Returns the message-boards message where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
253            *
254            * @param uuid the uuid
255            * @param groupId the group ID
256            * @param retrieveFromCache whether to use the finder cache
257            * @return the matching message-boards message, or <code>null</code> if a matching message-boards message could not be found
258            * @throws SystemException if a system exception occurred
259            */
260            public com.liferay.portlet.messageboards.model.MBMessage fetchByUUID_G(
261                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
262                    throws com.liferay.portal.kernel.exception.SystemException;
263    
264            /**
265            * Returns all the message-boards messages where uuid = &#63; and companyId = &#63;.
266            *
267            * @param uuid the uuid
268            * @param companyId the company ID
269            * @return the matching message-boards messages
270            * @throws SystemException if a system exception occurred
271            */
272            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByUuid_C(
273                    java.lang.String uuid, long companyId)
274                    throws com.liferay.portal.kernel.exception.SystemException;
275    
276            /**
277            * Returns a range of all the message-boards messages where uuid = &#63; and companyId = &#63;.
278            *
279            * <p>
280            * 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.
281            * </p>
282            *
283            * @param uuid the uuid
284            * @param companyId the company ID
285            * @param start the lower bound of the range of message-boards messages
286            * @param end the upper bound of the range of message-boards messages (not inclusive)
287            * @return the range of matching message-boards messages
288            * @throws SystemException if a system exception occurred
289            */
290            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByUuid_C(
291                    java.lang.String uuid, long companyId, int start, int end)
292                    throws com.liferay.portal.kernel.exception.SystemException;
293    
294            /**
295            * Returns an ordered range of all the message-boards messages where uuid = &#63; and companyId = &#63;.
296            *
297            * <p>
298            * 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.
299            * </p>
300            *
301            * @param uuid the uuid
302            * @param companyId the company ID
303            * @param start the lower bound of the range of message-boards messages
304            * @param end the upper bound of the range of message-boards messages (not inclusive)
305            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
306            * @return the ordered range of matching message-boards messages
307            * @throws SystemException if a system exception occurred
308            */
309            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByUuid_C(
310                    java.lang.String uuid, long companyId, int start, int end,
311                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
312                    throws com.liferay.portal.kernel.exception.SystemException;
313    
314            /**
315            * Returns the first message-boards message in the ordered set where uuid = &#63; and companyId = &#63;.
316            *
317            * @param uuid the uuid
318            * @param companyId the company ID
319            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
320            * @return the first matching message-boards message
321            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found
322            * @throws SystemException if a system exception occurred
323            */
324            public com.liferay.portlet.messageboards.model.MBMessage findByUuid_C_First(
325                    java.lang.String uuid, long companyId,
326                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
327                    throws com.liferay.portal.kernel.exception.SystemException,
328                            com.liferay.portlet.messageboards.NoSuchMessageException;
329    
330            /**
331            * Returns the first message-boards message in the ordered set where uuid = &#63; and companyId = &#63;.
332            *
333            * @param uuid the uuid
334            * @param companyId the company ID
335            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
336            * @return the first matching message-boards message, or <code>null</code> if a matching message-boards message could not be found
337            * @throws SystemException if a system exception occurred
338            */
339            public com.liferay.portlet.messageboards.model.MBMessage fetchByUuid_C_First(
340                    java.lang.String uuid, long companyId,
341                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
342                    throws com.liferay.portal.kernel.exception.SystemException;
343    
344            /**
345            * Returns the last message-boards message in the ordered set where uuid = &#63; and companyId = &#63;.
346            *
347            * @param uuid the uuid
348            * @param companyId the company ID
349            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
350            * @return the last matching message-boards message
351            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found
352            * @throws SystemException if a system exception occurred
353            */
354            public com.liferay.portlet.messageboards.model.MBMessage findByUuid_C_Last(
355                    java.lang.String uuid, long companyId,
356                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
357                    throws com.liferay.portal.kernel.exception.SystemException,
358                            com.liferay.portlet.messageboards.NoSuchMessageException;
359    
360            /**
361            * Returns the last message-boards message in the ordered set where uuid = &#63; and companyId = &#63;.
362            *
363            * @param uuid the uuid
364            * @param companyId the company ID
365            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
366            * @return the last matching message-boards message, or <code>null</code> if a matching message-boards message could not be found
367            * @throws SystemException if a system exception occurred
368            */
369            public com.liferay.portlet.messageboards.model.MBMessage fetchByUuid_C_Last(
370                    java.lang.String uuid, long companyId,
371                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
372                    throws com.liferay.portal.kernel.exception.SystemException;
373    
374            /**
375            * Returns the message-boards messages before and after the current message-boards message in the ordered set where uuid = &#63; and companyId = &#63;.
376            *
377            * @param messageId the primary key of the current message-boards message
378            * @param uuid the uuid
379            * @param companyId the company ID
380            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
381            * @return the previous, current, and next message-boards message
382            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found
383            * @throws SystemException if a system exception occurred
384            */
385            public com.liferay.portlet.messageboards.model.MBMessage[] findByUuid_C_PrevAndNext(
386                    long messageId, java.lang.String uuid, long companyId,
387                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
388                    throws com.liferay.portal.kernel.exception.SystemException,
389                            com.liferay.portlet.messageboards.NoSuchMessageException;
390    
391            /**
392            * Returns all the message-boards messages where groupId = &#63;.
393            *
394            * @param groupId the group ID
395            * @return the matching message-boards messages
396            * @throws SystemException if a system exception occurred
397            */
398            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByGroupId(
399                    long groupId)
400                    throws com.liferay.portal.kernel.exception.SystemException;
401    
402            /**
403            * Returns a range of all the message-boards messages where groupId = &#63;.
404            *
405            * <p>
406            * 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.
407            * </p>
408            *
409            * @param groupId the group ID
410            * @param start the lower bound of the range of message-boards messages
411            * @param end the upper bound of the range of message-boards messages (not inclusive)
412            * @return the range of matching message-boards messages
413            * @throws SystemException if a system exception occurred
414            */
415            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByGroupId(
416                    long groupId, int start, int end)
417                    throws com.liferay.portal.kernel.exception.SystemException;
418    
419            /**
420            * Returns an ordered range of all the message-boards messages where groupId = &#63;.
421            *
422            * <p>
423            * 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.
424            * </p>
425            *
426            * @param groupId the group ID
427            * @param start the lower bound of the range of message-boards messages
428            * @param end the upper bound of the range of message-boards messages (not inclusive)
429            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
430            * @return the ordered range of matching message-boards messages
431            * @throws SystemException if a system exception occurred
432            */
433            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByGroupId(
434                    long groupId, int start, int end,
435                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
436                    throws com.liferay.portal.kernel.exception.SystemException;
437    
438            /**
439            * Returns the first message-boards message in the ordered set where groupId = &#63;.
440            *
441            * @param groupId the group ID
442            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
443            * @return the first matching message-boards message
444            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found
445            * @throws SystemException if a system exception occurred
446            */
447            public com.liferay.portlet.messageboards.model.MBMessage findByGroupId_First(
448                    long groupId,
449                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
450                    throws com.liferay.portal.kernel.exception.SystemException,
451                            com.liferay.portlet.messageboards.NoSuchMessageException;
452    
453            /**
454            * Returns the first message-boards message in the ordered set where groupId = &#63;.
455            *
456            * @param groupId the group ID
457            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
458            * @return the first matching message-boards message, or <code>null</code> if a matching message-boards message could not be found
459            * @throws SystemException if a system exception occurred
460            */
461            public com.liferay.portlet.messageboards.model.MBMessage fetchByGroupId_First(
462                    long groupId,
463                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
464                    throws com.liferay.portal.kernel.exception.SystemException;
465    
466            /**
467            * Returns the last message-boards message in the ordered set where groupId = &#63;.
468            *
469            * @param groupId the group ID
470            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
471            * @return the last matching message-boards message
472            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found
473            * @throws SystemException if a system exception occurred
474            */
475            public com.liferay.portlet.messageboards.model.MBMessage findByGroupId_Last(
476                    long groupId,
477                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
478                    throws com.liferay.portal.kernel.exception.SystemException,
479                            com.liferay.portlet.messageboards.NoSuchMessageException;
480    
481            /**
482            * Returns the last message-boards message in the ordered set where groupId = &#63;.
483            *
484            * @param groupId the group ID
485            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
486            * @return the last matching message-boards message, or <code>null</code> if a matching message-boards message could not be found
487            * @throws SystemException if a system exception occurred
488            */
489            public com.liferay.portlet.messageboards.model.MBMessage fetchByGroupId_Last(
490                    long groupId,
491                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
492                    throws com.liferay.portal.kernel.exception.SystemException;
493    
494            /**
495            * Returns the message-boards messages before and after the current message-boards message in the ordered set where groupId = &#63;.
496            *
497            * @param messageId the primary key of the current message-boards message
498            * @param groupId the group ID
499            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
500            * @return the previous, current, and next message-boards message
501            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found
502            * @throws SystemException if a system exception occurred
503            */
504            public com.liferay.portlet.messageboards.model.MBMessage[] findByGroupId_PrevAndNext(
505                    long messageId, long groupId,
506                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
507                    throws com.liferay.portal.kernel.exception.SystemException,
508                            com.liferay.portlet.messageboards.NoSuchMessageException;
509    
510            /**
511            * Returns all the message-boards messages that the user has permission to view where groupId = &#63;.
512            *
513            * @param groupId the group ID
514            * @return the matching message-boards messages that the user has permission to view
515            * @throws SystemException if a system exception occurred
516            */
517            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByGroupId(
518                    long groupId)
519                    throws com.liferay.portal.kernel.exception.SystemException;
520    
521            /**
522            * Returns a range of all the message-boards messages that the user has permission to view where groupId = &#63;.
523            *
524            * <p>
525            * 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.
526            * </p>
527            *
528            * @param groupId the group ID
529            * @param start the lower bound of the range of message-boards messages
530            * @param end the upper bound of the range of message-boards messages (not inclusive)
531            * @return the range of matching message-boards messages that the user has permission to view
532            * @throws SystemException if a system exception occurred
533            */
534            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByGroupId(
535                    long groupId, int start, int end)
536                    throws com.liferay.portal.kernel.exception.SystemException;
537    
538            /**
539            * Returns an ordered range of all the message-boards messages that the user has permissions to view where groupId = &#63;.
540            *
541            * <p>
542            * 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.
543            * </p>
544            *
545            * @param groupId the group ID
546            * @param start the lower bound of the range of message-boards messages
547            * @param end the upper bound of the range of message-boards messages (not inclusive)
548            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
549            * @return the ordered range of matching message-boards messages that the user has permission to view
550            * @throws SystemException if a system exception occurred
551            */
552            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByGroupId(
553                    long groupId, int start, int end,
554                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
555                    throws com.liferay.portal.kernel.exception.SystemException;
556    
557            /**
558            * Returns the message-boards messages before and after the current message-boards message in the ordered set of message-boards messages that the user has permission to view where groupId = &#63;.
559            *
560            * @param messageId the primary key of the current message-boards message
561            * @param groupId the group ID
562            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
563            * @return the previous, current, and next message-boards message
564            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found
565            * @throws SystemException if a system exception occurred
566            */
567            public com.liferay.portlet.messageboards.model.MBMessage[] filterFindByGroupId_PrevAndNext(
568                    long messageId, long groupId,
569                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
570                    throws com.liferay.portal.kernel.exception.SystemException,
571                            com.liferay.portlet.messageboards.NoSuchMessageException;
572    
573            /**
574            * Returns all the message-boards messages where companyId = &#63;.
575            *
576            * @param companyId the company ID
577            * @return the matching message-boards messages
578            * @throws SystemException if a system exception occurred
579            */
580            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByCompanyId(
581                    long companyId)
582                    throws com.liferay.portal.kernel.exception.SystemException;
583    
584            /**
585            * Returns a range of all the message-boards messages where companyId = &#63;.
586            *
587            * <p>
588            * 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.
589            * </p>
590            *
591            * @param companyId the company ID
592            * @param start the lower bound of the range of message-boards messages
593            * @param end the upper bound of the range of message-boards messages (not inclusive)
594            * @return the range of matching message-boards messages
595            * @throws SystemException if a system exception occurred
596            */
597            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByCompanyId(
598                    long companyId, int start, int end)
599                    throws com.liferay.portal.kernel.exception.SystemException;
600    
601            /**
602            * Returns an ordered range of all the message-boards messages where companyId = &#63;.
603            *
604            * <p>
605            * 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.
606            * </p>
607            *
608            * @param companyId the company ID
609            * @param start the lower bound of the range of message-boards messages
610            * @param end the upper bound of the range of message-boards messages (not inclusive)
611            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
612            * @return the ordered range of matching message-boards messages
613            * @throws SystemException if a system exception occurred
614            */
615            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByCompanyId(
616                    long companyId, int start, int end,
617                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
618                    throws com.liferay.portal.kernel.exception.SystemException;
619    
620            /**
621            * Returns the first message-boards message in the ordered set where companyId = &#63;.
622            *
623            * @param companyId the company ID
624            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
625            * @return the first matching message-boards message
626            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found
627            * @throws SystemException if a system exception occurred
628            */
629            public com.liferay.portlet.messageboards.model.MBMessage findByCompanyId_First(
630                    long companyId,
631                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
632                    throws com.liferay.portal.kernel.exception.SystemException,
633                            com.liferay.portlet.messageboards.NoSuchMessageException;
634    
635            /**
636            * Returns the first message-boards message in the ordered set where companyId = &#63;.
637            *
638            * @param companyId the company ID
639            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
640            * @return the first matching message-boards message, or <code>null</code> if a matching message-boards message could not be found
641            * @throws SystemException if a system exception occurred
642            */
643            public com.liferay.portlet.messageboards.model.MBMessage fetchByCompanyId_First(
644                    long companyId,
645                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
646                    throws com.liferay.portal.kernel.exception.SystemException;
647    
648            /**
649            * Returns the last message-boards message in the ordered set where companyId = &#63;.
650            *
651            * @param companyId the company ID
652            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
653            * @return the last matching message-boards message
654            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found
655            * @throws SystemException if a system exception occurred
656            */
657            public com.liferay.portlet.messageboards.model.MBMessage findByCompanyId_Last(
658                    long companyId,
659                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
660                    throws com.liferay.portal.kernel.exception.SystemException,
661                            com.liferay.portlet.messageboards.NoSuchMessageException;
662    
663            /**
664            * Returns the last message-boards message in the ordered set where companyId = &#63;.
665            *
666            * @param companyId the company ID
667            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
668            * @return the last matching message-boards message, or <code>null</code> if a matching message-boards message could not be found
669            * @throws SystemException if a system exception occurred
670            */
671            public com.liferay.portlet.messageboards.model.MBMessage fetchByCompanyId_Last(
672                    long companyId,
673                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
674                    throws com.liferay.portal.kernel.exception.SystemException;
675    
676            /**
677            * Returns the message-boards messages before and after the current message-boards message in the ordered set where companyId = &#63;.
678            *
679            * @param messageId the primary key of the current message-boards message
680            * @param companyId the company ID
681            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
682            * @return the previous, current, and next message-boards message
683            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found
684            * @throws SystemException if a system exception occurred
685            */
686            public com.liferay.portlet.messageboards.model.MBMessage[] findByCompanyId_PrevAndNext(
687                    long messageId, long companyId,
688                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
689                    throws com.liferay.portal.kernel.exception.SystemException,
690                            com.liferay.portlet.messageboards.NoSuchMessageException;
691    
692            /**
693            * Returns all the message-boards messages where threadId = &#63;.
694            *
695            * @param threadId the thread ID
696            * @return the matching message-boards messages
697            * @throws SystemException if a system exception occurred
698            */
699            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByThreadId(
700                    long threadId)
701                    throws com.liferay.portal.kernel.exception.SystemException;
702    
703            /**
704            * Returns a range of all the message-boards messages where threadId = &#63;.
705            *
706            * <p>
707            * 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.
708            * </p>
709            *
710            * @param threadId the thread ID
711            * @param start the lower bound of the range of message-boards messages
712            * @param end the upper bound of the range of message-boards messages (not inclusive)
713            * @return the range of matching message-boards messages
714            * @throws SystemException if a system exception occurred
715            */
716            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByThreadId(
717                    long threadId, int start, int end)
718                    throws com.liferay.portal.kernel.exception.SystemException;
719    
720            /**
721            * Returns an ordered range of all the message-boards messages where threadId = &#63;.
722            *
723            * <p>
724            * 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.
725            * </p>
726            *
727            * @param threadId the thread ID
728            * @param start the lower bound of the range of message-boards messages
729            * @param end the upper bound of the range of message-boards messages (not inclusive)
730            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
731            * @return the ordered range of matching message-boards messages
732            * @throws SystemException if a system exception occurred
733            */
734            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByThreadId(
735                    long threadId, int start, int end,
736                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
737                    throws com.liferay.portal.kernel.exception.SystemException;
738    
739            /**
740            * Returns the first message-boards message in the ordered set where threadId = &#63;.
741            *
742            * @param threadId the thread ID
743            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
744            * @return the first matching message-boards message
745            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found
746            * @throws SystemException if a system exception occurred
747            */
748            public com.liferay.portlet.messageboards.model.MBMessage findByThreadId_First(
749                    long threadId,
750                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
751                    throws com.liferay.portal.kernel.exception.SystemException,
752                            com.liferay.portlet.messageboards.NoSuchMessageException;
753    
754            /**
755            * Returns the first message-boards message in the ordered set where threadId = &#63;.
756            *
757            * @param threadId the thread ID
758            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
759            * @return the first matching message-boards message, or <code>null</code> if a matching message-boards message could not be found
760            * @throws SystemException if a system exception occurred
761            */
762            public com.liferay.portlet.messageboards.model.MBMessage fetchByThreadId_First(
763                    long threadId,
764                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
765                    throws com.liferay.portal.kernel.exception.SystemException;
766    
767            /**
768            * Returns the last message-boards message in the ordered set where threadId = &#63;.
769            *
770            * @param threadId the thread ID
771            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
772            * @return the last matching message-boards message
773            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found
774            * @throws SystemException if a system exception occurred
775            */
776            public com.liferay.portlet.messageboards.model.MBMessage findByThreadId_Last(
777                    long threadId,
778                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
779                    throws com.liferay.portal.kernel.exception.SystemException,
780                            com.liferay.portlet.messageboards.NoSuchMessageException;
781    
782            /**
783            * Returns the last message-boards message in the ordered set where threadId = &#63;.
784            *
785            * @param threadId the thread ID
786            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
787            * @return the last matching message-boards message, or <code>null</code> if a matching message-boards message could not be found
788            * @throws SystemException if a system exception occurred
789            */
790            public com.liferay.portlet.messageboards.model.MBMessage fetchByThreadId_Last(
791                    long threadId,
792                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
793                    throws com.liferay.portal.kernel.exception.SystemException;
794    
795            /**
796            * Returns the message-boards messages before and after the current message-boards message in the ordered set where threadId = &#63;.
797            *
798            * @param messageId the primary key of the current message-boards message
799            * @param threadId the thread ID
800            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
801            * @return the previous, current, and next message-boards message
802            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found
803            * @throws SystemException if a system exception occurred
804            */
805            public com.liferay.portlet.messageboards.model.MBMessage[] findByThreadId_PrevAndNext(
806                    long messageId, long threadId,
807                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
808                    throws com.liferay.portal.kernel.exception.SystemException,
809                            com.liferay.portlet.messageboards.NoSuchMessageException;
810    
811            /**
812            * Returns all the message-boards messages where threadId = &#63;.
813            *
814            * @param threadId the thread ID
815            * @return the matching message-boards messages
816            * @throws SystemException if a system exception occurred
817            */
818            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByThreadReplies(
819                    long threadId)
820                    throws com.liferay.portal.kernel.exception.SystemException;
821    
822            /**
823            * Returns a range of all the message-boards messages where threadId = &#63;.
824            *
825            * <p>
826            * 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.
827            * </p>
828            *
829            * @param threadId the thread ID
830            * @param start the lower bound of the range of message-boards messages
831            * @param end the upper bound of the range of message-boards messages (not inclusive)
832            * @return the range of matching message-boards messages
833            * @throws SystemException if a system exception occurred
834            */
835            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByThreadReplies(
836                    long threadId, int start, int end)
837                    throws com.liferay.portal.kernel.exception.SystemException;
838    
839            /**
840            * Returns an ordered range of all the message-boards messages where threadId = &#63;.
841            *
842            * <p>
843            * 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.
844            * </p>
845            *
846            * @param threadId the thread ID
847            * @param start the lower bound of the range of message-boards messages
848            * @param end the upper bound of the range of message-boards messages (not inclusive)
849            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
850            * @return the ordered range of matching message-boards messages
851            * @throws SystemException if a system exception occurred
852            */
853            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByThreadReplies(
854                    long threadId, int start, int end,
855                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
856                    throws com.liferay.portal.kernel.exception.SystemException;
857    
858            /**
859            * Returns the first message-boards message in the ordered set where threadId = &#63;.
860            *
861            * @param threadId the thread ID
862            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
863            * @return the first matching message-boards message
864            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found
865            * @throws SystemException if a system exception occurred
866            */
867            public com.liferay.portlet.messageboards.model.MBMessage findByThreadReplies_First(
868                    long threadId,
869                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
870                    throws com.liferay.portal.kernel.exception.SystemException,
871                            com.liferay.portlet.messageboards.NoSuchMessageException;
872    
873            /**
874            * Returns the first message-boards message in the ordered set where threadId = &#63;.
875            *
876            * @param threadId the thread ID
877            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
878            * @return the first matching message-boards message, or <code>null</code> if a matching message-boards message could not be found
879            * @throws SystemException if a system exception occurred
880            */
881            public com.liferay.portlet.messageboards.model.MBMessage fetchByThreadReplies_First(
882                    long threadId,
883                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
884                    throws com.liferay.portal.kernel.exception.SystemException;
885    
886            /**
887            * Returns the last message-boards message in the ordered set where threadId = &#63;.
888            *
889            * @param threadId the thread ID
890            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
891            * @return the last matching message-boards message
892            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found
893            * @throws SystemException if a system exception occurred
894            */
895            public com.liferay.portlet.messageboards.model.MBMessage findByThreadReplies_Last(
896                    long threadId,
897                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
898                    throws com.liferay.portal.kernel.exception.SystemException,
899                            com.liferay.portlet.messageboards.NoSuchMessageException;
900    
901            /**
902            * Returns the last message-boards message in the ordered set where threadId = &#63;.
903            *
904            * @param threadId the thread ID
905            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
906            * @return the last matching message-boards message, or <code>null</code> if a matching message-boards message could not be found
907            * @throws SystemException if a system exception occurred
908            */
909            public com.liferay.portlet.messageboards.model.MBMessage fetchByThreadReplies_Last(
910                    long threadId,
911                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
912                    throws com.liferay.portal.kernel.exception.SystemException;
913    
914            /**
915            * Returns the message-boards messages before and after the current message-boards message in the ordered set where threadId = &#63;.
916            *
917            * @param messageId the primary key of the current message-boards message
918            * @param threadId the thread ID
919            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
920            * @return the previous, current, and next message-boards message
921            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found
922            * @throws SystemException if a system exception occurred
923            */
924            public com.liferay.portlet.messageboards.model.MBMessage[] findByThreadReplies_PrevAndNext(
925                    long messageId, long threadId,
926                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
927                    throws com.liferay.portal.kernel.exception.SystemException,
928                            com.liferay.portlet.messageboards.NoSuchMessageException;
929    
930            /**
931            * Returns all the message-boards messages where userId = &#63;.
932            *
933            * @param userId the user ID
934            * @return the matching message-boards messages
935            * @throws SystemException if a system exception occurred
936            */
937            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByUserId(
938                    long userId) throws com.liferay.portal.kernel.exception.SystemException;
939    
940            /**
941            * Returns a range of all the message-boards messages where userId = &#63;.
942            *
943            * <p>
944            * 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.
945            * </p>
946            *
947            * @param userId the user ID
948            * @param start the lower bound of the range of message-boards messages
949            * @param end the upper bound of the range of message-boards messages (not inclusive)
950            * @return the range of matching message-boards messages
951            * @throws SystemException if a system exception occurred
952            */
953            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByUserId(
954                    long userId, int start, int end)
955                    throws com.liferay.portal.kernel.exception.SystemException;
956    
957            /**
958            * Returns an ordered range of all the message-boards messages where userId = &#63;.
959            *
960            * <p>
961            * 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.
962            * </p>
963            *
964            * @param userId the user ID
965            * @param start the lower bound of the range of message-boards messages
966            * @param end the upper bound of the range of message-boards messages (not inclusive)
967            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
968            * @return the ordered range of matching message-boards messages
969            * @throws SystemException if a system exception occurred
970            */
971            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByUserId(
972                    long userId, int start, int end,
973                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
974                    throws com.liferay.portal.kernel.exception.SystemException;
975    
976            /**
977            * Returns the first message-boards message in the ordered set where userId = &#63;.
978            *
979            * @param userId the user ID
980            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
981            * @return the first matching message-boards message
982            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found
983            * @throws SystemException if a system exception occurred
984            */
985            public com.liferay.portlet.messageboards.model.MBMessage findByUserId_First(
986                    long userId,
987                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
988                    throws com.liferay.portal.kernel.exception.SystemException,
989                            com.liferay.portlet.messageboards.NoSuchMessageException;
990    
991            /**
992            * Returns the first message-boards message in the ordered set where userId = &#63;.
993            *
994            * @param userId the user ID
995            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
996            * @return the first matching message-boards message, or <code>null</code> if a matching message-boards message could not be found
997            * @throws SystemException if a system exception occurred
998            */
999            public com.liferay.portlet.messageboards.model.MBMessage fetchByUserId_First(
1000                    long userId,
1001                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1002                    throws com.liferay.portal.kernel.exception.SystemException;
1003    
1004            /**
1005            * Returns the last message-boards message in the ordered set where userId = &#63;.
1006            *
1007            * @param userId the user ID
1008            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1009            * @return the last matching message-boards message
1010            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found
1011            * @throws SystemException if a system exception occurred
1012            */
1013            public com.liferay.portlet.messageboards.model.MBMessage findByUserId_Last(
1014                    long userId,
1015                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1016                    throws com.liferay.portal.kernel.exception.SystemException,
1017                            com.liferay.portlet.messageboards.NoSuchMessageException;
1018    
1019            /**
1020            * Returns the last message-boards message in the ordered set where userId = &#63;.
1021            *
1022            * @param userId the user ID
1023            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1024            * @return the last matching message-boards message, or <code>null</code> if a matching message-boards message could not be found
1025            * @throws SystemException if a system exception occurred
1026            */
1027            public com.liferay.portlet.messageboards.model.MBMessage fetchByUserId_Last(
1028                    long userId,
1029                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1030                    throws com.liferay.portal.kernel.exception.SystemException;
1031    
1032            /**
1033            * Returns the message-boards messages before and after the current message-boards message in the ordered set where userId = &#63;.
1034            *
1035            * @param messageId the primary key of the current message-boards message
1036            * @param userId the user ID
1037            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1038            * @return the previous, current, and next message-boards message
1039            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found
1040            * @throws SystemException if a system exception occurred
1041            */
1042            public com.liferay.portlet.messageboards.model.MBMessage[] findByUserId_PrevAndNext(
1043                    long messageId, long userId,
1044                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1045                    throws com.liferay.portal.kernel.exception.SystemException,
1046                            com.liferay.portlet.messageboards.NoSuchMessageException;
1047    
1048            /**
1049            * Returns all the message-boards messages where groupId = &#63; and userId = &#63;.
1050            *
1051            * @param groupId the group ID
1052            * @param userId the user ID
1053            * @return the matching message-boards messages
1054            * @throws SystemException if a system exception occurred
1055            */
1056            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_U(
1057                    long groupId, long userId)
1058                    throws com.liferay.portal.kernel.exception.SystemException;
1059    
1060            /**
1061            * Returns a range of all the message-boards messages where groupId = &#63; and userId = &#63;.
1062            *
1063            * <p>
1064            * 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.
1065            * </p>
1066            *
1067            * @param groupId the group ID
1068            * @param userId the user ID
1069            * @param start the lower bound of the range of message-boards messages
1070            * @param end the upper bound of the range of message-boards messages (not inclusive)
1071            * @return the range of matching message-boards messages
1072            * @throws SystemException if a system exception occurred
1073            */
1074            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_U(
1075                    long groupId, long userId, int start, int end)
1076                    throws com.liferay.portal.kernel.exception.SystemException;
1077    
1078            /**
1079            * Returns an ordered range of all the message-boards messages where groupId = &#63; and userId = &#63;.
1080            *
1081            * <p>
1082            * 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.
1083            * </p>
1084            *
1085            * @param groupId the group ID
1086            * @param userId the user ID
1087            * @param start the lower bound of the range of message-boards messages
1088            * @param end the upper bound of the range of message-boards messages (not inclusive)
1089            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1090            * @return the ordered range of matching message-boards messages
1091            * @throws SystemException if a system exception occurred
1092            */
1093            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_U(
1094                    long groupId, long userId, int start, int end,
1095                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1096                    throws com.liferay.portal.kernel.exception.SystemException;
1097    
1098            /**
1099            * Returns the first message-boards message in the ordered set where groupId = &#63; and userId = &#63;.
1100            *
1101            * @param groupId the group ID
1102            * @param userId the user ID
1103            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1104            * @return the first matching message-boards message
1105            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found
1106            * @throws SystemException if a system exception occurred
1107            */
1108            public com.liferay.portlet.messageboards.model.MBMessage findByG_U_First(
1109                    long groupId, long userId,
1110                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1111                    throws com.liferay.portal.kernel.exception.SystemException,
1112                            com.liferay.portlet.messageboards.NoSuchMessageException;
1113    
1114            /**
1115            * Returns the first message-boards message in the ordered set where groupId = &#63; and userId = &#63;.
1116            *
1117            * @param groupId the group ID
1118            * @param userId the user ID
1119            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1120            * @return the first matching message-boards message, or <code>null</code> if a matching message-boards message could not be found
1121            * @throws SystemException if a system exception occurred
1122            */
1123            public com.liferay.portlet.messageboards.model.MBMessage fetchByG_U_First(
1124                    long groupId, long userId,
1125                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1126                    throws com.liferay.portal.kernel.exception.SystemException;
1127    
1128            /**
1129            * Returns the last message-boards message in the ordered set where groupId = &#63; and userId = &#63;.
1130            *
1131            * @param groupId the group ID
1132            * @param userId the user ID
1133            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1134            * @return the last matching message-boards message
1135            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found
1136            * @throws SystemException if a system exception occurred
1137            */
1138            public com.liferay.portlet.messageboards.model.MBMessage findByG_U_Last(
1139                    long groupId, long userId,
1140                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1141                    throws com.liferay.portal.kernel.exception.SystemException,
1142                            com.liferay.portlet.messageboards.NoSuchMessageException;
1143    
1144            /**
1145            * Returns the last message-boards message in the ordered set where groupId = &#63; and userId = &#63;.
1146            *
1147            * @param groupId the group ID
1148            * @param userId the user ID
1149            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1150            * @return the last matching message-boards message, or <code>null</code> if a matching message-boards message could not be found
1151            * @throws SystemException if a system exception occurred
1152            */
1153            public com.liferay.portlet.messageboards.model.MBMessage fetchByG_U_Last(
1154                    long groupId, long userId,
1155                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1156                    throws com.liferay.portal.kernel.exception.SystemException;
1157    
1158            /**
1159            * Returns the message-boards messages before and after the current message-boards message in the ordered set where groupId = &#63; and userId = &#63;.
1160            *
1161            * @param messageId the primary key of the current message-boards message
1162            * @param groupId the group ID
1163            * @param userId the user ID
1164            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1165            * @return the previous, current, and next message-boards message
1166            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found
1167            * @throws SystemException if a system exception occurred
1168            */
1169            public com.liferay.portlet.messageboards.model.MBMessage[] findByG_U_PrevAndNext(
1170                    long messageId, long groupId, long userId,
1171                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1172                    throws com.liferay.portal.kernel.exception.SystemException,
1173                            com.liferay.portlet.messageboards.NoSuchMessageException;
1174    
1175            /**
1176            * Returns all the message-boards messages that the user has permission to view where groupId = &#63; and userId = &#63;.
1177            *
1178            * @param groupId the group ID
1179            * @param userId the user ID
1180            * @return the matching message-boards messages that the user has permission to view
1181            * @throws SystemException if a system exception occurred
1182            */
1183            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_U(
1184                    long groupId, long userId)
1185                    throws com.liferay.portal.kernel.exception.SystemException;
1186    
1187            /**
1188            * Returns a range of all the message-boards messages that the user has permission to view where groupId = &#63; and userId = &#63;.
1189            *
1190            * <p>
1191            * 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.
1192            * </p>
1193            *
1194            * @param groupId the group ID
1195            * @param userId the user ID
1196            * @param start the lower bound of the range of message-boards messages
1197            * @param end the upper bound of the range of message-boards messages (not inclusive)
1198            * @return the range of matching message-boards messages that the user has permission to view
1199            * @throws SystemException if a system exception occurred
1200            */
1201            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_U(
1202                    long groupId, long userId, int start, int end)
1203                    throws com.liferay.portal.kernel.exception.SystemException;
1204    
1205            /**
1206            * Returns an ordered range of all the message-boards messages that the user has permissions to view where groupId = &#63; and userId = &#63;.
1207            *
1208            * <p>
1209            * 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.
1210            * </p>
1211            *
1212            * @param groupId the group ID
1213            * @param userId the user ID
1214            * @param start the lower bound of the range of message-boards messages
1215            * @param end the upper bound of the range of message-boards messages (not inclusive)
1216            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1217            * @return the ordered range of matching message-boards messages that the user has permission to view
1218            * @throws SystemException if a system exception occurred
1219            */
1220            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_U(
1221                    long groupId, long userId, int start, int end,
1222                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1223                    throws com.liferay.portal.kernel.exception.SystemException;
1224    
1225            /**
1226            * Returns the message-boards messages before and after the current message-boards message in the ordered set of message-boards messages that the user has permission to view where groupId = &#63; and userId = &#63;.
1227            *
1228            * @param messageId the primary key of the current message-boards message
1229            * @param groupId the group ID
1230            * @param userId the user ID
1231            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1232            * @return the previous, current, and next message-boards message
1233            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found
1234            * @throws SystemException if a system exception occurred
1235            */
1236            public com.liferay.portlet.messageboards.model.MBMessage[] filterFindByG_U_PrevAndNext(
1237                    long messageId, long groupId, long userId,
1238                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1239                    throws com.liferay.portal.kernel.exception.SystemException,
1240                            com.liferay.portlet.messageboards.NoSuchMessageException;
1241    
1242            /**
1243            * Returns all the message-boards messages where groupId = &#63; and categoryId = &#63;.
1244            *
1245            * @param groupId the group ID
1246            * @param categoryId the category ID
1247            * @return the matching message-boards messages
1248            * @throws SystemException if a system exception occurred
1249            */
1250            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_C(
1251                    long groupId, long categoryId)
1252                    throws com.liferay.portal.kernel.exception.SystemException;
1253    
1254            /**
1255            * Returns a range of all the message-boards messages where groupId = &#63; and categoryId = &#63;.
1256            *
1257            * <p>
1258            * 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.
1259            * </p>
1260            *
1261            * @param groupId the group ID
1262            * @param categoryId the category ID
1263            * @param start the lower bound of the range of message-boards messages
1264            * @param end the upper bound of the range of message-boards messages (not inclusive)
1265            * @return the range of matching message-boards messages
1266            * @throws SystemException if a system exception occurred
1267            */
1268            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_C(
1269                    long groupId, long categoryId, int start, int end)
1270                    throws com.liferay.portal.kernel.exception.SystemException;
1271    
1272            /**
1273            * Returns an ordered range of all the message-boards messages where groupId = &#63; and categoryId = &#63;.
1274            *
1275            * <p>
1276            * 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.
1277            * </p>
1278            *
1279            * @param groupId the group ID
1280            * @param categoryId the category ID
1281            * @param start the lower bound of the range of message-boards messages
1282            * @param end the upper bound of the range of message-boards messages (not inclusive)
1283            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1284            * @return the ordered range of matching message-boards messages
1285            * @throws SystemException if a system exception occurred
1286            */
1287            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_C(
1288                    long groupId, long categoryId, int start, int end,
1289                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1290                    throws com.liferay.portal.kernel.exception.SystemException;
1291    
1292            /**
1293            * Returns the first message-boards message in the ordered set where groupId = &#63; and categoryId = &#63;.
1294            *
1295            * @param groupId the group ID
1296            * @param categoryId the category ID
1297            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1298            * @return the first matching message-boards message
1299            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found
1300            * @throws SystemException if a system exception occurred
1301            */
1302            public com.liferay.portlet.messageboards.model.MBMessage findByG_C_First(
1303                    long groupId, long categoryId,
1304                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1305                    throws com.liferay.portal.kernel.exception.SystemException,
1306                            com.liferay.portlet.messageboards.NoSuchMessageException;
1307    
1308            /**
1309            * Returns the first message-boards message in the ordered set where groupId = &#63; and categoryId = &#63;.
1310            *
1311            * @param groupId the group ID
1312            * @param categoryId the category ID
1313            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1314            * @return the first matching message-boards message, or <code>null</code> if a matching message-boards message could not be found
1315            * @throws SystemException if a system exception occurred
1316            */
1317            public com.liferay.portlet.messageboards.model.MBMessage fetchByG_C_First(
1318                    long groupId, long categoryId,
1319                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1320                    throws com.liferay.portal.kernel.exception.SystemException;
1321    
1322            /**
1323            * Returns the last message-boards message in the ordered set where groupId = &#63; and categoryId = &#63;.
1324            *
1325            * @param groupId the group ID
1326            * @param categoryId the category ID
1327            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1328            * @return the last matching message-boards message
1329            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found
1330            * @throws SystemException if a system exception occurred
1331            */
1332            public com.liferay.portlet.messageboards.model.MBMessage findByG_C_Last(
1333                    long groupId, long categoryId,
1334                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1335                    throws com.liferay.portal.kernel.exception.SystemException,
1336                            com.liferay.portlet.messageboards.NoSuchMessageException;
1337    
1338            /**
1339            * Returns the last message-boards message in the ordered set where groupId = &#63; and categoryId = &#63;.
1340            *
1341            * @param groupId the group ID
1342            * @param categoryId the category ID
1343            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1344            * @return the last matching message-boards message, or <code>null</code> if a matching message-boards message could not be found
1345            * @throws SystemException if a system exception occurred
1346            */
1347            public com.liferay.portlet.messageboards.model.MBMessage fetchByG_C_Last(
1348                    long groupId, long categoryId,
1349                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1350                    throws com.liferay.portal.kernel.exception.SystemException;
1351    
1352            /**
1353            * Returns the message-boards messages before and after the current message-boards message in the ordered set where groupId = &#63; and categoryId = &#63;.
1354            *
1355            * @param messageId the primary key of the current message-boards message
1356            * @param groupId the group ID
1357            * @param categoryId the category ID
1358            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1359            * @return the previous, current, and next message-boards message
1360            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found
1361            * @throws SystemException if a system exception occurred
1362            */
1363            public com.liferay.portlet.messageboards.model.MBMessage[] findByG_C_PrevAndNext(
1364                    long messageId, long groupId, long categoryId,
1365                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1366                    throws com.liferay.portal.kernel.exception.SystemException,
1367                            com.liferay.portlet.messageboards.NoSuchMessageException;
1368    
1369            /**
1370            * Returns all the message-boards messages that the user has permission to view where groupId = &#63; and categoryId = &#63;.
1371            *
1372            * @param groupId the group ID
1373            * @param categoryId the category ID
1374            * @return the matching message-boards messages that the user has permission to view
1375            * @throws SystemException if a system exception occurred
1376            */
1377            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_C(
1378                    long groupId, long categoryId)
1379                    throws com.liferay.portal.kernel.exception.SystemException;
1380    
1381            /**
1382            * Returns a range of all the message-boards messages that the user has permission to view where groupId = &#63; and categoryId = &#63;.
1383            *
1384            * <p>
1385            * 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.
1386            * </p>
1387            *
1388            * @param groupId the group ID
1389            * @param categoryId the category ID
1390            * @param start the lower bound of the range of message-boards messages
1391            * @param end the upper bound of the range of message-boards messages (not inclusive)
1392            * @return the range of matching message-boards messages that the user has permission to view
1393            * @throws SystemException if a system exception occurred
1394            */
1395            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_C(
1396                    long groupId, long categoryId, int start, int end)
1397                    throws com.liferay.portal.kernel.exception.SystemException;
1398    
1399            /**
1400            * Returns an ordered range of all the message-boards messages that the user has permissions to view where groupId = &#63; and categoryId = &#63;.
1401            *
1402            * <p>
1403            * 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.
1404            * </p>
1405            *
1406            * @param groupId the group ID
1407            * @param categoryId the category ID
1408            * @param start the lower bound of the range of message-boards messages
1409            * @param end the upper bound of the range of message-boards messages (not inclusive)
1410            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1411            * @return the ordered range of matching message-boards messages that the user has permission to view
1412            * @throws SystemException if a system exception occurred
1413            */
1414            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_C(
1415                    long groupId, long categoryId, int start, int end,
1416                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1417                    throws com.liferay.portal.kernel.exception.SystemException;
1418    
1419            /**
1420            * Returns the message-boards messages before and after the current message-boards message in the ordered set of message-boards messages that the user has permission to view where groupId = &#63; and categoryId = &#63;.
1421            *
1422            * @param messageId the primary key of the current message-boards message
1423            * @param groupId the group ID
1424            * @param categoryId the category ID
1425            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1426            * @return the previous, current, and next message-boards message
1427            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found
1428            * @throws SystemException if a system exception occurred
1429            */
1430            public com.liferay.portlet.messageboards.model.MBMessage[] filterFindByG_C_PrevAndNext(
1431                    long messageId, long groupId, long categoryId,
1432                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1433                    throws com.liferay.portal.kernel.exception.SystemException,
1434                            com.liferay.portlet.messageboards.NoSuchMessageException;
1435    
1436            /**
1437            * Returns all the message-boards messages where groupId = &#63; and status = &#63;.
1438            *
1439            * @param groupId the group ID
1440            * @param status the status
1441            * @return the matching message-boards messages
1442            * @throws SystemException if a system exception occurred
1443            */
1444            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_S(
1445                    long groupId, int status)
1446                    throws com.liferay.portal.kernel.exception.SystemException;
1447    
1448            /**
1449            * Returns a range of all the message-boards messages where groupId = &#63; and status = &#63;.
1450            *
1451            * <p>
1452            * 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.
1453            * </p>
1454            *
1455            * @param groupId the group ID
1456            * @param status the status
1457            * @param start the lower bound of the range of message-boards messages
1458            * @param end the upper bound of the range of message-boards messages (not inclusive)
1459            * @return the range of matching message-boards messages
1460            * @throws SystemException if a system exception occurred
1461            */
1462            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_S(
1463                    long groupId, int status, int start, int end)
1464                    throws com.liferay.portal.kernel.exception.SystemException;
1465    
1466            /**
1467            * Returns an ordered range of all the message-boards messages where groupId = &#63; and status = &#63;.
1468            *
1469            * <p>
1470            * 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.
1471            * </p>
1472            *
1473            * @param groupId the group ID
1474            * @param status the status
1475            * @param start the lower bound of the range of message-boards messages
1476            * @param end the upper bound of the range of message-boards messages (not inclusive)
1477            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1478            * @return the ordered range of matching message-boards messages
1479            * @throws SystemException if a system exception occurred
1480            */
1481            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_S(
1482                    long groupId, int status, int start, int end,
1483                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1484                    throws com.liferay.portal.kernel.exception.SystemException;
1485    
1486            /**
1487            * Returns the first message-boards message in the ordered set where groupId = &#63; and status = &#63;.
1488            *
1489            * @param groupId the group ID
1490            * @param status the status
1491            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1492            * @return the first matching message-boards message
1493            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found
1494            * @throws SystemException if a system exception occurred
1495            */
1496            public com.liferay.portlet.messageboards.model.MBMessage findByG_S_First(
1497                    long groupId, int status,
1498                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1499                    throws com.liferay.portal.kernel.exception.SystemException,
1500                            com.liferay.portlet.messageboards.NoSuchMessageException;
1501    
1502            /**
1503            * Returns the first message-boards message in the ordered set where groupId = &#63; and status = &#63;.
1504            *
1505            * @param groupId the group ID
1506            * @param status the status
1507            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1508            * @return the first matching message-boards message, or <code>null</code> if a matching message-boards message could not be found
1509            * @throws SystemException if a system exception occurred
1510            */
1511            public com.liferay.portlet.messageboards.model.MBMessage fetchByG_S_First(
1512                    long groupId, int status,
1513                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1514                    throws com.liferay.portal.kernel.exception.SystemException;
1515    
1516            /**
1517            * Returns the last message-boards message in the ordered set where groupId = &#63; and status = &#63;.
1518            *
1519            * @param groupId the group ID
1520            * @param status the status
1521            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1522            * @return the last matching message-boards message
1523            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found
1524            * @throws SystemException if a system exception occurred
1525            */
1526            public com.liferay.portlet.messageboards.model.MBMessage findByG_S_Last(
1527                    long groupId, int status,
1528                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1529                    throws com.liferay.portal.kernel.exception.SystemException,
1530                            com.liferay.portlet.messageboards.NoSuchMessageException;
1531    
1532            /**
1533            * Returns the last message-boards message in the ordered set where groupId = &#63; and status = &#63;.
1534            *
1535            * @param groupId the group ID
1536            * @param status the status
1537            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1538            * @return the last matching message-boards message, or <code>null</code> if a matching message-boards message could not be found
1539            * @throws SystemException if a system exception occurred
1540            */
1541            public com.liferay.portlet.messageboards.model.MBMessage fetchByG_S_Last(
1542                    long groupId, int status,
1543                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1544                    throws com.liferay.portal.kernel.exception.SystemException;
1545    
1546            /**
1547            * Returns the message-boards messages before and after the current message-boards message in the ordered set where groupId = &#63; and status = &#63;.
1548            *
1549            * @param messageId the primary key of the current message-boards message
1550            * @param groupId the group ID
1551            * @param status the status
1552            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1553            * @return the previous, current, and next message-boards message
1554            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found
1555            * @throws SystemException if a system exception occurred
1556            */
1557            public com.liferay.portlet.messageboards.model.MBMessage[] findByG_S_PrevAndNext(
1558                    long messageId, long groupId, int status,
1559                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1560                    throws com.liferay.portal.kernel.exception.SystemException,
1561                            com.liferay.portlet.messageboards.NoSuchMessageException;
1562    
1563            /**
1564            * Returns all the message-boards messages that the user has permission to view where groupId = &#63; and status = &#63;.
1565            *
1566            * @param groupId the group ID
1567            * @param status the status
1568            * @return the matching message-boards messages that the user has permission to view
1569            * @throws SystemException if a system exception occurred
1570            */
1571            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_S(
1572                    long groupId, int status)
1573                    throws com.liferay.portal.kernel.exception.SystemException;
1574    
1575            /**
1576            * Returns a range of all the message-boards messages that the user has permission to view where groupId = &#63; and status = &#63;.
1577            *
1578            * <p>
1579            * 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.
1580            * </p>
1581            *
1582            * @param groupId the group ID
1583            * @param status the status
1584            * @param start the lower bound of the range of message-boards messages
1585            * @param end the upper bound of the range of message-boards messages (not inclusive)
1586            * @return the range of matching message-boards messages that the user has permission to view
1587            * @throws SystemException if a system exception occurred
1588            */
1589            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_S(
1590                    long groupId, int status, int start, int end)
1591                    throws com.liferay.portal.kernel.exception.SystemException;
1592    
1593            /**
1594            * Returns an ordered range of all the message-boards messages that the user has permissions to view where groupId = &#63; and status = &#63;.
1595            *
1596            * <p>
1597            * 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.
1598            * </p>
1599            *
1600            * @param groupId the group ID
1601            * @param status the status
1602            * @param start the lower bound of the range of message-boards messages
1603            * @param end the upper bound of the range of message-boards messages (not inclusive)
1604            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1605            * @return the ordered range of matching message-boards messages that the user has permission to view
1606            * @throws SystemException if a system exception occurred
1607            */
1608            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_S(
1609                    long groupId, int status, int start, int end,
1610                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1611                    throws com.liferay.portal.kernel.exception.SystemException;
1612    
1613            /**
1614            * Returns the message-boards messages before and after the current message-boards message in the ordered set of message-boards messages that the user has permission to view where groupId = &#63; and status = &#63;.
1615            *
1616            * @param messageId the primary key of the current message-boards message
1617            * @param groupId the group ID
1618            * @param status the status
1619            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1620            * @return the previous, current, and next message-boards message
1621            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found
1622            * @throws SystemException if a system exception occurred
1623            */
1624            public com.liferay.portlet.messageboards.model.MBMessage[] filterFindByG_S_PrevAndNext(
1625                    long messageId, long groupId, int status,
1626                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1627                    throws com.liferay.portal.kernel.exception.SystemException,
1628                            com.liferay.portlet.messageboards.NoSuchMessageException;
1629    
1630            /**
1631            * Returns all the message-boards messages where companyId = &#63; and status = &#63;.
1632            *
1633            * @param companyId the company ID
1634            * @param status the status
1635            * @return the matching message-boards messages
1636            * @throws SystemException if a system exception occurred
1637            */
1638            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_S(
1639                    long companyId, int status)
1640                    throws com.liferay.portal.kernel.exception.SystemException;
1641    
1642            /**
1643            * Returns a range of all the message-boards messages where companyId = &#63; and status = &#63;.
1644            *
1645            * <p>
1646            * 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.
1647            * </p>
1648            *
1649            * @param companyId the company ID
1650            * @param status the status
1651            * @param start the lower bound of the range of message-boards messages
1652            * @param end the upper bound of the range of message-boards messages (not inclusive)
1653            * @return the range of matching message-boards messages
1654            * @throws SystemException if a system exception occurred
1655            */
1656            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_S(
1657                    long companyId, int status, int start, int end)
1658                    throws com.liferay.portal.kernel.exception.SystemException;
1659    
1660            /**
1661            * Returns an ordered range of all the message-boards messages where companyId = &#63; and status = &#63;.
1662            *
1663            * <p>
1664            * 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.
1665            * </p>
1666            *
1667            * @param companyId the company ID
1668            * @param status the status
1669            * @param start the lower bound of the range of message-boards messages
1670            * @param end the upper bound of the range of message-boards messages (not inclusive)
1671            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1672            * @return the ordered range of matching message-boards messages
1673            * @throws SystemException if a system exception occurred
1674            */
1675            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_S(
1676                    long companyId, int status, int start, int end,
1677                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1678                    throws com.liferay.portal.kernel.exception.SystemException;
1679    
1680            /**
1681            * Returns the first message-boards message in the ordered set where companyId = &#63; and status = &#63;.
1682            *
1683            * @param companyId the company ID
1684            * @param status the status
1685            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1686            * @return the first matching message-boards message
1687            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found
1688            * @throws SystemException if a system exception occurred
1689            */
1690            public com.liferay.portlet.messageboards.model.MBMessage findByC_S_First(
1691                    long companyId, int status,
1692                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1693                    throws com.liferay.portal.kernel.exception.SystemException,
1694                            com.liferay.portlet.messageboards.NoSuchMessageException;
1695    
1696            /**
1697            * Returns the first message-boards message in the ordered set where companyId = &#63; and status = &#63;.
1698            *
1699            * @param companyId the company ID
1700            * @param status the status
1701            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1702            * @return the first matching message-boards message, or <code>null</code> if a matching message-boards message could not be found
1703            * @throws SystemException if a system exception occurred
1704            */
1705            public com.liferay.portlet.messageboards.model.MBMessage fetchByC_S_First(
1706                    long companyId, int status,
1707                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1708                    throws com.liferay.portal.kernel.exception.SystemException;
1709    
1710            /**
1711            * Returns the last message-boards message in the ordered set where companyId = &#63; and status = &#63;.
1712            *
1713            * @param companyId the company ID
1714            * @param status the status
1715            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1716            * @return the last matching message-boards message
1717            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found
1718            * @throws SystemException if a system exception occurred
1719            */
1720            public com.liferay.portlet.messageboards.model.MBMessage findByC_S_Last(
1721                    long companyId, int status,
1722                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1723                    throws com.liferay.portal.kernel.exception.SystemException,
1724                            com.liferay.portlet.messageboards.NoSuchMessageException;
1725    
1726            /**
1727            * Returns the last message-boards message in the ordered set where companyId = &#63; and status = &#63;.
1728            *
1729            * @param companyId the company ID
1730            * @param status the status
1731            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1732            * @return the last matching message-boards message, or <code>null</code> if a matching message-boards message could not be found
1733            * @throws SystemException if a system exception occurred
1734            */
1735            public com.liferay.portlet.messageboards.model.MBMessage fetchByC_S_Last(
1736                    long companyId, int status,
1737                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1738                    throws com.liferay.portal.kernel.exception.SystemException;
1739    
1740            /**
1741            * Returns the message-boards messages before and after the current message-boards message in the ordered set where companyId = &#63; and status = &#63;.
1742            *
1743            * @param messageId the primary key of the current message-boards message
1744            * @param companyId the company ID
1745            * @param status the status
1746            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1747            * @return the previous, current, and next message-boards message
1748            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found
1749            * @throws SystemException if a system exception occurred
1750            */
1751            public com.liferay.portlet.messageboards.model.MBMessage[] findByC_S_PrevAndNext(
1752                    long messageId, long companyId, int status,
1753                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1754                    throws com.liferay.portal.kernel.exception.SystemException,
1755                            com.liferay.portlet.messageboards.NoSuchMessageException;
1756    
1757            /**
1758            * Returns all the message-boards messages where userId = &#63; and classNameId = &#63;.
1759            *
1760            * @param userId the user ID
1761            * @param classNameId the class name ID
1762            * @return the matching message-boards messages
1763            * @throws SystemException if a system exception occurred
1764            */
1765            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByU_C(
1766                    long userId, long classNameId)
1767                    throws com.liferay.portal.kernel.exception.SystemException;
1768    
1769            /**
1770            * Returns a range of all the message-boards messages where userId = &#63; and classNameId = &#63;.
1771            *
1772            * <p>
1773            * 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.
1774            * </p>
1775            *
1776            * @param userId the user ID
1777            * @param classNameId the class name ID
1778            * @param start the lower bound of the range of message-boards messages
1779            * @param end the upper bound of the range of message-boards messages (not inclusive)
1780            * @return the range of matching message-boards messages
1781            * @throws SystemException if a system exception occurred
1782            */
1783            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByU_C(
1784                    long userId, long classNameId, int start, int end)
1785                    throws com.liferay.portal.kernel.exception.SystemException;
1786    
1787            /**
1788            * Returns an ordered range of all the message-boards messages where userId = &#63; and classNameId = &#63;.
1789            *
1790            * <p>
1791            * 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.
1792            * </p>
1793            *
1794            * @param userId the user ID
1795            * @param classNameId the class name ID
1796            * @param start the lower bound of the range of message-boards messages
1797            * @param end the upper bound of the range of message-boards messages (not inclusive)
1798            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1799            * @return the ordered range of matching message-boards messages
1800            * @throws SystemException if a system exception occurred
1801            */
1802            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByU_C(
1803                    long userId, long classNameId, int start, int end,
1804                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1805                    throws com.liferay.portal.kernel.exception.SystemException;
1806    
1807            /**
1808            * Returns the first message-boards message in the ordered set where userId = &#63; and classNameId = &#63;.
1809            *
1810            * @param userId the user ID
1811            * @param classNameId the class name ID
1812            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1813            * @return the first matching message-boards message
1814            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found
1815            * @throws SystemException if a system exception occurred
1816            */
1817            public com.liferay.portlet.messageboards.model.MBMessage findByU_C_First(
1818                    long userId, long classNameId,
1819                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1820                    throws com.liferay.portal.kernel.exception.SystemException,
1821                            com.liferay.portlet.messageboards.NoSuchMessageException;
1822    
1823            /**
1824            * Returns the first message-boards message in the ordered set where userId = &#63; and classNameId = &#63;.
1825            *
1826            * @param userId the user ID
1827            * @param classNameId the class name ID
1828            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1829            * @return the first matching message-boards message, or <code>null</code> if a matching message-boards message could not be found
1830            * @throws SystemException if a system exception occurred
1831            */
1832            public com.liferay.portlet.messageboards.model.MBMessage fetchByU_C_First(
1833                    long userId, long classNameId,
1834                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1835                    throws com.liferay.portal.kernel.exception.SystemException;
1836    
1837            /**
1838            * Returns the last message-boards message in the ordered set where userId = &#63; and classNameId = &#63;.
1839            *
1840            * @param userId the user ID
1841            * @param classNameId the class name ID
1842            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1843            * @return the last matching message-boards message
1844            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found
1845            * @throws SystemException if a system exception occurred
1846            */
1847            public com.liferay.portlet.messageboards.model.MBMessage findByU_C_Last(
1848                    long userId, long classNameId,
1849                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1850                    throws com.liferay.portal.kernel.exception.SystemException,
1851                            com.liferay.portlet.messageboards.NoSuchMessageException;
1852    
1853            /**
1854            * Returns the last message-boards message in the ordered set where userId = &#63; and classNameId = &#63;.
1855            *
1856            * @param userId the user ID
1857            * @param classNameId the class name ID
1858            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1859            * @return the last matching message-boards message, or <code>null</code> if a matching message-boards message could not be found
1860            * @throws SystemException if a system exception occurred
1861            */
1862            public com.liferay.portlet.messageboards.model.MBMessage fetchByU_C_Last(
1863                    long userId, long classNameId,
1864                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1865                    throws com.liferay.portal.kernel.exception.SystemException;
1866    
1867            /**
1868            * Returns the message-boards messages before and after the current message-boards message in the ordered set where userId = &#63; and classNameId = &#63;.
1869            *
1870            * @param messageId the primary key of the current message-boards message
1871            * @param userId the user ID
1872            * @param classNameId the class name ID
1873            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1874            * @return the previous, current, and next message-boards message
1875            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found
1876            * @throws SystemException if a system exception occurred
1877            */
1878            public com.liferay.portlet.messageboards.model.MBMessage[] findByU_C_PrevAndNext(
1879                    long messageId, long userId, long classNameId,
1880                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1881                    throws com.liferay.portal.kernel.exception.SystemException,
1882                            com.liferay.portlet.messageboards.NoSuchMessageException;
1883    
1884            /**
1885            * Returns all the message-boards messages where userId = &#63; and classNameId = any &#63;.
1886            *
1887            * <p>
1888            * 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.
1889            * </p>
1890            *
1891            * @param userId the user ID
1892            * @param classNameIds the class name IDs
1893            * @return the matching message-boards messages
1894            * @throws SystemException if a system exception occurred
1895            */
1896            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByU_C(
1897                    long userId, long[] classNameIds)
1898                    throws com.liferay.portal.kernel.exception.SystemException;
1899    
1900            /**
1901            * Returns a range of all the message-boards messages where userId = &#63; and classNameId = any &#63;.
1902            *
1903            * <p>
1904            * 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.
1905            * </p>
1906            *
1907            * @param userId the user ID
1908            * @param classNameIds the class name IDs
1909            * @param start the lower bound of the range of message-boards messages
1910            * @param end the upper bound of the range of message-boards messages (not inclusive)
1911            * @return the range of matching message-boards messages
1912            * @throws SystemException if a system exception occurred
1913            */
1914            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByU_C(
1915                    long userId, long[] classNameIds, int start, int end)
1916                    throws com.liferay.portal.kernel.exception.SystemException;
1917    
1918            /**
1919            * Returns an ordered range of all the message-boards messages where userId = &#63; and classNameId = any &#63;.
1920            *
1921            * <p>
1922            * 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.
1923            * </p>
1924            *
1925            * @param userId the user ID
1926            * @param classNameIds the class name IDs
1927            * @param start the lower bound of the range of message-boards messages
1928            * @param end the upper bound of the range of message-boards messages (not inclusive)
1929            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1930            * @return the ordered range of matching message-boards messages
1931            * @throws SystemException if a system exception occurred
1932            */
1933            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByU_C(
1934                    long userId, long[] classNameIds, int start, int end,
1935                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1936                    throws com.liferay.portal.kernel.exception.SystemException;
1937    
1938            /**
1939            * Returns all the message-boards messages where classNameId = &#63; and classPK = &#63;.
1940            *
1941            * @param classNameId the class name ID
1942            * @param classPK the class p k
1943            * @return the matching message-boards messages
1944            * @throws SystemException if a system exception occurred
1945            */
1946            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_C(
1947                    long classNameId, long classPK)
1948                    throws com.liferay.portal.kernel.exception.SystemException;
1949    
1950            /**
1951            * Returns a range of all the message-boards messages where classNameId = &#63; and classPK = &#63;.
1952            *
1953            * <p>
1954            * 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.
1955            * </p>
1956            *
1957            * @param classNameId the class name ID
1958            * @param classPK the class p k
1959            * @param start the lower bound of the range of message-boards messages
1960            * @param end the upper bound of the range of message-boards messages (not inclusive)
1961            * @return the range of matching message-boards messages
1962            * @throws SystemException if a system exception occurred
1963            */
1964            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_C(
1965                    long classNameId, long classPK, int start, int end)
1966                    throws com.liferay.portal.kernel.exception.SystemException;
1967    
1968            /**
1969            * Returns an ordered range of all the message-boards messages where classNameId = &#63; and classPK = &#63;.
1970            *
1971            * <p>
1972            * 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.
1973            * </p>
1974            *
1975            * @param classNameId the class name ID
1976            * @param classPK the class p k
1977            * @param start the lower bound of the range of message-boards messages
1978            * @param end the upper bound of the range of message-boards messages (not inclusive)
1979            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1980            * @return the ordered range of matching message-boards messages
1981            * @throws SystemException if a system exception occurred
1982            */
1983            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_C(
1984                    long classNameId, long classPK, int start, int end,
1985                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1986                    throws com.liferay.portal.kernel.exception.SystemException;
1987    
1988            /**
1989            * Returns the first message-boards message in the ordered set where classNameId = &#63; and classPK = &#63;.
1990            *
1991            * @param classNameId the class name ID
1992            * @param classPK the class p k
1993            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1994            * @return the first matching message-boards message
1995            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found
1996            * @throws SystemException if a system exception occurred
1997            */
1998            public com.liferay.portlet.messageboards.model.MBMessage findByC_C_First(
1999                    long classNameId, long classPK,
2000                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2001                    throws com.liferay.portal.kernel.exception.SystemException,
2002                            com.liferay.portlet.messageboards.NoSuchMessageException;
2003    
2004            /**
2005            * Returns the first message-boards message in the ordered set where classNameId = &#63; and classPK = &#63;.
2006            *
2007            * @param classNameId the class name ID
2008            * @param classPK the class p k
2009            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2010            * @return the first matching message-boards message, or <code>null</code> if a matching message-boards message could not be found
2011            * @throws SystemException if a system exception occurred
2012            */
2013            public com.liferay.portlet.messageboards.model.MBMessage fetchByC_C_First(
2014                    long classNameId, long classPK,
2015                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2016                    throws com.liferay.portal.kernel.exception.SystemException;
2017    
2018            /**
2019            * Returns the last message-boards message in the ordered set where classNameId = &#63; and classPK = &#63;.
2020            *
2021            * @param classNameId the class name ID
2022            * @param classPK the class p k
2023            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2024            * @return the last matching message-boards message
2025            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found
2026            * @throws SystemException if a system exception occurred
2027            */
2028            public com.liferay.portlet.messageboards.model.MBMessage findByC_C_Last(
2029                    long classNameId, long classPK,
2030                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2031                    throws com.liferay.portal.kernel.exception.SystemException,
2032                            com.liferay.portlet.messageboards.NoSuchMessageException;
2033    
2034            /**
2035            * Returns the last message-boards message in the ordered set where classNameId = &#63; and classPK = &#63;.
2036            *
2037            * @param classNameId the class name ID
2038            * @param classPK the class p k
2039            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2040            * @return the last matching message-boards message, or <code>null</code> if a matching message-boards message could not be found
2041            * @throws SystemException if a system exception occurred
2042            */
2043            public com.liferay.portlet.messageboards.model.MBMessage fetchByC_C_Last(
2044                    long classNameId, long classPK,
2045                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2046                    throws com.liferay.portal.kernel.exception.SystemException;
2047    
2048            /**
2049            * Returns the message-boards messages before and after the current message-boards message in the ordered set where classNameId = &#63; and classPK = &#63;.
2050            *
2051            * @param messageId the primary key of the current message-boards message
2052            * @param classNameId the class name ID
2053            * @param classPK the class p k
2054            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2055            * @return the previous, current, and next message-boards message
2056            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found
2057            * @throws SystemException if a system exception occurred
2058            */
2059            public com.liferay.portlet.messageboards.model.MBMessage[] findByC_C_PrevAndNext(
2060                    long messageId, long classNameId, long classPK,
2061                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2062                    throws com.liferay.portal.kernel.exception.SystemException,
2063                            com.liferay.portlet.messageboards.NoSuchMessageException;
2064    
2065            /**
2066            * Returns all the message-boards messages where threadId = &#63; and parentMessageId = &#63;.
2067            *
2068            * @param threadId the thread ID
2069            * @param parentMessageId the parent message ID
2070            * @return the matching message-boards messages
2071            * @throws SystemException if a system exception occurred
2072            */
2073            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByT_P(
2074                    long threadId, long parentMessageId)
2075                    throws com.liferay.portal.kernel.exception.SystemException;
2076    
2077            /**
2078            * Returns a range of all the message-boards messages where threadId = &#63; and parentMessageId = &#63;.
2079            *
2080            * <p>
2081            * 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.
2082            * </p>
2083            *
2084            * @param threadId the thread ID
2085            * @param parentMessageId the parent message ID
2086            * @param start the lower bound of the range of message-boards messages
2087            * @param end the upper bound of the range of message-boards messages (not inclusive)
2088            * @return the range of matching message-boards messages
2089            * @throws SystemException if a system exception occurred
2090            */
2091            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByT_P(
2092                    long threadId, long parentMessageId, int start, int end)
2093                    throws com.liferay.portal.kernel.exception.SystemException;
2094    
2095            /**
2096            * Returns an ordered range of all the message-boards messages where threadId = &#63; and parentMessageId = &#63;.
2097            *
2098            * <p>
2099            * 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.
2100            * </p>
2101            *
2102            * @param threadId the thread ID
2103            * @param parentMessageId the parent message ID
2104            * @param start the lower bound of the range of message-boards messages
2105            * @param end the upper bound of the range of message-boards messages (not inclusive)
2106            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2107            * @return the ordered range of matching message-boards messages
2108            * @throws SystemException if a system exception occurred
2109            */
2110            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByT_P(
2111                    long threadId, long parentMessageId, int start, int end,
2112                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2113                    throws com.liferay.portal.kernel.exception.SystemException;
2114    
2115            /**
2116            * Returns the first message-boards message in the ordered set where threadId = &#63; and parentMessageId = &#63;.
2117            *
2118            * @param threadId the thread ID
2119            * @param parentMessageId the parent message ID
2120            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2121            * @return the first matching message-boards message
2122            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found
2123            * @throws SystemException if a system exception occurred
2124            */
2125            public com.liferay.portlet.messageboards.model.MBMessage findByT_P_First(
2126                    long threadId, long parentMessageId,
2127                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2128                    throws com.liferay.portal.kernel.exception.SystemException,
2129                            com.liferay.portlet.messageboards.NoSuchMessageException;
2130    
2131            /**
2132            * Returns the first message-boards message in the ordered set where threadId = &#63; and parentMessageId = &#63;.
2133            *
2134            * @param threadId the thread ID
2135            * @param parentMessageId the parent message ID
2136            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2137            * @return the first matching message-boards message, or <code>null</code> if a matching message-boards message could not be found
2138            * @throws SystemException if a system exception occurred
2139            */
2140            public com.liferay.portlet.messageboards.model.MBMessage fetchByT_P_First(
2141                    long threadId, long parentMessageId,
2142                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2143                    throws com.liferay.portal.kernel.exception.SystemException;
2144    
2145            /**
2146            * Returns the last message-boards message in the ordered set where threadId = &#63; and parentMessageId = &#63;.
2147            *
2148            * @param threadId the thread ID
2149            * @param parentMessageId the parent message ID
2150            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2151            * @return the last matching message-boards message
2152            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found
2153            * @throws SystemException if a system exception occurred
2154            */
2155            public com.liferay.portlet.messageboards.model.MBMessage findByT_P_Last(
2156                    long threadId, long parentMessageId,
2157                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2158                    throws com.liferay.portal.kernel.exception.SystemException,
2159                            com.liferay.portlet.messageboards.NoSuchMessageException;
2160    
2161            /**
2162            * Returns the last message-boards message in the ordered set where threadId = &#63; and parentMessageId = &#63;.
2163            *
2164            * @param threadId the thread ID
2165            * @param parentMessageId the parent message ID
2166            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2167            * @return the last matching message-boards message, or <code>null</code> if a matching message-boards message could not be found
2168            * @throws SystemException if a system exception occurred
2169            */
2170            public com.liferay.portlet.messageboards.model.MBMessage fetchByT_P_Last(
2171                    long threadId, long parentMessageId,
2172                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2173                    throws com.liferay.portal.kernel.exception.SystemException;
2174    
2175            /**
2176            * Returns the message-boards messages before and after the current message-boards message in the ordered set where threadId = &#63; and parentMessageId = &#63;.
2177            *
2178            * @param messageId the primary key of the current message-boards message
2179            * @param threadId the thread ID
2180            * @param parentMessageId the parent message ID
2181            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2182            * @return the previous, current, and next message-boards message
2183            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found
2184            * @throws SystemException if a system exception occurred
2185            */
2186            public com.liferay.portlet.messageboards.model.MBMessage[] findByT_P_PrevAndNext(
2187                    long messageId, long threadId, long parentMessageId,
2188                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2189                    throws com.liferay.portal.kernel.exception.SystemException,
2190                            com.liferay.portlet.messageboards.NoSuchMessageException;
2191    
2192            /**
2193            * Returns all the message-boards messages where threadId = &#63; and answer = &#63;.
2194            *
2195            * @param threadId the thread ID
2196            * @param answer the answer
2197            * @return the matching message-boards messages
2198            * @throws SystemException if a system exception occurred
2199            */
2200            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByT_A(
2201                    long threadId, boolean answer)
2202                    throws com.liferay.portal.kernel.exception.SystemException;
2203    
2204            /**
2205            * Returns a range of all the message-boards messages where threadId = &#63; and answer = &#63;.
2206            *
2207            * <p>
2208            * 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.
2209            * </p>
2210            *
2211            * @param threadId the thread ID
2212            * @param answer the answer
2213            * @param start the lower bound of the range of message-boards messages
2214            * @param end the upper bound of the range of message-boards messages (not inclusive)
2215            * @return the range of matching message-boards messages
2216            * @throws SystemException if a system exception occurred
2217            */
2218            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByT_A(
2219                    long threadId, boolean answer, int start, int end)
2220                    throws com.liferay.portal.kernel.exception.SystemException;
2221    
2222            /**
2223            * Returns an ordered range of all the message-boards messages where threadId = &#63; and answer = &#63;.
2224            *
2225            * <p>
2226            * 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.
2227            * </p>
2228            *
2229            * @param threadId the thread ID
2230            * @param answer the answer
2231            * @param start the lower bound of the range of message-boards messages
2232            * @param end the upper bound of the range of message-boards messages (not inclusive)
2233            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2234            * @return the ordered range of matching message-boards messages
2235            * @throws SystemException if a system exception occurred
2236            */
2237            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByT_A(
2238                    long threadId, boolean answer, int start, int end,
2239                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2240                    throws com.liferay.portal.kernel.exception.SystemException;
2241    
2242            /**
2243            * Returns the first message-boards message in the ordered set where threadId = &#63; and answer = &#63;.
2244            *
2245            * @param threadId the thread ID
2246            * @param answer the answer
2247            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2248            * @return the first matching message-boards message
2249            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found
2250            * @throws SystemException if a system exception occurred
2251            */
2252            public com.liferay.portlet.messageboards.model.MBMessage findByT_A_First(
2253                    long threadId, boolean answer,
2254                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2255                    throws com.liferay.portal.kernel.exception.SystemException,
2256                            com.liferay.portlet.messageboards.NoSuchMessageException;
2257    
2258            /**
2259            * Returns the first message-boards message in the ordered set where threadId = &#63; and answer = &#63;.
2260            *
2261            * @param threadId the thread ID
2262            * @param answer the answer
2263            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2264            * @return the first matching message-boards message, or <code>null</code> if a matching message-boards message could not be found
2265            * @throws SystemException if a system exception occurred
2266            */
2267            public com.liferay.portlet.messageboards.model.MBMessage fetchByT_A_First(
2268                    long threadId, boolean answer,
2269                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2270                    throws com.liferay.portal.kernel.exception.SystemException;
2271    
2272            /**
2273            * Returns the last message-boards message in the ordered set where threadId = &#63; and answer = &#63;.
2274            *
2275            * @param threadId the thread ID
2276            * @param answer the answer
2277            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2278            * @return the last matching message-boards message
2279            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found
2280            * @throws SystemException if a system exception occurred
2281            */
2282            public com.liferay.portlet.messageboards.model.MBMessage findByT_A_Last(
2283                    long threadId, boolean answer,
2284                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2285                    throws com.liferay.portal.kernel.exception.SystemException,
2286                            com.liferay.portlet.messageboards.NoSuchMessageException;
2287    
2288            /**
2289            * Returns the last message-boards message in the ordered set where threadId = &#63; and answer = &#63;.
2290            *
2291            * @param threadId the thread ID
2292            * @param answer the answer
2293            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2294            * @return the last matching message-boards message, or <code>null</code> if a matching message-boards message could not be found
2295            * @throws SystemException if a system exception occurred
2296            */
2297            public com.liferay.portlet.messageboards.model.MBMessage fetchByT_A_Last(
2298                    long threadId, boolean answer,
2299                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2300                    throws com.liferay.portal.kernel.exception.SystemException;
2301    
2302            /**
2303            * Returns the message-boards messages before and after the current message-boards message in the ordered set where threadId = &#63; and answer = &#63;.
2304            *
2305            * @param messageId the primary key of the current message-boards message
2306            * @param threadId the thread ID
2307            * @param answer the answer
2308            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2309            * @return the previous, current, and next message-boards message
2310            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found
2311            * @throws SystemException if a system exception occurred
2312            */
2313            public com.liferay.portlet.messageboards.model.MBMessage[] findByT_A_PrevAndNext(
2314                    long messageId, long threadId, boolean answer,
2315                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2316                    throws com.liferay.portal.kernel.exception.SystemException,
2317                            com.liferay.portlet.messageboards.NoSuchMessageException;
2318    
2319            /**
2320            * Returns all the message-boards messages where threadId = &#63; and status = &#63;.
2321            *
2322            * @param threadId the thread ID
2323            * @param status the status
2324            * @return the matching message-boards messages
2325            * @throws SystemException if a system exception occurred
2326            */
2327            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByT_S(
2328                    long threadId, int status)
2329                    throws com.liferay.portal.kernel.exception.SystemException;
2330    
2331            /**
2332            * Returns a range of all the message-boards messages where threadId = &#63; and status = &#63;.
2333            *
2334            * <p>
2335            * 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.
2336            * </p>
2337            *
2338            * @param threadId the thread ID
2339            * @param status the status
2340            * @param start the lower bound of the range of message-boards messages
2341            * @param end the upper bound of the range of message-boards messages (not inclusive)
2342            * @return the range of matching message-boards messages
2343            * @throws SystemException if a system exception occurred
2344            */
2345            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByT_S(
2346                    long threadId, int status, int start, int end)
2347                    throws com.liferay.portal.kernel.exception.SystemException;
2348    
2349            /**
2350            * Returns an ordered range of all the message-boards messages where threadId = &#63; and status = &#63;.
2351            *
2352            * <p>
2353            * 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.
2354            * </p>
2355            *
2356            * @param threadId the thread ID
2357            * @param status the status
2358            * @param start the lower bound of the range of message-boards messages
2359            * @param end the upper bound of the range of message-boards messages (not inclusive)
2360            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2361            * @return the ordered range of matching message-boards messages
2362            * @throws SystemException if a system exception occurred
2363            */
2364            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByT_S(
2365                    long threadId, int status, int start, int end,
2366                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2367                    throws com.liferay.portal.kernel.exception.SystemException;
2368    
2369            /**
2370            * Returns the first message-boards message in the ordered set where threadId = &#63; and status = &#63;.
2371            *
2372            * @param threadId the thread ID
2373            * @param status the status
2374            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2375            * @return the first matching message-boards message
2376            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found
2377            * @throws SystemException if a system exception occurred
2378            */
2379            public com.liferay.portlet.messageboards.model.MBMessage findByT_S_First(
2380                    long threadId, int status,
2381                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2382                    throws com.liferay.portal.kernel.exception.SystemException,
2383                            com.liferay.portlet.messageboards.NoSuchMessageException;
2384    
2385            /**
2386            * Returns the first message-boards message in the ordered set where threadId = &#63; and status = &#63;.
2387            *
2388            * @param threadId the thread ID
2389            * @param status the status
2390            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2391            * @return the first matching message-boards message, or <code>null</code> if a matching message-boards message could not be found
2392            * @throws SystemException if a system exception occurred
2393            */
2394            public com.liferay.portlet.messageboards.model.MBMessage fetchByT_S_First(
2395                    long threadId, int status,
2396                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2397                    throws com.liferay.portal.kernel.exception.SystemException;
2398    
2399            /**
2400            * Returns the last message-boards message in the ordered set where threadId = &#63; and status = &#63;.
2401            *
2402            * @param threadId the thread ID
2403            * @param status the status
2404            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2405            * @return the last matching message-boards message
2406            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found
2407            * @throws SystemException if a system exception occurred
2408            */
2409            public com.liferay.portlet.messageboards.model.MBMessage findByT_S_Last(
2410                    long threadId, int status,
2411                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2412                    throws com.liferay.portal.kernel.exception.SystemException,
2413                            com.liferay.portlet.messageboards.NoSuchMessageException;
2414    
2415            /**
2416            * Returns the last message-boards message in the ordered set where threadId = &#63; and status = &#63;.
2417            *
2418            * @param threadId the thread ID
2419            * @param status the status
2420            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2421            * @return the last matching message-boards message, or <code>null</code> if a matching message-boards message could not be found
2422            * @throws SystemException if a system exception occurred
2423            */
2424            public com.liferay.portlet.messageboards.model.MBMessage fetchByT_S_Last(
2425                    long threadId, int status,
2426                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2427                    throws com.liferay.portal.kernel.exception.SystemException;
2428    
2429            /**
2430            * Returns the message-boards messages before and after the current message-boards message in the ordered set where threadId = &#63; and status = &#63;.
2431            *
2432            * @param messageId the primary key of the current message-boards message
2433            * @param threadId the thread ID
2434            * @param status the status
2435            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2436            * @return the previous, current, and next message-boards message
2437            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found
2438            * @throws SystemException if a system exception occurred
2439            */
2440            public com.liferay.portlet.messageboards.model.MBMessage[] findByT_S_PrevAndNext(
2441                    long messageId, long threadId, int status,
2442                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2443                    throws com.liferay.portal.kernel.exception.SystemException,
2444                            com.liferay.portlet.messageboards.NoSuchMessageException;
2445    
2446            /**
2447            * Returns all the message-boards messages where threadId = &#63; and status = &#63;.
2448            *
2449            * @param threadId the thread ID
2450            * @param status the status
2451            * @return the matching message-boards messages
2452            * @throws SystemException if a system exception occurred
2453            */
2454            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByTR_S(
2455                    long threadId, int status)
2456                    throws com.liferay.portal.kernel.exception.SystemException;
2457    
2458            /**
2459            * Returns a range of all the message-boards messages where threadId = &#63; and status = &#63;.
2460            *
2461            * <p>
2462            * 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.
2463            * </p>
2464            *
2465            * @param threadId the thread ID
2466            * @param status the status
2467            * @param start the lower bound of the range of message-boards messages
2468            * @param end the upper bound of the range of message-boards messages (not inclusive)
2469            * @return the range of matching message-boards messages
2470            * @throws SystemException if a system exception occurred
2471            */
2472            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByTR_S(
2473                    long threadId, int status, int start, int end)
2474                    throws com.liferay.portal.kernel.exception.SystemException;
2475    
2476            /**
2477            * Returns an ordered range of all the message-boards messages where threadId = &#63; and status = &#63;.
2478            *
2479            * <p>
2480            * 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.
2481            * </p>
2482            *
2483            * @param threadId the thread ID
2484            * @param status the status
2485            * @param start the lower bound of the range of message-boards messages
2486            * @param end the upper bound of the range of message-boards messages (not inclusive)
2487            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2488            * @return the ordered range of matching message-boards messages
2489            * @throws SystemException if a system exception occurred
2490            */
2491            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByTR_S(
2492                    long threadId, int status, int start, int end,
2493                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2494                    throws com.liferay.portal.kernel.exception.SystemException;
2495    
2496            /**
2497            * Returns the first message-boards message in the ordered set where threadId = &#63; and status = &#63;.
2498            *
2499            * @param threadId the thread ID
2500            * @param status the status
2501            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2502            * @return the first matching message-boards message
2503            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found
2504            * @throws SystemException if a system exception occurred
2505            */
2506            public com.liferay.portlet.messageboards.model.MBMessage findByTR_S_First(
2507                    long threadId, int status,
2508                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2509                    throws com.liferay.portal.kernel.exception.SystemException,
2510                            com.liferay.portlet.messageboards.NoSuchMessageException;
2511    
2512            /**
2513            * Returns the first message-boards message in the ordered set where threadId = &#63; and status = &#63;.
2514            *
2515            * @param threadId the thread ID
2516            * @param status the status
2517            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2518            * @return the first matching message-boards message, or <code>null</code> if a matching message-boards message could not be found
2519            * @throws SystemException if a system exception occurred
2520            */
2521            public com.liferay.portlet.messageboards.model.MBMessage fetchByTR_S_First(
2522                    long threadId, int status,
2523                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2524                    throws com.liferay.portal.kernel.exception.SystemException;
2525    
2526            /**
2527            * Returns the last message-boards message in the ordered set where threadId = &#63; and status = &#63;.
2528            *
2529            * @param threadId the thread ID
2530            * @param status the status
2531            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2532            * @return the last matching message-boards message
2533            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found
2534            * @throws SystemException if a system exception occurred
2535            */
2536            public com.liferay.portlet.messageboards.model.MBMessage findByTR_S_Last(
2537                    long threadId, int status,
2538                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2539                    throws com.liferay.portal.kernel.exception.SystemException,
2540                            com.liferay.portlet.messageboards.NoSuchMessageException;
2541    
2542            /**
2543            * Returns the last message-boards message in the ordered set where threadId = &#63; and status = &#63;.
2544            *
2545            * @param threadId the thread ID
2546            * @param status the status
2547            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2548            * @return the last matching message-boards message, or <code>null</code> if a matching message-boards message could not be found
2549            * @throws SystemException if a system exception occurred
2550            */
2551            public com.liferay.portlet.messageboards.model.MBMessage fetchByTR_S_Last(
2552                    long threadId, int status,
2553                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2554                    throws com.liferay.portal.kernel.exception.SystemException;
2555    
2556            /**
2557            * Returns the message-boards messages before and after the current message-boards message in the ordered set where threadId = &#63; and status = &#63;.
2558            *
2559            * @param messageId the primary key of the current message-boards message
2560            * @param threadId the thread ID
2561            * @param status the status
2562            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2563            * @return the previous, current, and next message-boards message
2564            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found
2565            * @throws SystemException if a system exception occurred
2566            */
2567            public com.liferay.portlet.messageboards.model.MBMessage[] findByTR_S_PrevAndNext(
2568                    long messageId, long threadId, int status,
2569                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2570                    throws com.liferay.portal.kernel.exception.SystemException,
2571                            com.liferay.portlet.messageboards.NoSuchMessageException;
2572    
2573            /**
2574            * Returns all the message-boards messages where groupId = &#63; and userId = &#63; and status = &#63;.
2575            *
2576            * @param groupId the group ID
2577            * @param userId the user ID
2578            * @param status the status
2579            * @return the matching message-boards messages
2580            * @throws SystemException if a system exception occurred
2581            */
2582            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_U_S(
2583                    long groupId, long userId, int status)
2584                    throws com.liferay.portal.kernel.exception.SystemException;
2585    
2586            /**
2587            * Returns a range of all the message-boards messages where groupId = &#63; and userId = &#63; and status = &#63;.
2588            *
2589            * <p>
2590            * 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.
2591            * </p>
2592            *
2593            * @param groupId the group ID
2594            * @param userId the user ID
2595            * @param status the status
2596            * @param start the lower bound of the range of message-boards messages
2597            * @param end the upper bound of the range of message-boards messages (not inclusive)
2598            * @return the range of matching message-boards messages
2599            * @throws SystemException if a system exception occurred
2600            */
2601            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_U_S(
2602                    long groupId, long userId, int status, int start, int end)
2603                    throws com.liferay.portal.kernel.exception.SystemException;
2604    
2605            /**
2606            * Returns an ordered range of all the message-boards messages where groupId = &#63; and userId = &#63; and status = &#63;.
2607            *
2608            * <p>
2609            * 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.
2610            * </p>
2611            *
2612            * @param groupId the group ID
2613            * @param userId the user ID
2614            * @param status the status
2615            * @param start the lower bound of the range of message-boards messages
2616            * @param end the upper bound of the range of message-boards messages (not inclusive)
2617            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2618            * @return the ordered range of matching message-boards messages
2619            * @throws SystemException if a system exception occurred
2620            */
2621            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_U_S(
2622                    long groupId, long userId, int status, int start, int end,
2623                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2624                    throws com.liferay.portal.kernel.exception.SystemException;
2625    
2626            /**
2627            * Returns the first message-boards message in the ordered set where groupId = &#63; and userId = &#63; and status = &#63;.
2628            *
2629            * @param groupId the group ID
2630            * @param userId the user ID
2631            * @param status the status
2632            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2633            * @return the first matching message-boards message
2634            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found
2635            * @throws SystemException if a system exception occurred
2636            */
2637            public com.liferay.portlet.messageboards.model.MBMessage findByG_U_S_First(
2638                    long groupId, long userId, int status,
2639                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2640                    throws com.liferay.portal.kernel.exception.SystemException,
2641                            com.liferay.portlet.messageboards.NoSuchMessageException;
2642    
2643            /**
2644            * Returns the first message-boards message in the ordered set where groupId = &#63; and userId = &#63; and status = &#63;.
2645            *
2646            * @param groupId the group ID
2647            * @param userId the user ID
2648            * @param status the status
2649            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2650            * @return the first matching message-boards message, or <code>null</code> if a matching message-boards message could not be found
2651            * @throws SystemException if a system exception occurred
2652            */
2653            public com.liferay.portlet.messageboards.model.MBMessage fetchByG_U_S_First(
2654                    long groupId, long userId, int status,
2655                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2656                    throws com.liferay.portal.kernel.exception.SystemException;
2657    
2658            /**
2659            * Returns the last message-boards message in the ordered set where groupId = &#63; and userId = &#63; and status = &#63;.
2660            *
2661            * @param groupId the group ID
2662            * @param userId the user ID
2663            * @param status the status
2664            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2665            * @return the last matching message-boards message
2666            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found
2667            * @throws SystemException if a system exception occurred
2668            */
2669            public com.liferay.portlet.messageboards.model.MBMessage findByG_U_S_Last(
2670                    long groupId, long userId, int status,
2671                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2672                    throws com.liferay.portal.kernel.exception.SystemException,
2673                            com.liferay.portlet.messageboards.NoSuchMessageException;
2674    
2675            /**
2676            * Returns the last message-boards message in the ordered set where groupId = &#63; and userId = &#63; and status = &#63;.
2677            *
2678            * @param groupId the group ID
2679            * @param userId the user ID
2680            * @param status the status
2681            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2682            * @return the last matching message-boards message, or <code>null</code> if a matching message-boards message could not be found
2683            * @throws SystemException if a system exception occurred
2684            */
2685            public com.liferay.portlet.messageboards.model.MBMessage fetchByG_U_S_Last(
2686                    long groupId, long userId, int status,
2687                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2688                    throws com.liferay.portal.kernel.exception.SystemException;
2689    
2690            /**
2691            * Returns the message-boards messages before and after the current message-boards message in the ordered set where groupId = &#63; and userId = &#63; and status = &#63;.
2692            *
2693            * @param messageId the primary key of the current message-boards message
2694            * @param groupId the group ID
2695            * @param userId the user ID
2696            * @param status the status
2697            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2698            * @return the previous, current, and next message-boards message
2699            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found
2700            * @throws SystemException if a system exception occurred
2701            */
2702            public com.liferay.portlet.messageboards.model.MBMessage[] findByG_U_S_PrevAndNext(
2703                    long messageId, long groupId, long userId, int status,
2704                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2705                    throws com.liferay.portal.kernel.exception.SystemException,
2706                            com.liferay.portlet.messageboards.NoSuchMessageException;
2707    
2708            /**
2709            * Returns all the message-boards messages that the user has permission to view where groupId = &#63; and userId = &#63; and status = &#63;.
2710            *
2711            * @param groupId the group ID
2712            * @param userId the user ID
2713            * @param status the status
2714            * @return the matching message-boards messages that the user has permission to view
2715            * @throws SystemException if a system exception occurred
2716            */
2717            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_U_S(
2718                    long groupId, long userId, int status)
2719                    throws com.liferay.portal.kernel.exception.SystemException;
2720    
2721            /**
2722            * Returns a range of all the message-boards messages that the user has permission to view where groupId = &#63; and userId = &#63; and status = &#63;.
2723            *
2724            * <p>
2725            * 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.
2726            * </p>
2727            *
2728            * @param groupId the group ID
2729            * @param userId the user ID
2730            * @param status the status
2731            * @param start the lower bound of the range of message-boards messages
2732            * @param end the upper bound of the range of message-boards messages (not inclusive)
2733            * @return the range of matching message-boards messages that the user has permission to view
2734            * @throws SystemException if a system exception occurred
2735            */
2736            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_U_S(
2737                    long groupId, long userId, int status, int start, int end)
2738                    throws com.liferay.portal.kernel.exception.SystemException;
2739    
2740            /**
2741            * Returns an ordered range of all the message-boards messages that the user has permissions to view where groupId = &#63; and userId = &#63; and status = &#63;.
2742            *
2743            * <p>
2744            * 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.
2745            * </p>
2746            *
2747            * @param groupId the group ID
2748            * @param userId the user ID
2749            * @param status the status
2750            * @param start the lower bound of the range of message-boards messages
2751            * @param end the upper bound of the range of message-boards messages (not inclusive)
2752            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2753            * @return the ordered range of matching message-boards messages that the user has permission to view
2754            * @throws SystemException if a system exception occurred
2755            */
2756            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_U_S(
2757                    long groupId, long userId, int status, int start, int end,
2758                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2759                    throws com.liferay.portal.kernel.exception.SystemException;
2760    
2761            /**
2762            * Returns the message-boards messages before and after the current message-boards message in the ordered set of message-boards messages that the user has permission to view where groupId = &#63; and userId = &#63; and status = &#63;.
2763            *
2764            * @param messageId the primary key of the current message-boards message
2765            * @param groupId the group ID
2766            * @param userId the user ID
2767            * @param status the status
2768            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2769            * @return the previous, current, and next message-boards message
2770            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found
2771            * @throws SystemException if a system exception occurred
2772            */
2773            public com.liferay.portlet.messageboards.model.MBMessage[] filterFindByG_U_S_PrevAndNext(
2774                    long messageId, long groupId, long userId, int status,
2775                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2776                    throws com.liferay.portal.kernel.exception.SystemException,
2777                            com.liferay.portlet.messageboards.NoSuchMessageException;
2778    
2779            /**
2780            * Returns all the message-boards messages where groupId = &#63; and categoryId = &#63; and threadId = &#63;.
2781            *
2782            * @param groupId the group ID
2783            * @param categoryId the category ID
2784            * @param threadId the thread ID
2785            * @return the matching message-boards messages
2786            * @throws SystemException if a system exception occurred
2787            */
2788            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_C_T(
2789                    long groupId, long categoryId, long threadId)
2790                    throws com.liferay.portal.kernel.exception.SystemException;
2791    
2792            /**
2793            * Returns a range of all the message-boards messages where groupId = &#63; and categoryId = &#63; and threadId = &#63;.
2794            *
2795            * <p>
2796            * 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.
2797            * </p>
2798            *
2799            * @param groupId the group ID
2800            * @param categoryId the category ID
2801            * @param threadId the thread ID
2802            * @param start the lower bound of the range of message-boards messages
2803            * @param end the upper bound of the range of message-boards messages (not inclusive)
2804            * @return the range of matching message-boards messages
2805            * @throws SystemException if a system exception occurred
2806            */
2807            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_C_T(
2808                    long groupId, long categoryId, long threadId, int start, int end)
2809                    throws com.liferay.portal.kernel.exception.SystemException;
2810    
2811            /**
2812            * Returns an ordered range of all the message-boards messages where groupId = &#63; and categoryId = &#63; and threadId = &#63;.
2813            *
2814            * <p>
2815            * 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.
2816            * </p>
2817            *
2818            * @param groupId the group ID
2819            * @param categoryId the category ID
2820            * @param threadId the thread ID
2821            * @param start the lower bound of the range of message-boards messages
2822            * @param end the upper bound of the range of message-boards messages (not inclusive)
2823            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2824            * @return the ordered range of matching message-boards messages
2825            * @throws SystemException if a system exception occurred
2826            */
2827            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_C_T(
2828                    long groupId, long categoryId, long threadId, int start, int end,
2829                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2830                    throws com.liferay.portal.kernel.exception.SystemException;
2831    
2832            /**
2833            * Returns the first message-boards message in the ordered set where groupId = &#63; and categoryId = &#63; and threadId = &#63;.
2834            *
2835            * @param groupId the group ID
2836            * @param categoryId the category ID
2837            * @param threadId the thread ID
2838            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2839            * @return the first matching message-boards message
2840            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found
2841            * @throws SystemException if a system exception occurred
2842            */
2843            public com.liferay.portlet.messageboards.model.MBMessage findByG_C_T_First(
2844                    long groupId, long categoryId, long threadId,
2845                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2846                    throws com.liferay.portal.kernel.exception.SystemException,
2847                            com.liferay.portlet.messageboards.NoSuchMessageException;
2848    
2849            /**
2850            * Returns the first message-boards message in the ordered set where groupId = &#63; and categoryId = &#63; and threadId = &#63;.
2851            *
2852            * @param groupId the group ID
2853            * @param categoryId the category ID
2854            * @param threadId the thread ID
2855            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2856            * @return the first matching message-boards message, or <code>null</code> if a matching message-boards message could not be found
2857            * @throws SystemException if a system exception occurred
2858            */
2859            public com.liferay.portlet.messageboards.model.MBMessage fetchByG_C_T_First(
2860                    long groupId, long categoryId, long threadId,
2861                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2862                    throws com.liferay.portal.kernel.exception.SystemException;
2863    
2864            /**
2865            * Returns the last message-boards message in the ordered set where groupId = &#63; and categoryId = &#63; and threadId = &#63;.
2866            *
2867            * @param groupId the group ID
2868            * @param categoryId the category ID
2869            * @param threadId the thread ID
2870            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2871            * @return the last matching message-boards message
2872            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found
2873            * @throws SystemException if a system exception occurred
2874            */
2875            public com.liferay.portlet.messageboards.model.MBMessage findByG_C_T_Last(
2876                    long groupId, long categoryId, long threadId,
2877                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2878                    throws com.liferay.portal.kernel.exception.SystemException,
2879                            com.liferay.portlet.messageboards.NoSuchMessageException;
2880    
2881            /**
2882            * Returns the last message-boards message in the ordered set where groupId = &#63; and categoryId = &#63; and threadId = &#63;.
2883            *
2884            * @param groupId the group ID
2885            * @param categoryId the category ID
2886            * @param threadId the thread ID
2887            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2888            * @return the last matching message-boards message, or <code>null</code> if a matching message-boards message could not be found
2889            * @throws SystemException if a system exception occurred
2890            */
2891            public com.liferay.portlet.messageboards.model.MBMessage fetchByG_C_T_Last(
2892                    long groupId, long categoryId, long threadId,
2893                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2894                    throws com.liferay.portal.kernel.exception.SystemException;
2895    
2896            /**
2897            * Returns the message-boards messages before and after the current message-boards message in the ordered set where groupId = &#63; and categoryId = &#63; and threadId = &#63;.
2898            *
2899            * @param messageId the primary key of the current message-boards message
2900            * @param groupId the group ID
2901            * @param categoryId the category ID
2902            * @param threadId the thread ID
2903            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2904            * @return the previous, current, and next message-boards message
2905            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found
2906            * @throws SystemException if a system exception occurred
2907            */
2908            public com.liferay.portlet.messageboards.model.MBMessage[] findByG_C_T_PrevAndNext(
2909                    long messageId, long groupId, long categoryId, long threadId,
2910                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2911                    throws com.liferay.portal.kernel.exception.SystemException,
2912                            com.liferay.portlet.messageboards.NoSuchMessageException;
2913    
2914            /**
2915            * Returns all the message-boards messages that the user has permission to view where groupId = &#63; and categoryId = &#63; and threadId = &#63;.
2916            *
2917            * @param groupId the group ID
2918            * @param categoryId the category ID
2919            * @param threadId the thread ID
2920            * @return the matching message-boards messages that the user has permission to view
2921            * @throws SystemException if a system exception occurred
2922            */
2923            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_C_T(
2924                    long groupId, long categoryId, long threadId)
2925                    throws com.liferay.portal.kernel.exception.SystemException;
2926    
2927            /**
2928            * Returns a range of all the message-boards messages that the user has permission to view where groupId = &#63; and categoryId = &#63; and threadId = &#63;.
2929            *
2930            * <p>
2931            * 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.
2932            * </p>
2933            *
2934            * @param groupId the group ID
2935            * @param categoryId the category ID
2936            * @param threadId the thread ID
2937            * @param start the lower bound of the range of message-boards messages
2938            * @param end the upper bound of the range of message-boards messages (not inclusive)
2939            * @return the range of matching message-boards messages that the user has permission to view
2940            * @throws SystemException if a system exception occurred
2941            */
2942            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_C_T(
2943                    long groupId, long categoryId, long threadId, int start, int end)
2944                    throws com.liferay.portal.kernel.exception.SystemException;
2945    
2946            /**
2947            * Returns an ordered range of all the message-boards messages that the user has permissions to view where groupId = &#63; and categoryId = &#63; and threadId = &#63;.
2948            *
2949            * <p>
2950            * 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.
2951            * </p>
2952            *
2953            * @param groupId the group ID
2954            * @param categoryId the category ID
2955            * @param threadId the thread ID
2956            * @param start the lower bound of the range of message-boards messages
2957            * @param end the upper bound of the range of message-boards messages (not inclusive)
2958            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2959            * @return the ordered range of matching message-boards messages that the user has permission to view
2960            * @throws SystemException if a system exception occurred
2961            */
2962            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_C_T(
2963                    long groupId, long categoryId, long threadId, int start, int end,
2964                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2965                    throws com.liferay.portal.kernel.exception.SystemException;
2966    
2967            /**
2968            * Returns the message-boards messages before and after the current message-boards message in the ordered set of message-boards messages that the user has permission to view where groupId = &#63; and categoryId = &#63; and threadId = &#63;.
2969            *
2970            * @param messageId the primary key of the current message-boards message
2971            * @param groupId the group ID
2972            * @param categoryId the category ID
2973            * @param threadId the thread ID
2974            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2975            * @return the previous, current, and next message-boards message
2976            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found
2977            * @throws SystemException if a system exception occurred
2978            */
2979            public com.liferay.portlet.messageboards.model.MBMessage[] filterFindByG_C_T_PrevAndNext(
2980                    long messageId, long groupId, long categoryId, long threadId,
2981                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2982                    throws com.liferay.portal.kernel.exception.SystemException,
2983                            com.liferay.portlet.messageboards.NoSuchMessageException;
2984    
2985            /**
2986            * Returns all the message-boards messages where groupId = &#63; and categoryId = &#63; and status = &#63;.
2987            *
2988            * @param groupId the group ID
2989            * @param categoryId the category ID
2990            * @param status the status
2991            * @return the matching message-boards messages
2992            * @throws SystemException if a system exception occurred
2993            */
2994            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_C_S(
2995                    long groupId, long categoryId, int status)
2996                    throws com.liferay.portal.kernel.exception.SystemException;
2997    
2998            /**
2999            * Returns a range of all the message-boards messages where groupId = &#63; and categoryId = &#63; and status = &#63;.
3000            *
3001            * <p>
3002            * 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.
3003            * </p>
3004            *
3005            * @param groupId the group ID
3006            * @param categoryId the category ID
3007            * @param status the status
3008            * @param start the lower bound of the range of message-boards messages
3009            * @param end the upper bound of the range of message-boards messages (not inclusive)
3010            * @return the range of matching message-boards messages
3011            * @throws SystemException if a system exception occurred
3012            */
3013            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_C_S(
3014                    long groupId, long categoryId, int status, int start, int end)
3015                    throws com.liferay.portal.kernel.exception.SystemException;
3016    
3017            /**
3018            * Returns an ordered range of all the message-boards messages where groupId = &#63; and categoryId = &#63; and status = &#63;.
3019            *
3020            * <p>
3021            * 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.
3022            * </p>
3023            *
3024            * @param groupId the group ID
3025            * @param categoryId the category ID
3026            * @param status the status
3027            * @param start the lower bound of the range of message-boards messages
3028            * @param end the upper bound of the range of message-boards messages (not inclusive)
3029            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
3030            * @return the ordered range of matching message-boards messages
3031            * @throws SystemException if a system exception occurred
3032            */
3033            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_C_S(
3034                    long groupId, long categoryId, int status, int start, int end,
3035                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
3036                    throws com.liferay.portal.kernel.exception.SystemException;
3037    
3038            /**
3039            * Returns the first message-boards message in the ordered set where groupId = &#63; and categoryId = &#63; and status = &#63;.
3040            *
3041            * @param groupId the group ID
3042            * @param categoryId the category ID
3043            * @param status the status
3044            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
3045            * @return the first matching message-boards message
3046            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found
3047            * @throws SystemException if a system exception occurred
3048            */
3049            public com.liferay.portlet.messageboards.model.MBMessage findByG_C_S_First(
3050                    long groupId, long categoryId, int status,
3051                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
3052                    throws com.liferay.portal.kernel.exception.SystemException,
3053                            com.liferay.portlet.messageboards.NoSuchMessageException;
3054    
3055            /**
3056            * Returns the first message-boards message in the ordered set where groupId = &#63; and categoryId = &#63; and status = &#63;.
3057            *
3058            * @param groupId the group ID
3059            * @param categoryId the category ID
3060            * @param status the status
3061            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
3062            * @return the first matching message-boards message, or <code>null</code> if a matching message-boards message could not be found
3063            * @throws SystemException if a system exception occurred
3064            */
3065            public com.liferay.portlet.messageboards.model.MBMessage fetchByG_C_S_First(
3066                    long groupId, long categoryId, int status,
3067                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
3068                    throws com.liferay.portal.kernel.exception.SystemException;
3069    
3070            /**
3071            * Returns the last message-boards message in the ordered set where groupId = &#63; and categoryId = &#63; and status = &#63;.
3072            *
3073            * @param groupId the group ID
3074            * @param categoryId the category ID
3075            * @param status the status
3076            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
3077            * @return the last matching message-boards message
3078            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found
3079            * @throws SystemException if a system exception occurred
3080            */
3081            public com.liferay.portlet.messageboards.model.MBMessage findByG_C_S_Last(
3082                    long groupId, long categoryId, int status,
3083                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
3084                    throws com.liferay.portal.kernel.exception.SystemException,
3085                            com.liferay.portlet.messageboards.NoSuchMessageException;
3086    
3087            /**
3088            * Returns the last message-boards message in the ordered set where groupId = &#63; and categoryId = &#63; and status = &#63;.
3089            *
3090            * @param groupId the group ID
3091            * @param categoryId the category ID
3092            * @param status the status
3093            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
3094            * @return the last matching message-boards message, or <code>null</code> if a matching message-boards message could not be found
3095            * @throws SystemException if a system exception occurred
3096            */
3097            public com.liferay.portlet.messageboards.model.MBMessage fetchByG_C_S_Last(
3098                    long groupId, long categoryId, int status,
3099                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
3100                    throws com.liferay.portal.kernel.exception.SystemException;
3101    
3102            /**
3103            * Returns the message-boards messages before and after the current message-boards message in the ordered set where groupId = &#63; and categoryId = &#63; and status = &#63;.
3104            *
3105            * @param messageId the primary key of the current message-boards message
3106            * @param groupId the group ID
3107            * @param categoryId the category ID
3108            * @param status the status
3109            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
3110            * @return the previous, current, and next message-boards message
3111            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found
3112            * @throws SystemException if a system exception occurred
3113            */
3114            public com.liferay.portlet.messageboards.model.MBMessage[] findByG_C_S_PrevAndNext(
3115                    long messageId, long groupId, long categoryId, int status,
3116                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
3117                    throws com.liferay.portal.kernel.exception.SystemException,
3118                            com.liferay.portlet.messageboards.NoSuchMessageException;
3119    
3120            /**
3121            * Returns all the message-boards messages that the user has permission to view where groupId = &#63; and categoryId = &#63; and status = &#63;.
3122            *
3123            * @param groupId the group ID
3124            * @param categoryId the category ID
3125            * @param status the status
3126            * @return the matching message-boards messages that the user has permission to view
3127            * @throws SystemException if a system exception occurred
3128            */
3129            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_C_S(
3130                    long groupId, long categoryId, int status)
3131                    throws com.liferay.portal.kernel.exception.SystemException;
3132    
3133            /**
3134            * Returns a range of all the message-boards messages that the user has permission to view where groupId = &#63; and categoryId = &#63; and status = &#63;.
3135            *
3136            * <p>
3137            * 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.
3138            * </p>
3139            *
3140            * @param groupId the group ID
3141            * @param categoryId the category ID
3142            * @param status the status
3143            * @param start the lower bound of the range of message-boards messages
3144            * @param end the upper bound of the range of message-boards messages (not inclusive)
3145            * @return the range of matching message-boards messages that the user has permission to view
3146            * @throws SystemException if a system exception occurred
3147            */
3148            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_C_S(
3149                    long groupId, long categoryId, int status, int start, int end)
3150                    throws com.liferay.portal.kernel.exception.SystemException;
3151    
3152            /**
3153            * Returns an ordered range of all the message-boards messages that the user has permissions to view where groupId = &#63; and categoryId = &#63; and status = &#63;.
3154            *
3155            * <p>
3156            * 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.
3157            * </p>
3158            *
3159            * @param groupId the group ID
3160            * @param categoryId the category ID
3161            * @param status the status
3162            * @param start the lower bound of the range of message-boards messages
3163            * @param end the upper bound of the range of message-boards messages (not inclusive)
3164            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
3165            * @return the ordered range of matching message-boards messages that the user has permission to view
3166            * @throws SystemException if a system exception occurred
3167            */
3168            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_C_S(
3169                    long groupId, long categoryId, int status, int start, int end,
3170                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
3171                    throws com.liferay.portal.kernel.exception.SystemException;
3172    
3173            /**
3174            * Returns the message-boards messages before and after the current message-boards message in the ordered set of message-boards messages that the user has permission to view where groupId = &#63; and categoryId = &#63; and status = &#63;.
3175            *
3176            * @param messageId the primary key of the current message-boards message
3177            * @param groupId the group ID
3178            * @param categoryId the category ID
3179            * @param status the status
3180            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
3181            * @return the previous, current, and next message-boards message
3182            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found
3183            * @throws SystemException if a system exception occurred
3184            */
3185            public com.liferay.portlet.messageboards.model.MBMessage[] filterFindByG_C_S_PrevAndNext(
3186                    long messageId, long groupId, long categoryId, int status,
3187                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
3188                    throws com.liferay.portal.kernel.exception.SystemException,
3189                            com.liferay.portlet.messageboards.NoSuchMessageException;
3190    
3191            /**
3192            * Returns all the message-boards messages where userId = &#63; and classNameId = &#63; and classPK = &#63;.
3193            *
3194            * @param userId the user ID
3195            * @param classNameId the class name ID
3196            * @param classPK the class p k
3197            * @return the matching message-boards messages
3198            * @throws SystemException if a system exception occurred
3199            */
3200            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByU_C_C(
3201                    long userId, long classNameId, long classPK)
3202                    throws com.liferay.portal.kernel.exception.SystemException;
3203    
3204            /**
3205            * Returns a range of all the message-boards messages where userId = &#63; and classNameId = &#63; and classPK = &#63;.
3206            *
3207            * <p>
3208            * 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.
3209            * </p>
3210            *
3211            * @param userId the user ID
3212            * @param classNameId the class name ID
3213            * @param classPK the class p k
3214            * @param start the lower bound of the range of message-boards messages
3215            * @param end the upper bound of the range of message-boards messages (not inclusive)
3216            * @return the range of matching message-boards messages
3217            * @throws SystemException if a system exception occurred
3218            */
3219            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByU_C_C(
3220                    long userId, long classNameId, long classPK, int start, int end)
3221                    throws com.liferay.portal.kernel.exception.SystemException;
3222    
3223            /**
3224            * Returns an ordered range of all the message-boards messages where userId = &#63; and classNameId = &#63; and classPK = &#63;.
3225            *
3226            * <p>
3227            * 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.
3228            * </p>
3229            *
3230            * @param userId the user ID
3231            * @param classNameId the class name ID
3232            * @param classPK the class p k
3233            * @param start the lower bound of the range of message-boards messages
3234            * @param end the upper bound of the range of message-boards messages (not inclusive)
3235            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
3236            * @return the ordered range of matching message-boards messages
3237            * @throws SystemException if a system exception occurred
3238            */
3239            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByU_C_C(
3240                    long userId, long classNameId, long classPK, int start, int end,
3241                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
3242                    throws com.liferay.portal.kernel.exception.SystemException;
3243    
3244            /**
3245            * Returns the first message-boards message in the ordered set where userId = &#63; and classNameId = &#63; and classPK = &#63;.
3246            *
3247            * @param userId the user ID
3248            * @param classNameId the class name ID
3249            * @param classPK the class p k
3250            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
3251            * @return the first matching message-boards message
3252            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found
3253            * @throws SystemException if a system exception occurred
3254            */
3255            public com.liferay.portlet.messageboards.model.MBMessage findByU_C_C_First(
3256                    long userId, long classNameId, long classPK,
3257                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
3258                    throws com.liferay.portal.kernel.exception.SystemException,
3259                            com.liferay.portlet.messageboards.NoSuchMessageException;
3260    
3261            /**
3262            * Returns the first message-boards message in the ordered set where userId = &#63; and classNameId = &#63; and classPK = &#63;.
3263            *
3264            * @param userId the user ID
3265            * @param classNameId the class name ID
3266            * @param classPK the class p k
3267            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
3268            * @return the first matching message-boards message, or <code>null</code> if a matching message-boards message could not be found
3269            * @throws SystemException if a system exception occurred
3270            */
3271            public com.liferay.portlet.messageboards.model.MBMessage fetchByU_C_C_First(
3272                    long userId, long classNameId, long classPK,
3273                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
3274                    throws com.liferay.portal.kernel.exception.SystemException;
3275    
3276            /**
3277            * Returns the last message-boards message in the ordered set where userId = &#63; and classNameId = &#63; and classPK = &#63;.
3278            *
3279            * @param userId the user ID
3280            * @param classNameId the class name ID
3281            * @param classPK the class p k
3282            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
3283            * @return the last matching message-boards message
3284            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found
3285            * @throws SystemException if a system exception occurred
3286            */
3287            public com.liferay.portlet.messageboards.model.MBMessage findByU_C_C_Last(
3288                    long userId, long classNameId, long classPK,
3289                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
3290                    throws com.liferay.portal.kernel.exception.SystemException,
3291                            com.liferay.portlet.messageboards.NoSuchMessageException;
3292    
3293            /**
3294            * Returns the last message-boards message in the ordered set where userId = &#63; and classNameId = &#63; and classPK = &#63;.
3295            *
3296            * @param userId the user ID
3297            * @param classNameId the class name ID
3298            * @param classPK the class p k
3299            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
3300            * @return the last matching message-boards message, or <code>null</code> if a matching message-boards message could not be found
3301            * @throws SystemException if a system exception occurred
3302            */
3303            public com.liferay.portlet.messageboards.model.MBMessage fetchByU_C_C_Last(
3304                    long userId, long classNameId, long classPK,
3305                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
3306                    throws com.liferay.portal.kernel.exception.SystemException;
3307    
3308            /**
3309            * Returns the message-boards messages before and after the current message-boards message in the ordered set where userId = &#63; and classNameId = &#63; and classPK = &#63;.
3310            *
3311            * @param messageId the primary key of the current message-boards message
3312            * @param userId the user ID
3313            * @param classNameId the class name ID
3314            * @param classPK the class p k
3315            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
3316            * @return the previous, current, and next message-boards message
3317            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found
3318            * @throws SystemException if a system exception occurred
3319            */
3320            public com.liferay.portlet.messageboards.model.MBMessage[] findByU_C_C_PrevAndNext(
3321                    long messageId, long userId, long classNameId, long classPK,
3322                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
3323                    throws com.liferay.portal.kernel.exception.SystemException,
3324                            com.liferay.portlet.messageboards.NoSuchMessageException;
3325    
3326            /**
3327            * Returns all the message-boards messages where userId = &#63; and classNameId = &#63; and status = &#63;.
3328            *
3329            * @param userId the user ID
3330            * @param classNameId the class name ID
3331            * @param status the status
3332            * @return the matching message-boards messages
3333            * @throws SystemException if a system exception occurred
3334            */
3335            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByU_C_S(
3336                    long userId, long classNameId, int status)
3337                    throws com.liferay.portal.kernel.exception.SystemException;
3338    
3339            /**
3340            * Returns a range of all the message-boards messages where userId = &#63; and classNameId = &#63; and status = &#63;.
3341            *
3342            * <p>
3343            * 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.
3344            * </p>
3345            *
3346            * @param userId the user ID
3347            * @param classNameId the class name ID
3348            * @param status the status
3349            * @param start the lower bound of the range of message-boards messages
3350            * @param end the upper bound of the range of message-boards messages (not inclusive)
3351            * @return the range of matching message-boards messages
3352            * @throws SystemException if a system exception occurred
3353            */
3354            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByU_C_S(
3355                    long userId, long classNameId, int status, int start, int end)
3356                    throws com.liferay.portal.kernel.exception.SystemException;
3357    
3358            /**
3359            * Returns an ordered range of all the message-boards messages where userId = &#63; and classNameId = &#63; and status = &#63;.
3360            *
3361            * <p>
3362            * 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.
3363            * </p>
3364            *
3365            * @param userId the user ID
3366            * @param classNameId the class name ID
3367            * @param status the status
3368            * @param start the lower bound of the range of message-boards messages
3369            * @param end the upper bound of the range of message-boards messages (not inclusive)
3370            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
3371            * @return the ordered range of matching message-boards messages
3372            * @throws SystemException if a system exception occurred
3373            */
3374            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByU_C_S(
3375                    long userId, long classNameId, int status, int start, int end,
3376                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
3377                    throws com.liferay.portal.kernel.exception.SystemException;
3378    
3379            /**
3380            * Returns the first message-boards message in the ordered set where userId = &#63; and classNameId = &#63; and status = &#63;.
3381            *
3382            * @param userId the user ID
3383            * @param classNameId the class name ID
3384            * @param status the status
3385            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
3386            * @return the first matching message-boards message
3387            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found
3388            * @throws SystemException if a system exception occurred
3389            */
3390            public com.liferay.portlet.messageboards.model.MBMessage findByU_C_S_First(
3391                    long userId, long classNameId, int status,
3392                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
3393                    throws com.liferay.portal.kernel.exception.SystemException,
3394                            com.liferay.portlet.messageboards.NoSuchMessageException;
3395    
3396            /**
3397            * Returns the first message-boards message in the ordered set where userId = &#63; and classNameId = &#63; and status = &#63;.
3398            *
3399            * @param userId the user ID
3400            * @param classNameId the class name ID
3401            * @param status the status
3402            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
3403            * @return the first matching message-boards message, or <code>null</code> if a matching message-boards message could not be found
3404            * @throws SystemException if a system exception occurred
3405            */
3406            public com.liferay.portlet.messageboards.model.MBMessage fetchByU_C_S_First(
3407                    long userId, long classNameId, int status,
3408                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
3409                    throws com.liferay.portal.kernel.exception.SystemException;
3410    
3411            /**
3412            * Returns the last message-boards message in the ordered set where userId = &#63; and classNameId = &#63; and status = &#63;.
3413            *
3414            * @param userId the user ID
3415            * @param classNameId the class name ID
3416            * @param status the status
3417            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
3418            * @return the last matching message-boards message
3419            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found
3420            * @throws SystemException if a system exception occurred
3421            */
3422            public com.liferay.portlet.messageboards.model.MBMessage findByU_C_S_Last(
3423                    long userId, long classNameId, int status,
3424                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
3425                    throws com.liferay.portal.kernel.exception.SystemException,
3426                            com.liferay.portlet.messageboards.NoSuchMessageException;
3427    
3428            /**
3429            * Returns the last message-boards message in the ordered set where userId = &#63; and classNameId = &#63; and status = &#63;.
3430            *
3431            * @param userId the user ID
3432            * @param classNameId the class name ID
3433            * @param status the status
3434            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
3435            * @return the last matching message-boards message, or <code>null</code> if a matching message-boards message could not be found
3436            * @throws SystemException if a system exception occurred
3437            */
3438            public com.liferay.portlet.messageboards.model.MBMessage fetchByU_C_S_Last(
3439                    long userId, long classNameId, int status,
3440                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
3441                    throws com.liferay.portal.kernel.exception.SystemException;
3442    
3443            /**
3444            * Returns the message-boards messages before and after the current message-boards message in the ordered set where userId = &#63; and classNameId = &#63; and status = &#63;.
3445            *
3446            * @param messageId the primary key of the current message-boards message
3447            * @param userId the user ID
3448            * @param classNameId the class name ID
3449            * @param status the status
3450            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
3451            * @return the previous, current, and next message-boards message
3452            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found
3453            * @throws SystemException if a system exception occurred
3454            */
3455            public com.liferay.portlet.messageboards.model.MBMessage[] findByU_C_S_PrevAndNext(
3456                    long messageId, long userId, long classNameId, int status,
3457                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
3458                    throws com.liferay.portal.kernel.exception.SystemException,
3459                            com.liferay.portlet.messageboards.NoSuchMessageException;
3460    
3461            /**
3462            * Returns all the message-boards messages where userId = &#63; and classNameId = any &#63; and status = &#63;.
3463            *
3464            * <p>
3465            * 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.
3466            * </p>
3467            *
3468            * @param userId the user ID
3469            * @param classNameIds the class name IDs
3470            * @param status the status
3471            * @return the matching message-boards messages
3472            * @throws SystemException if a system exception occurred
3473            */
3474            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByU_C_S(
3475                    long userId, long[] classNameIds, int status)
3476                    throws com.liferay.portal.kernel.exception.SystemException;
3477    
3478            /**
3479            * Returns a range of all the message-boards messages where userId = &#63; and classNameId = any &#63; and status = &#63;.
3480            *
3481            * <p>
3482            * 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.
3483            * </p>
3484            *
3485            * @param userId the user ID
3486            * @param classNameIds the class name IDs
3487            * @param status the status
3488            * @param start the lower bound of the range of message-boards messages
3489            * @param end the upper bound of the range of message-boards messages (not inclusive)
3490            * @return the range of matching message-boards messages
3491            * @throws SystemException if a system exception occurred
3492            */
3493            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByU_C_S(
3494                    long userId, long[] classNameIds, int status, int start, int end)
3495                    throws com.liferay.portal.kernel.exception.SystemException;
3496    
3497            /**
3498            * Returns an ordered range of all the message-boards messages where userId = &#63; and classNameId = any &#63; and status = &#63;.
3499            *
3500            * <p>
3501            * 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.
3502            * </p>
3503            *
3504            * @param userId the user ID
3505            * @param classNameIds the class name IDs
3506            * @param status the status
3507            * @param start the lower bound of the range of message-boards messages
3508            * @param end the upper bound of the range of message-boards messages (not inclusive)
3509            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
3510            * @return the ordered range of matching message-boards messages
3511            * @throws SystemException if a system exception occurred
3512            */
3513            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByU_C_S(
3514                    long userId, long[] classNameIds, int status, int start, int end,
3515                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
3516                    throws com.liferay.portal.kernel.exception.SystemException;
3517    
3518            /**
3519            * Returns all the message-boards messages where classNameId = &#63; and classPK = &#63; and status = &#63;.
3520            *
3521            * @param classNameId the class name ID
3522            * @param classPK the class p k
3523            * @param status the status
3524            * @return the matching message-boards messages
3525            * @throws SystemException if a system exception occurred
3526            */
3527            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_C_S(
3528                    long classNameId, long classPK, int status)
3529                    throws com.liferay.portal.kernel.exception.SystemException;
3530    
3531            /**
3532            * Returns a range of all the message-boards messages where classNameId = &#63; and classPK = &#63; and status = &#63;.
3533            *
3534            * <p>
3535            * 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.
3536            * </p>
3537            *
3538            * @param classNameId the class name ID
3539            * @param classPK the class p k
3540            * @param status the status
3541            * @param start the lower bound of the range of message-boards messages
3542            * @param end the upper bound of the range of message-boards messages (not inclusive)
3543            * @return the range of matching message-boards messages
3544            * @throws SystemException if a system exception occurred
3545            */
3546            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_C_S(
3547                    long classNameId, long classPK, int status, int start, int end)
3548                    throws com.liferay.portal.kernel.exception.SystemException;
3549    
3550            /**
3551            * Returns an ordered range of all the message-boards messages where classNameId = &#63; and classPK = &#63; and status = &#63;.
3552            *
3553            * <p>
3554            * 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.
3555            * </p>
3556            *
3557            * @param classNameId the class name ID
3558            * @param classPK the class p k
3559            * @param status the status
3560            * @param start the lower bound of the range of message-boards messages
3561            * @param end the upper bound of the range of message-boards messages (not inclusive)
3562            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
3563            * @return the ordered range of matching message-boards messages
3564            * @throws SystemException if a system exception occurred
3565            */
3566            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByC_C_S(
3567                    long classNameId, long classPK, int status, int start, int end,
3568                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
3569                    throws com.liferay.portal.kernel.exception.SystemException;
3570    
3571            /**
3572            * Returns the first message-boards message in the ordered set where classNameId = &#63; and classPK = &#63; and status = &#63;.
3573            *
3574            * @param classNameId the class name ID
3575            * @param classPK the class p k
3576            * @param status the status
3577            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
3578            * @return the first matching message-boards message
3579            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found
3580            * @throws SystemException if a system exception occurred
3581            */
3582            public com.liferay.portlet.messageboards.model.MBMessage findByC_C_S_First(
3583                    long classNameId, long classPK, int status,
3584                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
3585                    throws com.liferay.portal.kernel.exception.SystemException,
3586                            com.liferay.portlet.messageboards.NoSuchMessageException;
3587    
3588            /**
3589            * Returns the first message-boards message in the ordered set where classNameId = &#63; and classPK = &#63; and status = &#63;.
3590            *
3591            * @param classNameId the class name ID
3592            * @param classPK the class p k
3593            * @param status the status
3594            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
3595            * @return the first matching message-boards message, or <code>null</code> if a matching message-boards message could not be found
3596            * @throws SystemException if a system exception occurred
3597            */
3598            public com.liferay.portlet.messageboards.model.MBMessage fetchByC_C_S_First(
3599                    long classNameId, long classPK, int status,
3600                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
3601                    throws com.liferay.portal.kernel.exception.SystemException;
3602    
3603            /**
3604            * Returns the last message-boards message in the ordered set where classNameId = &#63; and classPK = &#63; and status = &#63;.
3605            *
3606            * @param classNameId the class name ID
3607            * @param classPK the class p k
3608            * @param status the status
3609            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
3610            * @return the last matching message-boards message
3611            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found
3612            * @throws SystemException if a system exception occurred
3613            */
3614            public com.liferay.portlet.messageboards.model.MBMessage findByC_C_S_Last(
3615                    long classNameId, long classPK, int status,
3616                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
3617                    throws com.liferay.portal.kernel.exception.SystemException,
3618                            com.liferay.portlet.messageboards.NoSuchMessageException;
3619    
3620            /**
3621            * Returns the last message-boards message in the ordered set where classNameId = &#63; and classPK = &#63; and status = &#63;.
3622            *
3623            * @param classNameId the class name ID
3624            * @param classPK the class p k
3625            * @param status the status
3626            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
3627            * @return the last matching message-boards message, or <code>null</code> if a matching message-boards message could not be found
3628            * @throws SystemException if a system exception occurred
3629            */
3630            public com.liferay.portlet.messageboards.model.MBMessage fetchByC_C_S_Last(
3631                    long classNameId, long classPK, int status,
3632                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
3633                    throws com.liferay.portal.kernel.exception.SystemException;
3634    
3635            /**
3636            * Returns the message-boards messages before and after the current message-boards message in the ordered set where classNameId = &#63; and classPK = &#63; and status = &#63;.
3637            *
3638            * @param messageId the primary key of the current message-boards message
3639            * @param classNameId the class name ID
3640            * @param classPK the class p k
3641            * @param status the status
3642            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
3643            * @return the previous, current, and next message-boards message
3644            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found
3645            * @throws SystemException if a system exception occurred
3646            */
3647            public com.liferay.portlet.messageboards.model.MBMessage[] findByC_C_S_PrevAndNext(
3648                    long messageId, long classNameId, long classPK, int status,
3649                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
3650                    throws com.liferay.portal.kernel.exception.SystemException,
3651                            com.liferay.portlet.messageboards.NoSuchMessageException;
3652    
3653            /**
3654            * Returns all the message-boards messages where groupId = &#63; and categoryId = &#63; and threadId = &#63; and answer = &#63;.
3655            *
3656            * @param groupId the group ID
3657            * @param categoryId the category ID
3658            * @param threadId the thread ID
3659            * @param answer the answer
3660            * @return the matching message-boards messages
3661            * @throws SystemException if a system exception occurred
3662            */
3663            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_C_T_A(
3664                    long groupId, long categoryId, long threadId, boolean answer)
3665                    throws com.liferay.portal.kernel.exception.SystemException;
3666    
3667            /**
3668            * Returns a range of all the message-boards messages where groupId = &#63; and categoryId = &#63; and threadId = &#63; and answer = &#63;.
3669            *
3670            * <p>
3671            * 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.
3672            * </p>
3673            *
3674            * @param groupId the group ID
3675            * @param categoryId the category ID
3676            * @param threadId the thread ID
3677            * @param answer the answer
3678            * @param start the lower bound of the range of message-boards messages
3679            * @param end the upper bound of the range of message-boards messages (not inclusive)
3680            * @return the range of matching message-boards messages
3681            * @throws SystemException if a system exception occurred
3682            */
3683            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_C_T_A(
3684                    long groupId, long categoryId, long threadId, boolean answer,
3685                    int start, int end)
3686                    throws com.liferay.portal.kernel.exception.SystemException;
3687    
3688            /**
3689            * Returns an ordered range of all the message-boards messages where groupId = &#63; and categoryId = &#63; and threadId = &#63; and answer = &#63;.
3690            *
3691            * <p>
3692            * 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.
3693            * </p>
3694            *
3695            * @param groupId the group ID
3696            * @param categoryId the category ID
3697            * @param threadId the thread ID
3698            * @param answer the answer
3699            * @param start the lower bound of the range of message-boards messages
3700            * @param end the upper bound of the range of message-boards messages (not inclusive)
3701            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
3702            * @return the ordered range of matching message-boards messages
3703            * @throws SystemException if a system exception occurred
3704            */
3705            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_C_T_A(
3706                    long groupId, long categoryId, long threadId, boolean answer,
3707                    int start, int end,
3708                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
3709                    throws com.liferay.portal.kernel.exception.SystemException;
3710    
3711            /**
3712            * Returns the first message-boards message in the ordered set where groupId = &#63; and categoryId = &#63; and threadId = &#63; and answer = &#63;.
3713            *
3714            * @param groupId the group ID
3715            * @param categoryId the category ID
3716            * @param threadId the thread ID
3717            * @param answer the answer
3718            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
3719            * @return the first matching message-boards message
3720            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found
3721            * @throws SystemException if a system exception occurred
3722            */
3723            public com.liferay.portlet.messageboards.model.MBMessage findByG_C_T_A_First(
3724                    long groupId, long categoryId, long threadId, boolean answer,
3725                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
3726                    throws com.liferay.portal.kernel.exception.SystemException,
3727                            com.liferay.portlet.messageboards.NoSuchMessageException;
3728    
3729            /**
3730            * Returns the first message-boards message in the ordered set where groupId = &#63; and categoryId = &#63; and threadId = &#63; and answer = &#63;.
3731            *
3732            * @param groupId the group ID
3733            * @param categoryId the category ID
3734            * @param threadId the thread ID
3735            * @param answer the answer
3736            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
3737            * @return the first matching message-boards message, or <code>null</code> if a matching message-boards message could not be found
3738            * @throws SystemException if a system exception occurred
3739            */
3740            public com.liferay.portlet.messageboards.model.MBMessage fetchByG_C_T_A_First(
3741                    long groupId, long categoryId, long threadId, boolean answer,
3742                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
3743                    throws com.liferay.portal.kernel.exception.SystemException;
3744    
3745            /**
3746            * Returns the last message-boards message in the ordered set where groupId = &#63; and categoryId = &#63; and threadId = &#63; and answer = &#63;.
3747            *
3748            * @param groupId the group ID
3749            * @param categoryId the category ID
3750            * @param threadId the thread ID
3751            * @param answer the answer
3752            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
3753            * @return the last matching message-boards message
3754            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found
3755            * @throws SystemException if a system exception occurred
3756            */
3757            public com.liferay.portlet.messageboards.model.MBMessage findByG_C_T_A_Last(
3758                    long groupId, long categoryId, long threadId, boolean answer,
3759                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
3760                    throws com.liferay.portal.kernel.exception.SystemException,
3761                            com.liferay.portlet.messageboards.NoSuchMessageException;
3762    
3763            /**
3764            * Returns the last message-boards message in the ordered set where groupId = &#63; and categoryId = &#63; and threadId = &#63; and answer = &#63;.
3765            *
3766            * @param groupId the group ID
3767            * @param categoryId the category ID
3768            * @param threadId the thread ID
3769            * @param answer the answer
3770            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
3771            * @return the last matching message-boards message, or <code>null</code> if a matching message-boards message could not be found
3772            * @throws SystemException if a system exception occurred
3773            */
3774            public com.liferay.portlet.messageboards.model.MBMessage fetchByG_C_T_A_Last(
3775                    long groupId, long categoryId, long threadId, boolean answer,
3776                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
3777                    throws com.liferay.portal.kernel.exception.SystemException;
3778    
3779            /**
3780            * Returns the message-boards messages before and after the current message-boards message in the ordered set where groupId = &#63; and categoryId = &#63; and threadId = &#63; and answer = &#63;.
3781            *
3782            * @param messageId the primary key of the current message-boards message
3783            * @param groupId the group ID
3784            * @param categoryId the category ID
3785            * @param threadId the thread ID
3786            * @param answer the answer
3787            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
3788            * @return the previous, current, and next message-boards message
3789            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found
3790            * @throws SystemException if a system exception occurred
3791            */
3792            public com.liferay.portlet.messageboards.model.MBMessage[] findByG_C_T_A_PrevAndNext(
3793                    long messageId, long groupId, long categoryId, long threadId,
3794                    boolean answer,
3795                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
3796                    throws com.liferay.portal.kernel.exception.SystemException,
3797                            com.liferay.portlet.messageboards.NoSuchMessageException;
3798    
3799            /**
3800            * Returns all the message-boards messages that the user has permission to view where groupId = &#63; and categoryId = &#63; and threadId = &#63; and answer = &#63;.
3801            *
3802            * @param groupId the group ID
3803            * @param categoryId the category ID
3804            * @param threadId the thread ID
3805            * @param answer the answer
3806            * @return the matching message-boards messages that the user has permission to view
3807            * @throws SystemException if a system exception occurred
3808            */
3809            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_C_T_A(
3810                    long groupId, long categoryId, long threadId, boolean answer)
3811                    throws com.liferay.portal.kernel.exception.SystemException;
3812    
3813            /**
3814            * Returns a range of all the message-boards messages that the user has permission to view where groupId = &#63; and categoryId = &#63; and threadId = &#63; and answer = &#63;.
3815            *
3816            * <p>
3817            * 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.
3818            * </p>
3819            *
3820            * @param groupId the group ID
3821            * @param categoryId the category ID
3822            * @param threadId the thread ID
3823            * @param answer the answer
3824            * @param start the lower bound of the range of message-boards messages
3825            * @param end the upper bound of the range of message-boards messages (not inclusive)
3826            * @return the range of matching message-boards messages that the user has permission to view
3827            * @throws SystemException if a system exception occurred
3828            */
3829            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_C_T_A(
3830                    long groupId, long categoryId, long threadId, boolean answer,
3831                    int start, int end)
3832                    throws com.liferay.portal.kernel.exception.SystemException;
3833    
3834            /**
3835            * Returns an ordered range of all the message-boards messages that the user has permissions to view where groupId = &#63; and categoryId = &#63; and threadId = &#63; and answer = &#63;.
3836            *
3837            * <p>
3838            * 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.
3839            * </p>
3840            *
3841            * @param groupId the group ID
3842            * @param categoryId the category ID
3843            * @param threadId the thread ID
3844            * @param answer the answer
3845            * @param start the lower bound of the range of message-boards messages
3846            * @param end the upper bound of the range of message-boards messages (not inclusive)
3847            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
3848            * @return the ordered range of matching message-boards messages that the user has permission to view
3849            * @throws SystemException if a system exception occurred
3850            */
3851            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_C_T_A(
3852                    long groupId, long categoryId, long threadId, boolean answer,
3853                    int start, int end,
3854                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
3855                    throws com.liferay.portal.kernel.exception.SystemException;
3856    
3857            /**
3858            * Returns the message-boards messages before and after the current message-boards message in the ordered set of message-boards messages that the user has permission to view where groupId = &#63; and categoryId = &#63; and threadId = &#63; and answer = &#63;.
3859            *
3860            * @param messageId the primary key of the current message-boards message
3861            * @param groupId the group ID
3862            * @param categoryId the category ID
3863            * @param threadId the thread ID
3864            * @param answer the answer
3865            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
3866            * @return the previous, current, and next message-boards message
3867            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found
3868            * @throws SystemException if a system exception occurred
3869            */
3870            public com.liferay.portlet.messageboards.model.MBMessage[] filterFindByG_C_T_A_PrevAndNext(
3871                    long messageId, long groupId, long categoryId, long threadId,
3872                    boolean answer,
3873                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
3874                    throws com.liferay.portal.kernel.exception.SystemException,
3875                            com.liferay.portlet.messageboards.NoSuchMessageException;
3876    
3877            /**
3878            * Returns all the message-boards messages where groupId = &#63; and categoryId = &#63; and threadId = &#63; and status = &#63;.
3879            *
3880            * @param groupId the group ID
3881            * @param categoryId the category ID
3882            * @param threadId the thread ID
3883            * @param status the status
3884            * @return the matching message-boards messages
3885            * @throws SystemException if a system exception occurred
3886            */
3887            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_C_T_S(
3888                    long groupId, long categoryId, long threadId, int status)
3889                    throws com.liferay.portal.kernel.exception.SystemException;
3890    
3891            /**
3892            * Returns a range of all the message-boards messages where groupId = &#63; and categoryId = &#63; and threadId = &#63; and status = &#63;.
3893            *
3894            * <p>
3895            * 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.
3896            * </p>
3897            *
3898            * @param groupId the group ID
3899            * @param categoryId the category ID
3900            * @param threadId the thread ID
3901            * @param status the status
3902            * @param start the lower bound of the range of message-boards messages
3903            * @param end the upper bound of the range of message-boards messages (not inclusive)
3904            * @return the range of matching message-boards messages
3905            * @throws SystemException if a system exception occurred
3906            */
3907            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_C_T_S(
3908                    long groupId, long categoryId, long threadId, int status, int start,
3909                    int end) throws com.liferay.portal.kernel.exception.SystemException;
3910    
3911            /**
3912            * Returns an ordered range of all the message-boards messages where groupId = &#63; and categoryId = &#63; and threadId = &#63; and status = &#63;.
3913            *
3914            * <p>
3915            * 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.
3916            * </p>
3917            *
3918            * @param groupId the group ID
3919            * @param categoryId the category ID
3920            * @param threadId the thread ID
3921            * @param status the status
3922            * @param start the lower bound of the range of message-boards messages
3923            * @param end the upper bound of the range of message-boards messages (not inclusive)
3924            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
3925            * @return the ordered range of matching message-boards messages
3926            * @throws SystemException if a system exception occurred
3927            */
3928            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByG_C_T_S(
3929                    long groupId, long categoryId, long threadId, int status, int start,
3930                    int end,
3931                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
3932                    throws com.liferay.portal.kernel.exception.SystemException;
3933    
3934            /**
3935            * Returns the first message-boards message in the ordered set where groupId = &#63; and categoryId = &#63; and threadId = &#63; and status = &#63;.
3936            *
3937            * @param groupId the group ID
3938            * @param categoryId the category ID
3939            * @param threadId the thread ID
3940            * @param status the status
3941            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
3942            * @return the first matching message-boards message
3943            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found
3944            * @throws SystemException if a system exception occurred
3945            */
3946            public com.liferay.portlet.messageboards.model.MBMessage findByG_C_T_S_First(
3947                    long groupId, long categoryId, long threadId, int status,
3948                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
3949                    throws com.liferay.portal.kernel.exception.SystemException,
3950                            com.liferay.portlet.messageboards.NoSuchMessageException;
3951    
3952            /**
3953            * Returns the first message-boards message in the ordered set where groupId = &#63; and categoryId = &#63; and threadId = &#63; and status = &#63;.
3954            *
3955            * @param groupId the group ID
3956            * @param categoryId the category ID
3957            * @param threadId the thread ID
3958            * @param status the status
3959            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
3960            * @return the first matching message-boards message, or <code>null</code> if a matching message-boards message could not be found
3961            * @throws SystemException if a system exception occurred
3962            */
3963            public com.liferay.portlet.messageboards.model.MBMessage fetchByG_C_T_S_First(
3964                    long groupId, long categoryId, long threadId, int status,
3965                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
3966                    throws com.liferay.portal.kernel.exception.SystemException;
3967    
3968            /**
3969            * Returns the last message-boards message in the ordered set where groupId = &#63; and categoryId = &#63; and threadId = &#63; and status = &#63;.
3970            *
3971            * @param groupId the group ID
3972            * @param categoryId the category ID
3973            * @param threadId the thread ID
3974            * @param status the status
3975            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
3976            * @return the last matching message-boards message
3977            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found
3978            * @throws SystemException if a system exception occurred
3979            */
3980            public com.liferay.portlet.messageboards.model.MBMessage findByG_C_T_S_Last(
3981                    long groupId, long categoryId, long threadId, int status,
3982                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
3983                    throws com.liferay.portal.kernel.exception.SystemException,
3984                            com.liferay.portlet.messageboards.NoSuchMessageException;
3985    
3986            /**
3987            * Returns the last message-boards message in the ordered set where groupId = &#63; and categoryId = &#63; and threadId = &#63; and status = &#63;.
3988            *
3989            * @param groupId the group ID
3990            * @param categoryId the category ID
3991            * @param threadId the thread ID
3992            * @param status the status
3993            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
3994            * @return the last matching message-boards message, or <code>null</code> if a matching message-boards message could not be found
3995            * @throws SystemException if a system exception occurred
3996            */
3997            public com.liferay.portlet.messageboards.model.MBMessage fetchByG_C_T_S_Last(
3998                    long groupId, long categoryId, long threadId, int status,
3999                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
4000                    throws com.liferay.portal.kernel.exception.SystemException;
4001    
4002            /**
4003            * Returns the message-boards messages before and after the current message-boards message in the ordered set where groupId = &#63; and categoryId = &#63; and threadId = &#63; and status = &#63;.
4004            *
4005            * @param messageId the primary key of the current message-boards message
4006            * @param groupId the group ID
4007            * @param categoryId the category ID
4008            * @param threadId the thread ID
4009            * @param status the status
4010            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
4011            * @return the previous, current, and next message-boards message
4012            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found
4013            * @throws SystemException if a system exception occurred
4014            */
4015            public com.liferay.portlet.messageboards.model.MBMessage[] findByG_C_T_S_PrevAndNext(
4016                    long messageId, long groupId, long categoryId, long threadId,
4017                    int status,
4018                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
4019                    throws com.liferay.portal.kernel.exception.SystemException,
4020                            com.liferay.portlet.messageboards.NoSuchMessageException;
4021    
4022            /**
4023            * Returns all the message-boards messages that the user has permission to view where groupId = &#63; and categoryId = &#63; and threadId = &#63; and status = &#63;.
4024            *
4025            * @param groupId the group ID
4026            * @param categoryId the category ID
4027            * @param threadId the thread ID
4028            * @param status the status
4029            * @return the matching message-boards messages that the user has permission to view
4030            * @throws SystemException if a system exception occurred
4031            */
4032            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_C_T_S(
4033                    long groupId, long categoryId, long threadId, int status)
4034                    throws com.liferay.portal.kernel.exception.SystemException;
4035    
4036            /**
4037            * Returns a range of all the message-boards messages that the user has permission to view where groupId = &#63; and categoryId = &#63; and threadId = &#63; and status = &#63;.
4038            *
4039            * <p>
4040            * 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.
4041            * </p>
4042            *
4043            * @param groupId the group ID
4044            * @param categoryId the category ID
4045            * @param threadId the thread ID
4046            * @param status the status
4047            * @param start the lower bound of the range of message-boards messages
4048            * @param end the upper bound of the range of message-boards messages (not inclusive)
4049            * @return the range of matching message-boards messages that the user has permission to view
4050            * @throws SystemException if a system exception occurred
4051            */
4052            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_C_T_S(
4053                    long groupId, long categoryId, long threadId, int status, int start,
4054                    int end) throws com.liferay.portal.kernel.exception.SystemException;
4055    
4056            /**
4057            * Returns an ordered range of all the message-boards messages that the user has permissions to view where groupId = &#63; and categoryId = &#63; and threadId = &#63; and status = &#63;.
4058            *
4059            * <p>
4060            * 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.
4061            * </p>
4062            *
4063            * @param groupId the group ID
4064            * @param categoryId the category ID
4065            * @param threadId the thread ID
4066            * @param status the status
4067            * @param start the lower bound of the range of message-boards messages
4068            * @param end the upper bound of the range of message-boards messages (not inclusive)
4069            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
4070            * @return the ordered range of matching message-boards messages that the user has permission to view
4071            * @throws SystemException if a system exception occurred
4072            */
4073            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> filterFindByG_C_T_S(
4074                    long groupId, long categoryId, long threadId, int status, int start,
4075                    int end,
4076                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
4077                    throws com.liferay.portal.kernel.exception.SystemException;
4078    
4079            /**
4080            * Returns the message-boards messages before and after the current message-boards message in the ordered set of message-boards messages that the user has permission to view where groupId = &#63; and categoryId = &#63; and threadId = &#63; and status = &#63;.
4081            *
4082            * @param messageId the primary key of the current message-boards message
4083            * @param groupId the group ID
4084            * @param categoryId the category ID
4085            * @param threadId the thread ID
4086            * @param status the status
4087            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
4088            * @return the previous, current, and next message-boards message
4089            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found
4090            * @throws SystemException if a system exception occurred
4091            */
4092            public com.liferay.portlet.messageboards.model.MBMessage[] filterFindByG_C_T_S_PrevAndNext(
4093                    long messageId, long groupId, long categoryId, long threadId,
4094                    int status,
4095                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
4096                    throws com.liferay.portal.kernel.exception.SystemException,
4097                            com.liferay.portlet.messageboards.NoSuchMessageException;
4098    
4099            /**
4100            * Returns all the message-boards messages where userId = &#63; and classNameId = &#63; and classPK = &#63; and status = &#63;.
4101            *
4102            * @param userId the user ID
4103            * @param classNameId the class name ID
4104            * @param classPK the class p k
4105            * @param status the status
4106            * @return the matching message-boards messages
4107            * @throws SystemException if a system exception occurred
4108            */
4109            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByU_C_C_S(
4110                    long userId, long classNameId, long classPK, int status)
4111                    throws com.liferay.portal.kernel.exception.SystemException;
4112    
4113            /**
4114            * Returns a range of all the message-boards messages where userId = &#63; and classNameId = &#63; and classPK = &#63; and status = &#63;.
4115            *
4116            * <p>
4117            * 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.
4118            * </p>
4119            *
4120            * @param userId the user ID
4121            * @param classNameId the class name ID
4122            * @param classPK the class p k
4123            * @param status the status
4124            * @param start the lower bound of the range of message-boards messages
4125            * @param end the upper bound of the range of message-boards messages (not inclusive)
4126            * @return the range of matching message-boards messages
4127            * @throws SystemException if a system exception occurred
4128            */
4129            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByU_C_C_S(
4130                    long userId, long classNameId, long classPK, int status, int start,
4131                    int end) throws com.liferay.portal.kernel.exception.SystemException;
4132    
4133            /**
4134            * Returns an ordered range of all the message-boards messages where userId = &#63; and classNameId = &#63; and classPK = &#63; and status = &#63;.
4135            *
4136            * <p>
4137            * 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.
4138            * </p>
4139            *
4140            * @param userId the user ID
4141            * @param classNameId the class name ID
4142            * @param classPK the class p k
4143            * @param status the status
4144            * @param start the lower bound of the range of message-boards messages
4145            * @param end the upper bound of the range of message-boards messages (not inclusive)
4146            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
4147            * @return the ordered range of matching message-boards messages
4148            * @throws SystemException if a system exception occurred
4149            */
4150            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByU_C_C_S(
4151                    long userId, long classNameId, long classPK, int status, int start,
4152                    int end,
4153                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
4154                    throws com.liferay.portal.kernel.exception.SystemException;
4155    
4156            /**
4157            * Returns the first message-boards message in the ordered set where userId = &#63; and classNameId = &#63; and classPK = &#63; and status = &#63;.
4158            *
4159            * @param userId the user ID
4160            * @param classNameId the class name ID
4161            * @param classPK the class p k
4162            * @param status the status
4163            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
4164            * @return the first matching message-boards message
4165            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found
4166            * @throws SystemException if a system exception occurred
4167            */
4168            public com.liferay.portlet.messageboards.model.MBMessage findByU_C_C_S_First(
4169                    long userId, long classNameId, long classPK, int status,
4170                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
4171                    throws com.liferay.portal.kernel.exception.SystemException,
4172                            com.liferay.portlet.messageboards.NoSuchMessageException;
4173    
4174            /**
4175            * Returns the first message-boards message in the ordered set where userId = &#63; and classNameId = &#63; and classPK = &#63; and status = &#63;.
4176            *
4177            * @param userId the user ID
4178            * @param classNameId the class name ID
4179            * @param classPK the class p k
4180            * @param status the status
4181            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
4182            * @return the first matching message-boards message, or <code>null</code> if a matching message-boards message could not be found
4183            * @throws SystemException if a system exception occurred
4184            */
4185            public com.liferay.portlet.messageboards.model.MBMessage fetchByU_C_C_S_First(
4186                    long userId, long classNameId, long classPK, int status,
4187                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
4188                    throws com.liferay.portal.kernel.exception.SystemException;
4189    
4190            /**
4191            * Returns the last message-boards message in the ordered set where userId = &#63; and classNameId = &#63; and classPK = &#63; and status = &#63;.
4192            *
4193            * @param userId the user ID
4194            * @param classNameId the class name ID
4195            * @param classPK the class p k
4196            * @param status the status
4197            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
4198            * @return the last matching message-boards message
4199            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a matching message-boards message could not be found
4200            * @throws SystemException if a system exception occurred
4201            */
4202            public com.liferay.portlet.messageboards.model.MBMessage findByU_C_C_S_Last(
4203                    long userId, long classNameId, long classPK, int status,
4204                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
4205                    throws com.liferay.portal.kernel.exception.SystemException,
4206                            com.liferay.portlet.messageboards.NoSuchMessageException;
4207    
4208            /**
4209            * Returns the last message-boards message in the ordered set where userId = &#63; and classNameId = &#63; and classPK = &#63; and status = &#63;.
4210            *
4211            * @param userId the user ID
4212            * @param classNameId the class name ID
4213            * @param classPK the class p k
4214            * @param status the status
4215            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
4216            * @return the last matching message-boards message, or <code>null</code> if a matching message-boards message could not be found
4217            * @throws SystemException if a system exception occurred
4218            */
4219            public com.liferay.portlet.messageboards.model.MBMessage fetchByU_C_C_S_Last(
4220                    long userId, long classNameId, long classPK, int status,
4221                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
4222                    throws com.liferay.portal.kernel.exception.SystemException;
4223    
4224            /**
4225            * Returns the message-boards messages before and after the current message-boards message in the ordered set where userId = &#63; and classNameId = &#63; and classPK = &#63; and status = &#63;.
4226            *
4227            * @param messageId the primary key of the current message-boards message
4228            * @param userId the user ID
4229            * @param classNameId the class name ID
4230            * @param classPK the class p k
4231            * @param status the status
4232            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
4233            * @return the previous, current, and next message-boards message
4234            * @throws com.liferay.portlet.messageboards.NoSuchMessageException if a message-boards message with the primary key could not be found
4235            * @throws SystemException if a system exception occurred
4236            */
4237            public com.liferay.portlet.messageboards.model.MBMessage[] findByU_C_C_S_PrevAndNext(
4238                    long messageId, long userId, long classNameId, long classPK,
4239                    int status,
4240                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
4241                    throws com.liferay.portal.kernel.exception.SystemException,
4242                            com.liferay.portlet.messageboards.NoSuchMessageException;
4243    
4244            /**
4245            * Returns all the message-boards messages.
4246            *
4247            * @return the message-boards messages
4248            * @throws SystemException if a system exception occurred
4249            */
4250            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findAll()
4251                    throws com.liferay.portal.kernel.exception.SystemException;
4252    
4253            /**
4254            * Returns a range of all the message-boards messages.
4255            *
4256            * <p>
4257            * 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.
4258            * </p>
4259            *
4260            * @param start the lower bound of the range of message-boards messages
4261            * @param end the upper bound of the range of message-boards messages (not inclusive)
4262            * @return the range of message-boards messages
4263            * @throws SystemException if a system exception occurred
4264            */
4265            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findAll(
4266                    int start, int end)
4267                    throws com.liferay.portal.kernel.exception.SystemException;
4268    
4269            /**
4270            * Returns an ordered range of all the message-boards messages.
4271            *
4272            * <p>
4273            * 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.
4274            * </p>
4275            *
4276            * @param start the lower bound of the range of message-boards messages
4277            * @param end the upper bound of the range of message-boards messages (not inclusive)
4278            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
4279            * @return the ordered range of message-boards messages
4280            * @throws SystemException if a system exception occurred
4281            */
4282            public java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findAll(
4283                    int start, int end,
4284                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
4285                    throws com.liferay.portal.kernel.exception.SystemException;
4286    
4287            /**
4288            * Removes all the message-boards messages where uuid = &#63; from the database.
4289            *
4290            * @param uuid the uuid
4291            * @throws SystemException if a system exception occurred
4292            */
4293            public void removeByUuid(java.lang.String uuid)
4294                    throws com.liferay.portal.kernel.exception.SystemException;
4295    
4296            /**
4297            * Removes the message-boards message where uuid = &#63; and groupId = &#63; from the database.
4298            *
4299            * @param uuid the uuid
4300            * @param groupId the group ID
4301            * @return the message-boards message that was removed
4302            * @throws SystemException if a system exception occurred
4303            */
4304            public com.liferay.portlet.messageboards.model.MBMessage removeByUUID_G(
4305                    java.lang.String uuid, long groupId)
4306                    throws com.liferay.portal.kernel.exception.SystemException,
4307                            com.liferay.portlet.messageboards.NoSuchMessageException;
4308    
4309            /**
4310            * Removes all the message-boards messages where uuid = &#63; and companyId = &#63; from the database.
4311            *
4312            * @param uuid the uuid
4313            * @param companyId the company ID
4314            * @throws SystemException if a system exception occurred
4315            */
4316            public void removeByUuid_C(java.lang.String uuid, long companyId)
4317                    throws com.liferay.portal.kernel.exception.SystemException;
4318    
4319            /**
4320            * Removes all the message-boards messages where groupId = &#63; from the database.
4321            *
4322            * @param groupId the group ID
4323            * @throws SystemException if a system exception occurred
4324            */
4325            public void removeByGroupId(long groupId)
4326                    throws com.liferay.portal.kernel.exception.SystemException;
4327    
4328            /**
4329            * Removes all the message-boards messages where companyId = &#63; from the database.
4330            *
4331            * @param companyId the company ID
4332            * @throws SystemException if a system exception occurred
4333            */
4334            public void removeByCompanyId(long companyId)
4335                    throws com.liferay.portal.kernel.exception.SystemException;
4336    
4337            /**
4338            * Removes all the message-boards messages where threadId = &#63; from the database.
4339            *
4340            * @param threadId the thread ID
4341            * @throws SystemException if a system exception occurred
4342            */
4343            public void removeByThreadId(long threadId)
4344                    throws com.liferay.portal.kernel.exception.SystemException;
4345    
4346            /**
4347            * Removes all the message-boards messages where threadId = &#63; from the database.
4348            *
4349            * @param threadId the thread ID
4350            * @throws SystemException if a system exception occurred
4351            */
4352            public void removeByThreadReplies(long threadId)
4353                    throws com.liferay.portal.kernel.exception.SystemException;
4354    
4355            /**
4356            * Removes all the message-boards messages where userId = &#63; from the database.
4357            *
4358            * @param userId the user ID
4359            * @throws SystemException if a system exception occurred
4360            */
4361            public void removeByUserId(long userId)
4362                    throws com.liferay.portal.kernel.exception.SystemException;
4363    
4364            /**
4365            * Removes all the message-boards messages where groupId = &#63; and userId = &#63; from the database.
4366            *
4367            * @param groupId the group ID
4368            * @param userId the user ID
4369            * @throws SystemException if a system exception occurred
4370            */
4371            public void removeByG_U(long groupId, long userId)
4372                    throws com.liferay.portal.kernel.exception.SystemException;
4373    
4374            /**
4375            * Removes all the message-boards messages where groupId = &#63; and categoryId = &#63; from the database.
4376            *
4377            * @param groupId the group ID
4378            * @param categoryId the category ID
4379            * @throws SystemException if a system exception occurred
4380            */
4381            public void removeByG_C(long groupId, long categoryId)
4382                    throws com.liferay.portal.kernel.exception.SystemException;
4383    
4384            /**
4385            * Removes all the message-boards messages where groupId = &#63; and status = &#63; from the database.
4386            *
4387            * @param groupId the group ID
4388            * @param status the status
4389            * @throws SystemException if a system exception occurred
4390            */
4391            public void removeByG_S(long groupId, int status)
4392                    throws com.liferay.portal.kernel.exception.SystemException;
4393    
4394            /**
4395            * Removes all the message-boards messages where companyId = &#63; and status = &#63; from the database.
4396            *
4397            * @param companyId the company ID
4398            * @param status the status
4399            * @throws SystemException if a system exception occurred
4400            */
4401            public void removeByC_S(long companyId, int status)
4402                    throws com.liferay.portal.kernel.exception.SystemException;
4403    
4404            /**
4405            * Removes all the message-boards messages where userId = &#63; and classNameId = &#63; from the database.
4406            *
4407            * @param userId the user ID
4408            * @param classNameId the class name ID
4409            * @throws SystemException if a system exception occurred
4410            */
4411            public void removeByU_C(long userId, long classNameId)
4412                    throws com.liferay.portal.kernel.exception.SystemException;
4413    
4414            /**
4415            * Removes all the message-boards messages where classNameId = &#63; and classPK = &#63; from the database.
4416            *
4417            * @param classNameId the class name ID
4418            * @param classPK the class p k
4419            * @throws SystemException if a system exception occurred
4420            */
4421            public void removeByC_C(long classNameId, long classPK)
4422                    throws com.liferay.portal.kernel.exception.SystemException;
4423    
4424            /**
4425            * Removes all the message-boards messages where threadId = &#63; and parentMessageId = &#63; from the database.
4426            *
4427            * @param threadId the thread ID
4428            * @param parentMessageId the parent message ID
4429            * @throws SystemException if a system exception occurred
4430            */
4431            public void removeByT_P(long threadId, long parentMessageId)
4432                    throws com.liferay.portal.kernel.exception.SystemException;
4433    
4434            /**
4435            * Removes all the message-boards messages where threadId = &#63; and answer = &#63; from the database.
4436            *
4437            * @param threadId the thread ID
4438            * @param answer the answer
4439            * @throws SystemException if a system exception occurred
4440            */
4441            public void removeByT_A(long threadId, boolean answer)
4442                    throws com.liferay.portal.kernel.exception.SystemException;
4443    
4444            /**
4445            * Removes all the message-boards messages where threadId = &#63; and status = &#63; from the database.
4446            *
4447            * @param threadId the thread ID
4448            * @param status the status
4449            * @throws SystemException if a system exception occurred
4450            */
4451            public void removeByT_S(long threadId, int status)
4452                    throws com.liferay.portal.kernel.exception.SystemException;
4453    
4454            /**
4455            * Removes all the message-boards messages where threadId = &#63; and status = &#63; from the database.
4456            *
4457            * @param threadId the thread ID
4458            * @param status the status
4459            * @throws SystemException if a system exception occurred
4460            */
4461            public void removeByTR_S(long threadId, int status)
4462                    throws com.liferay.portal.kernel.exception.SystemException;
4463    
4464            /**
4465            * Removes all the message-boards messages where groupId = &#63; and userId = &#63; and status = &#63; from the database.
4466            *
4467            * @param groupId the group ID
4468            * @param userId the user ID
4469            * @param status the status
4470            * @throws SystemException if a system exception occurred
4471            */
4472            public void removeByG_U_S(long groupId, long userId, int status)
4473                    throws com.liferay.portal.kernel.exception.SystemException;
4474    
4475            /**
4476            * Removes all the message-boards messages where groupId = &#63; and categoryId = &#63; and threadId = &#63; from the database.
4477            *
4478            * @param groupId the group ID
4479            * @param categoryId the category ID
4480            * @param threadId the thread ID
4481            * @throws SystemException if a system exception occurred
4482            */
4483            public void removeByG_C_T(long groupId, long categoryId, long threadId)
4484                    throws com.liferay.portal.kernel.exception.SystemException;
4485    
4486            /**
4487            * Removes all the message-boards messages where groupId = &#63; and categoryId = &#63; and status = &#63; from the database.
4488            *
4489            * @param groupId the group ID
4490            * @param categoryId the category ID
4491            * @param status the status
4492            * @throws SystemException if a system exception occurred
4493            */
4494            public void removeByG_C_S(long groupId, long categoryId, int status)
4495                    throws com.liferay.portal.kernel.exception.SystemException;
4496    
4497            /**
4498            * Removes all the message-boards messages where userId = &#63; and classNameId = &#63; and classPK = &#63; from the database.
4499            *
4500            * @param userId the user ID
4501            * @param classNameId the class name ID
4502            * @param classPK the class p k
4503            * @throws SystemException if a system exception occurred
4504            */
4505            public void removeByU_C_C(long userId, long classNameId, long classPK)
4506                    throws com.liferay.portal.kernel.exception.SystemException;
4507    
4508            /**
4509            * Removes all the message-boards messages where userId = &#63; and classNameId = &#63; and status = &#63; from the database.
4510            *
4511            * @param userId the user ID
4512            * @param classNameId the class name ID
4513            * @param status the status
4514            * @throws SystemException if a system exception occurred
4515            */
4516            public void removeByU_C_S(long userId, long classNameId, int status)
4517                    throws com.liferay.portal.kernel.exception.SystemException;
4518    
4519            /**
4520            * Removes all the message-boards messages where classNameId = &#63; and classPK = &#63; and status = &#63; from the database.
4521            *
4522            * @param classNameId the class name ID
4523            * @param classPK the class p k
4524            * @param status the status
4525            * @throws SystemException if a system exception occurred
4526            */
4527            public void removeByC_C_S(long classNameId, long classPK, int status)
4528                    throws com.liferay.portal.kernel.exception.SystemException;
4529    
4530            /**
4531            * Removes all the message-boards messages where groupId = &#63; and categoryId = &#63; and threadId = &#63; and answer = &#63; from the database.
4532            *
4533            * @param groupId the group ID
4534            * @param categoryId the category ID
4535            * @param threadId the thread ID
4536            * @param answer the answer
4537            * @throws SystemException if a system exception occurred
4538            */
4539            public void removeByG_C_T_A(long groupId, long categoryId, long threadId,
4540                    boolean answer)
4541                    throws com.liferay.portal.kernel.exception.SystemException;
4542    
4543            /**
4544            * Removes all the message-boards messages where groupId = &#63; and categoryId = &#63; and threadId = &#63; and status = &#63; from the database.
4545            *
4546            * @param groupId the group ID
4547            * @param categoryId the category ID
4548            * @param threadId the thread ID
4549            * @param status the status
4550            * @throws SystemException if a system exception occurred
4551            */
4552            public void removeByG_C_T_S(long groupId, long categoryId, long threadId,
4553                    int status) throws com.liferay.portal.kernel.exception.SystemException;
4554    
4555            /**
4556            * Removes all the message-boards messages where userId = &#63; and classNameId = &#63; and classPK = &#63; and status = &#63; from the database.
4557            *
4558            * @param userId the user ID
4559            * @param classNameId the class name ID
4560            * @param classPK the class p k
4561            * @param status the status
4562            * @throws SystemException if a system exception occurred
4563            */
4564            public void removeByU_C_C_S(long userId, long classNameId, long classPK,
4565                    int status) throws com.liferay.portal.kernel.exception.SystemException;
4566    
4567            /**
4568            * Removes all the message-boards messages from the database.
4569            *
4570            * @throws SystemException if a system exception occurred
4571            */
4572            public void removeAll()
4573                    throws com.liferay.portal.kernel.exception.SystemException;
4574    
4575            /**
4576            * Returns the number of message-boards messages where uuid = &#63;.
4577            *
4578            * @param uuid the uuid
4579            * @return the number of matching message-boards messages
4580            * @throws SystemException if a system exception occurred
4581            */
4582            public int countByUuid(java.lang.String uuid)
4583                    throws com.liferay.portal.kernel.exception.SystemException;
4584    
4585            /**
4586            * Returns the number of message-boards messages where uuid = &#63; and groupId = &#63;.
4587            *
4588            * @param uuid the uuid
4589            * @param groupId the group ID
4590            * @return the number of matching message-boards messages
4591            * @throws SystemException if a system exception occurred
4592            */
4593            public int countByUUID_G(java.lang.String uuid, long groupId)
4594                    throws com.liferay.portal.kernel.exception.SystemException;
4595    
4596            /**
4597            * Returns the number of message-boards messages where uuid = &#63; and companyId = &#63;.
4598            *
4599            * @param uuid the uuid
4600            * @param companyId the company ID
4601            * @return the number of matching message-boards messages
4602            * @throws SystemException if a system exception occurred
4603            */
4604            public int countByUuid_C(java.lang.String uuid, long companyId)
4605                    throws com.liferay.portal.kernel.exception.SystemException;
4606    
4607            /**
4608            * Returns the number of message-boards messages where groupId = &#63;.
4609            *
4610            * @param groupId the group ID
4611            * @return the number of matching message-boards messages
4612            * @throws SystemException if a system exception occurred
4613            */
4614            public int countByGroupId(long groupId)
4615                    throws com.liferay.portal.kernel.exception.SystemException;
4616    
4617            /**
4618            * Returns the number of message-boards messages that the user has permission to view where groupId = &#63;.
4619            *
4620            * @param groupId the group ID
4621            * @return the number of matching message-boards messages that the user has permission to view
4622            * @throws SystemException if a system exception occurred
4623            */
4624            public int filterCountByGroupId(long groupId)
4625                    throws com.liferay.portal.kernel.exception.SystemException;
4626    
4627            /**
4628            * Returns the number of message-boards messages where companyId = &#63;.
4629            *
4630            * @param companyId the company ID
4631            * @return the number of matching message-boards messages
4632            * @throws SystemException if a system exception occurred
4633            */
4634            public int countByCompanyId(long companyId)
4635                    throws com.liferay.portal.kernel.exception.SystemException;
4636    
4637            /**
4638            * Returns the number of message-boards messages where threadId = &#63;.
4639            *
4640            * @param threadId the thread ID
4641            * @return the number of matching message-boards messages
4642            * @throws SystemException if a system exception occurred
4643            */
4644            public int countByThreadId(long threadId)
4645                    throws com.liferay.portal.kernel.exception.SystemException;
4646    
4647            /**
4648            * Returns the number of message-boards messages where threadId = &#63;.
4649            *
4650            * @param threadId the thread ID
4651            * @return the number of matching message-boards messages
4652            * @throws SystemException if a system exception occurred
4653            */
4654            public int countByThreadReplies(long threadId)
4655                    throws com.liferay.portal.kernel.exception.SystemException;
4656    
4657            /**
4658            * Returns the number of message-boards messages where userId = &#63;.
4659            *
4660            * @param userId the user ID
4661            * @return the number of matching message-boards messages
4662            * @throws SystemException if a system exception occurred
4663            */
4664            public int countByUserId(long userId)
4665                    throws com.liferay.portal.kernel.exception.SystemException;
4666    
4667            /**
4668            * Returns the number of message-boards messages where groupId = &#63; and userId = &#63;.
4669            *
4670            * @param groupId the group ID
4671            * @param userId the user ID
4672            * @return the number of matching message-boards messages
4673            * @throws SystemException if a system exception occurred
4674            */
4675            public int countByG_U(long groupId, long userId)
4676                    throws com.liferay.portal.kernel.exception.SystemException;
4677    
4678            /**
4679            * Returns the number of message-boards messages that the user has permission to view where groupId = &#63; and userId = &#63;.
4680            *
4681            * @param groupId the group ID
4682            * @param userId the user ID
4683            * @return the number of matching message-boards messages that the user has permission to view
4684            * @throws SystemException if a system exception occurred
4685            */
4686            public int filterCountByG_U(long groupId, long userId)
4687                    throws com.liferay.portal.kernel.exception.SystemException;
4688    
4689            /**
4690            * Returns the number of message-boards messages where groupId = &#63; and categoryId = &#63;.
4691            *
4692            * @param groupId the group ID
4693            * @param categoryId the category ID
4694            * @return the number of matching message-boards messages
4695            * @throws SystemException if a system exception occurred
4696            */
4697            public int countByG_C(long groupId, long categoryId)
4698                    throws com.liferay.portal.kernel.exception.SystemException;
4699    
4700            /**
4701            * Returns the number of message-boards messages that the user has permission to view where groupId = &#63; and categoryId = &#63;.
4702            *
4703            * @param groupId the group ID
4704            * @param categoryId the category ID
4705            * @return the number of matching message-boards messages that the user has permission to view
4706            * @throws SystemException if a system exception occurred
4707            */
4708            public int filterCountByG_C(long groupId, long categoryId)
4709                    throws com.liferay.portal.kernel.exception.SystemException;
4710    
4711            /**
4712            * Returns the number of message-boards messages where groupId = &#63; and status = &#63;.
4713            *
4714            * @param groupId the group ID
4715            * @param status the status
4716            * @return the number of matching message-boards messages
4717            * @throws SystemException if a system exception occurred
4718            */
4719            public int countByG_S(long groupId, int status)
4720                    throws com.liferay.portal.kernel.exception.SystemException;
4721    
4722            /**
4723            * Returns the number of message-boards messages that the user has permission to view where groupId = &#63; and status = &#63;.
4724            *
4725            * @param groupId the group ID
4726            * @param status the status
4727            * @return the number of matching message-boards messages that the user has permission to view
4728            * @throws SystemException if a system exception occurred
4729            */
4730            public int filterCountByG_S(long groupId, int status)
4731                    throws com.liferay.portal.kernel.exception.SystemException;
4732    
4733            /**
4734            * Returns the number of message-boards messages where companyId = &#63; and status = &#63;.
4735            *
4736            * @param companyId the company ID
4737            * @param status the status
4738            * @return the number of matching message-boards messages
4739            * @throws SystemException if a system exception occurred
4740            */
4741            public int countByC_S(long companyId, int status)
4742                    throws com.liferay.portal.kernel.exception.SystemException;
4743    
4744            /**
4745            * Returns the number of message-boards messages where userId = &#63; and classNameId = &#63;.
4746            *
4747            * @param userId the user ID
4748            * @param classNameId the class name ID
4749            * @return the number of matching message-boards messages
4750            * @throws SystemException if a system exception occurred
4751            */
4752            public int countByU_C(long userId, long classNameId)
4753                    throws com.liferay.portal.kernel.exception.SystemException;
4754    
4755            /**
4756            * Returns the number of message-boards messages where userId = &#63; and classNameId = any &#63;.
4757            *
4758            * @param userId the user ID
4759            * @param classNameIds the class name IDs
4760            * @return the number of matching message-boards messages
4761            * @throws SystemException if a system exception occurred
4762            */
4763            public int countByU_C(long userId, long[] classNameIds)
4764                    throws com.liferay.portal.kernel.exception.SystemException;
4765    
4766            /**
4767            * Returns the number of message-boards messages where classNameId = &#63; and classPK = &#63;.
4768            *
4769            * @param classNameId the class name ID
4770            * @param classPK the class p k
4771            * @return the number of matching message-boards messages
4772            * @throws SystemException if a system exception occurred
4773            */
4774            public int countByC_C(long classNameId, long classPK)
4775                    throws com.liferay.portal.kernel.exception.SystemException;
4776    
4777            /**
4778            * Returns the number of message-boards messages where threadId = &#63; and parentMessageId = &#63;.
4779            *
4780            * @param threadId the thread ID
4781            * @param parentMessageId the parent message ID
4782            * @return the number of matching message-boards messages
4783            * @throws SystemException if a system exception occurred
4784            */
4785            public int countByT_P(long threadId, long parentMessageId)
4786                    throws com.liferay.portal.kernel.exception.SystemException;
4787    
4788            /**
4789            * Returns the number of message-boards messages where threadId = &#63; and answer = &#63;.
4790            *
4791            * @param threadId the thread ID
4792            * @param answer the answer
4793            * @return the number of matching message-boards messages
4794            * @throws SystemException if a system exception occurred
4795            */
4796            public int countByT_A(long threadId, boolean answer)
4797                    throws com.liferay.portal.kernel.exception.SystemException;
4798    
4799            /**
4800            * Returns the number of message-boards messages where threadId = &#63; and status = &#63;.
4801            *
4802            * @param threadId the thread ID
4803            * @param status the status
4804            * @return the number of matching message-boards messages
4805            * @throws SystemException if a system exception occurred
4806            */
4807            public int countByT_S(long threadId, int status)
4808                    throws com.liferay.portal.kernel.exception.SystemException;
4809    
4810            /**
4811            * Returns the number of message-boards messages where threadId = &#63; and status = &#63;.
4812            *
4813            * @param threadId the thread ID
4814            * @param status the status
4815            * @return the number of matching message-boards messages
4816            * @throws SystemException if a system exception occurred
4817            */
4818            public int countByTR_S(long threadId, int status)
4819                    throws com.liferay.portal.kernel.exception.SystemException;
4820    
4821            /**
4822            * Returns the number of message-boards messages where groupId = &#63; and userId = &#63; and status = &#63;.
4823            *
4824            * @param groupId the group ID
4825            * @param userId the user ID
4826            * @param status the status
4827            * @return the number of matching message-boards messages
4828            * @throws SystemException if a system exception occurred
4829            */
4830            public int countByG_U_S(long groupId, long userId, int status)
4831                    throws com.liferay.portal.kernel.exception.SystemException;
4832    
4833            /**
4834            * Returns the number of message-boards messages that the user has permission to view where groupId = &#63; and userId = &#63; and status = &#63;.
4835            *
4836            * @param groupId the group ID
4837            * @param userId the user ID
4838            * @param status the status
4839            * @return the number of matching message-boards messages that the user has permission to view
4840            * @throws SystemException if a system exception occurred
4841            */
4842            public int filterCountByG_U_S(long groupId, long userId, int status)
4843                    throws com.liferay.portal.kernel.exception.SystemException;
4844    
4845            /**
4846            * Returns the number of message-boards messages where groupId = &#63; and categoryId = &#63; and threadId = &#63;.
4847            *
4848            * @param groupId the group ID
4849            * @param categoryId the category ID
4850            * @param threadId the thread ID
4851            * @return the number of matching message-boards messages
4852            * @throws SystemException if a system exception occurred
4853            */
4854            public int countByG_C_T(long groupId, long categoryId, long threadId)
4855                    throws com.liferay.portal.kernel.exception.SystemException;
4856    
4857            /**
4858            * Returns the number of message-boards messages that the user has permission to view where groupId = &#63; and categoryId = &#63; and threadId = &#63;.
4859            *
4860            * @param groupId the group ID
4861            * @param categoryId the category ID
4862            * @param threadId the thread ID
4863            * @return the number of matching message-boards messages that the user has permission to view
4864            * @throws SystemException if a system exception occurred
4865            */
4866            public int filterCountByG_C_T(long groupId, long categoryId, long threadId)
4867                    throws com.liferay.portal.kernel.exception.SystemException;
4868    
4869            /**
4870            * Returns the number of message-boards messages where groupId = &#63; and categoryId = &#63; and status = &#63;.
4871            *
4872            * @param groupId the group ID
4873            * @param categoryId the category ID
4874            * @param status the status
4875            * @return the number of matching message-boards messages
4876            * @throws SystemException if a system exception occurred
4877            */
4878            public int countByG_C_S(long groupId, long categoryId, int status)
4879                    throws com.liferay.portal.kernel.exception.SystemException;
4880    
4881            /**
4882            * Returns the number of message-boards messages that the user has permission to view where groupId = &#63; and categoryId = &#63; and status = &#63;.
4883            *
4884            * @param groupId the group ID
4885            * @param categoryId the category ID
4886            * @param status the status
4887            * @return the number of matching message-boards messages that the user has permission to view
4888            * @throws SystemException if a system exception occurred
4889            */
4890            public int filterCountByG_C_S(long groupId, long categoryId, int status)
4891                    throws com.liferay.portal.kernel.exception.SystemException;
4892    
4893            /**
4894            * Returns the number of message-boards messages where userId = &#63; and classNameId = &#63; and classPK = &#63;.
4895            *
4896            * @param userId the user ID
4897            * @param classNameId the class name ID
4898            * @param classPK the class p k
4899            * @return the number of matching message-boards messages
4900            * @throws SystemException if a system exception occurred
4901            */
4902            public int countByU_C_C(long userId, long classNameId, long classPK)
4903                    throws com.liferay.portal.kernel.exception.SystemException;
4904    
4905            /**
4906            * Returns the number of message-boards messages where userId = &#63; and classNameId = &#63; and status = &#63;.
4907            *
4908            * @param userId the user ID
4909            * @param classNameId the class name ID
4910            * @param status the status
4911            * @return the number of matching message-boards messages
4912            * @throws SystemException if a system exception occurred
4913            */
4914            public int countByU_C_S(long userId, long classNameId, int status)
4915                    throws com.liferay.portal.kernel.exception.SystemException;
4916    
4917            /**
4918            * Returns the number of message-boards messages where userId = &#63; and classNameId = any &#63; and status = &#63;.
4919            *
4920            * @param userId the user ID
4921            * @param classNameIds the class name IDs
4922            * @param status the status
4923            * @return the number of matching message-boards messages
4924            * @throws SystemException if a system exception occurred
4925            */
4926            public int countByU_C_S(long userId, long[] classNameIds, int status)
4927                    throws com.liferay.portal.kernel.exception.SystemException;
4928    
4929            /**
4930            * Returns the number of message-boards messages where classNameId = &#63; and classPK = &#63; and status = &#63;.
4931            *
4932            * @param classNameId the class name ID
4933            * @param classPK the class p k
4934            * @param status the status
4935            * @return the number of matching message-boards messages
4936            * @throws SystemException if a system exception occurred
4937            */
4938            public int countByC_C_S(long classNameId, long classPK, int status)
4939                    throws com.liferay.portal.kernel.exception.SystemException;
4940    
4941            /**
4942            * Returns the number of message-boards messages where groupId = &#63; and categoryId = &#63; and threadId = &#63; and answer = &#63;.
4943            *
4944            * @param groupId the group ID
4945            * @param categoryId the category ID
4946            * @param threadId the thread ID
4947            * @param answer the answer
4948            * @return the number of matching message-boards messages
4949            * @throws SystemException if a system exception occurred
4950            */
4951            public int countByG_C_T_A(long groupId, long categoryId, long threadId,
4952                    boolean answer)
4953                    throws com.liferay.portal.kernel.exception.SystemException;
4954    
4955            /**
4956            * Returns the number of message-boards messages that the user has permission to view where groupId = &#63; and categoryId = &#63; and threadId = &#63; and answer = &#63;.
4957            *
4958            * @param groupId the group ID
4959            * @param categoryId the category ID
4960            * @param threadId the thread ID
4961            * @param answer the answer
4962            * @return the number of matching message-boards messages that the user has permission to view
4963            * @throws SystemException if a system exception occurred
4964            */
4965            public int filterCountByG_C_T_A(long groupId, long categoryId,
4966                    long threadId, boolean answer)
4967                    throws com.liferay.portal.kernel.exception.SystemException;
4968    
4969            /**
4970            * Returns the number of message-boards messages where groupId = &#63; and categoryId = &#63; and threadId = &#63; and status = &#63;.
4971            *
4972            * @param groupId the group ID
4973            * @param categoryId the category ID
4974            * @param threadId the thread ID
4975            * @param status the status
4976            * @return the number of matching message-boards messages
4977            * @throws SystemException if a system exception occurred
4978            */
4979            public int countByG_C_T_S(long groupId, long categoryId, long threadId,
4980                    int status) throws com.liferay.portal.kernel.exception.SystemException;
4981    
4982            /**
4983            * Returns the number of message-boards messages that the user has permission to view where groupId = &#63; and categoryId = &#63; and threadId = &#63; and status = &#63;.
4984            *
4985            * @param groupId the group ID
4986            * @param categoryId the category ID
4987            * @param threadId the thread ID
4988            * @param status the status
4989            * @return the number of matching message-boards messages that the user has permission to view
4990            * @throws SystemException if a system exception occurred
4991            */
4992            public int filterCountByG_C_T_S(long groupId, long categoryId,
4993                    long threadId, int status)
4994                    throws com.liferay.portal.kernel.exception.SystemException;
4995    
4996            /**
4997            * Returns the number of message-boards messages where userId = &#63; and classNameId = &#63; and classPK = &#63; and status = &#63;.
4998            *
4999            * @param userId the user ID
5000            * @param classNameId the class name ID
5001            * @param classPK the class p k
5002            * @param status the status
5003            * @return the number of matching message-boards messages
5004            * @throws SystemException if a system exception occurred
5005            */
5006            public int countByU_C_C_S(long userId, long classNameId, long classPK,
5007                    int status) throws com.liferay.portal.kernel.exception.SystemException;
5008    
5009            /**
5010            * Returns the number of message-boards messages.
5011            *
5012            * @return the number of message-boards messages
5013            * @throws SystemException if a system exception occurred
5014            */
5015            public int countAll()
5016                    throws com.liferay.portal.kernel.exception.SystemException;
5017    }