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.calendar.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.calendar.model.CalEvent;
22  
23  import java.util.List;
24  
25  /**
26   * <a href="CalEventUtil.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       CalEventPersistence
35   * @see       CalEventPersistenceImpl
36   * @generated
37   */
38  public class CalEventUtil {
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 CalEvent remove(CalEvent calEvent) throws SystemException {
66          return getPersistence().remove(calEvent);
67      }
68  
69      /**
70       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
71       */
72      public static CalEvent update(CalEvent calEvent, boolean merge)
73          throws SystemException {
74          return getPersistence().update(calEvent, merge);
75      }
76  
77      public static void cacheResult(
78          com.liferay.portlet.calendar.model.CalEvent calEvent) {
79          getPersistence().cacheResult(calEvent);
80      }
81  
82      public static void cacheResult(
83          java.util.List<com.liferay.portlet.calendar.model.CalEvent> calEvents) {
84          getPersistence().cacheResult(calEvents);
85      }
86  
87      public static com.liferay.portlet.calendar.model.CalEvent create(
88          long eventId) {
89          return getPersistence().create(eventId);
90      }
91  
92      public static com.liferay.portlet.calendar.model.CalEvent remove(
93          long eventId)
94          throws com.liferay.portal.SystemException,
95              com.liferay.portlet.calendar.NoSuchEventException {
96          return getPersistence().remove(eventId);
97      }
98  
99      /**
100      * @deprecated Use {@link com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean)}.
101      */
102     public static com.liferay.portlet.calendar.model.CalEvent update(
103         com.liferay.portlet.calendar.model.CalEvent calEvent)
104         throws com.liferay.portal.SystemException {
105         return getPersistence().update(calEvent);
106     }
107 
108     public static com.liferay.portlet.calendar.model.CalEvent updateImpl(
109         com.liferay.portlet.calendar.model.CalEvent calEvent, boolean merge)
110         throws com.liferay.portal.SystemException {
111         return getPersistence().updateImpl(calEvent, merge);
112     }
113 
114     public static com.liferay.portlet.calendar.model.CalEvent findByPrimaryKey(
115         long eventId)
116         throws com.liferay.portal.SystemException,
117             com.liferay.portlet.calendar.NoSuchEventException {
118         return getPersistence().findByPrimaryKey(eventId);
119     }
120 
121     public static com.liferay.portlet.calendar.model.CalEvent fetchByPrimaryKey(
122         long eventId) throws com.liferay.portal.SystemException {
123         return getPersistence().fetchByPrimaryKey(eventId);
124     }
125 
126     public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByUuid(
127         java.lang.String uuid) throws com.liferay.portal.SystemException {
128         return getPersistence().findByUuid(uuid);
129     }
130 
131     public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByUuid(
132         java.lang.String uuid, int start, int end)
133         throws com.liferay.portal.SystemException {
134         return getPersistence().findByUuid(uuid, start, end);
135     }
136 
137     public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByUuid(
138         java.lang.String uuid, int start, int end,
139         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
140         throws com.liferay.portal.SystemException {
141         return getPersistence().findByUuid(uuid, start, end, orderByComparator);
142     }
143 
144     public static com.liferay.portlet.calendar.model.CalEvent findByUuid_First(
145         java.lang.String uuid,
146         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
147         throws com.liferay.portal.SystemException,
148             com.liferay.portlet.calendar.NoSuchEventException {
149         return getPersistence().findByUuid_First(uuid, orderByComparator);
150     }
151 
152     public static com.liferay.portlet.calendar.model.CalEvent findByUuid_Last(
153         java.lang.String uuid,
154         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
155         throws com.liferay.portal.SystemException,
156             com.liferay.portlet.calendar.NoSuchEventException {
157         return getPersistence().findByUuid_Last(uuid, orderByComparator);
158     }
159 
160     public static com.liferay.portlet.calendar.model.CalEvent[] findByUuid_PrevAndNext(
161         long eventId, java.lang.String uuid,
162         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
163         throws com.liferay.portal.SystemException,
164             com.liferay.portlet.calendar.NoSuchEventException {
165         return getPersistence()
166                    .findByUuid_PrevAndNext(eventId, uuid, orderByComparator);
167     }
168 
169     public static com.liferay.portlet.calendar.model.CalEvent findByUUID_G(
170         java.lang.String uuid, long groupId)
171         throws com.liferay.portal.SystemException,
172             com.liferay.portlet.calendar.NoSuchEventException {
173         return getPersistence().findByUUID_G(uuid, groupId);
174     }
175 
176     public static com.liferay.portlet.calendar.model.CalEvent fetchByUUID_G(
177         java.lang.String uuid, long groupId)
178         throws com.liferay.portal.SystemException {
179         return getPersistence().fetchByUUID_G(uuid, groupId);
180     }
181 
182     public static com.liferay.portlet.calendar.model.CalEvent fetchByUUID_G(
183         java.lang.String uuid, long groupId, boolean retrieveFromCache)
184         throws com.liferay.portal.SystemException {
185         return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
186     }
187 
188     public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByCompanyId(
189         long companyId) throws com.liferay.portal.SystemException {
190         return getPersistence().findByCompanyId(companyId);
191     }
192 
193     public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByCompanyId(
194         long companyId, int start, int end)
195         throws com.liferay.portal.SystemException {
196         return getPersistence().findByCompanyId(companyId, start, end);
197     }
198 
199     public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByCompanyId(
200         long companyId, int start, int end,
201         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
202         throws com.liferay.portal.SystemException {
203         return getPersistence()
204                    .findByCompanyId(companyId, start, end, orderByComparator);
205     }
206 
207     public static com.liferay.portlet.calendar.model.CalEvent findByCompanyId_First(
208         long companyId,
209         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
210         throws com.liferay.portal.SystemException,
211             com.liferay.portlet.calendar.NoSuchEventException {
212         return getPersistence()
213                    .findByCompanyId_First(companyId, orderByComparator);
214     }
215 
216     public static com.liferay.portlet.calendar.model.CalEvent findByCompanyId_Last(
217         long companyId,
218         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
219         throws com.liferay.portal.SystemException,
220             com.liferay.portlet.calendar.NoSuchEventException {
221         return getPersistence()
222                    .findByCompanyId_Last(companyId, orderByComparator);
223     }
224 
225     public static com.liferay.portlet.calendar.model.CalEvent[] findByCompanyId_PrevAndNext(
226         long eventId, long companyId,
227         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
228         throws com.liferay.portal.SystemException,
229             com.liferay.portlet.calendar.NoSuchEventException {
230         return getPersistence()
231                    .findByCompanyId_PrevAndNext(eventId, companyId,
232             orderByComparator);
233     }
234 
235     public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByGroupId(
236         long groupId) throws com.liferay.portal.SystemException {
237         return getPersistence().findByGroupId(groupId);
238     }
239 
240     public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByGroupId(
241         long groupId, int start, int end)
242         throws com.liferay.portal.SystemException {
243         return getPersistence().findByGroupId(groupId, start, end);
244     }
245 
246     public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByGroupId(
247         long groupId, int start, int end,
248         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
249         throws com.liferay.portal.SystemException {
250         return getPersistence()
251                    .findByGroupId(groupId, start, end, orderByComparator);
252     }
253 
254     public static com.liferay.portlet.calendar.model.CalEvent findByGroupId_First(
255         long groupId,
256         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
257         throws com.liferay.portal.SystemException,
258             com.liferay.portlet.calendar.NoSuchEventException {
259         return getPersistence().findByGroupId_First(groupId, orderByComparator);
260     }
261 
262     public static com.liferay.portlet.calendar.model.CalEvent findByGroupId_Last(
263         long groupId,
264         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
265         throws com.liferay.portal.SystemException,
266             com.liferay.portlet.calendar.NoSuchEventException {
267         return getPersistence().findByGroupId_Last(groupId, orderByComparator);
268     }
269 
270     public static com.liferay.portlet.calendar.model.CalEvent[] findByGroupId_PrevAndNext(
271         long eventId, long groupId,
272         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
273         throws com.liferay.portal.SystemException,
274             com.liferay.portlet.calendar.NoSuchEventException {
275         return getPersistence()
276                    .findByGroupId_PrevAndNext(eventId, groupId,
277             orderByComparator);
278     }
279 
280     public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByRemindBy(
281         int remindBy) throws com.liferay.portal.SystemException {
282         return getPersistence().findByRemindBy(remindBy);
283     }
284 
285     public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByRemindBy(
286         int remindBy, int start, int end)
287         throws com.liferay.portal.SystemException {
288         return getPersistence().findByRemindBy(remindBy, start, end);
289     }
290 
291     public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByRemindBy(
292         int remindBy, int start, int end,
293         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
294         throws com.liferay.portal.SystemException {
295         return getPersistence()
296                    .findByRemindBy(remindBy, start, end, orderByComparator);
297     }
298 
299     public static com.liferay.portlet.calendar.model.CalEvent findByRemindBy_First(
300         int remindBy,
301         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
302         throws com.liferay.portal.SystemException,
303             com.liferay.portlet.calendar.NoSuchEventException {
304         return getPersistence().findByRemindBy_First(remindBy, orderByComparator);
305     }
306 
307     public static com.liferay.portlet.calendar.model.CalEvent findByRemindBy_Last(
308         int remindBy,
309         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
310         throws com.liferay.portal.SystemException,
311             com.liferay.portlet.calendar.NoSuchEventException {
312         return getPersistence().findByRemindBy_Last(remindBy, orderByComparator);
313     }
314 
315     public static com.liferay.portlet.calendar.model.CalEvent[] findByRemindBy_PrevAndNext(
316         long eventId, int remindBy,
317         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
318         throws com.liferay.portal.SystemException,
319             com.liferay.portlet.calendar.NoSuchEventException {
320         return getPersistence()
321                    .findByRemindBy_PrevAndNext(eventId, remindBy,
322             orderByComparator);
323     }
324 
325     public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_T(
326         long groupId, java.lang.String type)
327         throws com.liferay.portal.SystemException {
328         return getPersistence().findByG_T(groupId, type);
329     }
330 
331     public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_T(
332         long groupId, java.lang.String type, int start, int end)
333         throws com.liferay.portal.SystemException {
334         return getPersistence().findByG_T(groupId, type, start, end);
335     }
336 
337     public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_T(
338         long groupId, java.lang.String type, int start, int end,
339         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
340         throws com.liferay.portal.SystemException {
341         return getPersistence()
342                    .findByG_T(groupId, type, start, end, orderByComparator);
343     }
344 
345     public static com.liferay.portlet.calendar.model.CalEvent findByG_T_First(
346         long groupId, java.lang.String type,
347         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
348         throws com.liferay.portal.SystemException,
349             com.liferay.portlet.calendar.NoSuchEventException {
350         return getPersistence().findByG_T_First(groupId, type, orderByComparator);
351     }
352 
353     public static com.liferay.portlet.calendar.model.CalEvent findByG_T_Last(
354         long groupId, java.lang.String type,
355         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
356         throws com.liferay.portal.SystemException,
357             com.liferay.portlet.calendar.NoSuchEventException {
358         return getPersistence().findByG_T_Last(groupId, type, orderByComparator);
359     }
360 
361     public static com.liferay.portlet.calendar.model.CalEvent[] findByG_T_PrevAndNext(
362         long eventId, long groupId, java.lang.String type,
363         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
364         throws com.liferay.portal.SystemException,
365             com.liferay.portlet.calendar.NoSuchEventException {
366         return getPersistence()
367                    .findByG_T_PrevAndNext(eventId, groupId, type,
368             orderByComparator);
369     }
370 
371     public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_R(
372         long groupId, boolean repeating)
373         throws com.liferay.portal.SystemException {
374         return getPersistence().findByG_R(groupId, repeating);
375     }
376 
377     public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_R(
378         long groupId, boolean repeating, int start, int end)
379         throws com.liferay.portal.SystemException {
380         return getPersistence().findByG_R(groupId, repeating, start, end);
381     }
382 
383     public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_R(
384         long groupId, boolean repeating, int start, int end,
385         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
386         throws com.liferay.portal.SystemException {
387         return getPersistence()
388                    .findByG_R(groupId, repeating, start, end, orderByComparator);
389     }
390 
391     public static com.liferay.portlet.calendar.model.CalEvent findByG_R_First(
392         long groupId, boolean repeating,
393         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
394         throws com.liferay.portal.SystemException,
395             com.liferay.portlet.calendar.NoSuchEventException {
396         return getPersistence()
397                    .findByG_R_First(groupId, repeating, orderByComparator);
398     }
399 
400     public static com.liferay.portlet.calendar.model.CalEvent findByG_R_Last(
401         long groupId, boolean repeating,
402         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
403         throws com.liferay.portal.SystemException,
404             com.liferay.portlet.calendar.NoSuchEventException {
405         return getPersistence()
406                    .findByG_R_Last(groupId, repeating, orderByComparator);
407     }
408 
409     public static com.liferay.portlet.calendar.model.CalEvent[] findByG_R_PrevAndNext(
410         long eventId, long groupId, boolean repeating,
411         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
412         throws com.liferay.portal.SystemException,
413             com.liferay.portlet.calendar.NoSuchEventException {
414         return getPersistence()
415                    .findByG_R_PrevAndNext(eventId, groupId, repeating,
416             orderByComparator);
417     }
418 
419     public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findAll()
420         throws com.liferay.portal.SystemException {
421         return getPersistence().findAll();
422     }
423 
424     public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findAll(
425         int start, int end) throws com.liferay.portal.SystemException {
426         return getPersistence().findAll(start, end);
427     }
428 
429     public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findAll(
430         int start, int end,
431         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
432         throws com.liferay.portal.SystemException {
433         return getPersistence().findAll(start, end, orderByComparator);
434     }
435 
436     public static void removeByUuid(java.lang.String uuid)
437         throws com.liferay.portal.SystemException {
438         getPersistence().removeByUuid(uuid);
439     }
440 
441     public static void removeByUUID_G(java.lang.String uuid, long groupId)
442         throws com.liferay.portal.SystemException,
443             com.liferay.portlet.calendar.NoSuchEventException {
444         getPersistence().removeByUUID_G(uuid, groupId);
445     }
446 
447     public static void removeByCompanyId(long companyId)
448         throws com.liferay.portal.SystemException {
449         getPersistence().removeByCompanyId(companyId);
450     }
451 
452     public static void removeByGroupId(long groupId)
453         throws com.liferay.portal.SystemException {
454         getPersistence().removeByGroupId(groupId);
455     }
456 
457     public static void removeByRemindBy(int remindBy)
458         throws com.liferay.portal.SystemException {
459         getPersistence().removeByRemindBy(remindBy);
460     }
461 
462     public static void removeByG_T(long groupId, java.lang.String type)
463         throws com.liferay.portal.SystemException {
464         getPersistence().removeByG_T(groupId, type);
465     }
466 
467     public static void removeByG_R(long groupId, boolean repeating)
468         throws com.liferay.portal.SystemException {
469         getPersistence().removeByG_R(groupId, repeating);
470     }
471 
472     public static void removeAll() throws com.liferay.portal.SystemException {
473         getPersistence().removeAll();
474     }
475 
476     public static int countByUuid(java.lang.String uuid)
477         throws com.liferay.portal.SystemException {
478         return getPersistence().countByUuid(uuid);
479     }
480 
481     public static int countByUUID_G(java.lang.String uuid, long groupId)
482         throws com.liferay.portal.SystemException {
483         return getPersistence().countByUUID_G(uuid, groupId);
484     }
485 
486     public static int countByCompanyId(long companyId)
487         throws com.liferay.portal.SystemException {
488         return getPersistence().countByCompanyId(companyId);
489     }
490 
491     public static int countByGroupId(long groupId)
492         throws com.liferay.portal.SystemException {
493         return getPersistence().countByGroupId(groupId);
494     }
495 
496     public static int countByRemindBy(int remindBy)
497         throws com.liferay.portal.SystemException {
498         return getPersistence().countByRemindBy(remindBy);
499     }
500 
501     public static int countByG_T(long groupId, java.lang.String type)
502         throws com.liferay.portal.SystemException {
503         return getPersistence().countByG_T(groupId, type);
504     }
505 
506     public static int countByG_R(long groupId, boolean repeating)
507         throws com.liferay.portal.SystemException {
508         return getPersistence().countByG_R(groupId, repeating);
509     }
510 
511     public static int countAll() throws com.liferay.portal.SystemException {
512         return getPersistence().countAll();
513     }
514 
515     public static CalEventPersistence getPersistence() {
516         if (_persistence == null) {
517             _persistence = (CalEventPersistence)PortalBeanLocatorUtil.locate(CalEventPersistence.class.getName());
518         }
519 
520         return _persistence;
521     }
522 
523     public void setPersistence(CalEventPersistence persistence) {
524         _persistence = persistence;
525     }
526 
527     private static CalEventPersistence _persistence;
528 }