1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.journal.service.persistence;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
19  import com.liferay.portal.kernel.exception.SystemException;
20  
21  import com.liferay.portlet.journal.model.JournalFeed;
22  
23  import java.util.List;
24  
25  /**
26   * <a href="JournalFeedUtil.java.html"><b><i>View Source</i></b></a>
27   *
28   * <p>
29   * ServiceBuilder generated this class. Modifications in this class will be
30   * overwritten the next time is generated.
31   * </p>
32   *
33   * @author    Brian Wing Shun Chan
34   * @see       JournalFeedPersistence
35   * @see       JournalFeedPersistenceImpl
36   * @generated
37   */
38  public class JournalFeedUtil {
39      /**
40       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
41       */
42      public static void clearCache() {
43          getPersistence().clearCache();
44      }
45  
46      /**
47       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(JournalFeed)
48       */
49      public static void clearCache(JournalFeed journalFeed) {
50          getPersistence().clearCache(journalFeed);
51      }
52  
53      /**
54       * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
55       */
56      public long countWithDynamicQuery(DynamicQuery dynamicQuery)
57          throws SystemException {
58          return getPersistence().countWithDynamicQuery(dynamicQuery);
59      }
60  
61      /**
62       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
63       */
64      public static List<JournalFeed> findWithDynamicQuery(
65          DynamicQuery dynamicQuery) throws SystemException {
66          return getPersistence().findWithDynamicQuery(dynamicQuery);
67      }
68  
69      /**
70       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
71       */
72      public static List<JournalFeed> findWithDynamicQuery(
73          DynamicQuery dynamicQuery, int start, int end)
74          throws SystemException {
75          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
76      }
77  
78      /**
79       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
80       */
81      public static JournalFeed remove(JournalFeed journalFeed)
82          throws SystemException {
83          return getPersistence().remove(journalFeed);
84      }
85  
86      /**
87       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
88       */
89      public static JournalFeed update(JournalFeed journalFeed, boolean merge)
90          throws SystemException {
91          return getPersistence().update(journalFeed, merge);
92      }
93  
94      public static void cacheResult(
95          com.liferay.portlet.journal.model.JournalFeed journalFeed) {
96          getPersistence().cacheResult(journalFeed);
97      }
98  
99      public static void cacheResult(
100         java.util.List<com.liferay.portlet.journal.model.JournalFeed> journalFeeds) {
101         getPersistence().cacheResult(journalFeeds);
102     }
103 
104     public static com.liferay.portlet.journal.model.JournalFeed create(long id) {
105         return getPersistence().create(id);
106     }
107 
108     public static com.liferay.portlet.journal.model.JournalFeed remove(long id)
109         throws com.liferay.portal.kernel.exception.SystemException,
110             com.liferay.portlet.journal.NoSuchFeedException {
111         return getPersistence().remove(id);
112     }
113 
114     public static com.liferay.portlet.journal.model.JournalFeed updateImpl(
115         com.liferay.portlet.journal.model.JournalFeed journalFeed, boolean merge)
116         throws com.liferay.portal.kernel.exception.SystemException {
117         return getPersistence().updateImpl(journalFeed, merge);
118     }
119 
120     public static com.liferay.portlet.journal.model.JournalFeed findByPrimaryKey(
121         long id)
122         throws com.liferay.portal.kernel.exception.SystemException,
123             com.liferay.portlet.journal.NoSuchFeedException {
124         return getPersistence().findByPrimaryKey(id);
125     }
126 
127     public static com.liferay.portlet.journal.model.JournalFeed fetchByPrimaryKey(
128         long id) throws com.liferay.portal.kernel.exception.SystemException {
129         return getPersistence().fetchByPrimaryKey(id);
130     }
131 
132     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByUuid(
133         java.lang.String uuid)
134         throws com.liferay.portal.kernel.exception.SystemException {
135         return getPersistence().findByUuid(uuid);
136     }
137 
138     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByUuid(
139         java.lang.String uuid, int start, int end)
140         throws com.liferay.portal.kernel.exception.SystemException {
141         return getPersistence().findByUuid(uuid, start, end);
142     }
143 
144     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByUuid(
145         java.lang.String uuid, int start, int end,
146         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
147         throws com.liferay.portal.kernel.exception.SystemException {
148         return getPersistence().findByUuid(uuid, start, end, orderByComparator);
149     }
150 
151     public static com.liferay.portlet.journal.model.JournalFeed findByUuid_First(
152         java.lang.String uuid,
153         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
154         throws com.liferay.portal.kernel.exception.SystemException,
155             com.liferay.portlet.journal.NoSuchFeedException {
156         return getPersistence().findByUuid_First(uuid, orderByComparator);
157     }
158 
159     public static com.liferay.portlet.journal.model.JournalFeed findByUuid_Last(
160         java.lang.String uuid,
161         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
162         throws com.liferay.portal.kernel.exception.SystemException,
163             com.liferay.portlet.journal.NoSuchFeedException {
164         return getPersistence().findByUuid_Last(uuid, orderByComparator);
165     }
166 
167     public static com.liferay.portlet.journal.model.JournalFeed[] findByUuid_PrevAndNext(
168         long id, java.lang.String uuid,
169         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
170         throws com.liferay.portal.kernel.exception.SystemException,
171             com.liferay.portlet.journal.NoSuchFeedException {
172         return getPersistence()
173                    .findByUuid_PrevAndNext(id, uuid, orderByComparator);
174     }
175 
176     public static com.liferay.portlet.journal.model.JournalFeed findByUUID_G(
177         java.lang.String uuid, long groupId)
178         throws com.liferay.portal.kernel.exception.SystemException,
179             com.liferay.portlet.journal.NoSuchFeedException {
180         return getPersistence().findByUUID_G(uuid, groupId);
181     }
182 
183     public static com.liferay.portlet.journal.model.JournalFeed fetchByUUID_G(
184         java.lang.String uuid, long groupId)
185         throws com.liferay.portal.kernel.exception.SystemException {
186         return getPersistence().fetchByUUID_G(uuid, groupId);
187     }
188 
189     public static com.liferay.portlet.journal.model.JournalFeed fetchByUUID_G(
190         java.lang.String uuid, long groupId, boolean retrieveFromCache)
191         throws com.liferay.portal.kernel.exception.SystemException {
192         return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
193     }
194 
195     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByGroupId(
196         long groupId)
197         throws com.liferay.portal.kernel.exception.SystemException {
198         return getPersistence().findByGroupId(groupId);
199     }
200 
201     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByGroupId(
202         long groupId, int start, int end)
203         throws com.liferay.portal.kernel.exception.SystemException {
204         return getPersistence().findByGroupId(groupId, start, end);
205     }
206 
207     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByGroupId(
208         long groupId, int start, int end,
209         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
210         throws com.liferay.portal.kernel.exception.SystemException {
211         return getPersistence()
212                    .findByGroupId(groupId, start, end, orderByComparator);
213     }
214 
215     public static com.liferay.portlet.journal.model.JournalFeed findByGroupId_First(
216         long groupId,
217         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
218         throws com.liferay.portal.kernel.exception.SystemException,
219             com.liferay.portlet.journal.NoSuchFeedException {
220         return getPersistence().findByGroupId_First(groupId, orderByComparator);
221     }
222 
223     public static com.liferay.portlet.journal.model.JournalFeed findByGroupId_Last(
224         long groupId,
225         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
226         throws com.liferay.portal.kernel.exception.SystemException,
227             com.liferay.portlet.journal.NoSuchFeedException {
228         return getPersistence().findByGroupId_Last(groupId, orderByComparator);
229     }
230 
231     public static com.liferay.portlet.journal.model.JournalFeed[] findByGroupId_PrevAndNext(
232         long id, long groupId,
233         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
234         throws com.liferay.portal.kernel.exception.SystemException,
235             com.liferay.portlet.journal.NoSuchFeedException {
236         return getPersistence()
237                    .findByGroupId_PrevAndNext(id, groupId, orderByComparator);
238     }
239 
240     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> filterFindByGroupId(
241         long groupId)
242         throws com.liferay.portal.kernel.exception.SystemException {
243         return getPersistence().filterFindByGroupId(groupId);
244     }
245 
246     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> filterFindByGroupId(
247         long groupId, int start, int end)
248         throws com.liferay.portal.kernel.exception.SystemException {
249         return getPersistence().filterFindByGroupId(groupId, start, end);
250     }
251 
252     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> filterFindByGroupId(
253         long groupId, int start, int end,
254         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
255         throws com.liferay.portal.kernel.exception.SystemException {
256         return getPersistence()
257                    .filterFindByGroupId(groupId, start, end, orderByComparator);
258     }
259 
260     public static com.liferay.portlet.journal.model.JournalFeed findByG_F(
261         long groupId, java.lang.String feedId)
262         throws com.liferay.portal.kernel.exception.SystemException,
263             com.liferay.portlet.journal.NoSuchFeedException {
264         return getPersistence().findByG_F(groupId, feedId);
265     }
266 
267     public static com.liferay.portlet.journal.model.JournalFeed fetchByG_F(
268         long groupId, java.lang.String feedId)
269         throws com.liferay.portal.kernel.exception.SystemException {
270         return getPersistence().fetchByG_F(groupId, feedId);
271     }
272 
273     public static com.liferay.portlet.journal.model.JournalFeed fetchByG_F(
274         long groupId, java.lang.String feedId, boolean retrieveFromCache)
275         throws com.liferay.portal.kernel.exception.SystemException {
276         return getPersistence().fetchByG_F(groupId, feedId, retrieveFromCache);
277     }
278 
279     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findAll()
280         throws com.liferay.portal.kernel.exception.SystemException {
281         return getPersistence().findAll();
282     }
283 
284     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findAll(
285         int start, int end)
286         throws com.liferay.portal.kernel.exception.SystemException {
287         return getPersistence().findAll(start, end);
288     }
289 
290     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findAll(
291         int start, int end,
292         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
293         throws com.liferay.portal.kernel.exception.SystemException {
294         return getPersistence().findAll(start, end, orderByComparator);
295     }
296 
297     public static void removeByUuid(java.lang.String uuid)
298         throws com.liferay.portal.kernel.exception.SystemException {
299         getPersistence().removeByUuid(uuid);
300     }
301 
302     public static void removeByUUID_G(java.lang.String uuid, long groupId)
303         throws com.liferay.portal.kernel.exception.SystemException,
304             com.liferay.portlet.journal.NoSuchFeedException {
305         getPersistence().removeByUUID_G(uuid, groupId);
306     }
307 
308     public static void removeByGroupId(long groupId)
309         throws com.liferay.portal.kernel.exception.SystemException {
310         getPersistence().removeByGroupId(groupId);
311     }
312 
313     public static void removeByG_F(long groupId, java.lang.String feedId)
314         throws com.liferay.portal.kernel.exception.SystemException,
315             com.liferay.portlet.journal.NoSuchFeedException {
316         getPersistence().removeByG_F(groupId, feedId);
317     }
318 
319     public static void removeAll()
320         throws com.liferay.portal.kernel.exception.SystemException {
321         getPersistence().removeAll();
322     }
323 
324     public static int countByUuid(java.lang.String uuid)
325         throws com.liferay.portal.kernel.exception.SystemException {
326         return getPersistence().countByUuid(uuid);
327     }
328 
329     public static int countByUUID_G(java.lang.String uuid, long groupId)
330         throws com.liferay.portal.kernel.exception.SystemException {
331         return getPersistence().countByUUID_G(uuid, groupId);
332     }
333 
334     public static int countByGroupId(long groupId)
335         throws com.liferay.portal.kernel.exception.SystemException {
336         return getPersistence().countByGroupId(groupId);
337     }
338 
339     public static int filterCountByGroupId(long groupId)
340         throws com.liferay.portal.kernel.exception.SystemException {
341         return getPersistence().filterCountByGroupId(groupId);
342     }
343 
344     public static int countByG_F(long groupId, java.lang.String feedId)
345         throws com.liferay.portal.kernel.exception.SystemException {
346         return getPersistence().countByG_F(groupId, feedId);
347     }
348 
349     public static int filterCountByG_F(long groupId, java.lang.String feedId)
350         throws com.liferay.portal.kernel.exception.SystemException {
351         return getPersistence().filterCountByG_F(groupId, feedId);
352     }
353 
354     public static int countAll()
355         throws com.liferay.portal.kernel.exception.SystemException {
356         return getPersistence().countAll();
357     }
358 
359     public static JournalFeedPersistence getPersistence() {
360         if (_persistence == null) {
361             _persistence = (JournalFeedPersistence)PortalBeanLocatorUtil.locate(JournalFeedPersistence.class.getName());
362         }
363 
364         return _persistence;
365     }
366 
367     public void setPersistence(JournalFeedPersistence persistence) {
368         _persistence = persistence;
369     }
370 
371     private static JournalFeedPersistence _persistence;
372 }