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 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 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            * @throws SystemException if a system exception occurred
049            */
050            public java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByUuid(
051                    java.lang.String uuid)
052                    throws com.liferay.portal.kernel.exception.SystemException;
053    
054            /**
055            * Returns a range of all the message boards mailing lists where uuid = &#63;.
056            *
057            * <p>
058            * 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.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.
059            * </p>
060            *
061            * @param uuid the uuid
062            * @param start the lower bound of the range of message boards mailing lists
063            * @param end the upper bound of the range of message boards mailing lists (not inclusive)
064            * @return the range of matching message boards mailing lists
065            * @throws SystemException if a system exception occurred
066            */
067            public java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByUuid(
068                    java.lang.String uuid, int start, int end)
069                    throws com.liferay.portal.kernel.exception.SystemException;
070    
071            /**
072            * Returns an ordered range of all the message boards mailing lists where uuid = &#63;.
073            *
074            * <p>
075            * 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.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.
076            * </p>
077            *
078            * @param uuid the uuid
079            * @param start the lower bound of the range of message boards mailing lists
080            * @param end the upper bound of the range of message boards mailing lists (not inclusive)
081            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
082            * @return the ordered range of matching message boards mailing lists
083            * @throws SystemException if a system exception occurred
084            */
085            public java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByUuid(
086                    java.lang.String uuid, int start, int end,
087                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
088                    throws com.liferay.portal.kernel.exception.SystemException;
089    
090            /**
091            * Returns the first message boards mailing list in the ordered set where uuid = &#63;.
092            *
093            * @param uuid the uuid
094            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
095            * @return the first matching message boards mailing list
096            * @throws com.liferay.portlet.messageboards.NoSuchMailingListException if a matching message boards mailing list could not be found
097            * @throws SystemException if a system exception occurred
098            */
099            public com.liferay.portlet.messageboards.model.MBMailingList findByUuid_First(
100                    java.lang.String uuid,
101                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
102                    throws com.liferay.portal.kernel.exception.SystemException,
103                            com.liferay.portlet.messageboards.NoSuchMailingListException;
104    
105            /**
106            * Returns the first 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 first matching message boards mailing list, or <code>null</code> if a matching message boards mailing list could not be found
111            * @throws SystemException if a system exception occurred
112            */
113            public com.liferay.portlet.messageboards.model.MBMailingList fetchByUuid_First(
114                    java.lang.String uuid,
115                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
116                    throws com.liferay.portal.kernel.exception.SystemException;
117    
118            /**
119            * Returns the last message boards mailing list in the ordered set where uuid = &#63;.
120            *
121            * @param uuid the uuid
122            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
123            * @return the last matching message boards mailing list
124            * @throws com.liferay.portlet.messageboards.NoSuchMailingListException if a matching message boards mailing list could not be found
125            * @throws SystemException if a system exception occurred
126            */
127            public com.liferay.portlet.messageboards.model.MBMailingList findByUuid_Last(
128                    java.lang.String uuid,
129                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
130                    throws com.liferay.portal.kernel.exception.SystemException,
131                            com.liferay.portlet.messageboards.NoSuchMailingListException;
132    
133            /**
134            * Returns the last message boards mailing list in the ordered set where uuid = &#63;.
135            *
136            * @param uuid the uuid
137            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
138            * @return the last matching message boards mailing list, or <code>null</code> if a matching message boards mailing list could not be found
139            * @throws SystemException if a system exception occurred
140            */
141            public com.liferay.portlet.messageboards.model.MBMailingList fetchByUuid_Last(
142                    java.lang.String uuid,
143                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
144                    throws com.liferay.portal.kernel.exception.SystemException;
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 com.liferay.portlet.messageboards.NoSuchMailingListException if a message boards mailing list with the primary key could not be found
154            * @throws SystemException if a system exception occurred
155            */
156            public com.liferay.portlet.messageboards.model.MBMailingList[] findByUuid_PrevAndNext(
157                    long mailingListId, java.lang.String uuid,
158                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
159                    throws com.liferay.portal.kernel.exception.SystemException,
160                            com.liferay.portlet.messageboards.NoSuchMailingListException;
161    
162            /**
163            * Removes all the message boards mailing lists where uuid = &#63; from the database.
164            *
165            * @param uuid the uuid
166            * @throws SystemException if a system exception occurred
167            */
168            public void removeByUuid(java.lang.String uuid)
169                    throws com.liferay.portal.kernel.exception.SystemException;
170    
171            /**
172            * Returns the number of message boards mailing lists where uuid = &#63;.
173            *
174            * @param uuid the uuid
175            * @return the number of matching message boards mailing lists
176            * @throws SystemException if a system exception occurred
177            */
178            public int countByUuid(java.lang.String uuid)
179                    throws com.liferay.portal.kernel.exception.SystemException;
180    
181            /**
182            * Returns the message boards mailing list where uuid = &#63; and groupId = &#63; or throws a {@link com.liferay.portlet.messageboards.NoSuchMailingListException} if it could not be found.
183            *
184            * @param uuid the uuid
185            * @param groupId the group ID
186            * @return the matching message boards mailing list
187            * @throws com.liferay.portlet.messageboards.NoSuchMailingListException if a matching message boards mailing list could not be found
188            * @throws SystemException if a system exception occurred
189            */
190            public com.liferay.portlet.messageboards.model.MBMailingList findByUUID_G(
191                    java.lang.String uuid, long groupId)
192                    throws com.liferay.portal.kernel.exception.SystemException,
193                            com.liferay.portlet.messageboards.NoSuchMailingListException;
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. Uses the finder cache.
197            *
198            * @param uuid the uuid
199            * @param groupId the group ID
200            * @return the matching message boards mailing list, or <code>null</code> if a matching message boards mailing list could not be found
201            * @throws SystemException if a system exception occurred
202            */
203            public com.liferay.portlet.messageboards.model.MBMailingList fetchByUUID_G(
204                    java.lang.String uuid, long groupId)
205                    throws com.liferay.portal.kernel.exception.SystemException;
206    
207            /**
208            * 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.
209            *
210            * @param uuid the uuid
211            * @param groupId the group ID
212            * @param retrieveFromCache whether to use the finder cache
213            * @return the matching message boards mailing list, or <code>null</code> if a matching message boards mailing list could not be found
214            * @throws SystemException if a system exception occurred
215            */
216            public com.liferay.portlet.messageboards.model.MBMailingList fetchByUUID_G(
217                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
218                    throws com.liferay.portal.kernel.exception.SystemException;
219    
220            /**
221            * Removes the message boards mailing list where uuid = &#63; and groupId = &#63; from the database.
222            *
223            * @param uuid the uuid
224            * @param groupId the group ID
225            * @return the message boards mailing list that was removed
226            * @throws SystemException if a system exception occurred
227            */
228            public com.liferay.portlet.messageboards.model.MBMailingList removeByUUID_G(
229                    java.lang.String uuid, long groupId)
230                    throws com.liferay.portal.kernel.exception.SystemException,
231                            com.liferay.portlet.messageboards.NoSuchMailingListException;
232    
233            /**
234            * Returns the number of message boards mailing lists where uuid = &#63; and groupId = &#63;.
235            *
236            * @param uuid the uuid
237            * @param groupId the group ID
238            * @return the number of matching message boards mailing lists
239            * @throws SystemException if a system exception occurred
240            */
241            public int countByUUID_G(java.lang.String uuid, long groupId)
242                    throws com.liferay.portal.kernel.exception.SystemException;
243    
244            /**
245            * Returns all the message boards mailing lists where uuid = &#63; and companyId = &#63;.
246            *
247            * @param uuid the uuid
248            * @param companyId the company ID
249            * @return the matching message boards mailing lists
250            * @throws SystemException if a system exception occurred
251            */
252            public java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByUuid_C(
253                    java.lang.String uuid, long companyId)
254                    throws com.liferay.portal.kernel.exception.SystemException;
255    
256            /**
257            * Returns a range of all the message boards mailing lists where uuid = &#63; and companyId = &#63;.
258            *
259            * <p>
260            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 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.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.
261            * </p>
262            *
263            * @param uuid the uuid
264            * @param companyId the company ID
265            * @param start the lower bound of the range of message boards mailing lists
266            * @param end the upper bound of the range of message boards mailing lists (not inclusive)
267            * @return the range of matching message boards mailing lists
268            * @throws SystemException if a system exception occurred
269            */
270            public java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByUuid_C(
271                    java.lang.String uuid, long companyId, int start, int end)
272                    throws com.liferay.portal.kernel.exception.SystemException;
273    
274            /**
275            * Returns an ordered range of all the message boards mailing lists where uuid = &#63; and companyId = &#63;.
276            *
277            * <p>
278            * 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.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.
279            * </p>
280            *
281            * @param uuid the uuid
282            * @param companyId the company ID
283            * @param start the lower bound of the range of message boards mailing lists
284            * @param end the upper bound of the range of message boards mailing lists (not inclusive)
285            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
286            * @return the ordered range of matching message boards mailing lists
287            * @throws SystemException if a system exception occurred
288            */
289            public java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByUuid_C(
290                    java.lang.String uuid, long companyId, int start, int end,
291                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
292                    throws com.liferay.portal.kernel.exception.SystemException;
293    
294            /**
295            * Returns the first message boards mailing list in the ordered set where uuid = &#63; and companyId = &#63;.
296            *
297            * @param uuid the uuid
298            * @param companyId the company ID
299            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
300            * @return the first matching message boards mailing list
301            * @throws com.liferay.portlet.messageboards.NoSuchMailingListException if a matching message boards mailing list could not be found
302            * @throws SystemException if a system exception occurred
303            */
304            public com.liferay.portlet.messageboards.model.MBMailingList findByUuid_C_First(
305                    java.lang.String uuid, long companyId,
306                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
307                    throws com.liferay.portal.kernel.exception.SystemException,
308                            com.liferay.portlet.messageboards.NoSuchMailingListException;
309    
310            /**
311            * Returns the first message boards mailing list in the ordered set where uuid = &#63; and companyId = &#63;.
312            *
313            * @param uuid the uuid
314            * @param companyId the company ID
315            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
316            * @return the first matching message boards mailing list, or <code>null</code> if a matching message boards mailing list could not be found
317            * @throws SystemException if a system exception occurred
318            */
319            public com.liferay.portlet.messageboards.model.MBMailingList fetchByUuid_C_First(
320                    java.lang.String uuid, long companyId,
321                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
322                    throws com.liferay.portal.kernel.exception.SystemException;
323    
324            /**
325            * Returns the last message boards mailing list in the ordered set where uuid = &#63; and companyId = &#63;.
326            *
327            * @param uuid the uuid
328            * @param companyId the company ID
329            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
330            * @return the last matching message boards mailing list
331            * @throws com.liferay.portlet.messageboards.NoSuchMailingListException if a matching message boards mailing list could not be found
332            * @throws SystemException if a system exception occurred
333            */
334            public com.liferay.portlet.messageboards.model.MBMailingList findByUuid_C_Last(
335                    java.lang.String uuid, long companyId,
336                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
337                    throws com.liferay.portal.kernel.exception.SystemException,
338                            com.liferay.portlet.messageboards.NoSuchMailingListException;
339    
340            /**
341            * Returns the last message boards mailing list in the ordered set where uuid = &#63; and companyId = &#63;.
342            *
343            * @param uuid the uuid
344            * @param companyId the company ID
345            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
346            * @return the last matching message boards mailing list, or <code>null</code> if a matching message boards mailing list could not be found
347            * @throws SystemException if a system exception occurred
348            */
349            public com.liferay.portlet.messageboards.model.MBMailingList fetchByUuid_C_Last(
350                    java.lang.String uuid, long companyId,
351                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
352                    throws com.liferay.portal.kernel.exception.SystemException;
353    
354            /**
355            * 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;.
356            *
357            * @param mailingListId the primary key of the current message boards mailing list
358            * @param uuid the uuid
359            * @param companyId the company ID
360            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
361            * @return the previous, current, and next message boards mailing list
362            * @throws com.liferay.portlet.messageboards.NoSuchMailingListException if a message boards mailing list with the primary key could not be found
363            * @throws SystemException if a system exception occurred
364            */
365            public com.liferay.portlet.messageboards.model.MBMailingList[] findByUuid_C_PrevAndNext(
366                    long mailingListId, java.lang.String uuid, long companyId,
367                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
368                    throws com.liferay.portal.kernel.exception.SystemException,
369                            com.liferay.portlet.messageboards.NoSuchMailingListException;
370    
371            /**
372            * Removes all the message boards mailing lists where uuid = &#63; and companyId = &#63; from the database.
373            *
374            * @param uuid the uuid
375            * @param companyId the company ID
376            * @throws SystemException if a system exception occurred
377            */
378            public void removeByUuid_C(java.lang.String uuid, long companyId)
379                    throws com.liferay.portal.kernel.exception.SystemException;
380    
381            /**
382            * Returns the number of message boards mailing lists where uuid = &#63; and companyId = &#63;.
383            *
384            * @param uuid the uuid
385            * @param companyId the company ID
386            * @return the number of matching message boards mailing lists
387            * @throws SystemException if a system exception occurred
388            */
389            public int countByUuid_C(java.lang.String uuid, long companyId)
390                    throws com.liferay.portal.kernel.exception.SystemException;
391    
392            /**
393            * Returns all the message boards mailing lists where active = &#63;.
394            *
395            * @param active the active
396            * @return the matching message boards mailing lists
397            * @throws SystemException if a system exception occurred
398            */
399            public java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByActive(
400                    boolean active)
401                    throws com.liferay.portal.kernel.exception.SystemException;
402    
403            /**
404            * Returns a range of all the message boards mailing lists where active = &#63;.
405            *
406            * <p>
407            * 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.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.
408            * </p>
409            *
410            * @param active the active
411            * @param start the lower bound of the range of message boards mailing lists
412            * @param end the upper bound of the range of message boards mailing lists (not inclusive)
413            * @return the range of matching message boards mailing lists
414            * @throws SystemException if a system exception occurred
415            */
416            public java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByActive(
417                    boolean active, int start, int end)
418                    throws com.liferay.portal.kernel.exception.SystemException;
419    
420            /**
421            * Returns an ordered range of all the message boards mailing lists where active = &#63;.
422            *
423            * <p>
424            * 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.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.
425            * </p>
426            *
427            * @param active the active
428            * @param start the lower bound of the range of message boards mailing lists
429            * @param end the upper bound of the range of message boards mailing lists (not inclusive)
430            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
431            * @return the ordered range of matching message boards mailing lists
432            * @throws SystemException if a system exception occurred
433            */
434            public java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByActive(
435                    boolean active, int start, int end,
436                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
437                    throws com.liferay.portal.kernel.exception.SystemException;
438    
439            /**
440            * Returns the first message boards mailing list in the ordered set where active = &#63;.
441            *
442            * @param active the active
443            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
444            * @return the first matching message boards mailing list
445            * @throws com.liferay.portlet.messageboards.NoSuchMailingListException if a matching message boards mailing list could not be found
446            * @throws SystemException if a system exception occurred
447            */
448            public com.liferay.portlet.messageboards.model.MBMailingList findByActive_First(
449                    boolean active,
450                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
451                    throws com.liferay.portal.kernel.exception.SystemException,
452                            com.liferay.portlet.messageboards.NoSuchMailingListException;
453    
454            /**
455            * Returns the first 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 first matching message boards mailing list, or <code>null</code> if a matching message boards mailing list could not be found
460            * @throws SystemException if a system exception occurred
461            */
462            public com.liferay.portlet.messageboards.model.MBMailingList fetchByActive_First(
463                    boolean active,
464                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
465                    throws com.liferay.portal.kernel.exception.SystemException;
466    
467            /**
468            * Returns the last message boards mailing list in the ordered set where active = &#63;.
469            *
470            * @param active the active
471            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
472            * @return the last matching message boards mailing list
473            * @throws com.liferay.portlet.messageboards.NoSuchMailingListException if a matching message boards mailing list could not be found
474            * @throws SystemException if a system exception occurred
475            */
476            public com.liferay.portlet.messageboards.model.MBMailingList findByActive_Last(
477                    boolean active,
478                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
479                    throws com.liferay.portal.kernel.exception.SystemException,
480                            com.liferay.portlet.messageboards.NoSuchMailingListException;
481    
482            /**
483            * Returns the last message boards mailing list in the ordered set where active = &#63;.
484            *
485            * @param active the active
486            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
487            * @return the last matching message boards mailing list, or <code>null</code> if a matching message boards mailing list could not be found
488            * @throws SystemException if a system exception occurred
489            */
490            public com.liferay.portlet.messageboards.model.MBMailingList fetchByActive_Last(
491                    boolean active,
492                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
493                    throws com.liferay.portal.kernel.exception.SystemException;
494    
495            /**
496            * Returns the message boards mailing lists before and after the current message boards mailing list in the ordered set where active = &#63;.
497            *
498            * @param mailingListId the primary key of the current message boards mailing list
499            * @param active the active
500            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
501            * @return the previous, current, and next message boards mailing list
502            * @throws com.liferay.portlet.messageboards.NoSuchMailingListException if a message boards mailing list with the primary key could not be found
503            * @throws SystemException if a system exception occurred
504            */
505            public com.liferay.portlet.messageboards.model.MBMailingList[] findByActive_PrevAndNext(
506                    long mailingListId, boolean active,
507                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
508                    throws com.liferay.portal.kernel.exception.SystemException,
509                            com.liferay.portlet.messageboards.NoSuchMailingListException;
510    
511            /**
512            * Removes all the message boards mailing lists where active = &#63; from the database.
513            *
514            * @param active the active
515            * @throws SystemException if a system exception occurred
516            */
517            public void removeByActive(boolean active)
518                    throws com.liferay.portal.kernel.exception.SystemException;
519    
520            /**
521            * Returns the number of message boards mailing lists where active = &#63;.
522            *
523            * @param active the active
524            * @return the number of matching message boards mailing lists
525            * @throws SystemException if a system exception occurred
526            */
527            public int countByActive(boolean active)
528                    throws com.liferay.portal.kernel.exception.SystemException;
529    
530            /**
531            * Returns the message boards mailing list where groupId = &#63; and categoryId = &#63; or throws a {@link com.liferay.portlet.messageboards.NoSuchMailingListException} if it could not be found.
532            *
533            * @param groupId the group ID
534            * @param categoryId the category ID
535            * @return the matching message boards mailing list
536            * @throws com.liferay.portlet.messageboards.NoSuchMailingListException if a matching message boards mailing list could not be found
537            * @throws SystemException if a system exception occurred
538            */
539            public com.liferay.portlet.messageboards.model.MBMailingList findByG_C(
540                    long groupId, long categoryId)
541                    throws com.liferay.portal.kernel.exception.SystemException,
542                            com.liferay.portlet.messageboards.NoSuchMailingListException;
543    
544            /**
545            * 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.
546            *
547            * @param groupId the group ID
548            * @param categoryId the category ID
549            * @return the matching message boards mailing list, or <code>null</code> if a matching message boards mailing list could not be found
550            * @throws SystemException if a system exception occurred
551            */
552            public com.liferay.portlet.messageboards.model.MBMailingList fetchByG_C(
553                    long groupId, long categoryId)
554                    throws com.liferay.portal.kernel.exception.SystemException;
555    
556            /**
557            * 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.
558            *
559            * @param groupId the group ID
560            * @param categoryId the category ID
561            * @param retrieveFromCache whether to use the finder cache
562            * @return the matching message boards mailing list, or <code>null</code> if a matching message boards mailing list could not be found
563            * @throws SystemException if a system exception occurred
564            */
565            public com.liferay.portlet.messageboards.model.MBMailingList fetchByG_C(
566                    long groupId, long categoryId, boolean retrieveFromCache)
567                    throws com.liferay.portal.kernel.exception.SystemException;
568    
569            /**
570            * Removes the message boards mailing list where groupId = &#63; and categoryId = &#63; from the database.
571            *
572            * @param groupId the group ID
573            * @param categoryId the category ID
574            * @return the message boards mailing list that was removed
575            * @throws SystemException if a system exception occurred
576            */
577            public com.liferay.portlet.messageboards.model.MBMailingList removeByG_C(
578                    long groupId, long categoryId)
579                    throws com.liferay.portal.kernel.exception.SystemException,
580                            com.liferay.portlet.messageboards.NoSuchMailingListException;
581    
582            /**
583            * Returns the number of message boards mailing lists where groupId = &#63; and categoryId = &#63;.
584            *
585            * @param groupId the group ID
586            * @param categoryId the category ID
587            * @return the number of matching message boards mailing lists
588            * @throws SystemException if a system exception occurred
589            */
590            public int countByG_C(long groupId, long categoryId)
591                    throws com.liferay.portal.kernel.exception.SystemException;
592    
593            /**
594            * Caches the message boards mailing list in the entity cache if it is enabled.
595            *
596            * @param mbMailingList the message boards mailing list
597            */
598            public void cacheResult(
599                    com.liferay.portlet.messageboards.model.MBMailingList mbMailingList);
600    
601            /**
602            * Caches the message boards mailing lists in the entity cache if it is enabled.
603            *
604            * @param mbMailingLists the message boards mailing lists
605            */
606            public void cacheResult(
607                    java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> mbMailingLists);
608    
609            /**
610            * Creates a new message boards mailing list with the primary key. Does not add the message boards mailing list to the database.
611            *
612            * @param mailingListId the primary key for the new message boards mailing list
613            * @return the new message boards mailing list
614            */
615            public com.liferay.portlet.messageboards.model.MBMailingList create(
616                    long mailingListId);
617    
618            /**
619            * Removes the message boards mailing list with the primary key from the database. Also notifies the appropriate model listeners.
620            *
621            * @param mailingListId the primary key of the message boards mailing list
622            * @return the message boards mailing list that was removed
623            * @throws com.liferay.portlet.messageboards.NoSuchMailingListException if a message boards mailing list with the primary key could not be found
624            * @throws SystemException if a system exception occurred
625            */
626            public com.liferay.portlet.messageboards.model.MBMailingList remove(
627                    long mailingListId)
628                    throws com.liferay.portal.kernel.exception.SystemException,
629                            com.liferay.portlet.messageboards.NoSuchMailingListException;
630    
631            public com.liferay.portlet.messageboards.model.MBMailingList updateImpl(
632                    com.liferay.portlet.messageboards.model.MBMailingList mbMailingList)
633                    throws com.liferay.portal.kernel.exception.SystemException;
634    
635            /**
636            * Returns the message boards mailing list with the primary key or throws a {@link com.liferay.portlet.messageboards.NoSuchMailingListException} if it could not be found.
637            *
638            * @param mailingListId the primary key of the message boards mailing list
639            * @return the message boards mailing list
640            * @throws com.liferay.portlet.messageboards.NoSuchMailingListException if a message boards mailing list with the primary key could not be found
641            * @throws SystemException if a system exception occurred
642            */
643            public com.liferay.portlet.messageboards.model.MBMailingList findByPrimaryKey(
644                    long mailingListId)
645                    throws com.liferay.portal.kernel.exception.SystemException,
646                            com.liferay.portlet.messageboards.NoSuchMailingListException;
647    
648            /**
649            * Returns the message boards mailing list with the primary key or returns <code>null</code> if it could not be found.
650            *
651            * @param mailingListId the primary key of the message boards mailing list
652            * @return the message boards mailing list, or <code>null</code> if a message boards mailing list with the primary key could not be found
653            * @throws SystemException if a system exception occurred
654            */
655            public com.liferay.portlet.messageboards.model.MBMailingList fetchByPrimaryKey(
656                    long mailingListId)
657                    throws com.liferay.portal.kernel.exception.SystemException;
658    
659            /**
660            * Returns all the message boards mailing lists.
661            *
662            * @return the message boards mailing lists
663            * @throws SystemException if a system exception occurred
664            */
665            public java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findAll()
666                    throws com.liferay.portal.kernel.exception.SystemException;
667    
668            /**
669            * Returns a range of all the message boards mailing lists.
670            *
671            * <p>
672            * 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.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.
673            * </p>
674            *
675            * @param start the lower bound of the range of message boards mailing lists
676            * @param end the upper bound of the range of message boards mailing lists (not inclusive)
677            * @return the range of message boards mailing lists
678            * @throws SystemException if a system exception occurred
679            */
680            public java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findAll(
681                    int start, int end)
682                    throws com.liferay.portal.kernel.exception.SystemException;
683    
684            /**
685            * Returns an ordered range of all the message boards mailing lists.
686            *
687            * <p>
688            * 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.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.
689            * </p>
690            *
691            * @param start the lower bound of the range of message boards mailing lists
692            * @param end the upper bound of the range of message boards mailing lists (not inclusive)
693            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
694            * @return the ordered range of message boards mailing lists
695            * @throws SystemException if a system exception occurred
696            */
697            public java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findAll(
698                    int start, int end,
699                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
700                    throws com.liferay.portal.kernel.exception.SystemException;
701    
702            /**
703            * Removes all the message boards mailing lists from the database.
704            *
705            * @throws SystemException if a system exception occurred
706            */
707            public void removeAll()
708                    throws com.liferay.portal.kernel.exception.SystemException;
709    
710            /**
711            * Returns the number of message boards mailing lists.
712            *
713            * @return the number of message boards mailing lists
714            * @throws SystemException if a system exception occurred
715            */
716            public int countAll()
717                    throws com.liferay.portal.kernel.exception.SystemException;
718    }