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