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.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.kernel.util.ReferenceRegistry;
022    import com.liferay.portal.service.ServiceContext;
023    
024    import com.liferay.portlet.journal.model.JournalFeed;
025    
026    import java.util.List;
027    
028    /**
029     * 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.
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 JournalFeedPersistence
037     * @see JournalFeedPersistenceImpl
038     * @generated
039     */
040    public class JournalFeedUtil {
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(JournalFeed journalFeed) {
058                    getPersistence().clearCache(journalFeed);
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<JournalFeed> 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<JournalFeed> 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<JournalFeed> 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)
099             */
100            public static JournalFeed update(JournalFeed journalFeed)
101                    throws SystemException {
102                    return getPersistence().update(journalFeed);
103            }
104    
105            /**
106             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext)
107             */
108            public static JournalFeed update(JournalFeed journalFeed,
109                    ServiceContext serviceContext) throws SystemException {
110                    return getPersistence().update(journalFeed, serviceContext);
111            }
112    
113            /**
114            * Caches the journal feed in the entity cache if it is enabled.
115            *
116            * @param journalFeed the journal feed
117            */
118            public static void cacheResult(
119                    com.liferay.portlet.journal.model.JournalFeed journalFeed) {
120                    getPersistence().cacheResult(journalFeed);
121            }
122    
123            /**
124            * Caches the journal feeds in the entity cache if it is enabled.
125            *
126            * @param journalFeeds the journal feeds
127            */
128            public static void cacheResult(
129                    java.util.List<com.liferay.portlet.journal.model.JournalFeed> journalFeeds) {
130                    getPersistence().cacheResult(journalFeeds);
131            }
132    
133            /**
134            * Creates a new journal feed with the primary key. Does not add the journal feed to the database.
135            *
136            * @param id the primary key for the new journal feed
137            * @return the new journal feed
138            */
139            public static com.liferay.portlet.journal.model.JournalFeed create(long id) {
140                    return getPersistence().create(id);
141            }
142    
143            /**
144            * Removes the journal feed with the primary key from the database. Also notifies the appropriate model listeners.
145            *
146            * @param id the primary key of the journal feed
147            * @return the journal feed that was removed
148            * @throws com.liferay.portlet.journal.NoSuchFeedException if a journal feed with the primary key could not be found
149            * @throws SystemException if a system exception occurred
150            */
151            public static com.liferay.portlet.journal.model.JournalFeed remove(long id)
152                    throws com.liferay.portal.kernel.exception.SystemException,
153                            com.liferay.portlet.journal.NoSuchFeedException {
154                    return getPersistence().remove(id);
155            }
156    
157            public static com.liferay.portlet.journal.model.JournalFeed updateImpl(
158                    com.liferay.portlet.journal.model.JournalFeed journalFeed)
159                    throws com.liferay.portal.kernel.exception.SystemException {
160                    return getPersistence().updateImpl(journalFeed);
161            }
162    
163            /**
164            * Returns the journal feed with the primary key or throws a {@link com.liferay.portlet.journal.NoSuchFeedException} if it could not be found.
165            *
166            * @param id the primary key of the journal feed
167            * @return the journal feed
168            * @throws com.liferay.portlet.journal.NoSuchFeedException if a journal feed with the primary key could not be found
169            * @throws SystemException if a system exception occurred
170            */
171            public static com.liferay.portlet.journal.model.JournalFeed findByPrimaryKey(
172                    long id)
173                    throws com.liferay.portal.kernel.exception.SystemException,
174                            com.liferay.portlet.journal.NoSuchFeedException {
175                    return getPersistence().findByPrimaryKey(id);
176            }
177    
178            /**
179            * Returns the journal feed with the primary key or returns <code>null</code> if it could not be found.
180            *
181            * @param id the primary key of the journal feed
182            * @return the journal feed, or <code>null</code> if a journal feed with the primary key could not be found
183            * @throws SystemException if a system exception occurred
184            */
185            public static com.liferay.portlet.journal.model.JournalFeed fetchByPrimaryKey(
186                    long id) throws com.liferay.portal.kernel.exception.SystemException {
187                    return getPersistence().fetchByPrimaryKey(id);
188            }
189    
190            /**
191            * Returns all the journal feeds where uuid = &#63;.
192            *
193            * @param uuid the uuid
194            * @return the matching journal feeds
195            * @throws SystemException if a system exception occurred
196            */
197            public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByUuid(
198                    java.lang.String uuid)
199                    throws com.liferay.portal.kernel.exception.SystemException {
200                    return getPersistence().findByUuid(uuid);
201            }
202    
203            /**
204            * Returns a range of all the journal feeds where uuid = &#63;.
205            *
206            * <p>
207            * 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.
208            * </p>
209            *
210            * @param uuid the uuid
211            * @param start the lower bound of the range of journal feeds
212            * @param end the upper bound of the range of journal feeds (not inclusive)
213            * @return the range of matching journal feeds
214            * @throws SystemException if a system exception occurred
215            */
216            public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByUuid(
217                    java.lang.String uuid, int start, int end)
218                    throws com.liferay.portal.kernel.exception.SystemException {
219                    return getPersistence().findByUuid(uuid, start, end);
220            }
221    
222            /**
223            * Returns an ordered range of all the journal feeds where uuid = &#63;.
224            *
225            * <p>
226            * 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.
227            * </p>
228            *
229            * @param uuid the uuid
230            * @param start the lower bound of the range of journal feeds
231            * @param end the upper bound of the range of journal feeds (not inclusive)
232            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
233            * @return the ordered range of matching journal feeds
234            * @throws SystemException if a system exception occurred
235            */
236            public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByUuid(
237                    java.lang.String uuid, int start, int end,
238                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
239                    throws com.liferay.portal.kernel.exception.SystemException {
240                    return getPersistence().findByUuid(uuid, start, end, orderByComparator);
241            }
242    
243            /**
244            * Returns the first journal feed in the ordered set where uuid = &#63;.
245            *
246            * @param uuid the uuid
247            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
248            * @return the first matching journal feed
249            * @throws com.liferay.portlet.journal.NoSuchFeedException if a matching journal feed could not be found
250            * @throws SystemException if a system exception occurred
251            */
252            public static com.liferay.portlet.journal.model.JournalFeed findByUuid_First(
253                    java.lang.String uuid,
254                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
255                    throws com.liferay.portal.kernel.exception.SystemException,
256                            com.liferay.portlet.journal.NoSuchFeedException {
257                    return getPersistence().findByUuid_First(uuid, orderByComparator);
258            }
259    
260            /**
261            * Returns the first journal feed in the ordered set where uuid = &#63;.
262            *
263            * @param uuid the uuid
264            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
265            * @return the first matching journal feed, or <code>null</code> if a matching journal feed could not be found
266            * @throws SystemException if a system exception occurred
267            */
268            public static com.liferay.portlet.journal.model.JournalFeed fetchByUuid_First(
269                    java.lang.String uuid,
270                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
271                    throws com.liferay.portal.kernel.exception.SystemException {
272                    return getPersistence().fetchByUuid_First(uuid, orderByComparator);
273            }
274    
275            /**
276            * Returns the last journal feed in the ordered set where uuid = &#63;.
277            *
278            * @param uuid the uuid
279            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
280            * @return the last matching journal feed
281            * @throws com.liferay.portlet.journal.NoSuchFeedException if a matching journal feed could not be found
282            * @throws SystemException if a system exception occurred
283            */
284            public static com.liferay.portlet.journal.model.JournalFeed findByUuid_Last(
285                    java.lang.String uuid,
286                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
287                    throws com.liferay.portal.kernel.exception.SystemException,
288                            com.liferay.portlet.journal.NoSuchFeedException {
289                    return getPersistence().findByUuid_Last(uuid, orderByComparator);
290            }
291    
292            /**
293            * Returns the last journal feed in the ordered set where uuid = &#63;.
294            *
295            * @param uuid the uuid
296            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
297            * @return the last matching journal feed, or <code>null</code> if a matching journal feed could not be found
298            * @throws SystemException if a system exception occurred
299            */
300            public static com.liferay.portlet.journal.model.JournalFeed fetchByUuid_Last(
301                    java.lang.String uuid,
302                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
303                    throws com.liferay.portal.kernel.exception.SystemException {
304                    return getPersistence().fetchByUuid_Last(uuid, orderByComparator);
305            }
306    
307            /**
308            * Returns the journal feeds before and after the current journal feed in the ordered set where uuid = &#63;.
309            *
310            * @param id the primary key of the current journal feed
311            * @param uuid the uuid
312            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
313            * @return the previous, current, and next journal feed
314            * @throws com.liferay.portlet.journal.NoSuchFeedException if a journal feed with the primary key could not be found
315            * @throws SystemException if a system exception occurred
316            */
317            public static com.liferay.portlet.journal.model.JournalFeed[] findByUuid_PrevAndNext(
318                    long id, java.lang.String uuid,
319                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
320                    throws com.liferay.portal.kernel.exception.SystemException,
321                            com.liferay.portlet.journal.NoSuchFeedException {
322                    return getPersistence()
323                                       .findByUuid_PrevAndNext(id, uuid, orderByComparator);
324            }
325    
326            /**
327            * Returns the journal feed where uuid = &#63; and groupId = &#63; or throws a {@link com.liferay.portlet.journal.NoSuchFeedException} if it could not be found.
328            *
329            * @param uuid the uuid
330            * @param groupId the group ID
331            * @return the matching journal feed
332            * @throws com.liferay.portlet.journal.NoSuchFeedException if a matching journal feed could not be found
333            * @throws SystemException if a system exception occurred
334            */
335            public static com.liferay.portlet.journal.model.JournalFeed findByUUID_G(
336                    java.lang.String uuid, long groupId)
337                    throws com.liferay.portal.kernel.exception.SystemException,
338                            com.liferay.portlet.journal.NoSuchFeedException {
339                    return getPersistence().findByUUID_G(uuid, groupId);
340            }
341    
342            /**
343            * Returns the journal feed where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
344            *
345            * @param uuid the uuid
346            * @param groupId the group ID
347            * @return the matching journal feed, or <code>null</code> if a matching journal feed could not be found
348            * @throws SystemException if a system exception occurred
349            */
350            public static com.liferay.portlet.journal.model.JournalFeed fetchByUUID_G(
351                    java.lang.String uuid, long groupId)
352                    throws com.liferay.portal.kernel.exception.SystemException {
353                    return getPersistence().fetchByUUID_G(uuid, groupId);
354            }
355    
356            /**
357            * Returns 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.
358            *
359            * @param uuid the uuid
360            * @param groupId the group ID
361            * @param retrieveFromCache whether to use the finder cache
362            * @return the matching journal feed, or <code>null</code> if a matching journal feed could not be found
363            * @throws SystemException if a system exception occurred
364            */
365            public static com.liferay.portlet.journal.model.JournalFeed fetchByUUID_G(
366                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
367                    throws com.liferay.portal.kernel.exception.SystemException {
368                    return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
369            }
370    
371            /**
372            * Returns all the journal feeds where uuid = &#63; and companyId = &#63;.
373            *
374            * @param uuid the uuid
375            * @param companyId the company ID
376            * @return the matching journal feeds
377            * @throws SystemException if a system exception occurred
378            */
379            public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByUuid_C(
380                    java.lang.String uuid, long companyId)
381                    throws com.liferay.portal.kernel.exception.SystemException {
382                    return getPersistence().findByUuid_C(uuid, companyId);
383            }
384    
385            /**
386            * Returns a range of all the journal feeds where uuid = &#63; and companyId = &#63;.
387            *
388            * <p>
389            * 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.
390            * </p>
391            *
392            * @param uuid the uuid
393            * @param companyId the company ID
394            * @param start the lower bound of the range of journal feeds
395            * @param end the upper bound of the range of journal feeds (not inclusive)
396            * @return the range of matching journal feeds
397            * @throws SystemException if a system exception occurred
398            */
399            public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByUuid_C(
400                    java.lang.String uuid, long companyId, int start, int end)
401                    throws com.liferay.portal.kernel.exception.SystemException {
402                    return getPersistence().findByUuid_C(uuid, companyId, start, end);
403            }
404    
405            /**
406            * Returns an ordered range of all the journal feeds where uuid = &#63; and companyId = &#63;.
407            *
408            * <p>
409            * 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.
410            * </p>
411            *
412            * @param uuid the uuid
413            * @param companyId the company ID
414            * @param start the lower bound of the range of journal feeds
415            * @param end the upper bound of the range of journal feeds (not inclusive)
416            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
417            * @return the ordered range of matching journal feeds
418            * @throws SystemException if a system exception occurred
419            */
420            public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByUuid_C(
421                    java.lang.String uuid, long companyId, int start, int end,
422                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
423                    throws com.liferay.portal.kernel.exception.SystemException {
424                    return getPersistence()
425                                       .findByUuid_C(uuid, companyId, start, end, orderByComparator);
426            }
427    
428            /**
429            * Returns the first journal feed in the ordered set where uuid = &#63; and companyId = &#63;.
430            *
431            * @param uuid the uuid
432            * @param companyId the company ID
433            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
434            * @return the first matching journal feed
435            * @throws com.liferay.portlet.journal.NoSuchFeedException if a matching journal feed could not be found
436            * @throws SystemException if a system exception occurred
437            */
438            public static com.liferay.portlet.journal.model.JournalFeed findByUuid_C_First(
439                    java.lang.String uuid, long companyId,
440                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
441                    throws com.liferay.portal.kernel.exception.SystemException,
442                            com.liferay.portlet.journal.NoSuchFeedException {
443                    return getPersistence()
444                                       .findByUuid_C_First(uuid, companyId, orderByComparator);
445            }
446    
447            /**
448            * Returns the first journal feed in the ordered set where uuid = &#63; and companyId = &#63;.
449            *
450            * @param uuid the uuid
451            * @param companyId the company ID
452            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
453            * @return the first matching journal feed, or <code>null</code> if a matching journal feed could not be found
454            * @throws SystemException if a system exception occurred
455            */
456            public static com.liferay.portlet.journal.model.JournalFeed fetchByUuid_C_First(
457                    java.lang.String uuid, long companyId,
458                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
459                    throws com.liferay.portal.kernel.exception.SystemException {
460                    return getPersistence()
461                                       .fetchByUuid_C_First(uuid, companyId, orderByComparator);
462            }
463    
464            /**
465            * Returns the last journal feed in the ordered set where uuid = &#63; and companyId = &#63;.
466            *
467            * @param uuid the uuid
468            * @param companyId the company ID
469            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
470            * @return the last matching journal feed
471            * @throws com.liferay.portlet.journal.NoSuchFeedException if a matching journal feed could not be found
472            * @throws SystemException if a system exception occurred
473            */
474            public static com.liferay.portlet.journal.model.JournalFeed findByUuid_C_Last(
475                    java.lang.String uuid, long companyId,
476                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
477                    throws com.liferay.portal.kernel.exception.SystemException,
478                            com.liferay.portlet.journal.NoSuchFeedException {
479                    return getPersistence()
480                                       .findByUuid_C_Last(uuid, companyId, orderByComparator);
481            }
482    
483            /**
484            * Returns the last journal feed in the ordered set where uuid = &#63; and companyId = &#63;.
485            *
486            * @param uuid the uuid
487            * @param companyId the company ID
488            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
489            * @return the last matching journal feed, or <code>null</code> if a matching journal feed could not be found
490            * @throws SystemException if a system exception occurred
491            */
492            public static com.liferay.portlet.journal.model.JournalFeed fetchByUuid_C_Last(
493                    java.lang.String uuid, long companyId,
494                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
495                    throws com.liferay.portal.kernel.exception.SystemException {
496                    return getPersistence()
497                                       .fetchByUuid_C_Last(uuid, companyId, orderByComparator);
498            }
499    
500            /**
501            * Returns the journal feeds before and after the current journal feed in the ordered set where uuid = &#63; and companyId = &#63;.
502            *
503            * @param id the primary key of the current journal feed
504            * @param uuid the uuid
505            * @param companyId the company ID
506            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
507            * @return the previous, current, and next journal feed
508            * @throws com.liferay.portlet.journal.NoSuchFeedException if a journal feed with the primary key could not be found
509            * @throws SystemException if a system exception occurred
510            */
511            public static com.liferay.portlet.journal.model.JournalFeed[] findByUuid_C_PrevAndNext(
512                    long id, java.lang.String uuid, long companyId,
513                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
514                    throws com.liferay.portal.kernel.exception.SystemException,
515                            com.liferay.portlet.journal.NoSuchFeedException {
516                    return getPersistence()
517                                       .findByUuid_C_PrevAndNext(id, uuid, companyId,
518                            orderByComparator);
519            }
520    
521            /**
522            * Returns all the journal feeds where groupId = &#63;.
523            *
524            * @param groupId the group ID
525            * @return the matching journal feeds
526            * @throws SystemException if a system exception occurred
527            */
528            public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByGroupId(
529                    long groupId)
530                    throws com.liferay.portal.kernel.exception.SystemException {
531                    return getPersistence().findByGroupId(groupId);
532            }
533    
534            /**
535            * Returns a range of all the journal feeds where groupId = &#63;.
536            *
537            * <p>
538            * 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.
539            * </p>
540            *
541            * @param groupId the group ID
542            * @param start the lower bound of the range of journal feeds
543            * @param end the upper bound of the range of journal feeds (not inclusive)
544            * @return the range of matching journal feeds
545            * @throws SystemException if a system exception occurred
546            */
547            public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByGroupId(
548                    long groupId, int start, int end)
549                    throws com.liferay.portal.kernel.exception.SystemException {
550                    return getPersistence().findByGroupId(groupId, start, end);
551            }
552    
553            /**
554            * Returns an ordered range of all the journal feeds where groupId = &#63;.
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 groupId the group ID
561            * @param start the lower bound of the range of journal feeds
562            * @param end the upper bound of the range of journal feeds (not inclusive)
563            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
564            * @return the ordered range of matching journal feeds
565            * @throws SystemException if a system exception occurred
566            */
567            public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByGroupId(
568                    long groupId, int start, int end,
569                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
570                    throws com.liferay.portal.kernel.exception.SystemException {
571                    return getPersistence()
572                                       .findByGroupId(groupId, start, end, orderByComparator);
573            }
574    
575            /**
576            * Returns the first journal feed in the ordered set where groupId = &#63;.
577            *
578            * @param groupId the group ID
579            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
580            * @return the first matching journal feed
581            * @throws com.liferay.portlet.journal.NoSuchFeedException if a matching journal feed could not be found
582            * @throws SystemException if a system exception occurred
583            */
584            public static com.liferay.portlet.journal.model.JournalFeed findByGroupId_First(
585                    long groupId,
586                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
587                    throws com.liferay.portal.kernel.exception.SystemException,
588                            com.liferay.portlet.journal.NoSuchFeedException {
589                    return getPersistence().findByGroupId_First(groupId, orderByComparator);
590            }
591    
592            /**
593            * Returns the first journal feed in the ordered set where groupId = &#63;.
594            *
595            * @param groupId the group ID
596            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
597            * @return the first matching journal feed, or <code>null</code> if a matching journal feed could not be found
598            * @throws SystemException if a system exception occurred
599            */
600            public static com.liferay.portlet.journal.model.JournalFeed fetchByGroupId_First(
601                    long groupId,
602                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
603                    throws com.liferay.portal.kernel.exception.SystemException {
604                    return getPersistence().fetchByGroupId_First(groupId, orderByComparator);
605            }
606    
607            /**
608            * Returns the last journal feed in the ordered set where groupId = &#63;.
609            *
610            * @param groupId the group ID
611            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
612            * @return the last matching journal feed
613            * @throws com.liferay.portlet.journal.NoSuchFeedException if a matching journal feed could not be found
614            * @throws SystemException if a system exception occurred
615            */
616            public static com.liferay.portlet.journal.model.JournalFeed findByGroupId_Last(
617                    long groupId,
618                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
619                    throws com.liferay.portal.kernel.exception.SystemException,
620                            com.liferay.portlet.journal.NoSuchFeedException {
621                    return getPersistence().findByGroupId_Last(groupId, orderByComparator);
622            }
623    
624            /**
625            * Returns the last journal feed in the ordered set where groupId = &#63;.
626            *
627            * @param groupId the group ID
628            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
629            * @return the last matching journal feed, or <code>null</code> if a matching journal feed could not be found
630            * @throws SystemException if a system exception occurred
631            */
632            public static com.liferay.portlet.journal.model.JournalFeed fetchByGroupId_Last(
633                    long groupId,
634                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
635                    throws com.liferay.portal.kernel.exception.SystemException {
636                    return getPersistence().fetchByGroupId_Last(groupId, orderByComparator);
637            }
638    
639            /**
640            * Returns the journal feeds before and after the current journal feed in the ordered set where groupId = &#63;.
641            *
642            * @param id the primary key of the current journal feed
643            * @param groupId the group ID
644            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
645            * @return the previous, current, and next journal feed
646            * @throws com.liferay.portlet.journal.NoSuchFeedException if a journal feed with the primary key could not be found
647            * @throws SystemException if a system exception occurred
648            */
649            public static com.liferay.portlet.journal.model.JournalFeed[] findByGroupId_PrevAndNext(
650                    long id, long groupId,
651                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
652                    throws com.liferay.portal.kernel.exception.SystemException,
653                            com.liferay.portlet.journal.NoSuchFeedException {
654                    return getPersistence()
655                                       .findByGroupId_PrevAndNext(id, groupId, orderByComparator);
656            }
657    
658            /**
659            * Returns all the journal feeds that the user has permission to view where groupId = &#63;.
660            *
661            * @param groupId the group ID
662            * @return the matching journal feeds that the user has permission to view
663            * @throws SystemException if a system exception occurred
664            */
665            public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> filterFindByGroupId(
666                    long groupId)
667                    throws com.liferay.portal.kernel.exception.SystemException {
668                    return getPersistence().filterFindByGroupId(groupId);
669            }
670    
671            /**
672            * Returns a range of all the journal feeds that the user has permission to view where groupId = &#63;.
673            *
674            * <p>
675            * 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.
676            * </p>
677            *
678            * @param groupId the group ID
679            * @param start the lower bound of the range of journal feeds
680            * @param end the upper bound of the range of journal feeds (not inclusive)
681            * @return the range of matching journal feeds that the user has permission to view
682            * @throws SystemException if a system exception occurred
683            */
684            public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> filterFindByGroupId(
685                    long groupId, int start, int end)
686                    throws com.liferay.portal.kernel.exception.SystemException {
687                    return getPersistence().filterFindByGroupId(groupId, start, end);
688            }
689    
690            /**
691            * Returns an ordered range of all the journal feeds that the user has permissions to view where groupId = &#63;.
692            *
693            * <p>
694            * 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.
695            * </p>
696            *
697            * @param groupId the group ID
698            * @param start the lower bound of the range of journal feeds
699            * @param end the upper bound of the range of journal feeds (not inclusive)
700            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
701            * @return the ordered range of matching journal feeds that the user has permission to view
702            * @throws SystemException if a system exception occurred
703            */
704            public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> filterFindByGroupId(
705                    long groupId, int start, int end,
706                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
707                    throws com.liferay.portal.kernel.exception.SystemException {
708                    return getPersistence()
709                                       .filterFindByGroupId(groupId, start, end, orderByComparator);
710            }
711    
712            /**
713            * Returns the journal feeds before and after the current journal feed in the ordered set of journal feeds that the user has permission to view where groupId = &#63;.
714            *
715            * @param id the primary key of the current journal feed
716            * @param groupId the group ID
717            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
718            * @return the previous, current, and next journal feed
719            * @throws com.liferay.portlet.journal.NoSuchFeedException if a journal feed with the primary key could not be found
720            * @throws SystemException if a system exception occurred
721            */
722            public static com.liferay.portlet.journal.model.JournalFeed[] filterFindByGroupId_PrevAndNext(
723                    long id, long groupId,
724                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
725                    throws com.liferay.portal.kernel.exception.SystemException,
726                            com.liferay.portlet.journal.NoSuchFeedException {
727                    return getPersistence()
728                                       .filterFindByGroupId_PrevAndNext(id, groupId,
729                            orderByComparator);
730            }
731    
732            /**
733            * Returns the journal feed where groupId = &#63; and feedId = &#63; or throws a {@link com.liferay.portlet.journal.NoSuchFeedException} if it could not be found.
734            *
735            * @param groupId the group ID
736            * @param feedId the feed ID
737            * @return the matching journal feed
738            * @throws com.liferay.portlet.journal.NoSuchFeedException if a matching journal feed could not be found
739            * @throws SystemException if a system exception occurred
740            */
741            public static com.liferay.portlet.journal.model.JournalFeed findByG_F(
742                    long groupId, java.lang.String feedId)
743                    throws com.liferay.portal.kernel.exception.SystemException,
744                            com.liferay.portlet.journal.NoSuchFeedException {
745                    return getPersistence().findByG_F(groupId, feedId);
746            }
747    
748            /**
749            * Returns the journal feed where groupId = &#63; and feedId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
750            *
751            * @param groupId the group ID
752            * @param feedId the feed ID
753            * @return the matching journal feed, or <code>null</code> if a matching journal feed could not be found
754            * @throws SystemException if a system exception occurred
755            */
756            public static com.liferay.portlet.journal.model.JournalFeed fetchByG_F(
757                    long groupId, java.lang.String feedId)
758                    throws com.liferay.portal.kernel.exception.SystemException {
759                    return getPersistence().fetchByG_F(groupId, feedId);
760            }
761    
762            /**
763            * Returns 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.
764            *
765            * @param groupId the group ID
766            * @param feedId the feed ID
767            * @param retrieveFromCache whether to use the finder cache
768            * @return the matching journal feed, or <code>null</code> if a matching journal feed could not be found
769            * @throws SystemException if a system exception occurred
770            */
771            public static com.liferay.portlet.journal.model.JournalFeed fetchByG_F(
772                    long groupId, java.lang.String feedId, boolean retrieveFromCache)
773                    throws com.liferay.portal.kernel.exception.SystemException {
774                    return getPersistence().fetchByG_F(groupId, feedId, retrieveFromCache);
775            }
776    
777            /**
778            * Returns all the journal feeds.
779            *
780            * @return the journal feeds
781            * @throws SystemException if a system exception occurred
782            */
783            public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findAll()
784                    throws com.liferay.portal.kernel.exception.SystemException {
785                    return getPersistence().findAll();
786            }
787    
788            /**
789            * Returns a range of all the journal feeds.
790            *
791            * <p>
792            * 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.
793            * </p>
794            *
795            * @param start the lower bound of the range of journal feeds
796            * @param end the upper bound of the range of journal feeds (not inclusive)
797            * @return the range of journal feeds
798            * @throws SystemException if a system exception occurred
799            */
800            public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findAll(
801                    int start, int end)
802                    throws com.liferay.portal.kernel.exception.SystemException {
803                    return getPersistence().findAll(start, end);
804            }
805    
806            /**
807            * Returns an ordered range of all the journal feeds.
808            *
809            * <p>
810            * 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.
811            * </p>
812            *
813            * @param start the lower bound of the range of journal feeds
814            * @param end the upper bound of the range of journal feeds (not inclusive)
815            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
816            * @return the ordered range of journal feeds
817            * @throws SystemException if a system exception occurred
818            */
819            public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findAll(
820                    int start, int end,
821                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
822                    throws com.liferay.portal.kernel.exception.SystemException {
823                    return getPersistence().findAll(start, end, orderByComparator);
824            }
825    
826            /**
827            * Removes all the journal feeds where uuid = &#63; from the database.
828            *
829            * @param uuid the uuid
830            * @throws SystemException if a system exception occurred
831            */
832            public static void removeByUuid(java.lang.String uuid)
833                    throws com.liferay.portal.kernel.exception.SystemException {
834                    getPersistence().removeByUuid(uuid);
835            }
836    
837            /**
838            * Removes the journal feed where uuid = &#63; and groupId = &#63; from the database.
839            *
840            * @param uuid the uuid
841            * @param groupId the group ID
842            * @return the journal feed that was removed
843            * @throws SystemException if a system exception occurred
844            */
845            public static com.liferay.portlet.journal.model.JournalFeed removeByUUID_G(
846                    java.lang.String uuid, long groupId)
847                    throws com.liferay.portal.kernel.exception.SystemException,
848                            com.liferay.portlet.journal.NoSuchFeedException {
849                    return getPersistence().removeByUUID_G(uuid, groupId);
850            }
851    
852            /**
853            * Removes all the journal feeds where uuid = &#63; and companyId = &#63; from the database.
854            *
855            * @param uuid the uuid
856            * @param companyId the company ID
857            * @throws SystemException if a system exception occurred
858            */
859            public static void removeByUuid_C(java.lang.String uuid, long companyId)
860                    throws com.liferay.portal.kernel.exception.SystemException {
861                    getPersistence().removeByUuid_C(uuid, companyId);
862            }
863    
864            /**
865            * Removes all the journal feeds where groupId = &#63; from the database.
866            *
867            * @param groupId the group ID
868            * @throws SystemException if a system exception occurred
869            */
870            public static void removeByGroupId(long groupId)
871                    throws com.liferay.portal.kernel.exception.SystemException {
872                    getPersistence().removeByGroupId(groupId);
873            }
874    
875            /**
876            * Removes the journal feed where groupId = &#63; and feedId = &#63; from the database.
877            *
878            * @param groupId the group ID
879            * @param feedId the feed ID
880            * @return the journal feed that was removed
881            * @throws SystemException if a system exception occurred
882            */
883            public static com.liferay.portlet.journal.model.JournalFeed removeByG_F(
884                    long groupId, java.lang.String feedId)
885                    throws com.liferay.portal.kernel.exception.SystemException,
886                            com.liferay.portlet.journal.NoSuchFeedException {
887                    return getPersistence().removeByG_F(groupId, feedId);
888            }
889    
890            /**
891            * Removes all the journal feeds from the database.
892            *
893            * @throws SystemException if a system exception occurred
894            */
895            public static void removeAll()
896                    throws com.liferay.portal.kernel.exception.SystemException {
897                    getPersistence().removeAll();
898            }
899    
900            /**
901            * Returns the number of journal feeds where uuid = &#63;.
902            *
903            * @param uuid the uuid
904            * @return the number of matching journal feeds
905            * @throws SystemException if a system exception occurred
906            */
907            public static int countByUuid(java.lang.String uuid)
908                    throws com.liferay.portal.kernel.exception.SystemException {
909                    return getPersistence().countByUuid(uuid);
910            }
911    
912            /**
913            * Returns the number of journal feeds where uuid = &#63; and groupId = &#63;.
914            *
915            * @param uuid the uuid
916            * @param groupId the group ID
917            * @return the number of matching journal feeds
918            * @throws SystemException if a system exception occurred
919            */
920            public static int countByUUID_G(java.lang.String uuid, long groupId)
921                    throws com.liferay.portal.kernel.exception.SystemException {
922                    return getPersistence().countByUUID_G(uuid, groupId);
923            }
924    
925            /**
926            * Returns the number of journal feeds where uuid = &#63; and companyId = &#63;.
927            *
928            * @param uuid the uuid
929            * @param companyId the company ID
930            * @return the number of matching journal feeds
931            * @throws SystemException if a system exception occurred
932            */
933            public static int countByUuid_C(java.lang.String uuid, long companyId)
934                    throws com.liferay.portal.kernel.exception.SystemException {
935                    return getPersistence().countByUuid_C(uuid, companyId);
936            }
937    
938            /**
939            * Returns the number of journal feeds where groupId = &#63;.
940            *
941            * @param groupId the group ID
942            * @return the number of matching journal feeds
943            * @throws SystemException if a system exception occurred
944            */
945            public static int countByGroupId(long groupId)
946                    throws com.liferay.portal.kernel.exception.SystemException {
947                    return getPersistence().countByGroupId(groupId);
948            }
949    
950            /**
951            * Returns the number of journal feeds that the user has permission to view where groupId = &#63;.
952            *
953            * @param groupId the group ID
954            * @return the number of matching journal feeds that the user has permission to view
955            * @throws SystemException if a system exception occurred
956            */
957            public static int filterCountByGroupId(long groupId)
958                    throws com.liferay.portal.kernel.exception.SystemException {
959                    return getPersistence().filterCountByGroupId(groupId);
960            }
961    
962            /**
963            * Returns the number of journal feeds where groupId = &#63; and feedId = &#63;.
964            *
965            * @param groupId the group ID
966            * @param feedId the feed ID
967            * @return the number of matching journal feeds
968            * @throws SystemException if a system exception occurred
969            */
970            public static int countByG_F(long groupId, java.lang.String feedId)
971                    throws com.liferay.portal.kernel.exception.SystemException {
972                    return getPersistence().countByG_F(groupId, feedId);
973            }
974    
975            /**
976            * Returns the number of journal feeds.
977            *
978            * @return the number of journal feeds
979            * @throws SystemException if a system exception occurred
980            */
981            public static int countAll()
982                    throws com.liferay.portal.kernel.exception.SystemException {
983                    return getPersistence().countAll();
984            }
985    
986            public static JournalFeedPersistence getPersistence() {
987                    if (_persistence == null) {
988                            _persistence = (JournalFeedPersistence)PortalBeanLocatorUtil.locate(JournalFeedPersistence.class.getName());
989    
990                            ReferenceRegistry.registerReference(JournalFeedUtil.class,
991                                    "_persistence");
992                    }
993    
994                    return _persistence;
995            }
996    
997            /**
998             * @deprecated
999             */
1000            public void setPersistence(JournalFeedPersistence persistence) {
1001            }
1002    
1003            private static JournalFeedPersistence _persistence;
1004    }