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