1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.announcements.service.persistence;
24  
25  import com.liferay.portal.SystemException;
26  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
27  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
28  
29  import com.liferay.portlet.announcements.model.AnnouncementsEntry;
30  
31  import java.util.List;
32  
33  /**
34   * <a href="AnnouncementsEntryUtil.java.html"><b><i>View Source</i></b></a>
35   *
36   * <p>
37   * ServiceBuilder generated this class. Modifications in this class will be
38   * overwritten the next time is generated.
39   * </p>
40   *
41   * @author    Brian Wing Shun Chan
42   * @see       AnnouncementsEntryPersistence
43   * @see       AnnouncementsEntryPersistenceImpl
44   * @generated
45   */
46  public class AnnouncementsEntryUtil {
47      /**
48       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
49       */
50      public static void clearCache() {
51          getPersistence().clearCache();
52      }
53  
54      /**
55       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
56       */
57      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
58          throws SystemException {
59          return getPersistence().findWithDynamicQuery(dynamicQuery);
60      }
61  
62      /**
63       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
64       */
65      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
66          int start, int end) throws SystemException {
67          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
68      }
69  
70      /**
71       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
72       */
73      public static AnnouncementsEntry remove(
74          AnnouncementsEntry announcementsEntry) throws SystemException {
75          return getPersistence().remove(announcementsEntry);
76      }
77  
78      /**
79       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
80       */
81      public static AnnouncementsEntry update(
82          AnnouncementsEntry announcementsEntry, boolean merge)
83          throws SystemException {
84          return getPersistence().update(announcementsEntry, merge);
85      }
86  
87      public static void cacheResult(
88          com.liferay.portlet.announcements.model.AnnouncementsEntry announcementsEntry) {
89          getPersistence().cacheResult(announcementsEntry);
90      }
91  
92      public static void cacheResult(
93          java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> announcementsEntries) {
94          getPersistence().cacheResult(announcementsEntries);
95      }
96  
97      public static com.liferay.portlet.announcements.model.AnnouncementsEntry create(
98          long entryId) {
99          return getPersistence().create(entryId);
100     }
101 
102     public static com.liferay.portlet.announcements.model.AnnouncementsEntry remove(
103         long entryId)
104         throws com.liferay.portal.SystemException,
105             com.liferay.portlet.announcements.NoSuchEntryException {
106         return getPersistence().remove(entryId);
107     }
108 
109     /**
110      * @deprecated Use {@link com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean)}.
111      */
112     public static com.liferay.portlet.announcements.model.AnnouncementsEntry update(
113         com.liferay.portlet.announcements.model.AnnouncementsEntry announcementsEntry)
114         throws com.liferay.portal.SystemException {
115         return getPersistence().update(announcementsEntry);
116     }
117 
118     public static com.liferay.portlet.announcements.model.AnnouncementsEntry updateImpl(
119         com.liferay.portlet.announcements.model.AnnouncementsEntry announcementsEntry,
120         boolean merge) throws com.liferay.portal.SystemException {
121         return getPersistence().updateImpl(announcementsEntry, merge);
122     }
123 
124     public static com.liferay.portlet.announcements.model.AnnouncementsEntry findByPrimaryKey(
125         long entryId)
126         throws com.liferay.portal.SystemException,
127             com.liferay.portlet.announcements.NoSuchEntryException {
128         return getPersistence().findByPrimaryKey(entryId);
129     }
130 
131     public static com.liferay.portlet.announcements.model.AnnouncementsEntry fetchByPrimaryKey(
132         long entryId) throws com.liferay.portal.SystemException {
133         return getPersistence().fetchByPrimaryKey(entryId);
134     }
135 
136     public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUuid(
137         java.lang.String uuid) throws com.liferay.portal.SystemException {
138         return getPersistence().findByUuid(uuid);
139     }
140 
141     public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUuid(
142         java.lang.String uuid, int start, int end)
143         throws com.liferay.portal.SystemException {
144         return getPersistence().findByUuid(uuid, start, end);
145     }
146 
147     public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUuid(
148         java.lang.String uuid, int start, int end,
149         com.liferay.portal.kernel.util.OrderByComparator obc)
150         throws com.liferay.portal.SystemException {
151         return getPersistence().findByUuid(uuid, start, end, obc);
152     }
153 
154     public static com.liferay.portlet.announcements.model.AnnouncementsEntry findByUuid_First(
155         java.lang.String uuid,
156         com.liferay.portal.kernel.util.OrderByComparator obc)
157         throws com.liferay.portal.SystemException,
158             com.liferay.portlet.announcements.NoSuchEntryException {
159         return getPersistence().findByUuid_First(uuid, obc);
160     }
161 
162     public static com.liferay.portlet.announcements.model.AnnouncementsEntry findByUuid_Last(
163         java.lang.String uuid,
164         com.liferay.portal.kernel.util.OrderByComparator obc)
165         throws com.liferay.portal.SystemException,
166             com.liferay.portlet.announcements.NoSuchEntryException {
167         return getPersistence().findByUuid_Last(uuid, obc);
168     }
169 
170     public static com.liferay.portlet.announcements.model.AnnouncementsEntry[] findByUuid_PrevAndNext(
171         long entryId, java.lang.String uuid,
172         com.liferay.portal.kernel.util.OrderByComparator obc)
173         throws com.liferay.portal.SystemException,
174             com.liferay.portlet.announcements.NoSuchEntryException {
175         return getPersistence().findByUuid_PrevAndNext(entryId, uuid, obc);
176     }
177 
178     public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUserId(
179         long userId) throws com.liferay.portal.SystemException {
180         return getPersistence().findByUserId(userId);
181     }
182 
183     public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUserId(
184         long userId, int start, int end)
185         throws com.liferay.portal.SystemException {
186         return getPersistence().findByUserId(userId, start, end);
187     }
188 
189     public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUserId(
190         long userId, int start, int end,
191         com.liferay.portal.kernel.util.OrderByComparator obc)
192         throws com.liferay.portal.SystemException {
193         return getPersistence().findByUserId(userId, start, end, obc);
194     }
195 
196     public static com.liferay.portlet.announcements.model.AnnouncementsEntry findByUserId_First(
197         long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
198         throws com.liferay.portal.SystemException,
199             com.liferay.portlet.announcements.NoSuchEntryException {
200         return getPersistence().findByUserId_First(userId, obc);
201     }
202 
203     public static com.liferay.portlet.announcements.model.AnnouncementsEntry findByUserId_Last(
204         long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
205         throws com.liferay.portal.SystemException,
206             com.liferay.portlet.announcements.NoSuchEntryException {
207         return getPersistence().findByUserId_Last(userId, obc);
208     }
209 
210     public static com.liferay.portlet.announcements.model.AnnouncementsEntry[] findByUserId_PrevAndNext(
211         long entryId, long userId,
212         com.liferay.portal.kernel.util.OrderByComparator obc)
213         throws com.liferay.portal.SystemException,
214             com.liferay.portlet.announcements.NoSuchEntryException {
215         return getPersistence().findByUserId_PrevAndNext(entryId, userId, obc);
216     }
217 
218     public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C(
219         long classNameId, long classPK)
220         throws com.liferay.portal.SystemException {
221         return getPersistence().findByC_C(classNameId, classPK);
222     }
223 
224     public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C(
225         long classNameId, long classPK, int start, int end)
226         throws com.liferay.portal.SystemException {
227         return getPersistence().findByC_C(classNameId, classPK, start, end);
228     }
229 
230     public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C(
231         long classNameId, long classPK, int start, int end,
232         com.liferay.portal.kernel.util.OrderByComparator obc)
233         throws com.liferay.portal.SystemException {
234         return getPersistence().findByC_C(classNameId, classPK, start, end, obc);
235     }
236 
237     public static com.liferay.portlet.announcements.model.AnnouncementsEntry findByC_C_First(
238         long classNameId, long classPK,
239         com.liferay.portal.kernel.util.OrderByComparator obc)
240         throws com.liferay.portal.SystemException,
241             com.liferay.portlet.announcements.NoSuchEntryException {
242         return getPersistence().findByC_C_First(classNameId, classPK, obc);
243     }
244 
245     public static com.liferay.portlet.announcements.model.AnnouncementsEntry findByC_C_Last(
246         long classNameId, long classPK,
247         com.liferay.portal.kernel.util.OrderByComparator obc)
248         throws com.liferay.portal.SystemException,
249             com.liferay.portlet.announcements.NoSuchEntryException {
250         return getPersistence().findByC_C_Last(classNameId, classPK, obc);
251     }
252 
253     public static com.liferay.portlet.announcements.model.AnnouncementsEntry[] findByC_C_PrevAndNext(
254         long entryId, long classNameId, long classPK,
255         com.liferay.portal.kernel.util.OrderByComparator obc)
256         throws com.liferay.portal.SystemException,
257             com.liferay.portlet.announcements.NoSuchEntryException {
258         return getPersistence()
259                    .findByC_C_PrevAndNext(entryId, classNameId, classPK, obc);
260     }
261 
262     public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C_A(
263         long classNameId, long classPK, boolean alert)
264         throws com.liferay.portal.SystemException {
265         return getPersistence().findByC_C_A(classNameId, classPK, alert);
266     }
267 
268     public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C_A(
269         long classNameId, long classPK, boolean alert, int start, int end)
270         throws com.liferay.portal.SystemException {
271         return getPersistence()
272                    .findByC_C_A(classNameId, classPK, alert, start, end);
273     }
274 
275     public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C_A(
276         long classNameId, long classPK, boolean alert, int start, int end,
277         com.liferay.portal.kernel.util.OrderByComparator obc)
278         throws com.liferay.portal.SystemException {
279         return getPersistence()
280                    .findByC_C_A(classNameId, classPK, alert, start, end, obc);
281     }
282 
283     public static com.liferay.portlet.announcements.model.AnnouncementsEntry findByC_C_A_First(
284         long classNameId, long classPK, boolean alert,
285         com.liferay.portal.kernel.util.OrderByComparator obc)
286         throws com.liferay.portal.SystemException,
287             com.liferay.portlet.announcements.NoSuchEntryException {
288         return getPersistence()
289                    .findByC_C_A_First(classNameId, classPK, alert, obc);
290     }
291 
292     public static com.liferay.portlet.announcements.model.AnnouncementsEntry findByC_C_A_Last(
293         long classNameId, long classPK, boolean alert,
294         com.liferay.portal.kernel.util.OrderByComparator obc)
295         throws com.liferay.portal.SystemException,
296             com.liferay.portlet.announcements.NoSuchEntryException {
297         return getPersistence()
298                    .findByC_C_A_Last(classNameId, classPK, alert, obc);
299     }
300 
301     public static com.liferay.portlet.announcements.model.AnnouncementsEntry[] findByC_C_A_PrevAndNext(
302         long entryId, long classNameId, long classPK, boolean alert,
303         com.liferay.portal.kernel.util.OrderByComparator obc)
304         throws com.liferay.portal.SystemException,
305             com.liferay.portlet.announcements.NoSuchEntryException {
306         return getPersistence()
307                    .findByC_C_A_PrevAndNext(entryId, classNameId, classPK,
308             alert, obc);
309     }
310 
311     public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findAll()
312         throws com.liferay.portal.SystemException {
313         return getPersistence().findAll();
314     }
315 
316     public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findAll(
317         int start, int end) throws com.liferay.portal.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, com.liferay.portal.kernel.util.OrderByComparator obc)
323         throws com.liferay.portal.SystemException {
324         return getPersistence().findAll(start, end, obc);
325     }
326 
327     public static void removeByUuid(java.lang.String uuid)
328         throws com.liferay.portal.SystemException {
329         getPersistence().removeByUuid(uuid);
330     }
331 
332     public static void removeByUserId(long userId)
333         throws com.liferay.portal.SystemException {
334         getPersistence().removeByUserId(userId);
335     }
336 
337     public static void removeByC_C(long classNameId, long classPK)
338         throws com.liferay.portal.SystemException {
339         getPersistence().removeByC_C(classNameId, classPK);
340     }
341 
342     public static void removeByC_C_A(long classNameId, long classPK,
343         boolean alert) throws com.liferay.portal.SystemException {
344         getPersistence().removeByC_C_A(classNameId, classPK, alert);
345     }
346 
347     public static void removeAll() throws com.liferay.portal.SystemException {
348         getPersistence().removeAll();
349     }
350 
351     public static int countByUuid(java.lang.String uuid)
352         throws com.liferay.portal.SystemException {
353         return getPersistence().countByUuid(uuid);
354     }
355 
356     public static int countByUserId(long userId)
357         throws com.liferay.portal.SystemException {
358         return getPersistence().countByUserId(userId);
359     }
360 
361     public static int countByC_C(long classNameId, long classPK)
362         throws com.liferay.portal.SystemException {
363         return getPersistence().countByC_C(classNameId, classPK);
364     }
365 
366     public static int countByC_C_A(long classNameId, long classPK, boolean alert)
367         throws com.liferay.portal.SystemException {
368         return getPersistence().countByC_C_A(classNameId, classPK, alert);
369     }
370 
371     public static int countAll() throws com.liferay.portal.SystemException {
372         return getPersistence().countAll();
373     }
374 
375     public static AnnouncementsEntryPersistence getPersistence() {
376         if (_persistence == null) {
377             _persistence = (AnnouncementsEntryPersistence)PortalBeanLocatorUtil.locate(AnnouncementsEntryPersistence.class.getName());
378         }
379 
380         return _persistence;
381     }
382 
383     public void setPersistence(AnnouncementsEntryPersistence persistence) {
384         _persistence = persistence;
385     }
386 
387     private static AnnouncementsEntryPersistence _persistence;
388 }