001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.messageboards.service.persistence;
016    
017    import com.liferay.portal.service.persistence.BasePersistence;
018    
019    import com.liferay.portlet.messageboards.model.MBMessageFlag;
020    
021    /**
022     * The persistence interface for the message boards message flag service.
023     *
024     * <p>
025     * Never modify or reference this interface directly. Always use {@link MBMessageFlagUtil} to access the message boards message flag persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
026     * </p>
027     *
028     * <p>
029     * Caching information and settings can be found in <code>portal.properties</code>
030     * </p>
031     *
032     * @author Brian Wing Shun Chan
033     * @see MBMessageFlagPersistenceImpl
034     * @see MBMessageFlagUtil
035     * @generated
036     */
037    public interface MBMessageFlagPersistence extends BasePersistence<MBMessageFlag> {
038            /**
039            * Caches the message boards message flag in the entity cache if it is enabled.
040            *
041            * @param mbMessageFlag the message boards message flag to cache
042            */
043            public void cacheResult(
044                    com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag);
045    
046            /**
047            * Caches the message boards message flags in the entity cache if it is enabled.
048            *
049            * @param mbMessageFlags the message boards message flags to cache
050            */
051            public void cacheResult(
052                    java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> mbMessageFlags);
053    
054            /**
055            * Creates a new message boards message flag with the primary key. Does not add the message boards message flag to the database.
056            *
057            * @param messageFlagId the primary key for the new message boards message flag
058            * @return the new message boards message flag
059            */
060            public com.liferay.portlet.messageboards.model.MBMessageFlag create(
061                    long messageFlagId);
062    
063            /**
064            * Removes the message boards message flag with the primary key from the database. Also notifies the appropriate model listeners.
065            *
066            * @param messageFlagId the primary key of the message boards message flag to remove
067            * @return the message boards message flag that was removed
068            * @throws com.liferay.portlet.messageboards.NoSuchMessageFlagException if a message boards message flag with the primary key could not be found
069            * @throws SystemException if a system exception occurred
070            */
071            public com.liferay.portlet.messageboards.model.MBMessageFlag remove(
072                    long messageFlagId)
073                    throws com.liferay.portal.kernel.exception.SystemException,
074                            com.liferay.portlet.messageboards.NoSuchMessageFlagException;
075    
076            public com.liferay.portlet.messageboards.model.MBMessageFlag updateImpl(
077                    com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag,
078                    boolean merge)
079                    throws com.liferay.portal.kernel.exception.SystemException;
080    
081            /**
082            * Finds the message boards message flag with the primary key or throws a {@link com.liferay.portlet.messageboards.NoSuchMessageFlagException} if it could not be found.
083            *
084            * @param messageFlagId the primary key of the message boards message flag to find
085            * @return the message boards message flag
086            * @throws com.liferay.portlet.messageboards.NoSuchMessageFlagException if a message boards message flag with the primary key could not be found
087            * @throws SystemException if a system exception occurred
088            */
089            public com.liferay.portlet.messageboards.model.MBMessageFlag findByPrimaryKey(
090                    long messageFlagId)
091                    throws com.liferay.portal.kernel.exception.SystemException,
092                            com.liferay.portlet.messageboards.NoSuchMessageFlagException;
093    
094            /**
095            * Finds the message boards message flag with the primary key or returns <code>null</code> if it could not be found.
096            *
097            * @param messageFlagId the primary key of the message boards message flag to find
098            * @return the message boards message flag, or <code>null</code> if a message boards message flag with the primary key could not be found
099            * @throws SystemException if a system exception occurred
100            */
101            public com.liferay.portlet.messageboards.model.MBMessageFlag fetchByPrimaryKey(
102                    long messageFlagId)
103                    throws com.liferay.portal.kernel.exception.SystemException;
104    
105            /**
106            * Finds all the message boards message flags where userId = &#63;.
107            *
108            * @param userId the user id to search with
109            * @return the matching message boards message flags
110            * @throws SystemException if a system exception occurred
111            */
112            public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByUserId(
113                    long userId) throws com.liferay.portal.kernel.exception.SystemException;
114    
115            /**
116            * Finds a range of all the message boards message flags where userId = &#63;.
117            *
118            * <p>
119            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
120            * </p>
121            *
122            * @param userId the user id to search with
123            * @param start the lower bound of the range of message boards message flags to return
124            * @param end the upper bound of the range of message boards message flags to return (not inclusive)
125            * @return the range of matching message boards message flags
126            * @throws SystemException if a system exception occurred
127            */
128            public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByUserId(
129                    long userId, int start, int end)
130                    throws com.liferay.portal.kernel.exception.SystemException;
131    
132            /**
133            * Finds an ordered range of all the message boards message flags where userId = &#63;.
134            *
135            * <p>
136            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
137            * </p>
138            *
139            * @param userId the user id to search with
140            * @param start the lower bound of the range of message boards message flags to return
141            * @param end the upper bound of the range of message boards message flags to return (not inclusive)
142            * @param orderByComparator the comparator to order the results by
143            * @return the ordered range of matching message boards message flags
144            * @throws SystemException if a system exception occurred
145            */
146            public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByUserId(
147                    long userId, int start, int end,
148                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149                    throws com.liferay.portal.kernel.exception.SystemException;
150    
151            /**
152            * Finds the first message boards message flag in the ordered set where userId = &#63;.
153            *
154            * <p>
155            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
156            * </p>
157            *
158            * @param userId the user id to search with
159            * @param orderByComparator the comparator to order the set by
160            * @return the first matching message boards message flag
161            * @throws com.liferay.portlet.messageboards.NoSuchMessageFlagException if a matching message boards message flag could not be found
162            * @throws SystemException if a system exception occurred
163            */
164            public com.liferay.portlet.messageboards.model.MBMessageFlag findByUserId_First(
165                    long userId,
166                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
167                    throws com.liferay.portal.kernel.exception.SystemException,
168                            com.liferay.portlet.messageboards.NoSuchMessageFlagException;
169    
170            /**
171            * Finds the last message boards message flag in the ordered set where userId = &#63;.
172            *
173            * <p>
174            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
175            * </p>
176            *
177            * @param userId the user id to search with
178            * @param orderByComparator the comparator to order the set by
179            * @return the last matching message boards message flag
180            * @throws com.liferay.portlet.messageboards.NoSuchMessageFlagException if a matching message boards message flag could not be found
181            * @throws SystemException if a system exception occurred
182            */
183            public com.liferay.portlet.messageboards.model.MBMessageFlag findByUserId_Last(
184                    long userId,
185                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
186                    throws com.liferay.portal.kernel.exception.SystemException,
187                            com.liferay.portlet.messageboards.NoSuchMessageFlagException;
188    
189            /**
190            * Finds the message boards message flags before and after the current message boards message flag in the ordered set where userId = &#63;.
191            *
192            * <p>
193            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
194            * </p>
195            *
196            * @param messageFlagId the primary key of the current message boards message flag
197            * @param userId the user id to search with
198            * @param orderByComparator the comparator to order the set by
199            * @return the previous, current, and next message boards message flag
200            * @throws com.liferay.portlet.messageboards.NoSuchMessageFlagException if a message boards message flag with the primary key could not be found
201            * @throws SystemException if a system exception occurred
202            */
203            public com.liferay.portlet.messageboards.model.MBMessageFlag[] findByUserId_PrevAndNext(
204                    long messageFlagId, long userId,
205                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
206                    throws com.liferay.portal.kernel.exception.SystemException,
207                            com.liferay.portlet.messageboards.NoSuchMessageFlagException;
208    
209            /**
210            * Finds all the message boards message flags where threadId = &#63;.
211            *
212            * @param threadId the thread id to search with
213            * @return the matching message boards message flags
214            * @throws SystemException if a system exception occurred
215            */
216            public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByThreadId(
217                    long threadId)
218                    throws com.liferay.portal.kernel.exception.SystemException;
219    
220            /**
221            * Finds a range of all the message boards message flags where threadId = &#63;.
222            *
223            * <p>
224            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
225            * </p>
226            *
227            * @param threadId the thread id to search with
228            * @param start the lower bound of the range of message boards message flags to return
229            * @param end the upper bound of the range of message boards message flags to return (not inclusive)
230            * @return the range of matching message boards message flags
231            * @throws SystemException if a system exception occurred
232            */
233            public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByThreadId(
234                    long threadId, int start, int end)
235                    throws com.liferay.portal.kernel.exception.SystemException;
236    
237            /**
238            * Finds an ordered range of all the message boards message flags where threadId = &#63;.
239            *
240            * <p>
241            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
242            * </p>
243            *
244            * @param threadId the thread id to search with
245            * @param start the lower bound of the range of message boards message flags to return
246            * @param end the upper bound of the range of message boards message flags to return (not inclusive)
247            * @param orderByComparator the comparator to order the results by
248            * @return the ordered range of matching message boards message flags
249            * @throws SystemException if a system exception occurred
250            */
251            public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByThreadId(
252                    long threadId, int start, int end,
253                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
254                    throws com.liferay.portal.kernel.exception.SystemException;
255    
256            /**
257            * Finds the first message boards message flag in the ordered set where threadId = &#63;.
258            *
259            * <p>
260            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
261            * </p>
262            *
263            * @param threadId the thread id to search with
264            * @param orderByComparator the comparator to order the set by
265            * @return the first matching message boards message flag
266            * @throws com.liferay.portlet.messageboards.NoSuchMessageFlagException if a matching message boards message flag could not be found
267            * @throws SystemException if a system exception occurred
268            */
269            public com.liferay.portlet.messageboards.model.MBMessageFlag findByThreadId_First(
270                    long threadId,
271                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
272                    throws com.liferay.portal.kernel.exception.SystemException,
273                            com.liferay.portlet.messageboards.NoSuchMessageFlagException;
274    
275            /**
276            * Finds the last message boards message flag in the ordered set where threadId = &#63;.
277            *
278            * <p>
279            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
280            * </p>
281            *
282            * @param threadId the thread id to search with
283            * @param orderByComparator the comparator to order the set by
284            * @return the last matching message boards message flag
285            * @throws com.liferay.portlet.messageboards.NoSuchMessageFlagException if a matching message boards message flag could not be found
286            * @throws SystemException if a system exception occurred
287            */
288            public com.liferay.portlet.messageboards.model.MBMessageFlag findByThreadId_Last(
289                    long threadId,
290                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
291                    throws com.liferay.portal.kernel.exception.SystemException,
292                            com.liferay.portlet.messageboards.NoSuchMessageFlagException;
293    
294            /**
295            * Finds the message boards message flags before and after the current message boards message flag in the ordered set where threadId = &#63;.
296            *
297            * <p>
298            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
299            * </p>
300            *
301            * @param messageFlagId the primary key of the current message boards message flag
302            * @param threadId the thread id to search with
303            * @param orderByComparator the comparator to order the set by
304            * @return the previous, current, and next message boards message flag
305            * @throws com.liferay.portlet.messageboards.NoSuchMessageFlagException if a message boards message flag with the primary key could not be found
306            * @throws SystemException if a system exception occurred
307            */
308            public com.liferay.portlet.messageboards.model.MBMessageFlag[] findByThreadId_PrevAndNext(
309                    long messageFlagId, long threadId,
310                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
311                    throws com.liferay.portal.kernel.exception.SystemException,
312                            com.liferay.portlet.messageboards.NoSuchMessageFlagException;
313    
314            /**
315            * Finds all the message boards message flags where messageId = &#63;.
316            *
317            * @param messageId the message id to search with
318            * @return the matching message boards message flags
319            * @throws SystemException if a system exception occurred
320            */
321            public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByMessageId(
322                    long messageId)
323                    throws com.liferay.portal.kernel.exception.SystemException;
324    
325            /**
326            * Finds a range of all the message boards message flags where messageId = &#63;.
327            *
328            * <p>
329            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
330            * </p>
331            *
332            * @param messageId the message id to search with
333            * @param start the lower bound of the range of message boards message flags to return
334            * @param end the upper bound of the range of message boards message flags to return (not inclusive)
335            * @return the range of matching message boards message flags
336            * @throws SystemException if a system exception occurred
337            */
338            public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByMessageId(
339                    long messageId, int start, int end)
340                    throws com.liferay.portal.kernel.exception.SystemException;
341    
342            /**
343            * Finds an ordered range of all the message boards message flags where messageId = &#63;.
344            *
345            * <p>
346            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
347            * </p>
348            *
349            * @param messageId the message id to search with
350            * @param start the lower bound of the range of message boards message flags to return
351            * @param end the upper bound of the range of message boards message flags to return (not inclusive)
352            * @param orderByComparator the comparator to order the results by
353            * @return the ordered range of matching message boards message flags
354            * @throws SystemException if a system exception occurred
355            */
356            public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByMessageId(
357                    long messageId, int start, int end,
358                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
359                    throws com.liferay.portal.kernel.exception.SystemException;
360    
361            /**
362            * Finds the first message boards message flag in the ordered set where messageId = &#63;.
363            *
364            * <p>
365            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
366            * </p>
367            *
368            * @param messageId the message id to search with
369            * @param orderByComparator the comparator to order the set by
370            * @return the first matching message boards message flag
371            * @throws com.liferay.portlet.messageboards.NoSuchMessageFlagException if a matching message boards message flag could not be found
372            * @throws SystemException if a system exception occurred
373            */
374            public com.liferay.portlet.messageboards.model.MBMessageFlag findByMessageId_First(
375                    long messageId,
376                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
377                    throws com.liferay.portal.kernel.exception.SystemException,
378                            com.liferay.portlet.messageboards.NoSuchMessageFlagException;
379    
380            /**
381            * Finds the last message boards message flag in the ordered set where messageId = &#63;.
382            *
383            * <p>
384            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
385            * </p>
386            *
387            * @param messageId the message id to search with
388            * @param orderByComparator the comparator to order the set by
389            * @return the last matching message boards message flag
390            * @throws com.liferay.portlet.messageboards.NoSuchMessageFlagException if a matching message boards message flag could not be found
391            * @throws SystemException if a system exception occurred
392            */
393            public com.liferay.portlet.messageboards.model.MBMessageFlag findByMessageId_Last(
394                    long messageId,
395                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
396                    throws com.liferay.portal.kernel.exception.SystemException,
397                            com.liferay.portlet.messageboards.NoSuchMessageFlagException;
398    
399            /**
400            * Finds the message boards message flags before and after the current message boards message flag in the ordered set where messageId = &#63;.
401            *
402            * <p>
403            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
404            * </p>
405            *
406            * @param messageFlagId the primary key of the current message boards message flag
407            * @param messageId the message id to search with
408            * @param orderByComparator the comparator to order the set by
409            * @return the previous, current, and next message boards message flag
410            * @throws com.liferay.portlet.messageboards.NoSuchMessageFlagException if a message boards message flag with the primary key could not be found
411            * @throws SystemException if a system exception occurred
412            */
413            public com.liferay.portlet.messageboards.model.MBMessageFlag[] findByMessageId_PrevAndNext(
414                    long messageFlagId, long messageId,
415                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
416                    throws com.liferay.portal.kernel.exception.SystemException,
417                            com.liferay.portlet.messageboards.NoSuchMessageFlagException;
418    
419            /**
420            * Finds all the message boards message flags where threadId = &#63; and flag = &#63;.
421            *
422            * @param threadId the thread id to search with
423            * @param flag the flag to search with
424            * @return the matching message boards message flags
425            * @throws SystemException if a system exception occurred
426            */
427            public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByT_F(
428                    long threadId, int flag)
429                    throws com.liferay.portal.kernel.exception.SystemException;
430    
431            /**
432            * Finds a range of all the message boards message flags where threadId = &#63; and flag = &#63;.
433            *
434            * <p>
435            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
436            * </p>
437            *
438            * @param threadId the thread id to search with
439            * @param flag the flag to search with
440            * @param start the lower bound of the range of message boards message flags to return
441            * @param end the upper bound of the range of message boards message flags to return (not inclusive)
442            * @return the range of matching message boards message flags
443            * @throws SystemException if a system exception occurred
444            */
445            public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByT_F(
446                    long threadId, int flag, int start, int end)
447                    throws com.liferay.portal.kernel.exception.SystemException;
448    
449            /**
450            * Finds an ordered range of all the message boards message flags where threadId = &#63; and flag = &#63;.
451            *
452            * <p>
453            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
454            * </p>
455            *
456            * @param threadId the thread id to search with
457            * @param flag the flag to search with
458            * @param start the lower bound of the range of message boards message flags to return
459            * @param end the upper bound of the range of message boards message flags to return (not inclusive)
460            * @param orderByComparator the comparator to order the results by
461            * @return the ordered range of matching message boards message flags
462            * @throws SystemException if a system exception occurred
463            */
464            public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByT_F(
465                    long threadId, int flag, int start, int end,
466                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
467                    throws com.liferay.portal.kernel.exception.SystemException;
468    
469            /**
470            * Finds the first message boards message flag in the ordered set where threadId = &#63; and flag = &#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.
474            * </p>
475            *
476            * @param threadId the thread id to search with
477            * @param flag the flag to search with
478            * @param orderByComparator the comparator to order the set by
479            * @return the first matching message boards message flag
480            * @throws com.liferay.portlet.messageboards.NoSuchMessageFlagException if a matching message boards message flag could not be found
481            * @throws SystemException if a system exception occurred
482            */
483            public com.liferay.portlet.messageboards.model.MBMessageFlag findByT_F_First(
484                    long threadId, int flag,
485                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
486                    throws com.liferay.portal.kernel.exception.SystemException,
487                            com.liferay.portlet.messageboards.NoSuchMessageFlagException;
488    
489            /**
490            * Finds the last message boards message flag in the ordered set where threadId = &#63; and flag = &#63;.
491            *
492            * <p>
493            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
494            * </p>
495            *
496            * @param threadId the thread id to search with
497            * @param flag the flag to search with
498            * @param orderByComparator the comparator to order the set by
499            * @return the last matching message boards message flag
500            * @throws com.liferay.portlet.messageboards.NoSuchMessageFlagException if a matching message boards message flag could not be found
501            * @throws SystemException if a system exception occurred
502            */
503            public com.liferay.portlet.messageboards.model.MBMessageFlag findByT_F_Last(
504                    long threadId, int flag,
505                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
506                    throws com.liferay.portal.kernel.exception.SystemException,
507                            com.liferay.portlet.messageboards.NoSuchMessageFlagException;
508    
509            /**
510            * Finds the message boards message flags before and after the current message boards message flag in the ordered set where threadId = &#63; and flag = &#63;.
511            *
512            * <p>
513            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
514            * </p>
515            *
516            * @param messageFlagId the primary key of the current message boards message flag
517            * @param threadId the thread id to search with
518            * @param flag the flag to search with
519            * @param orderByComparator the comparator to order the set by
520            * @return the previous, current, and next message boards message flag
521            * @throws com.liferay.portlet.messageboards.NoSuchMessageFlagException if a message boards message flag with the primary key could not be found
522            * @throws SystemException if a system exception occurred
523            */
524            public com.liferay.portlet.messageboards.model.MBMessageFlag[] findByT_F_PrevAndNext(
525                    long messageFlagId, long threadId, int flag,
526                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
527                    throws com.liferay.portal.kernel.exception.SystemException,
528                            com.liferay.portlet.messageboards.NoSuchMessageFlagException;
529    
530            /**
531            * Finds all the message boards message flags where messageId = &#63; and flag = &#63;.
532            *
533            * @param messageId the message id to search with
534            * @param flag the flag to search with
535            * @return the matching message boards message flags
536            * @throws SystemException if a system exception occurred
537            */
538            public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByM_F(
539                    long messageId, int flag)
540                    throws com.liferay.portal.kernel.exception.SystemException;
541    
542            /**
543            * Finds a range of all the message boards message flags where messageId = &#63; and flag = &#63;.
544            *
545            * <p>
546            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
547            * </p>
548            *
549            * @param messageId the message id to search with
550            * @param flag the flag to search with
551            * @param start the lower bound of the range of message boards message flags to return
552            * @param end the upper bound of the range of message boards message flags to return (not inclusive)
553            * @return the range of matching message boards message flags
554            * @throws SystemException if a system exception occurred
555            */
556            public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByM_F(
557                    long messageId, int flag, int start, int end)
558                    throws com.liferay.portal.kernel.exception.SystemException;
559    
560            /**
561            * Finds an ordered range of all the message boards message flags where messageId = &#63; and flag = &#63;.
562            *
563            * <p>
564            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
565            * </p>
566            *
567            * @param messageId the message id to search with
568            * @param flag the flag to search with
569            * @param start the lower bound of the range of message boards message flags to return
570            * @param end the upper bound of the range of message boards message flags to return (not inclusive)
571            * @param orderByComparator the comparator to order the results by
572            * @return the ordered range of matching message boards message flags
573            * @throws SystemException if a system exception occurred
574            */
575            public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByM_F(
576                    long messageId, int flag, int start, int end,
577                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
578                    throws com.liferay.portal.kernel.exception.SystemException;
579    
580            /**
581            * Finds the first message boards message flag in the ordered set where messageId = &#63; and flag = &#63;.
582            *
583            * <p>
584            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
585            * </p>
586            *
587            * @param messageId the message id to search with
588            * @param flag the flag to search with
589            * @param orderByComparator the comparator to order the set by
590            * @return the first matching message boards message flag
591            * @throws com.liferay.portlet.messageboards.NoSuchMessageFlagException if a matching message boards message flag could not be found
592            * @throws SystemException if a system exception occurred
593            */
594            public com.liferay.portlet.messageboards.model.MBMessageFlag findByM_F_First(
595                    long messageId, int flag,
596                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
597                    throws com.liferay.portal.kernel.exception.SystemException,
598                            com.liferay.portlet.messageboards.NoSuchMessageFlagException;
599    
600            /**
601            * Finds the last message boards message flag in the ordered set where messageId = &#63; and flag = &#63;.
602            *
603            * <p>
604            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
605            * </p>
606            *
607            * @param messageId the message id to search with
608            * @param flag the flag to search with
609            * @param orderByComparator the comparator to order the set by
610            * @return the last matching message boards message flag
611            * @throws com.liferay.portlet.messageboards.NoSuchMessageFlagException if a matching message boards message flag could not be found
612            * @throws SystemException if a system exception occurred
613            */
614            public com.liferay.portlet.messageboards.model.MBMessageFlag findByM_F_Last(
615                    long messageId, int flag,
616                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
617                    throws com.liferay.portal.kernel.exception.SystemException,
618                            com.liferay.portlet.messageboards.NoSuchMessageFlagException;
619    
620            /**
621            * Finds the message boards message flags before and after the current message boards message flag in the ordered set where messageId = &#63; and flag = &#63;.
622            *
623            * <p>
624            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
625            * </p>
626            *
627            * @param messageFlagId the primary key of the current message boards message flag
628            * @param messageId the message id to search with
629            * @param flag the flag to search with
630            * @param orderByComparator the comparator to order the set by
631            * @return the previous, current, and next message boards message flag
632            * @throws com.liferay.portlet.messageboards.NoSuchMessageFlagException if a message boards message flag with the primary key could not be found
633            * @throws SystemException if a system exception occurred
634            */
635            public com.liferay.portlet.messageboards.model.MBMessageFlag[] findByM_F_PrevAndNext(
636                    long messageFlagId, long messageId, int flag,
637                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
638                    throws com.liferay.portal.kernel.exception.SystemException,
639                            com.liferay.portlet.messageboards.NoSuchMessageFlagException;
640    
641            /**
642            * Finds all the message boards message flags where userId = &#63; and threadId = &#63; and flag = &#63;.
643            *
644            * @param userId the user id to search with
645            * @param threadId the thread id to search with
646            * @param flag the flag to search with
647            * @return the matching message boards message flags
648            * @throws SystemException if a system exception occurred
649            */
650            public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByU_T_F(
651                    long userId, long threadId, int flag)
652                    throws com.liferay.portal.kernel.exception.SystemException;
653    
654            /**
655            * Finds a range of all the message boards message flags where userId = &#63; and threadId = &#63; and flag = &#63;.
656            *
657            * <p>
658            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
659            * </p>
660            *
661            * @param userId the user id to search with
662            * @param threadId the thread id to search with
663            * @param flag the flag to search with
664            * @param start the lower bound of the range of message boards message flags to return
665            * @param end the upper bound of the range of message boards message flags to return (not inclusive)
666            * @return the range of matching message boards message flags
667            * @throws SystemException if a system exception occurred
668            */
669            public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByU_T_F(
670                    long userId, long threadId, int flag, int start, int end)
671                    throws com.liferay.portal.kernel.exception.SystemException;
672    
673            /**
674            * Finds an ordered range of all the message boards message flags where userId = &#63; and threadId = &#63; and flag = &#63;.
675            *
676            * <p>
677            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
678            * </p>
679            *
680            * @param userId the user id to search with
681            * @param threadId the thread id to search with
682            * @param flag the flag to search with
683            * @param start the lower bound of the range of message boards message flags to return
684            * @param end the upper bound of the range of message boards message flags to return (not inclusive)
685            * @param orderByComparator the comparator to order the results by
686            * @return the ordered range of matching message boards message flags
687            * @throws SystemException if a system exception occurred
688            */
689            public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByU_T_F(
690                    long userId, long threadId, int flag, int start, int end,
691                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
692                    throws com.liferay.portal.kernel.exception.SystemException;
693    
694            /**
695            * Finds the first message boards message flag in the ordered set where userId = &#63; and threadId = &#63; and flag = &#63;.
696            *
697            * <p>
698            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
699            * </p>
700            *
701            * @param userId the user id to search with
702            * @param threadId the thread id to search with
703            * @param flag the flag to search with
704            * @param orderByComparator the comparator to order the set by
705            * @return the first matching message boards message flag
706            * @throws com.liferay.portlet.messageboards.NoSuchMessageFlagException if a matching message boards message flag could not be found
707            * @throws SystemException if a system exception occurred
708            */
709            public com.liferay.portlet.messageboards.model.MBMessageFlag findByU_T_F_First(
710                    long userId, long threadId, int flag,
711                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
712                    throws com.liferay.portal.kernel.exception.SystemException,
713                            com.liferay.portlet.messageboards.NoSuchMessageFlagException;
714    
715            /**
716            * Finds the last message boards message flag in the ordered set where userId = &#63; and threadId = &#63; and flag = &#63;.
717            *
718            * <p>
719            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
720            * </p>
721            *
722            * @param userId the user id to search with
723            * @param threadId the thread id to search with
724            * @param flag the flag to search with
725            * @param orderByComparator the comparator to order the set by
726            * @return the last matching message boards message flag
727            * @throws com.liferay.portlet.messageboards.NoSuchMessageFlagException if a matching message boards message flag could not be found
728            * @throws SystemException if a system exception occurred
729            */
730            public com.liferay.portlet.messageboards.model.MBMessageFlag findByU_T_F_Last(
731                    long userId, long threadId, int flag,
732                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
733                    throws com.liferay.portal.kernel.exception.SystemException,
734                            com.liferay.portlet.messageboards.NoSuchMessageFlagException;
735    
736            /**
737            * Finds the message boards message flags before and after the current message boards message flag in the ordered set where userId = &#63; and threadId = &#63; and flag = &#63;.
738            *
739            * <p>
740            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
741            * </p>
742            *
743            * @param messageFlagId the primary key of the current message boards message flag
744            * @param userId the user id to search with
745            * @param threadId the thread id to search with
746            * @param flag the flag to search with
747            * @param orderByComparator the comparator to order the set by
748            * @return the previous, current, and next message boards message flag
749            * @throws com.liferay.portlet.messageboards.NoSuchMessageFlagException if a message boards message flag with the primary key could not be found
750            * @throws SystemException if a system exception occurred
751            */
752            public com.liferay.portlet.messageboards.model.MBMessageFlag[] findByU_T_F_PrevAndNext(
753                    long messageFlagId, long userId, long threadId, int flag,
754                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
755                    throws com.liferay.portal.kernel.exception.SystemException,
756                            com.liferay.portlet.messageboards.NoSuchMessageFlagException;
757    
758            /**
759            * Finds the message boards message flag where userId = &#63; and messageId = &#63; and flag = &#63; or throws a {@link com.liferay.portlet.messageboards.NoSuchMessageFlagException} if it could not be found.
760            *
761            * @param userId the user id to search with
762            * @param messageId the message id to search with
763            * @param flag the flag to search with
764            * @return the matching message boards message flag
765            * @throws com.liferay.portlet.messageboards.NoSuchMessageFlagException if a matching message boards message flag could not be found
766            * @throws SystemException if a system exception occurred
767            */
768            public com.liferay.portlet.messageboards.model.MBMessageFlag findByU_M_F(
769                    long userId, long messageId, int flag)
770                    throws com.liferay.portal.kernel.exception.SystemException,
771                            com.liferay.portlet.messageboards.NoSuchMessageFlagException;
772    
773            /**
774            * Finds the message boards message flag where userId = &#63; and messageId = &#63; and flag = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
775            *
776            * @param userId the user id to search with
777            * @param messageId the message id to search with
778            * @param flag the flag to search with
779            * @return the matching message boards message flag, or <code>null</code> if a matching message boards message flag could not be found
780            * @throws SystemException if a system exception occurred
781            */
782            public com.liferay.portlet.messageboards.model.MBMessageFlag fetchByU_M_F(
783                    long userId, long messageId, int flag)
784                    throws com.liferay.portal.kernel.exception.SystemException;
785    
786            /**
787            * Finds the message boards message flag where userId = &#63; and messageId = &#63; and flag = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
788            *
789            * @param userId the user id to search with
790            * @param messageId the message id to search with
791            * @param flag the flag to search with
792            * @return the matching message boards message flag, or <code>null</code> if a matching message boards message flag could not be found
793            * @throws SystemException if a system exception occurred
794            */
795            public com.liferay.portlet.messageboards.model.MBMessageFlag fetchByU_M_F(
796                    long userId, long messageId, int flag, boolean retrieveFromCache)
797                    throws com.liferay.portal.kernel.exception.SystemException;
798    
799            /**
800            * Finds all the message boards message flags.
801            *
802            * @return the message boards message flags
803            * @throws SystemException if a system exception occurred
804            */
805            public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findAll()
806                    throws com.liferay.portal.kernel.exception.SystemException;
807    
808            /**
809            * Finds a range of all the message boards message flags.
810            *
811            * <p>
812            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
813            * </p>
814            *
815            * @param start the lower bound of the range of message boards message flags to return
816            * @param end the upper bound of the range of message boards message flags to return (not inclusive)
817            * @return the range of message boards message flags
818            * @throws SystemException if a system exception occurred
819            */
820            public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findAll(
821                    int start, int end)
822                    throws com.liferay.portal.kernel.exception.SystemException;
823    
824            /**
825            * Finds an ordered range of all the message boards message flags.
826            *
827            * <p>
828            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
829            * </p>
830            *
831            * @param start the lower bound of the range of message boards message flags to return
832            * @param end the upper bound of the range of message boards message flags to return (not inclusive)
833            * @param orderByComparator the comparator to order the results by
834            * @return the ordered range of message boards message flags
835            * @throws SystemException if a system exception occurred
836            */
837            public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findAll(
838                    int start, int end,
839                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
840                    throws com.liferay.portal.kernel.exception.SystemException;
841    
842            /**
843            * Removes all the message boards message flags where userId = &#63; from the database.
844            *
845            * @param userId the user id to search with
846            * @throws SystemException if a system exception occurred
847            */
848            public void removeByUserId(long userId)
849                    throws com.liferay.portal.kernel.exception.SystemException;
850    
851            /**
852            * Removes all the message boards message flags where threadId = &#63; from the database.
853            *
854            * @param threadId the thread id to search with
855            * @throws SystemException if a system exception occurred
856            */
857            public void removeByThreadId(long threadId)
858                    throws com.liferay.portal.kernel.exception.SystemException;
859    
860            /**
861            * Removes all the message boards message flags where messageId = &#63; from the database.
862            *
863            * @param messageId the message id to search with
864            * @throws SystemException if a system exception occurred
865            */
866            public void removeByMessageId(long messageId)
867                    throws com.liferay.portal.kernel.exception.SystemException;
868    
869            /**
870            * Removes all the message boards message flags where threadId = &#63; and flag = &#63; from the database.
871            *
872            * @param threadId the thread id to search with
873            * @param flag the flag to search with
874            * @throws SystemException if a system exception occurred
875            */
876            public void removeByT_F(long threadId, int flag)
877                    throws com.liferay.portal.kernel.exception.SystemException;
878    
879            /**
880            * Removes all the message boards message flags where messageId = &#63; and flag = &#63; from the database.
881            *
882            * @param messageId the message id to search with
883            * @param flag the flag to search with
884            * @throws SystemException if a system exception occurred
885            */
886            public void removeByM_F(long messageId, int flag)
887                    throws com.liferay.portal.kernel.exception.SystemException;
888    
889            /**
890            * Removes all the message boards message flags where userId = &#63; and threadId = &#63; and flag = &#63; from the database.
891            *
892            * @param userId the user id to search with
893            * @param threadId the thread id to search with
894            * @param flag the flag to search with
895            * @throws SystemException if a system exception occurred
896            */
897            public void removeByU_T_F(long userId, long threadId, int flag)
898                    throws com.liferay.portal.kernel.exception.SystemException;
899    
900            /**
901            * Removes the message boards message flag where userId = &#63; and messageId = &#63; and flag = &#63; from the database.
902            *
903            * @param userId the user id to search with
904            * @param messageId the message id to search with
905            * @param flag the flag to search with
906            * @throws SystemException if a system exception occurred
907            */
908            public void removeByU_M_F(long userId, long messageId, int flag)
909                    throws com.liferay.portal.kernel.exception.SystemException,
910                            com.liferay.portlet.messageboards.NoSuchMessageFlagException;
911    
912            /**
913            * Removes all the message boards message flags from the database.
914            *
915            * @throws SystemException if a system exception occurred
916            */
917            public void removeAll()
918                    throws com.liferay.portal.kernel.exception.SystemException;
919    
920            /**
921            * Counts all the message boards message flags where userId = &#63;.
922            *
923            * @param userId the user id to search with
924            * @return the number of matching message boards message flags
925            * @throws SystemException if a system exception occurred
926            */
927            public int countByUserId(long userId)
928                    throws com.liferay.portal.kernel.exception.SystemException;
929    
930            /**
931            * Counts all the message boards message flags where threadId = &#63;.
932            *
933            * @param threadId the thread id to search with
934            * @return the number of matching message boards message flags
935            * @throws SystemException if a system exception occurred
936            */
937            public int countByThreadId(long threadId)
938                    throws com.liferay.portal.kernel.exception.SystemException;
939    
940            /**
941            * Counts all the message boards message flags where messageId = &#63;.
942            *
943            * @param messageId the message id to search with
944            * @return the number of matching message boards message flags
945            * @throws SystemException if a system exception occurred
946            */
947            public int countByMessageId(long messageId)
948                    throws com.liferay.portal.kernel.exception.SystemException;
949    
950            /**
951            * Counts all the message boards message flags where threadId = &#63; and flag = &#63;.
952            *
953            * @param threadId the thread id to search with
954            * @param flag the flag to search with
955            * @return the number of matching message boards message flags
956            * @throws SystemException if a system exception occurred
957            */
958            public int countByT_F(long threadId, int flag)
959                    throws com.liferay.portal.kernel.exception.SystemException;
960    
961            /**
962            * Counts all the message boards message flags where messageId = &#63; and flag = &#63;.
963            *
964            * @param messageId the message id to search with
965            * @param flag the flag to search with
966            * @return the number of matching message boards message flags
967            * @throws SystemException if a system exception occurred
968            */
969            public int countByM_F(long messageId, int flag)
970                    throws com.liferay.portal.kernel.exception.SystemException;
971    
972            /**
973            * Counts all the message boards message flags where userId = &#63; and threadId = &#63; and flag = &#63;.
974            *
975            * @param userId the user id to search with
976            * @param threadId the thread id to search with
977            * @param flag the flag to search with
978            * @return the number of matching message boards message flags
979            * @throws SystemException if a system exception occurred
980            */
981            public int countByU_T_F(long userId, long threadId, int flag)
982                    throws com.liferay.portal.kernel.exception.SystemException;
983    
984            /**
985            * Counts all the message boards message flags where userId = &#63; and messageId = &#63; and flag = &#63;.
986            *
987            * @param userId the user id to search with
988            * @param messageId the message id to search with
989            * @param flag the flag to search with
990            * @return the number of matching message boards message flags
991            * @throws SystemException if a system exception occurred
992            */
993            public int countByU_M_F(long userId, long messageId, int flag)
994                    throws com.liferay.portal.kernel.exception.SystemException;
995    
996            /**
997            * Counts all the message boards message flags.
998            *
999            * @return the number of message boards message flags
1000            * @throws SystemException if a system exception occurred
1001            */
1002            public int countAll()
1003                    throws com.liferay.portal.kernel.exception.SystemException;
1004    }