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