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.journal.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.journal.model.JournalFeed;
024    
025    import java.util.List;
026    
027    /**
028     * The persistence utility for the journal feed service. This utility wraps {@link JournalFeedPersistenceImpl} 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 JournalFeedPersistence
040     * @see JournalFeedPersistenceImpl
041     * @generated
042     */
043    public class JournalFeedUtil {
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(JournalFeed journalFeed) {
055                    getPersistence().clearCache(journalFeed);
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<JournalFeed> 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<JournalFeed> 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<JournalFeed> 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 JournalFeed remove(JournalFeed journalFeed)
098                    throws SystemException {
099                    return getPersistence().remove(journalFeed);
100            }
101    
102            /**
103             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
104             */
105            public static JournalFeed update(JournalFeed journalFeed, boolean merge)
106                    throws SystemException {
107                    return getPersistence().update(journalFeed, merge);
108            }
109    
110            /**
111             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
112             */
113            public static JournalFeed update(JournalFeed journalFeed, boolean merge,
114                    ServiceContext serviceContext) throws SystemException {
115                    return getPersistence().update(journalFeed, merge, serviceContext);
116            }
117    
118            /**
119            * Caches the journal feed in the entity cache if it is enabled.
120            *
121            * @param journalFeed the journal feed to cache
122            */
123            public static void cacheResult(
124                    com.liferay.portlet.journal.model.JournalFeed journalFeed) {
125                    getPersistence().cacheResult(journalFeed);
126            }
127    
128            /**
129            * Caches the journal feeds in the entity cache if it is enabled.
130            *
131            * @param journalFeeds the journal feeds to cache
132            */
133            public static void cacheResult(
134                    java.util.List<com.liferay.portlet.journal.model.JournalFeed> journalFeeds) {
135                    getPersistence().cacheResult(journalFeeds);
136            }
137    
138            /**
139            * Creates a new journal feed with the primary key. Does not add the journal feed to the database.
140            *
141            * @param id the primary key for the new journal feed
142            * @return the new journal feed
143            */
144            public static com.liferay.portlet.journal.model.JournalFeed create(long id) {
145                    return getPersistence().create(id);
146            }
147    
148            /**
149            * Removes the journal feed with the primary key from the database. Also notifies the appropriate model listeners.
150            *
151            * @param id the primary key of the journal feed to remove
152            * @return the journal feed that was removed
153            * @throws com.liferay.portlet.journal.NoSuchFeedException if a journal feed with the primary key could not be found
154            * @throws SystemException if a system exception occurred
155            */
156            public static com.liferay.portlet.journal.model.JournalFeed remove(long id)
157                    throws com.liferay.portal.kernel.exception.SystemException,
158                            com.liferay.portlet.journal.NoSuchFeedException {
159                    return getPersistence().remove(id);
160            }
161    
162            public static com.liferay.portlet.journal.model.JournalFeed updateImpl(
163                    com.liferay.portlet.journal.model.JournalFeed journalFeed, boolean merge)
164                    throws com.liferay.portal.kernel.exception.SystemException {
165                    return getPersistence().updateImpl(journalFeed, merge);
166            }
167    
168            /**
169            * Finds the journal feed with the primary key or throws a {@link com.liferay.portlet.journal.NoSuchFeedException} if it could not be found.
170            *
171            * @param id the primary key of the journal feed to find
172            * @return the journal feed
173            * @throws com.liferay.portlet.journal.NoSuchFeedException if a journal feed with the primary key could not be found
174            * @throws SystemException if a system exception occurred
175            */
176            public static com.liferay.portlet.journal.model.JournalFeed findByPrimaryKey(
177                    long id)
178                    throws com.liferay.portal.kernel.exception.SystemException,
179                            com.liferay.portlet.journal.NoSuchFeedException {
180                    return getPersistence().findByPrimaryKey(id);
181            }
182    
183            /**
184            * Finds the journal feed with the primary key or returns <code>null</code> if it could not be found.
185            *
186            * @param id the primary key of the journal feed to find
187            * @return the journal feed, or <code>null</code> if a journal feed with the primary key could not be found
188            * @throws SystemException if a system exception occurred
189            */
190            public static com.liferay.portlet.journal.model.JournalFeed fetchByPrimaryKey(
191                    long id) throws com.liferay.portal.kernel.exception.SystemException {
192                    return getPersistence().fetchByPrimaryKey(id);
193            }
194    
195            /**
196            * Finds all the journal feeds where uuid = &#63;.
197            *
198            * @param uuid the uuid to search with
199            * @return the matching journal feeds
200            * @throws SystemException if a system exception occurred
201            */
202            public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByUuid(
203                    java.lang.String uuid)
204                    throws com.liferay.portal.kernel.exception.SystemException {
205                    return getPersistence().findByUuid(uuid);
206            }
207    
208            /**
209            * Finds a range of all the journal feeds where uuid = &#63;.
210            *
211            * <p>
212            * 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.
213            * </p>
214            *
215            * @param uuid the uuid to search with
216            * @param start the lower bound of the range of journal feeds to return
217            * @param end the upper bound of the range of journal feeds to return (not inclusive)
218            * @return the range of matching journal feeds
219            * @throws SystemException if a system exception occurred
220            */
221            public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByUuid(
222                    java.lang.String uuid, int start, int end)
223                    throws com.liferay.portal.kernel.exception.SystemException {
224                    return getPersistence().findByUuid(uuid, start, end);
225            }
226    
227            /**
228            * Finds an ordered range of all the journal feeds where uuid = &#63;.
229            *
230            * <p>
231            * 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.
232            * </p>
233            *
234            * @param uuid the uuid to search with
235            * @param start the lower bound of the range of journal feeds to return
236            * @param end the upper bound of the range of journal feeds to return (not inclusive)
237            * @param orderByComparator the comparator to order the results by
238            * @return the ordered range of matching journal feeds
239            * @throws SystemException if a system exception occurred
240            */
241            public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByUuid(
242                    java.lang.String uuid, int start, int end,
243                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
244                    throws com.liferay.portal.kernel.exception.SystemException {
245                    return getPersistence().findByUuid(uuid, start, end, orderByComparator);
246            }
247    
248            /**
249            * Finds the first journal feed in the ordered set where uuid = &#63;.
250            *
251            * <p>
252            * 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.
253            * </p>
254            *
255            * @param uuid the uuid to search with
256            * @param orderByComparator the comparator to order the set by
257            * @return the first matching journal feed
258            * @throws com.liferay.portlet.journal.NoSuchFeedException if a matching journal feed could not be found
259            * @throws SystemException if a system exception occurred
260            */
261            public static com.liferay.portlet.journal.model.JournalFeed findByUuid_First(
262                    java.lang.String uuid,
263                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
264                    throws com.liferay.portal.kernel.exception.SystemException,
265                            com.liferay.portlet.journal.NoSuchFeedException {
266                    return getPersistence().findByUuid_First(uuid, orderByComparator);
267            }
268    
269            /**
270            * Finds the last journal feed in the ordered set where uuid = &#63;.
271            *
272            * <p>
273            * 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.
274            * </p>
275            *
276            * @param uuid the uuid to search with
277            * @param orderByComparator the comparator to order the set by
278            * @return the last matching journal feed
279            * @throws com.liferay.portlet.journal.NoSuchFeedException if a matching journal feed could not be found
280            * @throws SystemException if a system exception occurred
281            */
282            public static com.liferay.portlet.journal.model.JournalFeed findByUuid_Last(
283                    java.lang.String uuid,
284                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
285                    throws com.liferay.portal.kernel.exception.SystemException,
286                            com.liferay.portlet.journal.NoSuchFeedException {
287                    return getPersistence().findByUuid_Last(uuid, orderByComparator);
288            }
289    
290            /**
291            * Finds the journal feeds before and after the current journal feed in the ordered set where uuid = &#63;.
292            *
293            * <p>
294            * 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.
295            * </p>
296            *
297            * @param id the primary key of the current journal feed
298            * @param uuid the uuid to search with
299            * @param orderByComparator the comparator to order the set by
300            * @return the previous, current, and next journal feed
301            * @throws com.liferay.portlet.journal.NoSuchFeedException if a journal feed with the primary key could not be found
302            * @throws SystemException if a system exception occurred
303            */
304            public static com.liferay.portlet.journal.model.JournalFeed[] findByUuid_PrevAndNext(
305                    long id, java.lang.String uuid,
306                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
307                    throws com.liferay.portal.kernel.exception.SystemException,
308                            com.liferay.portlet.journal.NoSuchFeedException {
309                    return getPersistence()
310                                       .findByUuid_PrevAndNext(id, uuid, orderByComparator);
311            }
312    
313            /**
314            * Finds the journal feed where uuid = &#63; and groupId = &#63; or throws a {@link com.liferay.portlet.journal.NoSuchFeedException} if it could not be found.
315            *
316            * @param uuid the uuid to search with
317            * @param groupId the group id to search with
318            * @return the matching journal feed
319            * @throws com.liferay.portlet.journal.NoSuchFeedException if a matching journal feed could not be found
320            * @throws SystemException if a system exception occurred
321            */
322            public static com.liferay.portlet.journal.model.JournalFeed findByUUID_G(
323                    java.lang.String uuid, long groupId)
324                    throws com.liferay.portal.kernel.exception.SystemException,
325                            com.liferay.portlet.journal.NoSuchFeedException {
326                    return getPersistence().findByUUID_G(uuid, groupId);
327            }
328    
329            /**
330            * Finds the journal feed 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 to search with
333            * @param groupId the group id to search with
334            * @return the matching journal feed, or <code>null</code> if a matching journal feed could not be found
335            * @throws SystemException if a system exception occurred
336            */
337            public static com.liferay.portlet.journal.model.JournalFeed 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            * Finds the journal feed 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 to search with
347            * @param groupId the group id to search with
348            * @return the matching journal feed, or <code>null</code> if a matching journal feed could not be found
349            * @throws SystemException if a system exception occurred
350            */
351            public static com.liferay.portlet.journal.model.JournalFeed fetchByUUID_G(
352                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
353                    throws com.liferay.portal.kernel.exception.SystemException {
354                    return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
355            }
356    
357            /**
358            * Finds all the journal feeds where groupId = &#63;.
359            *
360            * @param groupId the group id to search with
361            * @return the matching journal feeds
362            * @throws SystemException if a system exception occurred
363            */
364            public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByGroupId(
365                    long groupId)
366                    throws com.liferay.portal.kernel.exception.SystemException {
367                    return getPersistence().findByGroupId(groupId);
368            }
369    
370            /**
371            * Finds a range of all the journal feeds where groupId = &#63;.
372            *
373            * <p>
374            * 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.
375            * </p>
376            *
377            * @param groupId the group id to search with
378            * @param start the lower bound of the range of journal feeds to return
379            * @param end the upper bound of the range of journal feeds to return (not inclusive)
380            * @return the range of matching journal feeds
381            * @throws SystemException if a system exception occurred
382            */
383            public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByGroupId(
384                    long groupId, int start, int end)
385                    throws com.liferay.portal.kernel.exception.SystemException {
386                    return getPersistence().findByGroupId(groupId, start, end);
387            }
388    
389            /**
390            * Finds an ordered range of all the journal feeds where groupId = &#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 groupId the group id to search with
397            * @param start the lower bound of the range of journal feeds to return
398            * @param end the upper bound of the range of journal feeds to return (not inclusive)
399            * @param orderByComparator the comparator to order the results by
400            * @return the ordered range of matching journal feeds
401            * @throws SystemException if a system exception occurred
402            */
403            public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByGroupId(
404                    long groupId, int start, int end,
405                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
406                    throws com.liferay.portal.kernel.exception.SystemException {
407                    return getPersistence()
408                                       .findByGroupId(groupId, start, end, orderByComparator);
409            }
410    
411            /**
412            * Finds the first journal feed in the ordered set where groupId = &#63;.
413            *
414            * <p>
415            * 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.
416            * </p>
417            *
418            * @param groupId the group id to search with
419            * @param orderByComparator the comparator to order the set by
420            * @return the first matching journal feed
421            * @throws com.liferay.portlet.journal.NoSuchFeedException if a matching journal feed could not be found
422            * @throws SystemException if a system exception occurred
423            */
424            public static com.liferay.portlet.journal.model.JournalFeed findByGroupId_First(
425                    long groupId,
426                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
427                    throws com.liferay.portal.kernel.exception.SystemException,
428                            com.liferay.portlet.journal.NoSuchFeedException {
429                    return getPersistence().findByGroupId_First(groupId, orderByComparator);
430            }
431    
432            /**
433            * Finds the last journal feed in the ordered set where groupId = &#63;.
434            *
435            * <p>
436            * 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.
437            * </p>
438            *
439            * @param groupId the group id to search with
440            * @param orderByComparator the comparator to order the set by
441            * @return the last matching journal feed
442            * @throws com.liferay.portlet.journal.NoSuchFeedException if a matching journal feed could not be found
443            * @throws SystemException if a system exception occurred
444            */
445            public static com.liferay.portlet.journal.model.JournalFeed findByGroupId_Last(
446                    long groupId,
447                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
448                    throws com.liferay.portal.kernel.exception.SystemException,
449                            com.liferay.portlet.journal.NoSuchFeedException {
450                    return getPersistence().findByGroupId_Last(groupId, orderByComparator);
451            }
452    
453            /**
454            * Finds the journal feeds before and after the current journal feed in the ordered set where groupId = &#63;.
455            *
456            * <p>
457            * 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.
458            * </p>
459            *
460            * @param id the primary key of the current journal feed
461            * @param groupId the group id to search with
462            * @param orderByComparator the comparator to order the set by
463            * @return the previous, current, and next journal feed
464            * @throws com.liferay.portlet.journal.NoSuchFeedException if a journal feed with the primary key could not be found
465            * @throws SystemException if a system exception occurred
466            */
467            public static com.liferay.portlet.journal.model.JournalFeed[] findByGroupId_PrevAndNext(
468                    long id, long groupId,
469                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
470                    throws com.liferay.portal.kernel.exception.SystemException,
471                            com.liferay.portlet.journal.NoSuchFeedException {
472                    return getPersistence()
473                                       .findByGroupId_PrevAndNext(id, groupId, orderByComparator);
474            }
475    
476            /**
477            * Filters by the user's permissions and finds all the journal feeds where groupId = &#63;.
478            *
479            * @param groupId the group id to search with
480            * @return the matching journal feeds that the user has permission to view
481            * @throws SystemException if a system exception occurred
482            */
483            public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> filterFindByGroupId(
484                    long groupId)
485                    throws com.liferay.portal.kernel.exception.SystemException {
486                    return getPersistence().filterFindByGroupId(groupId);
487            }
488    
489            /**
490            * Filters by the user's permissions and finds a range of all the journal feeds where groupId = &#63;.
491            *
492            * <p>
493            * 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.
494            * </p>
495            *
496            * @param groupId the group id to search with
497            * @param start the lower bound of the range of journal feeds to return
498            * @param end the upper bound of the range of journal feeds to return (not inclusive)
499            * @return the range of matching journal feeds that the user has permission to view
500            * @throws SystemException if a system exception occurred
501            */
502            public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> filterFindByGroupId(
503                    long groupId, int start, int end)
504                    throws com.liferay.portal.kernel.exception.SystemException {
505                    return getPersistence().filterFindByGroupId(groupId, start, end);
506            }
507    
508            /**
509            * Filters by the user's permissions and finds an ordered range of all the journal feeds where groupId = &#63;.
510            *
511            * <p>
512            * 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.
513            * </p>
514            *
515            * @param groupId the group id to search with
516            * @param start the lower bound of the range of journal feeds to return
517            * @param end the upper bound of the range of journal feeds to return (not inclusive)
518            * @param orderByComparator the comparator to order the results by
519            * @return the ordered range of matching journal feeds that the user has permission to view
520            * @throws SystemException if a system exception occurred
521            */
522            public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> filterFindByGroupId(
523                    long groupId, int start, int end,
524                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
525                    throws com.liferay.portal.kernel.exception.SystemException {
526                    return getPersistence()
527                                       .filterFindByGroupId(groupId, start, end, orderByComparator);
528            }
529    
530            /**
531            * Finds the journal feed where groupId = &#63; and feedId = &#63; or throws a {@link com.liferay.portlet.journal.NoSuchFeedException} if it could not be found.
532            *
533            * @param groupId the group id to search with
534            * @param feedId the feed id to search with
535            * @return the matching journal feed
536            * @throws com.liferay.portlet.journal.NoSuchFeedException if a matching journal feed could not be found
537            * @throws SystemException if a system exception occurred
538            */
539            public static com.liferay.portlet.journal.model.JournalFeed findByG_F(
540                    long groupId, java.lang.String feedId)
541                    throws com.liferay.portal.kernel.exception.SystemException,
542                            com.liferay.portlet.journal.NoSuchFeedException {
543                    return getPersistence().findByG_F(groupId, feedId);
544            }
545    
546            /**
547            * Finds the journal feed where groupId = &#63; and feedId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
548            *
549            * @param groupId the group id to search with
550            * @param feedId the feed id to search with
551            * @return the matching journal feed, or <code>null</code> if a matching journal feed could not be found
552            * @throws SystemException if a system exception occurred
553            */
554            public static com.liferay.portlet.journal.model.JournalFeed fetchByG_F(
555                    long groupId, java.lang.String feedId)
556                    throws com.liferay.portal.kernel.exception.SystemException {
557                    return getPersistence().fetchByG_F(groupId, feedId);
558            }
559    
560            /**
561            * Finds the journal feed where groupId = &#63; and feedId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
562            *
563            * @param groupId the group id to search with
564            * @param feedId the feed id to search with
565            * @return the matching journal feed, or <code>null</code> if a matching journal feed could not be found
566            * @throws SystemException if a system exception occurred
567            */
568            public static com.liferay.portlet.journal.model.JournalFeed fetchByG_F(
569                    long groupId, java.lang.String feedId, boolean retrieveFromCache)
570                    throws com.liferay.portal.kernel.exception.SystemException {
571                    return getPersistence().fetchByG_F(groupId, feedId, retrieveFromCache);
572            }
573    
574            /**
575            * Finds all the journal feeds.
576            *
577            * @return the journal feeds
578            * @throws SystemException if a system exception occurred
579            */
580            public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findAll()
581                    throws com.liferay.portal.kernel.exception.SystemException {
582                    return getPersistence().findAll();
583            }
584    
585            /**
586            * Finds a range of all the journal feeds.
587            *
588            * <p>
589            * 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.
590            * </p>
591            *
592            * @param start the lower bound of the range of journal feeds to return
593            * @param end the upper bound of the range of journal feeds to return (not inclusive)
594            * @return the range of journal feeds
595            * @throws SystemException if a system exception occurred
596            */
597            public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findAll(
598                    int start, int end)
599                    throws com.liferay.portal.kernel.exception.SystemException {
600                    return getPersistence().findAll(start, end);
601            }
602    
603            /**
604            * Finds an ordered range of all the journal feeds.
605            *
606            * <p>
607            * 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.
608            * </p>
609            *
610            * @param start the lower bound of the range of journal feeds to return
611            * @param end the upper bound of the range of journal feeds to return (not inclusive)
612            * @param orderByComparator the comparator to order the results by
613            * @return the ordered range of journal feeds
614            * @throws SystemException if a system exception occurred
615            */
616            public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findAll(
617                    int start, int end,
618                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
619                    throws com.liferay.portal.kernel.exception.SystemException {
620                    return getPersistence().findAll(start, end, orderByComparator);
621            }
622    
623            /**
624            * Removes all the journal feeds where uuid = &#63; from the database.
625            *
626            * @param uuid the uuid to search with
627            * @throws SystemException if a system exception occurred
628            */
629            public static void removeByUuid(java.lang.String uuid)
630                    throws com.liferay.portal.kernel.exception.SystemException {
631                    getPersistence().removeByUuid(uuid);
632            }
633    
634            /**
635            * Removes the journal feed where uuid = &#63; and groupId = &#63; from the database.
636            *
637            * @param uuid the uuid to search with
638            * @param groupId the group id to search with
639            * @throws SystemException if a system exception occurred
640            */
641            public static void removeByUUID_G(java.lang.String uuid, long groupId)
642                    throws com.liferay.portal.kernel.exception.SystemException,
643                            com.liferay.portlet.journal.NoSuchFeedException {
644                    getPersistence().removeByUUID_G(uuid, groupId);
645            }
646    
647            /**
648            * Removes all the journal feeds where groupId = &#63; from the database.
649            *
650            * @param groupId the group id to search with
651            * @throws SystemException if a system exception occurred
652            */
653            public static void removeByGroupId(long groupId)
654                    throws com.liferay.portal.kernel.exception.SystemException {
655                    getPersistence().removeByGroupId(groupId);
656            }
657    
658            /**
659            * Removes the journal feed where groupId = &#63; and feedId = &#63; from the database.
660            *
661            * @param groupId the group id to search with
662            * @param feedId the feed id to search with
663            * @throws SystemException if a system exception occurred
664            */
665            public static void removeByG_F(long groupId, java.lang.String feedId)
666                    throws com.liferay.portal.kernel.exception.SystemException,
667                            com.liferay.portlet.journal.NoSuchFeedException {
668                    getPersistence().removeByG_F(groupId, feedId);
669            }
670    
671            /**
672            * Removes all the journal feeds from the database.
673            *
674            * @throws SystemException if a system exception occurred
675            */
676            public static void removeAll()
677                    throws com.liferay.portal.kernel.exception.SystemException {
678                    getPersistence().removeAll();
679            }
680    
681            /**
682            * Counts all the journal feeds where uuid = &#63;.
683            *
684            * @param uuid the uuid to search with
685            * @return the number of matching journal feeds
686            * @throws SystemException if a system exception occurred
687            */
688            public static int countByUuid(java.lang.String uuid)
689                    throws com.liferay.portal.kernel.exception.SystemException {
690                    return getPersistence().countByUuid(uuid);
691            }
692    
693            /**
694            * Counts all the journal feeds where uuid = &#63; and groupId = &#63;.
695            *
696            * @param uuid the uuid to search with
697            * @param groupId the group id to search with
698            * @return the number of matching journal feeds
699            * @throws SystemException if a system exception occurred
700            */
701            public static int countByUUID_G(java.lang.String uuid, long groupId)
702                    throws com.liferay.portal.kernel.exception.SystemException {
703                    return getPersistence().countByUUID_G(uuid, groupId);
704            }
705    
706            /**
707            * Counts all the journal feeds where groupId = &#63;.
708            *
709            * @param groupId the group id to search with
710            * @return the number of matching journal feeds
711            * @throws SystemException if a system exception occurred
712            */
713            public static int countByGroupId(long groupId)
714                    throws com.liferay.portal.kernel.exception.SystemException {
715                    return getPersistence().countByGroupId(groupId);
716            }
717    
718            /**
719            * Filters by the user's permissions and counts all the journal feeds where groupId = &#63;.
720            *
721            * @param groupId the group id to search with
722            * @return the number of matching journal feeds that the user has permission to view
723            * @throws SystemException if a system exception occurred
724            */
725            public static int filterCountByGroupId(long groupId)
726                    throws com.liferay.portal.kernel.exception.SystemException {
727                    return getPersistence().filterCountByGroupId(groupId);
728            }
729    
730            /**
731            * Counts all the journal feeds where groupId = &#63; and feedId = &#63;.
732            *
733            * @param groupId the group id to search with
734            * @param feedId the feed id to search with
735            * @return the number of matching journal feeds
736            * @throws SystemException if a system exception occurred
737            */
738            public static int countByG_F(long groupId, java.lang.String feedId)
739                    throws com.liferay.portal.kernel.exception.SystemException {
740                    return getPersistence().countByG_F(groupId, feedId);
741            }
742    
743            /**
744            * Filters by the user's permissions and counts all the journal feeds where groupId = &#63; and feedId = &#63;.
745            *
746            * @param groupId the group id to search with
747            * @param feedId the feed id to search with
748            * @return the number of matching journal feeds that the user has permission to view
749            * @throws SystemException if a system exception occurred
750            */
751            public static int filterCountByG_F(long groupId, java.lang.String feedId)
752                    throws com.liferay.portal.kernel.exception.SystemException {
753                    return getPersistence().filterCountByG_F(groupId, feedId);
754            }
755    
756            /**
757            * Counts all the journal feeds.
758            *
759            * @return the number of journal feeds
760            * @throws SystemException if a system exception occurred
761            */
762            public static int countAll()
763                    throws com.liferay.portal.kernel.exception.SystemException {
764                    return getPersistence().countAll();
765            }
766    
767            public static JournalFeedPersistence getPersistence() {
768                    if (_persistence == null) {
769                            _persistence = (JournalFeedPersistence)PortalBeanLocatorUtil.locate(JournalFeedPersistence.class.getName());
770                    }
771    
772                    return _persistence;
773            }
774    
775            public void setPersistence(JournalFeedPersistence persistence) {
776                    _persistence = persistence;
777            }
778    
779            private static JournalFeedPersistence _persistence;
780    }