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.announcements.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.announcements.model.AnnouncementsEntry;
22  
23  import java.util.List;
24  
25  /**
26   * <a href="AnnouncementsEntryUtil.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       AnnouncementsEntryPersistence
35   * @see       AnnouncementsEntryPersistenceImpl
36   * @generated
37   */
38  public class AnnouncementsEntryUtil {
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 AnnouncementsEntry remove(
66          AnnouncementsEntry announcementsEntry) throws SystemException {
67          return getPersistence().remove(announcementsEntry);
68      }
69  
70      /**
71       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
72       */
73      public static AnnouncementsEntry update(
74          AnnouncementsEntry announcementsEntry, boolean merge)
75          throws SystemException {
76          return getPersistence().update(announcementsEntry, merge);
77      }
78  
79      public static void cacheResult(
80          com.liferay.portlet.announcements.model.AnnouncementsEntry announcementsEntry) {
81          getPersistence().cacheResult(announcementsEntry);
82      }
83  
84      public static void cacheResult(
85          java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> announcementsEntries) {
86          getPersistence().cacheResult(announcementsEntries);
87      }
88  
89      public static com.liferay.portlet.announcements.model.AnnouncementsEntry create(
90          long entryId) {
91          return getPersistence().create(entryId);
92      }
93  
94      public static com.liferay.portlet.announcements.model.AnnouncementsEntry remove(
95          long entryId)
96          throws com.liferay.portal.kernel.exception.SystemException,
97              com.liferay.portlet.announcements.NoSuchEntryException {
98          return getPersistence().remove(entryId);
99      }
100 
101     public static com.liferay.portlet.announcements.model.AnnouncementsEntry updateImpl(
102         com.liferay.portlet.announcements.model.AnnouncementsEntry announcementsEntry,
103         boolean merge)
104         throws com.liferay.portal.kernel.exception.SystemException {
105         return getPersistence().updateImpl(announcementsEntry, merge);
106     }
107 
108     public static com.liferay.portlet.announcements.model.AnnouncementsEntry findByPrimaryKey(
109         long entryId)
110         throws com.liferay.portal.kernel.exception.SystemException,
111             com.liferay.portlet.announcements.NoSuchEntryException {
112         return getPersistence().findByPrimaryKey(entryId);
113     }
114 
115     public static com.liferay.portlet.announcements.model.AnnouncementsEntry fetchByPrimaryKey(
116         long entryId)
117         throws com.liferay.portal.kernel.exception.SystemException {
118         return getPersistence().fetchByPrimaryKey(entryId);
119     }
120 
121     public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUuid(
122         java.lang.String uuid)
123         throws com.liferay.portal.kernel.exception.SystemException {
124         return getPersistence().findByUuid(uuid);
125     }
126 
127     public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUuid(
128         java.lang.String uuid, int start, int end)
129         throws com.liferay.portal.kernel.exception.SystemException {
130         return getPersistence().findByUuid(uuid, start, end);
131     }
132 
133     public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUuid(
134         java.lang.String uuid, int start, int end,
135         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
136         throws com.liferay.portal.kernel.exception.SystemException {
137         return getPersistence().findByUuid(uuid, start, end, orderByComparator);
138     }
139 
140     public static com.liferay.portlet.announcements.model.AnnouncementsEntry findByUuid_First(
141         java.lang.String uuid,
142         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
143         throws com.liferay.portal.kernel.exception.SystemException,
144             com.liferay.portlet.announcements.NoSuchEntryException {
145         return getPersistence().findByUuid_First(uuid, orderByComparator);
146     }
147 
148     public static com.liferay.portlet.announcements.model.AnnouncementsEntry findByUuid_Last(
149         java.lang.String uuid,
150         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
151         throws com.liferay.portal.kernel.exception.SystemException,
152             com.liferay.portlet.announcements.NoSuchEntryException {
153         return getPersistence().findByUuid_Last(uuid, orderByComparator);
154     }
155 
156     public static com.liferay.portlet.announcements.model.AnnouncementsEntry[] findByUuid_PrevAndNext(
157         long entryId, java.lang.String uuid,
158         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
159         throws com.liferay.portal.kernel.exception.SystemException,
160             com.liferay.portlet.announcements.NoSuchEntryException {
161         return getPersistence()
162                    .findByUuid_PrevAndNext(entryId, uuid, orderByComparator);
163     }
164 
165     public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUserId(
166         long userId) throws com.liferay.portal.kernel.exception.SystemException {
167         return getPersistence().findByUserId(userId);
168     }
169 
170     public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUserId(
171         long userId, int start, int end)
172         throws com.liferay.portal.kernel.exception.SystemException {
173         return getPersistence().findByUserId(userId, start, end);
174     }
175 
176     public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUserId(
177         long userId, int start, int end,
178         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
179         throws com.liferay.portal.kernel.exception.SystemException {
180         return getPersistence()
181                    .findByUserId(userId, start, end, orderByComparator);
182     }
183 
184     public static com.liferay.portlet.announcements.model.AnnouncementsEntry findByUserId_First(
185         long userId,
186         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
187         throws com.liferay.portal.kernel.exception.SystemException,
188             com.liferay.portlet.announcements.NoSuchEntryException {
189         return getPersistence().findByUserId_First(userId, orderByComparator);
190     }
191 
192     public static com.liferay.portlet.announcements.model.AnnouncementsEntry findByUserId_Last(
193         long userId,
194         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
195         throws com.liferay.portal.kernel.exception.SystemException,
196             com.liferay.portlet.announcements.NoSuchEntryException {
197         return getPersistence().findByUserId_Last(userId, orderByComparator);
198     }
199 
200     public static com.liferay.portlet.announcements.model.AnnouncementsEntry[] findByUserId_PrevAndNext(
201         long entryId, long userId,
202         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
203         throws com.liferay.portal.kernel.exception.SystemException,
204             com.liferay.portlet.announcements.NoSuchEntryException {
205         return getPersistence()
206                    .findByUserId_PrevAndNext(entryId, userId, orderByComparator);
207     }
208 
209     public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C(
210         long classNameId, long classPK)
211         throws com.liferay.portal.kernel.exception.SystemException {
212         return getPersistence().findByC_C(classNameId, classPK);
213     }
214 
215     public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C(
216         long classNameId, long classPK, int start, int end)
217         throws com.liferay.portal.kernel.exception.SystemException {
218         return getPersistence().findByC_C(classNameId, classPK, start, end);
219     }
220 
221     public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C(
222         long classNameId, long classPK, int start, int end,
223         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
224         throws com.liferay.portal.kernel.exception.SystemException {
225         return getPersistence()
226                    .findByC_C(classNameId, classPK, start, end,
227             orderByComparator);
228     }
229 
230     public static com.liferay.portlet.announcements.model.AnnouncementsEntry findByC_C_First(
231         long classNameId, long classPK,
232         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
233         throws com.liferay.portal.kernel.exception.SystemException,
234             com.liferay.portlet.announcements.NoSuchEntryException {
235         return getPersistence()
236                    .findByC_C_First(classNameId, classPK, orderByComparator);
237     }
238 
239     public static com.liferay.portlet.announcements.model.AnnouncementsEntry findByC_C_Last(
240         long classNameId, long classPK,
241         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
242         throws com.liferay.portal.kernel.exception.SystemException,
243             com.liferay.portlet.announcements.NoSuchEntryException {
244         return getPersistence()
245                    .findByC_C_Last(classNameId, classPK, orderByComparator);
246     }
247 
248     public static com.liferay.portlet.announcements.model.AnnouncementsEntry[] findByC_C_PrevAndNext(
249         long entryId, long classNameId, long classPK,
250         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
251         throws com.liferay.portal.kernel.exception.SystemException,
252             com.liferay.portlet.announcements.NoSuchEntryException {
253         return getPersistence()
254                    .findByC_C_PrevAndNext(entryId, classNameId, classPK,
255             orderByComparator);
256     }
257 
258     public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C_A(
259         long classNameId, long classPK, boolean alert)
260         throws com.liferay.portal.kernel.exception.SystemException {
261         return getPersistence().findByC_C_A(classNameId, classPK, alert);
262     }
263 
264     public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C_A(
265         long classNameId, long classPK, boolean alert, int start, int end)
266         throws com.liferay.portal.kernel.exception.SystemException {
267         return getPersistence()
268                    .findByC_C_A(classNameId, classPK, alert, start, end);
269     }
270 
271     public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C_A(
272         long classNameId, long classPK, boolean alert, int start, int end,
273         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
274         throws com.liferay.portal.kernel.exception.SystemException {
275         return getPersistence()
276                    .findByC_C_A(classNameId, classPK, alert, start, end,
277             orderByComparator);
278     }
279 
280     public static com.liferay.portlet.announcements.model.AnnouncementsEntry findByC_C_A_First(
281         long classNameId, long classPK, boolean alert,
282         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
283         throws com.liferay.portal.kernel.exception.SystemException,
284             com.liferay.portlet.announcements.NoSuchEntryException {
285         return getPersistence()
286                    .findByC_C_A_First(classNameId, classPK, alert,
287             orderByComparator);
288     }
289 
290     public static com.liferay.portlet.announcements.model.AnnouncementsEntry findByC_C_A_Last(
291         long classNameId, long classPK, boolean alert,
292         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
293         throws com.liferay.portal.kernel.exception.SystemException,
294             com.liferay.portlet.announcements.NoSuchEntryException {
295         return getPersistence()
296                    .findByC_C_A_Last(classNameId, classPK, alert,
297             orderByComparator);
298     }
299 
300     public static com.liferay.portlet.announcements.model.AnnouncementsEntry[] findByC_C_A_PrevAndNext(
301         long entryId, long classNameId, long classPK, boolean alert,
302         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
303         throws com.liferay.portal.kernel.exception.SystemException,
304             com.liferay.portlet.announcements.NoSuchEntryException {
305         return getPersistence()
306                    .findByC_C_A_PrevAndNext(entryId, classNameId, classPK,
307             alert, orderByComparator);
308     }
309 
310     public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findAll()
311         throws com.liferay.portal.kernel.exception.SystemException {
312         return getPersistence().findAll();
313     }
314 
315     public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findAll(
316         int start, int end)
317         throws com.liferay.portal.kernel.exception.SystemException {
318         return getPersistence().findAll(start, end);
319     }
320 
321     public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findAll(
322         int start, int end,
323         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
324         throws com.liferay.portal.kernel.exception.SystemException {
325         return getPersistence().findAll(start, end, orderByComparator);
326     }
327 
328     public static void removeByUuid(java.lang.String uuid)
329         throws com.liferay.portal.kernel.exception.SystemException {
330         getPersistence().removeByUuid(uuid);
331     }
332 
333     public static void removeByUserId(long userId)
334         throws com.liferay.portal.kernel.exception.SystemException {
335         getPersistence().removeByUserId(userId);
336     }
337 
338     public static void removeByC_C(long classNameId, long classPK)
339         throws com.liferay.portal.kernel.exception.SystemException {
340         getPersistence().removeByC_C(classNameId, classPK);
341     }
342 
343     public static void removeByC_C_A(long classNameId, long classPK,
344         boolean alert)
345         throws com.liferay.portal.kernel.exception.SystemException {
346         getPersistence().removeByC_C_A(classNameId, classPK, alert);
347     }
348 
349     public static void removeAll()
350         throws com.liferay.portal.kernel.exception.SystemException {
351         getPersistence().removeAll();
352     }
353 
354     public static int countByUuid(java.lang.String uuid)
355         throws com.liferay.portal.kernel.exception.SystemException {
356         return getPersistence().countByUuid(uuid);
357     }
358 
359     public static int countByUserId(long userId)
360         throws com.liferay.portal.kernel.exception.SystemException {
361         return getPersistence().countByUserId(userId);
362     }
363 
364     public static int countByC_C(long classNameId, long classPK)
365         throws com.liferay.portal.kernel.exception.SystemException {
366         return getPersistence().countByC_C(classNameId, classPK);
367     }
368 
369     public static int countByC_C_A(long classNameId, long classPK, boolean alert)
370         throws com.liferay.portal.kernel.exception.SystemException {
371         return getPersistence().countByC_C_A(classNameId, classPK, alert);
372     }
373 
374     public static int countAll()
375         throws com.liferay.portal.kernel.exception.SystemException {
376         return getPersistence().countAll();
377     }
378 
379     public static AnnouncementsEntryPersistence getPersistence() {
380         if (_persistence == null) {
381             _persistence = (AnnouncementsEntryPersistence)PortalBeanLocatorUtil.locate(AnnouncementsEntryPersistence.class.getName());
382         }
383 
384         return _persistence;
385     }
386 
387     public void setPersistence(AnnouncementsEntryPersistence persistence) {
388         _persistence = persistence;
389     }
390 
391     private static AnnouncementsEntryPersistence _persistence;
392 }