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