1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portlet.journal.service.persistence;
16  
17  import com.liferay.portal.SystemException;
18  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
19  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
20  import com.liferay.portal.kernel.util.ReferenceRegistry;
21  
22  import com.liferay.portlet.journal.model.JournalFeed;
23  
24  import java.util.List;
25  
26  /**
27   * <a href="JournalFeedUtil.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * @author    Brian Wing Shun Chan
35   * @see       JournalFeedPersistence
36   * @see       JournalFeedPersistenceImpl
37   * @generated
38   */
39  public class JournalFeedUtil {
40      /**
41       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
42       */
43      public static void clearCache() {
44          getPersistence().clearCache();
45      }
46  
47      /**
48       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(JournalFeed)
49       */
50      public static void clearCache(JournalFeed journalFeed) {
51          getPersistence().clearCache(journalFeed);
52      }
53  
54      /**
55       * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
56       */
57      public int countWithDynamicQuery(DynamicQuery dynamicQuery)
58          throws SystemException {
59          return getPersistence().countWithDynamicQuery(dynamicQuery);
60      }
61  
62      /**
63       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
64       */
65      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
66          throws SystemException {
67          return getPersistence().findWithDynamicQuery(dynamicQuery);
68      }
69  
70      /**
71       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
72       */
73      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
74          int start, int end) 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.SystemException,
110             com.liferay.portlet.journal.NoSuchFeedException {
111         return getPersistence().remove(id);
112     }
113 
114     /**
115      * @deprecated Use {@link com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean)}.
116      */
117     public static com.liferay.portlet.journal.model.JournalFeed update(
118         com.liferay.portlet.journal.model.JournalFeed journalFeed)
119         throws com.liferay.portal.SystemException {
120         return getPersistence().update(journalFeed);
121     }
122 
123     public static com.liferay.portlet.journal.model.JournalFeed updateImpl(
124         com.liferay.portlet.journal.model.JournalFeed journalFeed, boolean merge)
125         throws com.liferay.portal.SystemException {
126         return getPersistence().updateImpl(journalFeed, merge);
127     }
128 
129     public static com.liferay.portlet.journal.model.JournalFeed findByPrimaryKey(
130         long id)
131         throws com.liferay.portal.SystemException,
132             com.liferay.portlet.journal.NoSuchFeedException {
133         return getPersistence().findByPrimaryKey(id);
134     }
135 
136     public static com.liferay.portlet.journal.model.JournalFeed fetchByPrimaryKey(
137         long id) throws com.liferay.portal.SystemException {
138         return getPersistence().fetchByPrimaryKey(id);
139     }
140 
141     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByUuid(
142         java.lang.String uuid) throws com.liferay.portal.SystemException {
143         return getPersistence().findByUuid(uuid);
144     }
145 
146     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByUuid(
147         java.lang.String uuid, int start, int end)
148         throws com.liferay.portal.SystemException {
149         return getPersistence().findByUuid(uuid, start, end);
150     }
151 
152     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByUuid(
153         java.lang.String uuid, int start, int end,
154         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
155         throws com.liferay.portal.SystemException {
156         return getPersistence().findByUuid(uuid, start, end, orderByComparator);
157     }
158 
159     public static com.liferay.portlet.journal.model.JournalFeed findByUuid_First(
160         java.lang.String uuid,
161         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
162         throws com.liferay.portal.SystemException,
163             com.liferay.portlet.journal.NoSuchFeedException {
164         return getPersistence().findByUuid_First(uuid, orderByComparator);
165     }
166 
167     public static com.liferay.portlet.journal.model.JournalFeed findByUuid_Last(
168         java.lang.String uuid,
169         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
170         throws com.liferay.portal.SystemException,
171             com.liferay.portlet.journal.NoSuchFeedException {
172         return getPersistence().findByUuid_Last(uuid, orderByComparator);
173     }
174 
175     public static com.liferay.portlet.journal.model.JournalFeed[] findByUuid_PrevAndNext(
176         long id, java.lang.String uuid,
177         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
178         throws com.liferay.portal.SystemException,
179             com.liferay.portlet.journal.NoSuchFeedException {
180         return getPersistence()
181                    .findByUuid_PrevAndNext(id, uuid, orderByComparator);
182     }
183 
184     public static com.liferay.portlet.journal.model.JournalFeed findByUUID_G(
185         java.lang.String uuid, long groupId)
186         throws com.liferay.portal.SystemException,
187             com.liferay.portlet.journal.NoSuchFeedException {
188         return getPersistence().findByUUID_G(uuid, groupId);
189     }
190 
191     public static com.liferay.portlet.journal.model.JournalFeed fetchByUUID_G(
192         java.lang.String uuid, long groupId)
193         throws com.liferay.portal.SystemException {
194         return getPersistence().fetchByUUID_G(uuid, groupId);
195     }
196 
197     public static com.liferay.portlet.journal.model.JournalFeed fetchByUUID_G(
198         java.lang.String uuid, long groupId, boolean retrieveFromCache)
199         throws com.liferay.portal.SystemException {
200         return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
201     }
202 
203     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByGroupId(
204         long groupId) throws com.liferay.portal.SystemException {
205         return getPersistence().findByGroupId(groupId);
206     }
207 
208     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByGroupId(
209         long groupId, int start, int end)
210         throws com.liferay.portal.SystemException {
211         return getPersistence().findByGroupId(groupId, start, end);
212     }
213 
214     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByGroupId(
215         long groupId, int start, int end,
216         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
217         throws com.liferay.portal.SystemException {
218         return getPersistence()
219                    .findByGroupId(groupId, start, end, orderByComparator);
220     }
221 
222     public static com.liferay.portlet.journal.model.JournalFeed findByGroupId_First(
223         long groupId,
224         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
225         throws com.liferay.portal.SystemException,
226             com.liferay.portlet.journal.NoSuchFeedException {
227         return getPersistence().findByGroupId_First(groupId, orderByComparator);
228     }
229 
230     public static com.liferay.portlet.journal.model.JournalFeed findByGroupId_Last(
231         long groupId,
232         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
233         throws com.liferay.portal.SystemException,
234             com.liferay.portlet.journal.NoSuchFeedException {
235         return getPersistence().findByGroupId_Last(groupId, orderByComparator);
236     }
237 
238     public static com.liferay.portlet.journal.model.JournalFeed[] findByGroupId_PrevAndNext(
239         long id, long groupId,
240         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
241         throws com.liferay.portal.SystemException,
242             com.liferay.portlet.journal.NoSuchFeedException {
243         return getPersistence()
244                    .findByGroupId_PrevAndNext(id, groupId, orderByComparator);
245     }
246 
247     public static com.liferay.portlet.journal.model.JournalFeed findByG_F(
248         long groupId, java.lang.String feedId)
249         throws com.liferay.portal.SystemException,
250             com.liferay.portlet.journal.NoSuchFeedException {
251         return getPersistence().findByG_F(groupId, feedId);
252     }
253 
254     public static com.liferay.portlet.journal.model.JournalFeed fetchByG_F(
255         long groupId, java.lang.String feedId)
256         throws com.liferay.portal.SystemException {
257         return getPersistence().fetchByG_F(groupId, feedId);
258     }
259 
260     public static com.liferay.portlet.journal.model.JournalFeed fetchByG_F(
261         long groupId, java.lang.String feedId, boolean retrieveFromCache)
262         throws com.liferay.portal.SystemException {
263         return getPersistence().fetchByG_F(groupId, feedId, retrieveFromCache);
264     }
265 
266     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findAll()
267         throws com.liferay.portal.SystemException {
268         return getPersistence().findAll();
269     }
270 
271     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findAll(
272         int start, int end) throws com.liferay.portal.SystemException {
273         return getPersistence().findAll(start, end);
274     }
275 
276     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findAll(
277         int start, int end,
278         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
279         throws com.liferay.portal.SystemException {
280         return getPersistence().findAll(start, end, orderByComparator);
281     }
282 
283     public static void removeByUuid(java.lang.String uuid)
284         throws com.liferay.portal.SystemException {
285         getPersistence().removeByUuid(uuid);
286     }
287 
288     public static void removeByUUID_G(java.lang.String uuid, long groupId)
289         throws com.liferay.portal.SystemException,
290             com.liferay.portlet.journal.NoSuchFeedException {
291         getPersistence().removeByUUID_G(uuid, groupId);
292     }
293 
294     public static void removeByGroupId(long groupId)
295         throws com.liferay.portal.SystemException {
296         getPersistence().removeByGroupId(groupId);
297     }
298 
299     public static void removeByG_F(long groupId, java.lang.String feedId)
300         throws com.liferay.portal.SystemException,
301             com.liferay.portlet.journal.NoSuchFeedException {
302         getPersistence().removeByG_F(groupId, feedId);
303     }
304 
305     public static void removeAll() throws com.liferay.portal.SystemException {
306         getPersistence().removeAll();
307     }
308 
309     public static int countByUuid(java.lang.String uuid)
310         throws com.liferay.portal.SystemException {
311         return getPersistence().countByUuid(uuid);
312     }
313 
314     public static int countByUUID_G(java.lang.String uuid, long groupId)
315         throws com.liferay.portal.SystemException {
316         return getPersistence().countByUUID_G(uuid, groupId);
317     }
318 
319     public static int countByGroupId(long groupId)
320         throws com.liferay.portal.SystemException {
321         return getPersistence().countByGroupId(groupId);
322     }
323 
324     public static int countByG_F(long groupId, java.lang.String feedId)
325         throws com.liferay.portal.SystemException {
326         return getPersistence().countByG_F(groupId, feedId);
327     }
328 
329     public static int countAll() throws com.liferay.portal.SystemException {
330         return getPersistence().countAll();
331     }
332 
333     public static JournalFeedPersistence getPersistence() {
334         if (_persistence == null) {
335             _persistence = (JournalFeedPersistence)PortalBeanLocatorUtil.locate(JournalFeedPersistence.class.getName());
336 
337             ReferenceRegistry.registerReference(JournalFeedUtil.class,
338                 "_persistence");
339         }
340 
341         return _persistence;
342     }
343 
344     public void setPersistence(JournalFeedPersistence persistence) {
345         _persistence = persistence;
346 
347         ReferenceRegistry.registerReference(JournalFeedUtil.class,
348             "_persistence");
349     }
350 
351     private static JournalFeedPersistence _persistence;
352 }