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  
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#findWithDynamicQuery(DynamicQuery)
48       */
49      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
50          throws SystemException {
51          return getPersistence().findWithDynamicQuery(dynamicQuery);
52      }
53  
54      /**
55       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
56       */
57      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
58          int start, int end) throws SystemException {
59          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
60      }
61  
62      /**
63       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
64       */
65      public static JournalFeed remove(JournalFeed journalFeed)
66          throws SystemException {
67          return getPersistence().remove(journalFeed);
68      }
69  
70      /**
71       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
72       */
73      public static JournalFeed update(JournalFeed journalFeed, boolean merge)
74          throws SystemException {
75          return getPersistence().update(journalFeed, merge);
76      }
77  
78      public static void cacheResult(
79          com.liferay.portlet.journal.model.JournalFeed journalFeed) {
80          getPersistence().cacheResult(journalFeed);
81      }
82  
83      public static void cacheResult(
84          java.util.List<com.liferay.portlet.journal.model.JournalFeed> journalFeeds) {
85          getPersistence().cacheResult(journalFeeds);
86      }
87  
88      public static com.liferay.portlet.journal.model.JournalFeed create(long id) {
89          return getPersistence().create(id);
90      }
91  
92      public static com.liferay.portlet.journal.model.JournalFeed remove(long id)
93          throws com.liferay.portal.SystemException,
94              com.liferay.portlet.journal.NoSuchFeedException {
95          return getPersistence().remove(id);
96      }
97  
98      /**
99       * @deprecated Use {@link com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean)}.
100      */
101     public static com.liferay.portlet.journal.model.JournalFeed update(
102         com.liferay.portlet.journal.model.JournalFeed journalFeed)
103         throws com.liferay.portal.SystemException {
104         return getPersistence().update(journalFeed);
105     }
106 
107     public static com.liferay.portlet.journal.model.JournalFeed updateImpl(
108         com.liferay.portlet.journal.model.JournalFeed journalFeed, boolean merge)
109         throws com.liferay.portal.SystemException {
110         return getPersistence().updateImpl(journalFeed, merge);
111     }
112 
113     public static com.liferay.portlet.journal.model.JournalFeed findByPrimaryKey(
114         long id)
115         throws com.liferay.portal.SystemException,
116             com.liferay.portlet.journal.NoSuchFeedException {
117         return getPersistence().findByPrimaryKey(id);
118     }
119 
120     public static com.liferay.portlet.journal.model.JournalFeed fetchByPrimaryKey(
121         long id) throws com.liferay.portal.SystemException {
122         return getPersistence().fetchByPrimaryKey(id);
123     }
124 
125     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByUuid(
126         java.lang.String uuid) throws com.liferay.portal.SystemException {
127         return getPersistence().findByUuid(uuid);
128     }
129 
130     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByUuid(
131         java.lang.String uuid, int start, int end)
132         throws com.liferay.portal.SystemException {
133         return getPersistence().findByUuid(uuid, start, end);
134     }
135 
136     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByUuid(
137         java.lang.String uuid, int start, int end,
138         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
139         throws com.liferay.portal.SystemException {
140         return getPersistence().findByUuid(uuid, start, end, orderByComparator);
141     }
142 
143     public static com.liferay.portlet.journal.model.JournalFeed findByUuid_First(
144         java.lang.String uuid,
145         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
146         throws com.liferay.portal.SystemException,
147             com.liferay.portlet.journal.NoSuchFeedException {
148         return getPersistence().findByUuid_First(uuid, orderByComparator);
149     }
150 
151     public static com.liferay.portlet.journal.model.JournalFeed findByUuid_Last(
152         java.lang.String uuid,
153         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
154         throws com.liferay.portal.SystemException,
155             com.liferay.portlet.journal.NoSuchFeedException {
156         return getPersistence().findByUuid_Last(uuid, orderByComparator);
157     }
158 
159     public static com.liferay.portlet.journal.model.JournalFeed[] findByUuid_PrevAndNext(
160         long id, 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()
165                    .findByUuid_PrevAndNext(id, uuid, orderByComparator);
166     }
167 
168     public static com.liferay.portlet.journal.model.JournalFeed findByUUID_G(
169         java.lang.String uuid, long groupId)
170         throws com.liferay.portal.SystemException,
171             com.liferay.portlet.journal.NoSuchFeedException {
172         return getPersistence().findByUUID_G(uuid, groupId);
173     }
174 
175     public static com.liferay.portlet.journal.model.JournalFeed fetchByUUID_G(
176         java.lang.String uuid, long groupId)
177         throws com.liferay.portal.SystemException {
178         return getPersistence().fetchByUUID_G(uuid, groupId);
179     }
180 
181     public static com.liferay.portlet.journal.model.JournalFeed fetchByUUID_G(
182         java.lang.String uuid, long groupId, boolean retrieveFromCache)
183         throws com.liferay.portal.SystemException {
184         return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
185     }
186 
187     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByGroupId(
188         long groupId) throws com.liferay.portal.SystemException {
189         return getPersistence().findByGroupId(groupId);
190     }
191 
192     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByGroupId(
193         long groupId, int start, int end)
194         throws com.liferay.portal.SystemException {
195         return getPersistence().findByGroupId(groupId, start, end);
196     }
197 
198     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByGroupId(
199         long groupId, int start, int end,
200         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
201         throws com.liferay.portal.SystemException {
202         return getPersistence()
203                    .findByGroupId(groupId, start, end, orderByComparator);
204     }
205 
206     public static com.liferay.portlet.journal.model.JournalFeed findByGroupId_First(
207         long groupId,
208         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
209         throws com.liferay.portal.SystemException,
210             com.liferay.portlet.journal.NoSuchFeedException {
211         return getPersistence().findByGroupId_First(groupId, orderByComparator);
212     }
213 
214     public static com.liferay.portlet.journal.model.JournalFeed findByGroupId_Last(
215         long groupId,
216         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
217         throws com.liferay.portal.SystemException,
218             com.liferay.portlet.journal.NoSuchFeedException {
219         return getPersistence().findByGroupId_Last(groupId, orderByComparator);
220     }
221 
222     public static com.liferay.portlet.journal.model.JournalFeed[] findByGroupId_PrevAndNext(
223         long id, 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()
228                    .findByGroupId_PrevAndNext(id, groupId, orderByComparator);
229     }
230 
231     public static com.liferay.portlet.journal.model.JournalFeed findByG_F(
232         long groupId, java.lang.String feedId)
233         throws com.liferay.portal.SystemException,
234             com.liferay.portlet.journal.NoSuchFeedException {
235         return getPersistence().findByG_F(groupId, feedId);
236     }
237 
238     public static com.liferay.portlet.journal.model.JournalFeed fetchByG_F(
239         long groupId, java.lang.String feedId)
240         throws com.liferay.portal.SystemException {
241         return getPersistence().fetchByG_F(groupId, feedId);
242     }
243 
244     public static com.liferay.portlet.journal.model.JournalFeed fetchByG_F(
245         long groupId, java.lang.String feedId, boolean retrieveFromCache)
246         throws com.liferay.portal.SystemException {
247         return getPersistence().fetchByG_F(groupId, feedId, retrieveFromCache);
248     }
249 
250     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findAll()
251         throws com.liferay.portal.SystemException {
252         return getPersistence().findAll();
253     }
254 
255     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findAll(
256         int start, int end) throws com.liferay.portal.SystemException {
257         return getPersistence().findAll(start, end);
258     }
259 
260     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findAll(
261         int start, int end,
262         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
263         throws com.liferay.portal.SystemException {
264         return getPersistence().findAll(start, end, orderByComparator);
265     }
266 
267     public static void removeByUuid(java.lang.String uuid)
268         throws com.liferay.portal.SystemException {
269         getPersistence().removeByUuid(uuid);
270     }
271 
272     public static void removeByUUID_G(java.lang.String uuid, long groupId)
273         throws com.liferay.portal.SystemException,
274             com.liferay.portlet.journal.NoSuchFeedException {
275         getPersistence().removeByUUID_G(uuid, groupId);
276     }
277 
278     public static void removeByGroupId(long groupId)
279         throws com.liferay.portal.SystemException {
280         getPersistence().removeByGroupId(groupId);
281     }
282 
283     public static void removeByG_F(long groupId, java.lang.String feedId)
284         throws com.liferay.portal.SystemException,
285             com.liferay.portlet.journal.NoSuchFeedException {
286         getPersistence().removeByG_F(groupId, feedId);
287     }
288 
289     public static void removeAll() throws com.liferay.portal.SystemException {
290         getPersistence().removeAll();
291     }
292 
293     public static int countByUuid(java.lang.String uuid)
294         throws com.liferay.portal.SystemException {
295         return getPersistence().countByUuid(uuid);
296     }
297 
298     public static int countByUUID_G(java.lang.String uuid, long groupId)
299         throws com.liferay.portal.SystemException {
300         return getPersistence().countByUUID_G(uuid, groupId);
301     }
302 
303     public static int countByGroupId(long groupId)
304         throws com.liferay.portal.SystemException {
305         return getPersistence().countByGroupId(groupId);
306     }
307 
308     public static int countByG_F(long groupId, java.lang.String feedId)
309         throws com.liferay.portal.SystemException {
310         return getPersistence().countByG_F(groupId, feedId);
311     }
312 
313     public static int countAll() throws com.liferay.portal.SystemException {
314         return getPersistence().countAll();
315     }
316 
317     public static JournalFeedPersistence getPersistence() {
318         if (_persistence == null) {
319             _persistence = (JournalFeedPersistence)PortalBeanLocatorUtil.locate(JournalFeedPersistence.class.getName());
320         }
321 
322         return _persistence;
323     }
324 
325     public void setPersistence(JournalFeedPersistence persistence) {
326         _persistence = persistence;
327     }
328 
329     private static JournalFeedPersistence _persistence;
330 }