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.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            * <p>
251            * 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.
252            * </p>
253            *
254            * @param uuid the uuid
255            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
256            * @return the first matching message boards mailing list
257            * @throws com.liferay.portlet.messageboards.NoSuchMailingListException if a matching message boards mailing list could not be found
258            * @throws SystemException if a system exception occurred
259            */
260            public static com.liferay.portlet.messageboards.model.MBMailingList findByUuid_First(
261                    java.lang.String uuid,
262                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
263                    throws com.liferay.portal.kernel.exception.SystemException,
264                            com.liferay.portlet.messageboards.NoSuchMailingListException {
265                    return getPersistence().findByUuid_First(uuid, orderByComparator);
266            }
267    
268            /**
269            * Returns the last message boards mailing list in the ordered set where uuid = &#63;.
270            *
271            * <p>
272            * 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.
273            * </p>
274            *
275            * @param uuid the uuid
276            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
277            * @return the last matching message boards mailing list
278            * @throws com.liferay.portlet.messageboards.NoSuchMailingListException if a matching message boards mailing list could not be found
279            * @throws SystemException if a system exception occurred
280            */
281            public static com.liferay.portlet.messageboards.model.MBMailingList findByUuid_Last(
282                    java.lang.String uuid,
283                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
284                    throws com.liferay.portal.kernel.exception.SystemException,
285                            com.liferay.portlet.messageboards.NoSuchMailingListException {
286                    return getPersistence().findByUuid_Last(uuid, orderByComparator);
287            }
288    
289            /**
290            * Returns the message boards mailing lists before and after the current message boards mailing list in the ordered set where uuid = &#63;.
291            *
292            * <p>
293            * 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.
294            * </p>
295            *
296            * @param mailingListId the primary key of the current message boards mailing list
297            * @param uuid the uuid
298            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
299            * @return the previous, current, and next message boards mailing list
300            * @throws com.liferay.portlet.messageboards.NoSuchMailingListException if a message boards mailing list with the primary key could not be found
301            * @throws SystemException if a system exception occurred
302            */
303            public static com.liferay.portlet.messageboards.model.MBMailingList[] findByUuid_PrevAndNext(
304                    long mailingListId, java.lang.String uuid,
305                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
306                    throws com.liferay.portal.kernel.exception.SystemException,
307                            com.liferay.portlet.messageboards.NoSuchMailingListException {
308                    return getPersistence()
309                                       .findByUuid_PrevAndNext(mailingListId, uuid,
310                            orderByComparator);
311            }
312    
313            /**
314            * 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.
315            *
316            * @param uuid the uuid
317            * @param groupId the group ID
318            * @return the matching message boards mailing list
319            * @throws com.liferay.portlet.messageboards.NoSuchMailingListException if a matching message boards mailing list could not be found
320            * @throws SystemException if a system exception occurred
321            */
322            public static com.liferay.portlet.messageboards.model.MBMailingList findByUUID_G(
323                    java.lang.String uuid, long groupId)
324                    throws com.liferay.portal.kernel.exception.SystemException,
325                            com.liferay.portlet.messageboards.NoSuchMailingListException {
326                    return getPersistence().findByUUID_G(uuid, groupId);
327            }
328    
329            /**
330            * 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.
331            *
332            * @param uuid the uuid
333            * @param groupId the group ID
334            * @return the matching message boards mailing list, or <code>null</code> if a matching message boards mailing list could not be found
335            * @throws SystemException if a system exception occurred
336            */
337            public static com.liferay.portlet.messageboards.model.MBMailingList fetchByUUID_G(
338                    java.lang.String uuid, long groupId)
339                    throws com.liferay.portal.kernel.exception.SystemException {
340                    return getPersistence().fetchByUUID_G(uuid, groupId);
341            }
342    
343            /**
344            * 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.
345            *
346            * @param uuid the uuid
347            * @param groupId the group ID
348            * @param retrieveFromCache whether to use the finder cache
349            * @return the matching message boards mailing list, or <code>null</code> if a matching message boards mailing list could not be found
350            * @throws SystemException if a system exception occurred
351            */
352            public static com.liferay.portlet.messageboards.model.MBMailingList fetchByUUID_G(
353                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
354                    throws com.liferay.portal.kernel.exception.SystemException {
355                    return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
356            }
357    
358            /**
359            * Returns all the message boards mailing lists where active = &#63;.
360            *
361            * @param active the active
362            * @return the matching message boards mailing lists
363            * @throws SystemException if a system exception occurred
364            */
365            public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByActive(
366                    boolean active)
367                    throws com.liferay.portal.kernel.exception.SystemException {
368                    return getPersistence().findByActive(active);
369            }
370    
371            /**
372            * Returns a range of all the message boards mailing lists where active = &#63;.
373            *
374            * <p>
375            * 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.
376            * </p>
377            *
378            * @param active the active
379            * @param start the lower bound of the range of message boards mailing lists
380            * @param end the upper bound of the range of message boards mailing lists (not inclusive)
381            * @return the range of matching message boards mailing lists
382            * @throws SystemException if a system exception occurred
383            */
384            public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByActive(
385                    boolean active, int start, int end)
386                    throws com.liferay.portal.kernel.exception.SystemException {
387                    return getPersistence().findByActive(active, start, end);
388            }
389    
390            /**
391            * Returns an ordered range of all the message boards mailing lists where active = &#63;.
392            *
393            * <p>
394            * 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.
395            * </p>
396            *
397            * @param active the active
398            * @param start the lower bound of the range of message boards mailing lists
399            * @param end the upper bound of the range of message boards mailing lists (not inclusive)
400            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
401            * @return the ordered range of matching message boards mailing lists
402            * @throws SystemException if a system exception occurred
403            */
404            public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByActive(
405                    boolean active, int start, int end,
406                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
407                    throws com.liferay.portal.kernel.exception.SystemException {
408                    return getPersistence()
409                                       .findByActive(active, start, end, orderByComparator);
410            }
411    
412            /**
413            * Returns the first message boards mailing list in the ordered set where active = &#63;.
414            *
415            * <p>
416            * 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.
417            * </p>
418            *
419            * @param active the active
420            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
421            * @return the first matching message boards mailing list
422            * @throws com.liferay.portlet.messageboards.NoSuchMailingListException if a matching message boards mailing list could not be found
423            * @throws SystemException if a system exception occurred
424            */
425            public static com.liferay.portlet.messageboards.model.MBMailingList findByActive_First(
426                    boolean active,
427                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
428                    throws com.liferay.portal.kernel.exception.SystemException,
429                            com.liferay.portlet.messageboards.NoSuchMailingListException {
430                    return getPersistence().findByActive_First(active, orderByComparator);
431            }
432    
433            /**
434            * Returns the last message boards mailing list in the ordered set where active = &#63;.
435            *
436            * <p>
437            * 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.
438            * </p>
439            *
440            * @param active the active
441            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
442            * @return the last matching message boards mailing list
443            * @throws com.liferay.portlet.messageboards.NoSuchMailingListException if a matching message boards mailing list could not be found
444            * @throws SystemException if a system exception occurred
445            */
446            public static com.liferay.portlet.messageboards.model.MBMailingList findByActive_Last(
447                    boolean active,
448                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
449                    throws com.liferay.portal.kernel.exception.SystemException,
450                            com.liferay.portlet.messageboards.NoSuchMailingListException {
451                    return getPersistence().findByActive_Last(active, orderByComparator);
452            }
453    
454            /**
455            * Returns the message boards mailing lists before and after the current message boards mailing list in the ordered set where active = &#63;.
456            *
457            * <p>
458            * 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.
459            * </p>
460            *
461            * @param mailingListId the primary key of the current message boards mailing list
462            * @param active the active
463            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
464            * @return the previous, current, and next message boards mailing list
465            * @throws com.liferay.portlet.messageboards.NoSuchMailingListException if a message boards mailing list with the primary key could not be found
466            * @throws SystemException if a system exception occurred
467            */
468            public static com.liferay.portlet.messageboards.model.MBMailingList[] findByActive_PrevAndNext(
469                    long mailingListId, boolean active,
470                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
471                    throws com.liferay.portal.kernel.exception.SystemException,
472                            com.liferay.portlet.messageboards.NoSuchMailingListException {
473                    return getPersistence()
474                                       .findByActive_PrevAndNext(mailingListId, active,
475                            orderByComparator);
476            }
477    
478            /**
479            * 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.
480            *
481            * @param groupId the group ID
482            * @param categoryId the category ID
483            * @return the matching message boards mailing list
484            * @throws com.liferay.portlet.messageboards.NoSuchMailingListException 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 findByG_C(
488                    long groupId, long categoryId)
489                    throws com.liferay.portal.kernel.exception.SystemException,
490                            com.liferay.portlet.messageboards.NoSuchMailingListException {
491                    return getPersistence().findByG_C(groupId, categoryId);
492            }
493    
494            /**
495            * 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.
496            *
497            * @param groupId the group ID
498            * @param categoryId the category ID
499            * @return the matching message boards mailing list, or <code>null</code> if a matching message boards mailing list could not be found
500            * @throws SystemException if a system exception occurred
501            */
502            public static com.liferay.portlet.messageboards.model.MBMailingList fetchByG_C(
503                    long groupId, long categoryId)
504                    throws com.liferay.portal.kernel.exception.SystemException {
505                    return getPersistence().fetchByG_C(groupId, categoryId);
506            }
507    
508            /**
509            * 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.
510            *
511            * @param groupId the group ID
512            * @param categoryId the category ID
513            * @param retrieveFromCache whether to use the finder cache
514            * @return the matching message boards mailing list, or <code>null</code> if a matching message boards mailing list could not be found
515            * @throws SystemException if a system exception occurred
516            */
517            public static com.liferay.portlet.messageboards.model.MBMailingList fetchByG_C(
518                    long groupId, long categoryId, boolean retrieveFromCache)
519                    throws com.liferay.portal.kernel.exception.SystemException {
520                    return getPersistence()
521                                       .fetchByG_C(groupId, categoryId, retrieveFromCache);
522            }
523    
524            /**
525            * Returns all the message boards mailing lists.
526            *
527            * @return the message boards mailing lists
528            * @throws SystemException if a system exception occurred
529            */
530            public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findAll()
531                    throws com.liferay.portal.kernel.exception.SystemException {
532                    return getPersistence().findAll();
533            }
534    
535            /**
536            * Returns a range of all the message boards mailing lists.
537            *
538            * <p>
539            * 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.
540            * </p>
541            *
542            * @param start the lower bound of the range of message boards mailing lists
543            * @param end the upper bound of the range of message boards mailing lists (not inclusive)
544            * @return the range of message boards mailing lists
545            * @throws SystemException if a system exception occurred
546            */
547            public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findAll(
548                    int start, int end)
549                    throws com.liferay.portal.kernel.exception.SystemException {
550                    return getPersistence().findAll(start, end);
551            }
552    
553            /**
554            * Returns an ordered range of all the message boards mailing lists.
555            *
556            * <p>
557            * 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.
558            * </p>
559            *
560            * @param start the lower bound of the range of message boards mailing lists
561            * @param end the upper bound of the range of message boards mailing lists (not inclusive)
562            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
563            * @return the ordered range of 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                    int start, int end,
568                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
569                    throws com.liferay.portal.kernel.exception.SystemException {
570                    return getPersistence().findAll(start, end, orderByComparator);
571            }
572    
573            /**
574            * Removes all the message boards mailing lists where uuid = &#63; from the database.
575            *
576            * @param uuid the uuid
577            * @throws SystemException if a system exception occurred
578            */
579            public static void removeByUuid(java.lang.String uuid)
580                    throws com.liferay.portal.kernel.exception.SystemException {
581                    getPersistence().removeByUuid(uuid);
582            }
583    
584            /**
585            * Removes the message boards mailing list where uuid = &#63; and groupId = &#63; from the database.
586            *
587            * @param uuid the uuid
588            * @param groupId the group ID
589            * @throws SystemException if a system exception occurred
590            */
591            public static void removeByUUID_G(java.lang.String uuid, long groupId)
592                    throws com.liferay.portal.kernel.exception.SystemException,
593                            com.liferay.portlet.messageboards.NoSuchMailingListException {
594                    getPersistence().removeByUUID_G(uuid, groupId);
595            }
596    
597            /**
598            * Removes all the message boards mailing lists where active = &#63; from the database.
599            *
600            * @param active the active
601            * @throws SystemException if a system exception occurred
602            */
603            public static void removeByActive(boolean active)
604                    throws com.liferay.portal.kernel.exception.SystemException {
605                    getPersistence().removeByActive(active);
606            }
607    
608            /**
609            * Removes the message boards mailing list where groupId = &#63; and categoryId = &#63; from the database.
610            *
611            * @param groupId the group ID
612            * @param categoryId the category ID
613            * @throws SystemException if a system exception occurred
614            */
615            public static void removeByG_C(long groupId, long categoryId)
616                    throws com.liferay.portal.kernel.exception.SystemException,
617                            com.liferay.portlet.messageboards.NoSuchMailingListException {
618                    getPersistence().removeByG_C(groupId, categoryId);
619            }
620    
621            /**
622            * Removes all the message boards mailing lists from the database.
623            *
624            * @throws SystemException if a system exception occurred
625            */
626            public static void removeAll()
627                    throws com.liferay.portal.kernel.exception.SystemException {
628                    getPersistence().removeAll();
629            }
630    
631            /**
632            * Returns the number of message boards mailing lists where uuid = &#63;.
633            *
634            * @param uuid the uuid
635            * @return the number of matching message boards mailing lists
636            * @throws SystemException if a system exception occurred
637            */
638            public static int countByUuid(java.lang.String uuid)
639                    throws com.liferay.portal.kernel.exception.SystemException {
640                    return getPersistence().countByUuid(uuid);
641            }
642    
643            /**
644            * Returns the number of message boards mailing lists where uuid = &#63; and groupId = &#63;.
645            *
646            * @param uuid the uuid
647            * @param groupId the group ID
648            * @return the number of matching message boards mailing lists
649            * @throws SystemException if a system exception occurred
650            */
651            public static int countByUUID_G(java.lang.String uuid, long groupId)
652                    throws com.liferay.portal.kernel.exception.SystemException {
653                    return getPersistence().countByUUID_G(uuid, groupId);
654            }
655    
656            /**
657            * Returns the number of message boards mailing lists where active = &#63;.
658            *
659            * @param active the active
660            * @return the number of matching message boards mailing lists
661            * @throws SystemException if a system exception occurred
662            */
663            public static int countByActive(boolean active)
664                    throws com.liferay.portal.kernel.exception.SystemException {
665                    return getPersistence().countByActive(active);
666            }
667    
668            /**
669            * Returns the number of message boards mailing lists where groupId = &#63; and categoryId = &#63;.
670            *
671            * @param groupId the group ID
672            * @param categoryId the category ID
673            * @return the number of matching message boards mailing lists
674            * @throws SystemException if a system exception occurred
675            */
676            public static int countByG_C(long groupId, long categoryId)
677                    throws com.liferay.portal.kernel.exception.SystemException {
678                    return getPersistence().countByG_C(groupId, categoryId);
679            }
680    
681            /**
682            * Returns the number of message boards mailing lists.
683            *
684            * @return the number of message boards mailing lists
685            * @throws SystemException if a system exception occurred
686            */
687            public static int countAll()
688                    throws com.liferay.portal.kernel.exception.SystemException {
689                    return getPersistence().countAll();
690            }
691    
692            public static MBMailingListPersistence getPersistence() {
693                    if (_persistence == null) {
694                            _persistence = (MBMailingListPersistence)PortalBeanLocatorUtil.locate(MBMailingListPersistence.class.getName());
695    
696                            ReferenceRegistry.registerReference(MBMailingListUtil.class,
697                                    "_persistence");
698                    }
699    
700                    return _persistence;
701            }
702    
703            public void setPersistence(MBMailingListPersistence persistence) {
704                    _persistence = persistence;
705    
706                    ReferenceRegistry.registerReference(MBMailingListUtil.class,
707                            "_persistence");
708            }
709    
710            private static MBMailingListPersistence _persistence;
711    }