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 obc)
139         throws com.liferay.portal.SystemException {
140         return getPersistence().findByUuid(uuid, start, end, obc);
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 obc)
146         throws com.liferay.portal.SystemException,
147             com.liferay.portlet.journal.NoSuchFeedException {
148         return getPersistence().findByUuid_First(uuid, obc);
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 obc)
154         throws com.liferay.portal.SystemException,
155             com.liferay.portlet.journal.NoSuchFeedException {
156         return getPersistence().findByUuid_Last(uuid, obc);
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 obc)
162         throws com.liferay.portal.SystemException,
163             com.liferay.portlet.journal.NoSuchFeedException {
164         return getPersistence().findByUuid_PrevAndNext(id, uuid, obc);
165     }
166 
167     public static com.liferay.portlet.journal.model.JournalFeed findByUUID_G(
168         java.lang.String uuid, long groupId)
169         throws com.liferay.portal.SystemException,
170             com.liferay.portlet.journal.NoSuchFeedException {
171         return getPersistence().findByUUID_G(uuid, groupId);
172     }
173 
174     public static com.liferay.portlet.journal.model.JournalFeed fetchByUUID_G(
175         java.lang.String uuid, long groupId)
176         throws com.liferay.portal.SystemException {
177         return getPersistence().fetchByUUID_G(uuid, groupId);
178     }
179 
180     public static com.liferay.portlet.journal.model.JournalFeed fetchByUUID_G(
181         java.lang.String uuid, long groupId, boolean retrieveFromCache)
182         throws com.liferay.portal.SystemException {
183         return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
184     }
185 
186     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByGroupId(
187         long groupId) throws com.liferay.portal.SystemException {
188         return getPersistence().findByGroupId(groupId);
189     }
190 
191     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByGroupId(
192         long groupId, int start, int end)
193         throws com.liferay.portal.SystemException {
194         return getPersistence().findByGroupId(groupId, start, end);
195     }
196 
197     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByGroupId(
198         long groupId, int start, int end,
199         com.liferay.portal.kernel.util.OrderByComparator obc)
200         throws com.liferay.portal.SystemException {
201         return getPersistence().findByGroupId(groupId, start, end, obc);
202     }
203 
204     public static com.liferay.portlet.journal.model.JournalFeed findByGroupId_First(
205         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
206         throws com.liferay.portal.SystemException,
207             com.liferay.portlet.journal.NoSuchFeedException {
208         return getPersistence().findByGroupId_First(groupId, obc);
209     }
210 
211     public static com.liferay.portlet.journal.model.JournalFeed findByGroupId_Last(
212         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
213         throws com.liferay.portal.SystemException,
214             com.liferay.portlet.journal.NoSuchFeedException {
215         return getPersistence().findByGroupId_Last(groupId, obc);
216     }
217 
218     public static com.liferay.portlet.journal.model.JournalFeed[] findByGroupId_PrevAndNext(
219         long id, long groupId,
220         com.liferay.portal.kernel.util.OrderByComparator obc)
221         throws com.liferay.portal.SystemException,
222             com.liferay.portlet.journal.NoSuchFeedException {
223         return getPersistence().findByGroupId_PrevAndNext(id, groupId, obc);
224     }
225 
226     public static com.liferay.portlet.journal.model.JournalFeed findByG_F(
227         long groupId, java.lang.String feedId)
228         throws com.liferay.portal.SystemException,
229             com.liferay.portlet.journal.NoSuchFeedException {
230         return getPersistence().findByG_F(groupId, feedId);
231     }
232 
233     public static com.liferay.portlet.journal.model.JournalFeed fetchByG_F(
234         long groupId, java.lang.String feedId)
235         throws com.liferay.portal.SystemException {
236         return getPersistence().fetchByG_F(groupId, feedId);
237     }
238 
239     public static com.liferay.portlet.journal.model.JournalFeed fetchByG_F(
240         long groupId, java.lang.String feedId, boolean retrieveFromCache)
241         throws com.liferay.portal.SystemException {
242         return getPersistence().fetchByG_F(groupId, feedId, retrieveFromCache);
243     }
244 
245     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findAll()
246         throws com.liferay.portal.SystemException {
247         return getPersistence().findAll();
248     }
249 
250     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findAll(
251         int start, int end) throws com.liferay.portal.SystemException {
252         return getPersistence().findAll(start, end);
253     }
254 
255     public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findAll(
256         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
257         throws com.liferay.portal.SystemException {
258         return getPersistence().findAll(start, end, obc);
259     }
260 
261     public static void removeByUuid(java.lang.String uuid)
262         throws com.liferay.portal.SystemException {
263         getPersistence().removeByUuid(uuid);
264     }
265 
266     public static void removeByUUID_G(java.lang.String uuid, long groupId)
267         throws com.liferay.portal.SystemException,
268             com.liferay.portlet.journal.NoSuchFeedException {
269         getPersistence().removeByUUID_G(uuid, groupId);
270     }
271 
272     public static void removeByGroupId(long groupId)
273         throws com.liferay.portal.SystemException {
274         getPersistence().removeByGroupId(groupId);
275     }
276 
277     public static void removeByG_F(long groupId, java.lang.String feedId)
278         throws com.liferay.portal.SystemException,
279             com.liferay.portlet.journal.NoSuchFeedException {
280         getPersistence().removeByG_F(groupId, feedId);
281     }
282 
283     public static void removeAll() throws com.liferay.portal.SystemException {
284         getPersistence().removeAll();
285     }
286 
287     public static int countByUuid(java.lang.String uuid)
288         throws com.liferay.portal.SystemException {
289         return getPersistence().countByUuid(uuid);
290     }
291 
292     public static int countByUUID_G(java.lang.String uuid, long groupId)
293         throws com.liferay.portal.SystemException {
294         return getPersistence().countByUUID_G(uuid, groupId);
295     }
296 
297     public static int countByGroupId(long groupId)
298         throws com.liferay.portal.SystemException {
299         return getPersistence().countByGroupId(groupId);
300     }
301 
302     public static int countByG_F(long groupId, java.lang.String feedId)
303         throws com.liferay.portal.SystemException {
304         return getPersistence().countByG_F(groupId, feedId);
305     }
306 
307     public static int countAll() throws com.liferay.portal.SystemException {
308         return getPersistence().countAll();
309     }
310 
311     public static JournalFeedPersistence getPersistence() {
312         if (_persistence == null) {
313             _persistence = (JournalFeedPersistence)PortalBeanLocatorUtil.locate(JournalFeedPersistence.class.getName());
314         }
315 
316         return _persistence;
317     }
318 
319     public void setPersistence(JournalFeedPersistence persistence) {
320         _persistence = persistence;
321     }
322 
323     private static JournalFeedPersistence _persistence;
324 }