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