001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.messageboards.service.persistence;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.service.persistence.BasePersistence;
020    
021    import com.liferay.portlet.messageboards.model.MBMailingList;
022    
023    /**
024     * The persistence interface for the message boards mailing list service.
025     *
026     * <p>
027     * Caching information and settings can be found in <code>portal.properties</code>
028     * </p>
029     *
030     * @author Brian Wing Shun Chan
031     * @see com.liferay.portlet.messageboards.service.persistence.impl.MBMailingListPersistenceImpl
032     * @see MBMailingListUtil
033     * @generated
034     */
035    @ProviderType
036    public interface MBMailingListPersistence extends BasePersistence<MBMailingList> {
037            /*
038             * NOTE FOR DEVELOPERS:
039             *
040             * Never modify or reference this interface directly. Always use {@link MBMailingListUtil} to access the message boards mailing list persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
041             */
042    
043            /**
044            * Returns all the message boards mailing lists where uuid = &#63;.
045            *
046            * @param uuid the uuid
047            * @return the matching message boards mailing lists
048            */
049            public java.util.List<MBMailingList> findByUuid(java.lang.String uuid);
050    
051            /**
052            * Returns a range of all the message boards mailing lists 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMailingListModelImpl}. 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 mailing lists
060            * @param end the upper bound of the range of message boards mailing lists (not inclusive)
061            * @return the range of matching message boards mailing lists
062            */
063            public java.util.List<MBMailingList> findByUuid(java.lang.String uuid,
064                    int start, int end);
065    
066            /**
067            * Returns an ordered range of all the message boards mailing lists where uuid = &#63;.
068            *
069            * <p>
070            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMailingListModelImpl}. 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.
071            * </p>
072            *
073            * @param uuid the uuid
074            * @param start the lower bound of the range of message boards mailing lists
075            * @param end the upper bound of the range of message boards mailing lists (not inclusive)
076            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
077            * @return the ordered range of matching message boards mailing lists
078            */
079            public java.util.List<MBMailingList> findByUuid(java.lang.String uuid,
080                    int start, int end,
081                    com.liferay.portal.kernel.util.OrderByComparator<MBMailingList> orderByComparator);
082    
083            /**
084            * Returns an ordered range of all the message boards mailing lists where uuid = &#63;.
085            *
086            * <p>
087            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMailingListModelImpl}. 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.
088            * </p>
089            *
090            * @param uuid the uuid
091            * @param start the lower bound of the range of message boards mailing lists
092            * @param end the upper bound of the range of message boards mailing lists (not inclusive)
093            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
094            * @param retrieveFromCache whether to retrieve from the finder cache
095            * @return the ordered range of matching message boards mailing lists
096            */
097            public java.util.List<MBMailingList> findByUuid(java.lang.String uuid,
098                    int start, int end,
099                    com.liferay.portal.kernel.util.OrderByComparator<MBMailingList> orderByComparator,
100                    boolean retrieveFromCache);
101    
102            /**
103            * Returns the first message boards mailing list 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 mailing list
108            * @throws NoSuchMailingListException if a matching message boards mailing list could not be found
109            */
110            public MBMailingList findByUuid_First(java.lang.String uuid,
111                    com.liferay.portal.kernel.util.OrderByComparator<MBMailingList> orderByComparator)
112                    throws com.liferay.portlet.messageboards.exception.NoSuchMailingListException;
113    
114            /**
115            * Returns the first message boards mailing list in the ordered set where uuid = &#63;.
116            *
117            * @param uuid the uuid
118            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
119            * @return the first matching message boards mailing list, or <code>null</code> if a matching message boards mailing list could not be found
120            */
121            public MBMailingList fetchByUuid_First(java.lang.String uuid,
122                    com.liferay.portal.kernel.util.OrderByComparator<MBMailingList> orderByComparator);
123    
124            /**
125            * Returns the last message boards mailing list in the ordered set where uuid = &#63;.
126            *
127            * @param uuid the uuid
128            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
129            * @return the last matching message boards mailing list
130            * @throws NoSuchMailingListException if a matching message boards mailing list could not be found
131            */
132            public MBMailingList findByUuid_Last(java.lang.String uuid,
133                    com.liferay.portal.kernel.util.OrderByComparator<MBMailingList> orderByComparator)
134                    throws com.liferay.portlet.messageboards.exception.NoSuchMailingListException;
135    
136            /**
137            * Returns the last message boards mailing list in the ordered set where uuid = &#63;.
138            *
139            * @param uuid the uuid
140            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
141            * @return the last matching message boards mailing list, or <code>null</code> if a matching message boards mailing list could not be found
142            */
143            public MBMailingList fetchByUuid_Last(java.lang.String uuid,
144                    com.liferay.portal.kernel.util.OrderByComparator<MBMailingList> orderByComparator);
145    
146            /**
147            * Returns the message boards mailing lists before and after the current message boards mailing list in the ordered set where uuid = &#63;.
148            *
149            * @param mailingListId the primary key of the current message boards mailing list
150            * @param uuid the uuid
151            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
152            * @return the previous, current, and next message boards mailing list
153            * @throws NoSuchMailingListException if a message boards mailing list with the primary key could not be found
154            */
155            public MBMailingList[] findByUuid_PrevAndNext(long mailingListId,
156                    java.lang.String uuid,
157                    com.liferay.portal.kernel.util.OrderByComparator<MBMailingList> orderByComparator)
158                    throws com.liferay.portlet.messageboards.exception.NoSuchMailingListException;
159    
160            /**
161            * Removes all the message boards mailing lists where uuid = &#63; from the database.
162            *
163            * @param uuid the uuid
164            */
165            public void removeByUuid(java.lang.String uuid);
166    
167            /**
168            * Returns the number of message boards mailing lists where uuid = &#63;.
169            *
170            * @param uuid the uuid
171            * @return the number of matching message boards mailing lists
172            */
173            public int countByUuid(java.lang.String uuid);
174    
175            /**
176            * Returns the message boards mailing list where uuid = &#63; and groupId = &#63; or throws a {@link NoSuchMailingListException} if it could not be found.
177            *
178            * @param uuid the uuid
179            * @param groupId the group ID
180            * @return the matching message boards mailing list
181            * @throws NoSuchMailingListException if a matching message boards mailing list could not be found
182            */
183            public MBMailingList findByUUID_G(java.lang.String uuid, long groupId)
184                    throws com.liferay.portlet.messageboards.exception.NoSuchMailingListException;
185    
186            /**
187            * Returns the message boards mailing list where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
188            *
189            * @param uuid the uuid
190            * @param groupId the group ID
191            * @return the matching message boards mailing list, or <code>null</code> if a matching message boards mailing list could not be found
192            */
193            public MBMailingList fetchByUUID_G(java.lang.String uuid, long groupId);
194    
195            /**
196            * Returns the message boards mailing list where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
197            *
198            * @param uuid the uuid
199            * @param groupId the group ID
200            * @param retrieveFromCache whether to retrieve from the finder cache
201            * @return the matching message boards mailing list, or <code>null</code> if a matching message boards mailing list could not be found
202            */
203            public MBMailingList fetchByUUID_G(java.lang.String uuid, long groupId,
204                    boolean retrieveFromCache);
205    
206            /**
207            * Removes the message boards mailing list where uuid = &#63; and groupId = &#63; from the database.
208            *
209            * @param uuid the uuid
210            * @param groupId the group ID
211            * @return the message boards mailing list that was removed
212            */
213            public MBMailingList removeByUUID_G(java.lang.String uuid, long groupId)
214                    throws com.liferay.portlet.messageboards.exception.NoSuchMailingListException;
215    
216            /**
217            * Returns the number of message boards mailing lists where uuid = &#63; and groupId = &#63;.
218            *
219            * @param uuid the uuid
220            * @param groupId the group ID
221            * @return the number of matching message boards mailing lists
222            */
223            public int countByUUID_G(java.lang.String uuid, long groupId);
224    
225            /**
226            * Returns all the message boards mailing lists where uuid = &#63; and companyId = &#63;.
227            *
228            * @param uuid the uuid
229            * @param companyId the company ID
230            * @return the matching message boards mailing lists
231            */
232            public java.util.List<MBMailingList> findByUuid_C(java.lang.String uuid,
233                    long companyId);
234    
235            /**
236            * Returns a range of all the message boards mailing lists where uuid = &#63; and companyId = &#63;.
237            *
238            * <p>
239            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMailingListModelImpl}. 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.
240            * </p>
241            *
242            * @param uuid the uuid
243            * @param companyId the company ID
244            * @param start the lower bound of the range of message boards mailing lists
245            * @param end the upper bound of the range of message boards mailing lists (not inclusive)
246            * @return the range of matching message boards mailing lists
247            */
248            public java.util.List<MBMailingList> findByUuid_C(java.lang.String uuid,
249                    long companyId, int start, int end);
250    
251            /**
252            * Returns an ordered range of all the message boards mailing lists where uuid = &#63; and companyId = &#63;.
253            *
254            * <p>
255            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMailingListModelImpl}. 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.
256            * </p>
257            *
258            * @param uuid the uuid
259            * @param companyId the company ID
260            * @param start the lower bound of the range of message boards mailing lists
261            * @param end the upper bound of the range of message boards mailing lists (not inclusive)
262            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
263            * @return the ordered range of matching message boards mailing lists
264            */
265            public java.util.List<MBMailingList> findByUuid_C(java.lang.String uuid,
266                    long companyId, int start, int end,
267                    com.liferay.portal.kernel.util.OrderByComparator<MBMailingList> orderByComparator);
268    
269            /**
270            * Returns an ordered range of all the message boards mailing lists where uuid = &#63; and companyId = &#63;.
271            *
272            * <p>
273            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMailingListModelImpl}. 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.
274            * </p>
275            *
276            * @param uuid the uuid
277            * @param companyId the company ID
278            * @param start the lower bound of the range of message boards mailing lists
279            * @param end the upper bound of the range of message boards mailing lists (not inclusive)
280            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
281            * @param retrieveFromCache whether to retrieve from the finder cache
282            * @return the ordered range of matching message boards mailing lists
283            */
284            public java.util.List<MBMailingList> findByUuid_C(java.lang.String uuid,
285                    long companyId, int start, int end,
286                    com.liferay.portal.kernel.util.OrderByComparator<MBMailingList> orderByComparator,
287                    boolean retrieveFromCache);
288    
289            /**
290            * Returns the first message boards mailing list in the ordered set where uuid = &#63; and companyId = &#63;.
291            *
292            * @param uuid the uuid
293            * @param companyId the company ID
294            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
295            * @return the first matching message boards mailing list
296            * @throws NoSuchMailingListException if a matching message boards mailing list could not be found
297            */
298            public MBMailingList findByUuid_C_First(java.lang.String uuid,
299                    long companyId,
300                    com.liferay.portal.kernel.util.OrderByComparator<MBMailingList> orderByComparator)
301                    throws com.liferay.portlet.messageboards.exception.NoSuchMailingListException;
302    
303            /**
304            * Returns the first message boards mailing list in the ordered set where uuid = &#63; and companyId = &#63;.
305            *
306            * @param uuid the uuid
307            * @param companyId the company ID
308            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
309            * @return the first matching message boards mailing list, or <code>null</code> if a matching message boards mailing list could not be found
310            */
311            public MBMailingList fetchByUuid_C_First(java.lang.String uuid,
312                    long companyId,
313                    com.liferay.portal.kernel.util.OrderByComparator<MBMailingList> orderByComparator);
314    
315            /**
316            * Returns the last message boards mailing list in the ordered set where uuid = &#63; and companyId = &#63;.
317            *
318            * @param uuid the uuid
319            * @param companyId the company ID
320            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
321            * @return the last matching message boards mailing list
322            * @throws NoSuchMailingListException if a matching message boards mailing list could not be found
323            */
324            public MBMailingList findByUuid_C_Last(java.lang.String uuid,
325                    long companyId,
326                    com.liferay.portal.kernel.util.OrderByComparator<MBMailingList> orderByComparator)
327                    throws com.liferay.portlet.messageboards.exception.NoSuchMailingListException;
328    
329            /**
330            * Returns the last message boards mailing list in the ordered set where uuid = &#63; and companyId = &#63;.
331            *
332            * @param uuid the uuid
333            * @param companyId the company ID
334            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
335            * @return the last matching message boards mailing list, or <code>null</code> if a matching message boards mailing list could not be found
336            */
337            public MBMailingList fetchByUuid_C_Last(java.lang.String uuid,
338                    long companyId,
339                    com.liferay.portal.kernel.util.OrderByComparator<MBMailingList> orderByComparator);
340    
341            /**
342            * Returns the message boards mailing lists before and after the current message boards mailing list in the ordered set where uuid = &#63; and companyId = &#63;.
343            *
344            * @param mailingListId the primary key of the current message boards mailing list
345            * @param uuid the uuid
346            * @param companyId the company ID
347            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
348            * @return the previous, current, and next message boards mailing list
349            * @throws NoSuchMailingListException if a message boards mailing list with the primary key could not be found
350            */
351            public MBMailingList[] findByUuid_C_PrevAndNext(long mailingListId,
352                    java.lang.String uuid, long companyId,
353                    com.liferay.portal.kernel.util.OrderByComparator<MBMailingList> orderByComparator)
354                    throws com.liferay.portlet.messageboards.exception.NoSuchMailingListException;
355    
356            /**
357            * Removes all the message boards mailing lists where uuid = &#63; and companyId = &#63; from the database.
358            *
359            * @param uuid the uuid
360            * @param companyId the company ID
361            */
362            public void removeByUuid_C(java.lang.String uuid, long companyId);
363    
364            /**
365            * Returns the number of message boards mailing lists where uuid = &#63; and companyId = &#63;.
366            *
367            * @param uuid the uuid
368            * @param companyId the company ID
369            * @return the number of matching message boards mailing lists
370            */
371            public int countByUuid_C(java.lang.String uuid, long companyId);
372    
373            /**
374            * Returns all the message boards mailing lists where active = &#63;.
375            *
376            * @param active the active
377            * @return the matching message boards mailing lists
378            */
379            public java.util.List<MBMailingList> findByActive(boolean active);
380    
381            /**
382            * Returns a range of all the message boards mailing lists where active = &#63;.
383            *
384            * <p>
385            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMailingListModelImpl}. 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.
386            * </p>
387            *
388            * @param active the active
389            * @param start the lower bound of the range of message boards mailing lists
390            * @param end the upper bound of the range of message boards mailing lists (not inclusive)
391            * @return the range of matching message boards mailing lists
392            */
393            public java.util.List<MBMailingList> findByActive(boolean active,
394                    int start, int end);
395    
396            /**
397            * Returns an ordered range of all the message boards mailing lists where active = &#63;.
398            *
399            * <p>
400            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMailingListModelImpl}. 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.
401            * </p>
402            *
403            * @param active the active
404            * @param start the lower bound of the range of message boards mailing lists
405            * @param end the upper bound of the range of message boards mailing lists (not inclusive)
406            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
407            * @return the ordered range of matching message boards mailing lists
408            */
409            public java.util.List<MBMailingList> findByActive(boolean active,
410                    int start, int end,
411                    com.liferay.portal.kernel.util.OrderByComparator<MBMailingList> orderByComparator);
412    
413            /**
414            * Returns an ordered range of all the message boards mailing lists where active = &#63;.
415            *
416            * <p>
417            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMailingListModelImpl}. 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.
418            * </p>
419            *
420            * @param active the active
421            * @param start the lower bound of the range of message boards mailing lists
422            * @param end the upper bound of the range of message boards mailing lists (not inclusive)
423            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
424            * @param retrieveFromCache whether to retrieve from the finder cache
425            * @return the ordered range of matching message boards mailing lists
426            */
427            public java.util.List<MBMailingList> findByActive(boolean active,
428                    int start, int end,
429                    com.liferay.portal.kernel.util.OrderByComparator<MBMailingList> orderByComparator,
430                    boolean retrieveFromCache);
431    
432            /**
433            * Returns the first message boards mailing list in the ordered set where active = &#63;.
434            *
435            * @param active the active
436            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
437            * @return the first matching message boards mailing list
438            * @throws NoSuchMailingListException if a matching message boards mailing list could not be found
439            */
440            public MBMailingList findByActive_First(boolean active,
441                    com.liferay.portal.kernel.util.OrderByComparator<MBMailingList> orderByComparator)
442                    throws com.liferay.portlet.messageboards.exception.NoSuchMailingListException;
443    
444            /**
445            * Returns the first message boards mailing list in the ordered set where active = &#63;.
446            *
447            * @param active the active
448            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
449            * @return the first matching message boards mailing list, or <code>null</code> if a matching message boards mailing list could not be found
450            */
451            public MBMailingList fetchByActive_First(boolean active,
452                    com.liferay.portal.kernel.util.OrderByComparator<MBMailingList> orderByComparator);
453    
454            /**
455            * Returns the last message boards mailing list in the ordered set where active = &#63;.
456            *
457            * @param active the active
458            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
459            * @return the last matching message boards mailing list
460            * @throws NoSuchMailingListException if a matching message boards mailing list could not be found
461            */
462            public MBMailingList findByActive_Last(boolean active,
463                    com.liferay.portal.kernel.util.OrderByComparator<MBMailingList> orderByComparator)
464                    throws com.liferay.portlet.messageboards.exception.NoSuchMailingListException;
465    
466            /**
467            * Returns the last message boards mailing list in the ordered set where active = &#63;.
468            *
469            * @param active the active
470            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
471            * @return the last matching message boards mailing list, or <code>null</code> if a matching message boards mailing list could not be found
472            */
473            public MBMailingList fetchByActive_Last(boolean active,
474                    com.liferay.portal.kernel.util.OrderByComparator<MBMailingList> orderByComparator);
475    
476            /**
477            * Returns the message boards mailing lists before and after the current message boards mailing list in the ordered set where active = &#63;.
478            *
479            * @param mailingListId the primary key of the current message boards mailing list
480            * @param active the active
481            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
482            * @return the previous, current, and next message boards mailing list
483            * @throws NoSuchMailingListException if a message boards mailing list with the primary key could not be found
484            */
485            public MBMailingList[] findByActive_PrevAndNext(long mailingListId,
486                    boolean active,
487                    com.liferay.portal.kernel.util.OrderByComparator<MBMailingList> orderByComparator)
488                    throws com.liferay.portlet.messageboards.exception.NoSuchMailingListException;
489    
490            /**
491            * Removes all the message boards mailing lists where active = &#63; from the database.
492            *
493            * @param active the active
494            */
495            public void removeByActive(boolean active);
496    
497            /**
498            * Returns the number of message boards mailing lists where active = &#63;.
499            *
500            * @param active the active
501            * @return the number of matching message boards mailing lists
502            */
503            public int countByActive(boolean active);
504    
505            /**
506            * Returns the message boards mailing list where groupId = &#63; and categoryId = &#63; or throws a {@link NoSuchMailingListException} if it could not be found.
507            *
508            * @param groupId the group ID
509            * @param categoryId the category ID
510            * @return the matching message boards mailing list
511            * @throws NoSuchMailingListException if a matching message boards mailing list could not be found
512            */
513            public MBMailingList findByG_C(long groupId, long categoryId)
514                    throws com.liferay.portlet.messageboards.exception.NoSuchMailingListException;
515    
516            /**
517            * Returns the message boards mailing list where groupId = &#63; and categoryId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
518            *
519            * @param groupId the group ID
520            * @param categoryId the category ID
521            * @return the matching message boards mailing list, or <code>null</code> if a matching message boards mailing list could not be found
522            */
523            public MBMailingList fetchByG_C(long groupId, long categoryId);
524    
525            /**
526            * Returns the message boards mailing list where groupId = &#63; and categoryId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
527            *
528            * @param groupId the group ID
529            * @param categoryId the category ID
530            * @param retrieveFromCache whether to retrieve from the finder cache
531            * @return the matching message boards mailing list, or <code>null</code> if a matching message boards mailing list could not be found
532            */
533            public MBMailingList fetchByG_C(long groupId, long categoryId,
534                    boolean retrieveFromCache);
535    
536            /**
537            * Removes the message boards mailing list where groupId = &#63; and categoryId = &#63; from the database.
538            *
539            * @param groupId the group ID
540            * @param categoryId the category ID
541            * @return the message boards mailing list that was removed
542            */
543            public MBMailingList removeByG_C(long groupId, long categoryId)
544                    throws com.liferay.portlet.messageboards.exception.NoSuchMailingListException;
545    
546            /**
547            * Returns the number of message boards mailing lists where groupId = &#63; and categoryId = &#63;.
548            *
549            * @param groupId the group ID
550            * @param categoryId the category ID
551            * @return the number of matching message boards mailing lists
552            */
553            public int countByG_C(long groupId, long categoryId);
554    
555            /**
556            * Caches the message boards mailing list in the entity cache if it is enabled.
557            *
558            * @param mbMailingList the message boards mailing list
559            */
560            public void cacheResult(MBMailingList mbMailingList);
561    
562            /**
563            * Caches the message boards mailing lists in the entity cache if it is enabled.
564            *
565            * @param mbMailingLists the message boards mailing lists
566            */
567            public void cacheResult(java.util.List<MBMailingList> mbMailingLists);
568    
569            /**
570            * Creates a new message boards mailing list with the primary key. Does not add the message boards mailing list to the database.
571            *
572            * @param mailingListId the primary key for the new message boards mailing list
573            * @return the new message boards mailing list
574            */
575            public MBMailingList create(long mailingListId);
576    
577            /**
578            * Removes the message boards mailing list with the primary key from the database. Also notifies the appropriate model listeners.
579            *
580            * @param mailingListId the primary key of the message boards mailing list
581            * @return the message boards mailing list that was removed
582            * @throws NoSuchMailingListException if a message boards mailing list with the primary key could not be found
583            */
584            public MBMailingList remove(long mailingListId)
585                    throws com.liferay.portlet.messageboards.exception.NoSuchMailingListException;
586    
587            public MBMailingList updateImpl(MBMailingList mbMailingList);
588    
589            /**
590            * Returns the message boards mailing list with the primary key or throws a {@link NoSuchMailingListException} if it could not be found.
591            *
592            * @param mailingListId the primary key of the message boards mailing list
593            * @return the message boards mailing list
594            * @throws NoSuchMailingListException if a message boards mailing list with the primary key could not be found
595            */
596            public MBMailingList findByPrimaryKey(long mailingListId)
597                    throws com.liferay.portlet.messageboards.exception.NoSuchMailingListException;
598    
599            /**
600            * Returns the message boards mailing list with the primary key or returns <code>null</code> if it could not be found.
601            *
602            * @param mailingListId the primary key of the message boards mailing list
603            * @return the message boards mailing list, or <code>null</code> if a message boards mailing list with the primary key could not be found
604            */
605            public MBMailingList fetchByPrimaryKey(long mailingListId);
606    
607            @Override
608            public java.util.Map<java.io.Serializable, MBMailingList> fetchByPrimaryKeys(
609                    java.util.Set<java.io.Serializable> primaryKeys);
610    
611            /**
612            * Returns all the message boards mailing lists.
613            *
614            * @return the message boards mailing lists
615            */
616            public java.util.List<MBMailingList> findAll();
617    
618            /**
619            * Returns a range of all the message boards mailing lists.
620            *
621            * <p>
622            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMailingListModelImpl}. 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.
623            * </p>
624            *
625            * @param start the lower bound of the range of message boards mailing lists
626            * @param end the upper bound of the range of message boards mailing lists (not inclusive)
627            * @return the range of message boards mailing lists
628            */
629            public java.util.List<MBMailingList> findAll(int start, int end);
630    
631            /**
632            * Returns an ordered range of all the message boards mailing lists.
633            *
634            * <p>
635            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMailingListModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
636            * </p>
637            *
638            * @param start the lower bound of the range of message boards mailing lists
639            * @param end the upper bound of the range of message boards mailing lists (not inclusive)
640            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
641            * @return the ordered range of message boards mailing lists
642            */
643            public java.util.List<MBMailingList> findAll(int start, int end,
644                    com.liferay.portal.kernel.util.OrderByComparator<MBMailingList> orderByComparator);
645    
646            /**
647            * Returns an ordered range of all the message boards mailing lists.
648            *
649            * <p>
650            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MBMailingListModelImpl}. 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.
651            * </p>
652            *
653            * @param start the lower bound of the range of message boards mailing lists
654            * @param end the upper bound of the range of message boards mailing lists (not inclusive)
655            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
656            * @param retrieveFromCache whether to retrieve from the finder cache
657            * @return the ordered range of message boards mailing lists
658            */
659            public java.util.List<MBMailingList> findAll(int start, int end,
660                    com.liferay.portal.kernel.util.OrderByComparator<MBMailingList> orderByComparator,
661                    boolean retrieveFromCache);
662    
663            /**
664            * Removes all the message boards mailing lists from the database.
665            */
666            public void removeAll();
667    
668            /**
669            * Returns the number of message boards mailing lists.
670            *
671            * @return the number of message boards mailing lists
672            */
673            public int countAll();
674    
675            @Override
676            public java.util.Set<java.lang.String> getBadColumnNames();
677    }