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 the first message boards mailing list in the ordered set where uuid = &#63;.
085            *
086            * @param uuid the uuid
087            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
088            * @return the first matching message boards mailing list
089            * @throws NoSuchMailingListException if a matching message boards mailing list could not be found
090            */
091            public MBMailingList findByUuid_First(java.lang.String uuid,
092                    com.liferay.portal.kernel.util.OrderByComparator<MBMailingList> orderByComparator)
093                    throws com.liferay.portlet.messageboards.NoSuchMailingListException;
094    
095            /**
096            * Returns the first message boards mailing list in the ordered set where uuid = &#63;.
097            *
098            * @param uuid the uuid
099            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
100            * @return the first matching message boards mailing list, or <code>null</code> if a matching message boards mailing list could not be found
101            */
102            public MBMailingList fetchByUuid_First(java.lang.String uuid,
103                    com.liferay.portal.kernel.util.OrderByComparator<MBMailingList> orderByComparator);
104    
105            /**
106            * Returns the last message boards mailing list in the ordered set where uuid = &#63;.
107            *
108            * @param uuid the uuid
109            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
110            * @return the last matching message boards mailing list
111            * @throws NoSuchMailingListException if a matching message boards mailing list could not be found
112            */
113            public MBMailingList findByUuid_Last(java.lang.String uuid,
114                    com.liferay.portal.kernel.util.OrderByComparator<MBMailingList> orderByComparator)
115                    throws com.liferay.portlet.messageboards.NoSuchMailingListException;
116    
117            /**
118            * Returns the last message boards mailing list in the ordered set where uuid = &#63;.
119            *
120            * @param uuid the uuid
121            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
122            * @return the last matching message boards mailing list, or <code>null</code> if a matching message boards mailing list could not be found
123            */
124            public MBMailingList fetchByUuid_Last(java.lang.String uuid,
125                    com.liferay.portal.kernel.util.OrderByComparator<MBMailingList> orderByComparator);
126    
127            /**
128            * Returns the message boards mailing lists before and after the current message boards mailing list in the ordered set where uuid = &#63;.
129            *
130            * @param mailingListId the primary key of the current message boards mailing list
131            * @param uuid the uuid
132            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
133            * @return the previous, current, and next message boards mailing list
134            * @throws NoSuchMailingListException if a message boards mailing list with the primary key could not be found
135            */
136            public MBMailingList[] findByUuid_PrevAndNext(long mailingListId,
137                    java.lang.String uuid,
138                    com.liferay.portal.kernel.util.OrderByComparator<MBMailingList> orderByComparator)
139                    throws com.liferay.portlet.messageboards.NoSuchMailingListException;
140    
141            /**
142            * Removes all the message boards mailing lists where uuid = &#63; from the database.
143            *
144            * @param uuid the uuid
145            */
146            public void removeByUuid(java.lang.String uuid);
147    
148            /**
149            * Returns the number of message boards mailing lists where uuid = &#63;.
150            *
151            * @param uuid the uuid
152            * @return the number of matching message boards mailing lists
153            */
154            public int countByUuid(java.lang.String uuid);
155    
156            /**
157            * Returns the message boards mailing list where uuid = &#63; and groupId = &#63; or throws a {@link NoSuchMailingListException} if it could not be found.
158            *
159            * @param uuid the uuid
160            * @param groupId the group ID
161            * @return the matching message boards mailing list
162            * @throws NoSuchMailingListException if a matching message boards mailing list could not be found
163            */
164            public MBMailingList findByUUID_G(java.lang.String uuid, long groupId)
165                    throws com.liferay.portlet.messageboards.NoSuchMailingListException;
166    
167            /**
168            * 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.
169            *
170            * @param uuid the uuid
171            * @param groupId the group ID
172            * @return the matching message boards mailing list, or <code>null</code> if a matching message boards mailing list could not be found
173            */
174            public MBMailingList fetchByUUID_G(java.lang.String uuid, long groupId);
175    
176            /**
177            * 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.
178            *
179            * @param uuid the uuid
180            * @param groupId the group ID
181            * @param retrieveFromCache whether to use the finder cache
182            * @return the matching message boards mailing list, or <code>null</code> if a matching message boards mailing list could not be found
183            */
184            public MBMailingList fetchByUUID_G(java.lang.String uuid, long groupId,
185                    boolean retrieveFromCache);
186    
187            /**
188            * Removes the message boards mailing list where uuid = &#63; and groupId = &#63; from the database.
189            *
190            * @param uuid the uuid
191            * @param groupId the group ID
192            * @return the message boards mailing list that was removed
193            */
194            public MBMailingList removeByUUID_G(java.lang.String uuid, long groupId)
195                    throws com.liferay.portlet.messageboards.NoSuchMailingListException;
196    
197            /**
198            * Returns the number of message boards mailing lists where uuid = &#63; and groupId = &#63;.
199            *
200            * @param uuid the uuid
201            * @param groupId the group ID
202            * @return the number of matching message boards mailing lists
203            */
204            public int countByUUID_G(java.lang.String uuid, long groupId);
205    
206            /**
207            * Returns all the message boards mailing lists where uuid = &#63; and companyId = &#63;.
208            *
209            * @param uuid the uuid
210            * @param companyId the company ID
211            * @return the matching message boards mailing lists
212            */
213            public java.util.List<MBMailingList> findByUuid_C(java.lang.String uuid,
214                    long companyId);
215    
216            /**
217            * Returns a range of all the message boards mailing lists where uuid = &#63; and companyId = &#63;.
218            *
219            * <p>
220            * 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.
221            * </p>
222            *
223            * @param uuid the uuid
224            * @param companyId the company ID
225            * @param start the lower bound of the range of message boards mailing lists
226            * @param end the upper bound of the range of message boards mailing lists (not inclusive)
227            * @return the range of matching message boards mailing lists
228            */
229            public java.util.List<MBMailingList> findByUuid_C(java.lang.String uuid,
230                    long companyId, int start, int end);
231    
232            /**
233            * Returns an ordered range of all the message boards mailing lists where uuid = &#63; and companyId = &#63;.
234            *
235            * <p>
236            * 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.
237            * </p>
238            *
239            * @param uuid the uuid
240            * @param companyId the company ID
241            * @param start the lower bound of the range of message boards mailing lists
242            * @param end the upper bound of the range of message boards mailing lists (not inclusive)
243            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
244            * @return the ordered range of matching message boards mailing lists
245            */
246            public java.util.List<MBMailingList> findByUuid_C(java.lang.String uuid,
247                    long companyId, int start, int end,
248                    com.liferay.portal.kernel.util.OrderByComparator<MBMailingList> orderByComparator);
249    
250            /**
251            * Returns the first message boards mailing list in the ordered set where uuid = &#63; and companyId = &#63;.
252            *
253            * @param uuid the uuid
254            * @param companyId the company ID
255            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
256            * @return the first matching message boards mailing list
257            * @throws NoSuchMailingListException if a matching message boards mailing list could not be found
258            */
259            public MBMailingList findByUuid_C_First(java.lang.String uuid,
260                    long companyId,
261                    com.liferay.portal.kernel.util.OrderByComparator<MBMailingList> orderByComparator)
262                    throws com.liferay.portlet.messageboards.NoSuchMailingListException;
263    
264            /**
265            * Returns the first message boards mailing list in the ordered set where uuid = &#63; and companyId = &#63;.
266            *
267            * @param uuid the uuid
268            * @param companyId the company ID
269            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
270            * @return the first matching message boards mailing list, or <code>null</code> if a matching message boards mailing list could not be found
271            */
272            public MBMailingList fetchByUuid_C_First(java.lang.String uuid,
273                    long companyId,
274                    com.liferay.portal.kernel.util.OrderByComparator<MBMailingList> orderByComparator);
275    
276            /**
277            * Returns the last message boards mailing list in the ordered set where uuid = &#63; and companyId = &#63;.
278            *
279            * @param uuid the uuid
280            * @param companyId the company ID
281            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
282            * @return the last matching message boards mailing list
283            * @throws NoSuchMailingListException if a matching message boards mailing list could not be found
284            */
285            public MBMailingList findByUuid_C_Last(java.lang.String uuid,
286                    long companyId,
287                    com.liferay.portal.kernel.util.OrderByComparator<MBMailingList> orderByComparator)
288                    throws com.liferay.portlet.messageboards.NoSuchMailingListException;
289    
290            /**
291            * Returns the last message boards mailing list in the ordered set where uuid = &#63; and companyId = &#63;.
292            *
293            * @param uuid the uuid
294            * @param companyId the company ID
295            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
296            * @return the last matching message boards mailing list, or <code>null</code> if a matching message boards mailing list could not be found
297            */
298            public MBMailingList fetchByUuid_C_Last(java.lang.String uuid,
299                    long companyId,
300                    com.liferay.portal.kernel.util.OrderByComparator<MBMailingList> orderByComparator);
301    
302            /**
303            * 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;.
304            *
305            * @param mailingListId the primary key of the current message boards mailing list
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 previous, current, and next message boards mailing list
310            * @throws NoSuchMailingListException if a message boards mailing list with the primary key could not be found
311            */
312            public MBMailingList[] findByUuid_C_PrevAndNext(long mailingListId,
313                    java.lang.String uuid, long companyId,
314                    com.liferay.portal.kernel.util.OrderByComparator<MBMailingList> orderByComparator)
315                    throws com.liferay.portlet.messageboards.NoSuchMailingListException;
316    
317            /**
318            * Removes all the message boards mailing lists where uuid = &#63; and companyId = &#63; from the database.
319            *
320            * @param uuid the uuid
321            * @param companyId the company ID
322            */
323            public void removeByUuid_C(java.lang.String uuid, long companyId);
324    
325            /**
326            * Returns the number of message boards mailing lists where uuid = &#63; and companyId = &#63;.
327            *
328            * @param uuid the uuid
329            * @param companyId the company ID
330            * @return the number of matching message boards mailing lists
331            */
332            public int countByUuid_C(java.lang.String uuid, long companyId);
333    
334            /**
335            * Returns all the message boards mailing lists where active = &#63;.
336            *
337            * @param active the active
338            * @return the matching message boards mailing lists
339            */
340            public java.util.List<MBMailingList> findByActive(boolean active);
341    
342            /**
343            * Returns a range of all the message boards mailing lists where active = &#63;.
344            *
345            * <p>
346            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link 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.
347            * </p>
348            *
349            * @param active the active
350            * @param start the lower bound of the range of message boards mailing lists
351            * @param end the upper bound of the range of message boards mailing lists (not inclusive)
352            * @return the range of matching message boards mailing lists
353            */
354            public java.util.List<MBMailingList> findByActive(boolean active,
355                    int start, int end);
356    
357            /**
358            * Returns an ordered range of all the message boards mailing lists where active = &#63;.
359            *
360            * <p>
361            * 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.
362            * </p>
363            *
364            * @param active the active
365            * @param start the lower bound of the range of message boards mailing lists
366            * @param end the upper bound of the range of message boards mailing lists (not inclusive)
367            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
368            * @return the ordered range of matching message boards mailing lists
369            */
370            public java.util.List<MBMailingList> findByActive(boolean active,
371                    int start, int end,
372                    com.liferay.portal.kernel.util.OrderByComparator<MBMailingList> orderByComparator);
373    
374            /**
375            * Returns the first message boards mailing list in the ordered set where active = &#63;.
376            *
377            * @param active the active
378            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
379            * @return the first matching message boards mailing list
380            * @throws NoSuchMailingListException if a matching message boards mailing list could not be found
381            */
382            public MBMailingList findByActive_First(boolean active,
383                    com.liferay.portal.kernel.util.OrderByComparator<MBMailingList> orderByComparator)
384                    throws com.liferay.portlet.messageboards.NoSuchMailingListException;
385    
386            /**
387            * Returns the first message boards mailing list in the ordered set where active = &#63;.
388            *
389            * @param active the active
390            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
391            * @return the first matching message boards mailing list, or <code>null</code> if a matching message boards mailing list could not be found
392            */
393            public MBMailingList fetchByActive_First(boolean active,
394                    com.liferay.portal.kernel.util.OrderByComparator<MBMailingList> orderByComparator);
395    
396            /**
397            * Returns the last message boards mailing list in the ordered set where active = &#63;.
398            *
399            * @param active the active
400            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
401            * @return the last matching message boards mailing list
402            * @throws NoSuchMailingListException if a matching message boards mailing list could not be found
403            */
404            public MBMailingList findByActive_Last(boolean active,
405                    com.liferay.portal.kernel.util.OrderByComparator<MBMailingList> orderByComparator)
406                    throws com.liferay.portlet.messageboards.NoSuchMailingListException;
407    
408            /**
409            * Returns the last message boards mailing list in the ordered set where active = &#63;.
410            *
411            * @param active the active
412            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
413            * @return the last matching message boards mailing list, or <code>null</code> if a matching message boards mailing list could not be found
414            */
415            public MBMailingList fetchByActive_Last(boolean active,
416                    com.liferay.portal.kernel.util.OrderByComparator<MBMailingList> orderByComparator);
417    
418            /**
419            * Returns the message boards mailing lists before and after the current message boards mailing list in the ordered set where active = &#63;.
420            *
421            * @param mailingListId the primary key of the current message boards mailing list
422            * @param active the active
423            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
424            * @return the previous, current, and next message boards mailing list
425            * @throws NoSuchMailingListException if a message boards mailing list with the primary key could not be found
426            */
427            public MBMailingList[] findByActive_PrevAndNext(long mailingListId,
428                    boolean active,
429                    com.liferay.portal.kernel.util.OrderByComparator<MBMailingList> orderByComparator)
430                    throws com.liferay.portlet.messageboards.NoSuchMailingListException;
431    
432            /**
433            * Removes all the message boards mailing lists where active = &#63; from the database.
434            *
435            * @param active the active
436            */
437            public void removeByActive(boolean active);
438    
439            /**
440            * Returns the number of message boards mailing lists where active = &#63;.
441            *
442            * @param active the active
443            * @return the number of matching message boards mailing lists
444            */
445            public int countByActive(boolean active);
446    
447            /**
448            * Returns the message boards mailing list where groupId = &#63; and categoryId = &#63; or throws a {@link NoSuchMailingListException} if it could not be found.
449            *
450            * @param groupId the group ID
451            * @param categoryId the category ID
452            * @return the matching message boards mailing list
453            * @throws NoSuchMailingListException if a matching message boards mailing list could not be found
454            */
455            public MBMailingList findByG_C(long groupId, long categoryId)
456                    throws com.liferay.portlet.messageboards.NoSuchMailingListException;
457    
458            /**
459            * 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.
460            *
461            * @param groupId the group ID
462            * @param categoryId the category ID
463            * @return the matching message boards mailing list, or <code>null</code> if a matching message boards mailing list could not be found
464            */
465            public MBMailingList fetchByG_C(long groupId, long categoryId);
466    
467            /**
468            * 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.
469            *
470            * @param groupId the group ID
471            * @param categoryId the category ID
472            * @param retrieveFromCache whether to use the finder cache
473            * @return the matching message boards mailing list, or <code>null</code> if a matching message boards mailing list could not be found
474            */
475            public MBMailingList fetchByG_C(long groupId, long categoryId,
476                    boolean retrieveFromCache);
477    
478            /**
479            * Removes the message boards mailing list where groupId = &#63; and categoryId = &#63; from the database.
480            *
481            * @param groupId the group ID
482            * @param categoryId the category ID
483            * @return the message boards mailing list that was removed
484            */
485            public MBMailingList removeByG_C(long groupId, long categoryId)
486                    throws com.liferay.portlet.messageboards.NoSuchMailingListException;
487    
488            /**
489            * Returns the number of message boards mailing lists where groupId = &#63; and categoryId = &#63;.
490            *
491            * @param groupId the group ID
492            * @param categoryId the category ID
493            * @return the number of matching message boards mailing lists
494            */
495            public int countByG_C(long groupId, long categoryId);
496    
497            /**
498            * Caches the message boards mailing list in the entity cache if it is enabled.
499            *
500            * @param mbMailingList the message boards mailing list
501            */
502            public void cacheResult(MBMailingList mbMailingList);
503    
504            /**
505            * Caches the message boards mailing lists in the entity cache if it is enabled.
506            *
507            * @param mbMailingLists the message boards mailing lists
508            */
509            public void cacheResult(java.util.List<MBMailingList> mbMailingLists);
510    
511            /**
512            * Creates a new message boards mailing list with the primary key. Does not add the message boards mailing list to the database.
513            *
514            * @param mailingListId the primary key for the new message boards mailing list
515            * @return the new message boards mailing list
516            */
517            public MBMailingList create(long mailingListId);
518    
519            /**
520            * Removes the message boards mailing list with the primary key from the database. Also notifies the appropriate model listeners.
521            *
522            * @param mailingListId the primary key of the message boards mailing list
523            * @return the message boards mailing list that was removed
524            * @throws NoSuchMailingListException if a message boards mailing list with the primary key could not be found
525            */
526            public MBMailingList remove(long mailingListId)
527                    throws com.liferay.portlet.messageboards.NoSuchMailingListException;
528    
529            public MBMailingList updateImpl(MBMailingList mbMailingList);
530    
531            /**
532            * Returns the message boards mailing list with the primary key or throws a {@link NoSuchMailingListException} if it could not be found.
533            *
534            * @param mailingListId the primary key of the message boards mailing list
535            * @return the message boards mailing list
536            * @throws NoSuchMailingListException if a message boards mailing list with the primary key could not be found
537            */
538            public MBMailingList findByPrimaryKey(long mailingListId)
539                    throws com.liferay.portlet.messageboards.NoSuchMailingListException;
540    
541            /**
542            * Returns the message boards mailing list with the primary key or returns <code>null</code> if it could not be found.
543            *
544            * @param mailingListId the primary key of the message boards mailing list
545            * @return the message boards mailing list, or <code>null</code> if a message boards mailing list with the primary key could not be found
546            */
547            public MBMailingList fetchByPrimaryKey(long mailingListId);
548    
549            @Override
550            public java.util.Map<java.io.Serializable, MBMailingList> fetchByPrimaryKeys(
551                    java.util.Set<java.io.Serializable> primaryKeys);
552    
553            /**
554            * Returns all the message boards mailing lists.
555            *
556            * @return the message boards mailing lists
557            */
558            public java.util.List<MBMailingList> findAll();
559    
560            /**
561            * Returns a range of all the message boards mailing lists.
562            *
563            * <p>
564            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link 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.
565            * </p>
566            *
567            * @param start the lower bound of the range of message boards mailing lists
568            * @param end the upper bound of the range of message boards mailing lists (not inclusive)
569            * @return the range of message boards mailing lists
570            */
571            public java.util.List<MBMailingList> findAll(int start, int end);
572    
573            /**
574            * Returns an ordered range of all the message boards mailing lists.
575            *
576            * <p>
577            * 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.
578            * </p>
579            *
580            * @param start the lower bound of the range of message boards mailing lists
581            * @param end the upper bound of the range of message boards mailing lists (not inclusive)
582            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
583            * @return the ordered range of message boards mailing lists
584            */
585            public java.util.List<MBMailingList> findAll(int start, int end,
586                    com.liferay.portal.kernel.util.OrderByComparator<MBMailingList> orderByComparator);
587    
588            /**
589            * Removes all the message boards mailing lists from the database.
590            */
591            public void removeAll();
592    
593            /**
594            * Returns the number of message boards mailing lists.
595            *
596            * @return the number of message boards mailing lists
597            */
598            public int countAll();
599    }