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