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