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