001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.calendar.service.persistence;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019    import com.liferay.portal.kernel.exception.SystemException;
020    import com.liferay.portal.kernel.util.OrderByComparator;
021    import com.liferay.portal.kernel.util.ReferenceRegistry;
022    import com.liferay.portal.service.ServiceContext;
023    
024    import com.liferay.portlet.calendar.model.CalEvent;
025    
026    import java.util.List;
027    
028    /**
029     * The persistence utility for the cal event service. This utility wraps {@link CalEventPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
030     *
031     * <p>
032     * Caching information and settings can be found in <code>portal.properties</code>
033     * </p>
034     *
035     * @author Brian Wing Shun Chan
036     * @see CalEventPersistence
037     * @see CalEventPersistenceImpl
038     * @generated
039     */
040    public class CalEventUtil {
041            /*
042             * NOTE FOR DEVELOPERS:
043             *
044             * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
045             */
046    
047            /**
048             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
049             */
050            public static void clearCache() {
051                    getPersistence().clearCache();
052            }
053    
054            /**
055             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
056             */
057            public static void clearCache(CalEvent calEvent) {
058                    getPersistence().clearCache(calEvent);
059            }
060    
061            /**
062             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
063             */
064            public long countWithDynamicQuery(DynamicQuery dynamicQuery)
065                    throws SystemException {
066                    return getPersistence().countWithDynamicQuery(dynamicQuery);
067            }
068    
069            /**
070             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
071             */
072            public static List<CalEvent> findWithDynamicQuery(DynamicQuery dynamicQuery)
073                    throws SystemException {
074                    return getPersistence().findWithDynamicQuery(dynamicQuery);
075            }
076    
077            /**
078             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
079             */
080            public static List<CalEvent> findWithDynamicQuery(
081                    DynamicQuery dynamicQuery, int start, int end)
082                    throws SystemException {
083                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
084            }
085    
086            /**
087             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
088             */
089            public static List<CalEvent> findWithDynamicQuery(
090                    DynamicQuery dynamicQuery, int start, int end,
091                    OrderByComparator orderByComparator) throws SystemException {
092                    return getPersistence()
093                                       .findWithDynamicQuery(dynamicQuery, start, end,
094                            orderByComparator);
095            }
096    
097            /**
098             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
099             */
100            public static CalEvent update(CalEvent calEvent, boolean merge)
101                    throws SystemException {
102                    return getPersistence().update(calEvent, merge);
103            }
104    
105            /**
106             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
107             */
108            public static CalEvent update(CalEvent calEvent, boolean merge,
109                    ServiceContext serviceContext) throws SystemException {
110                    return getPersistence().update(calEvent, merge, serviceContext);
111            }
112    
113            /**
114            * Caches the cal event in the entity cache if it is enabled.
115            *
116            * @param calEvent the cal event
117            */
118            public static void cacheResult(
119                    com.liferay.portlet.calendar.model.CalEvent calEvent) {
120                    getPersistence().cacheResult(calEvent);
121            }
122    
123            /**
124            * Caches the cal events in the entity cache if it is enabled.
125            *
126            * @param calEvents the cal events
127            */
128            public static void cacheResult(
129                    java.util.List<com.liferay.portlet.calendar.model.CalEvent> calEvents) {
130                    getPersistence().cacheResult(calEvents);
131            }
132    
133            /**
134            * Creates a new cal event with the primary key. Does not add the cal event to the database.
135            *
136            * @param eventId the primary key for the new cal event
137            * @return the new cal event
138            */
139            public static com.liferay.portlet.calendar.model.CalEvent create(
140                    long eventId) {
141                    return getPersistence().create(eventId);
142            }
143    
144            /**
145            * Removes the cal event with the primary key from the database. Also notifies the appropriate model listeners.
146            *
147            * @param eventId the primary key of the cal event
148            * @return the cal event that was removed
149            * @throws com.liferay.portlet.calendar.NoSuchEventException if a cal event with the primary key could not be found
150            * @throws SystemException if a system exception occurred
151            */
152            public static com.liferay.portlet.calendar.model.CalEvent remove(
153                    long eventId)
154                    throws com.liferay.portal.kernel.exception.SystemException,
155                            com.liferay.portlet.calendar.NoSuchEventException {
156                    return getPersistence().remove(eventId);
157            }
158    
159            public static com.liferay.portlet.calendar.model.CalEvent updateImpl(
160                    com.liferay.portlet.calendar.model.CalEvent calEvent, boolean merge)
161                    throws com.liferay.portal.kernel.exception.SystemException {
162                    return getPersistence().updateImpl(calEvent, merge);
163            }
164    
165            /**
166            * Returns the cal event with the primary key or throws a {@link com.liferay.portlet.calendar.NoSuchEventException} if it could not be found.
167            *
168            * @param eventId the primary key of the cal event
169            * @return the cal event
170            * @throws com.liferay.portlet.calendar.NoSuchEventException if a cal event with the primary key could not be found
171            * @throws SystemException if a system exception occurred
172            */
173            public static com.liferay.portlet.calendar.model.CalEvent findByPrimaryKey(
174                    long eventId)
175                    throws com.liferay.portal.kernel.exception.SystemException,
176                            com.liferay.portlet.calendar.NoSuchEventException {
177                    return getPersistence().findByPrimaryKey(eventId);
178            }
179    
180            /**
181            * Returns the cal event with the primary key or returns <code>null</code> if it could not be found.
182            *
183            * @param eventId the primary key of the cal event
184            * @return the cal event, or <code>null</code> if a cal event with the primary key could not be found
185            * @throws SystemException if a system exception occurred
186            */
187            public static com.liferay.portlet.calendar.model.CalEvent fetchByPrimaryKey(
188                    long eventId)
189                    throws com.liferay.portal.kernel.exception.SystemException {
190                    return getPersistence().fetchByPrimaryKey(eventId);
191            }
192    
193            /**
194            * Returns all the cal events where uuid = &#63;.
195            *
196            * @param uuid the uuid
197            * @return the matching cal events
198            * @throws SystemException if a system exception occurred
199            */
200            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByUuid(
201                    java.lang.String uuid)
202                    throws com.liferay.portal.kernel.exception.SystemException {
203                    return getPersistence().findByUuid(uuid);
204            }
205    
206            /**
207            * Returns a range of all the cal events where uuid = &#63;.
208            *
209            * <p>
210            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
211            * </p>
212            *
213            * @param uuid the uuid
214            * @param start the lower bound of the range of cal events
215            * @param end the upper bound of the range of cal events (not inclusive)
216            * @return the range of matching cal events
217            * @throws SystemException if a system exception occurred
218            */
219            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByUuid(
220                    java.lang.String uuid, int start, int end)
221                    throws com.liferay.portal.kernel.exception.SystemException {
222                    return getPersistence().findByUuid(uuid, start, end);
223            }
224    
225            /**
226            * Returns an ordered range of all the cal events where uuid = &#63;.
227            *
228            * <p>
229            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
230            * </p>
231            *
232            * @param uuid the uuid
233            * @param start the lower bound of the range of cal events
234            * @param end the upper bound of the range of cal events (not inclusive)
235            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
236            * @return the ordered range of matching cal events
237            * @throws SystemException if a system exception occurred
238            */
239            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByUuid(
240                    java.lang.String uuid, int start, int end,
241                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
242                    throws com.liferay.portal.kernel.exception.SystemException {
243                    return getPersistence().findByUuid(uuid, start, end, orderByComparator);
244            }
245    
246            /**
247            * Returns the first cal event in the ordered set where uuid = &#63;.
248            *
249            * @param uuid the uuid
250            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
251            * @return the first matching cal event
252            * @throws com.liferay.portlet.calendar.NoSuchEventException if a matching cal event could not be found
253            * @throws SystemException if a system exception occurred
254            */
255            public static com.liferay.portlet.calendar.model.CalEvent findByUuid_First(
256                    java.lang.String uuid,
257                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
258                    throws com.liferay.portal.kernel.exception.SystemException,
259                            com.liferay.portlet.calendar.NoSuchEventException {
260                    return getPersistence().findByUuid_First(uuid, orderByComparator);
261            }
262    
263            /**
264            * Returns the first cal event in the ordered set where uuid = &#63;.
265            *
266            * @param uuid the uuid
267            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
268            * @return the first matching cal event, or <code>null</code> if a matching cal event could not be found
269            * @throws SystemException if a system exception occurred
270            */
271            public static com.liferay.portlet.calendar.model.CalEvent fetchByUuid_First(
272                    java.lang.String uuid,
273                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
274                    throws com.liferay.portal.kernel.exception.SystemException {
275                    return getPersistence().fetchByUuid_First(uuid, orderByComparator);
276            }
277    
278            /**
279            * Returns the last cal event in the ordered set where uuid = &#63;.
280            *
281            * @param uuid the uuid
282            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
283            * @return the last matching cal event
284            * @throws com.liferay.portlet.calendar.NoSuchEventException if a matching cal event could not be found
285            * @throws SystemException if a system exception occurred
286            */
287            public static com.liferay.portlet.calendar.model.CalEvent findByUuid_Last(
288                    java.lang.String uuid,
289                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
290                    throws com.liferay.portal.kernel.exception.SystemException,
291                            com.liferay.portlet.calendar.NoSuchEventException {
292                    return getPersistence().findByUuid_Last(uuid, orderByComparator);
293            }
294    
295            /**
296            * Returns the last cal event in the ordered set where uuid = &#63;.
297            *
298            * @param uuid the uuid
299            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
300            * @return the last matching cal event, or <code>null</code> if a matching cal event could not be found
301            * @throws SystemException if a system exception occurred
302            */
303            public static com.liferay.portlet.calendar.model.CalEvent fetchByUuid_Last(
304                    java.lang.String uuid,
305                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
306                    throws com.liferay.portal.kernel.exception.SystemException {
307                    return getPersistence().fetchByUuid_Last(uuid, orderByComparator);
308            }
309    
310            /**
311            * Returns the cal events before and after the current cal event in the ordered set where uuid = &#63;.
312            *
313            * @param eventId the primary key of the current cal event
314            * @param uuid the uuid
315            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
316            * @return the previous, current, and next cal event
317            * @throws com.liferay.portlet.calendar.NoSuchEventException if a cal event with the primary key could not be found
318            * @throws SystemException if a system exception occurred
319            */
320            public static com.liferay.portlet.calendar.model.CalEvent[] findByUuid_PrevAndNext(
321                    long eventId, java.lang.String uuid,
322                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
323                    throws com.liferay.portal.kernel.exception.SystemException,
324                            com.liferay.portlet.calendar.NoSuchEventException {
325                    return getPersistence()
326                                       .findByUuid_PrevAndNext(eventId, uuid, orderByComparator);
327            }
328    
329            /**
330            * Returns the cal event where uuid = &#63; and groupId = &#63; or throws a {@link com.liferay.portlet.calendar.NoSuchEventException} if it could not be found.
331            *
332            * @param uuid the uuid
333            * @param groupId the group ID
334            * @return the matching cal event
335            * @throws com.liferay.portlet.calendar.NoSuchEventException if a matching cal event could not be found
336            * @throws SystemException if a system exception occurred
337            */
338            public static com.liferay.portlet.calendar.model.CalEvent findByUUID_G(
339                    java.lang.String uuid, long groupId)
340                    throws com.liferay.portal.kernel.exception.SystemException,
341                            com.liferay.portlet.calendar.NoSuchEventException {
342                    return getPersistence().findByUUID_G(uuid, groupId);
343            }
344    
345            /**
346            * Returns the cal event where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
347            *
348            * @param uuid the uuid
349            * @param groupId the group ID
350            * @return the matching cal event, or <code>null</code> if a matching cal event could not be found
351            * @throws SystemException if a system exception occurred
352            */
353            public static com.liferay.portlet.calendar.model.CalEvent fetchByUUID_G(
354                    java.lang.String uuid, long groupId)
355                    throws com.liferay.portal.kernel.exception.SystemException {
356                    return getPersistence().fetchByUUID_G(uuid, groupId);
357            }
358    
359            /**
360            * Returns the cal event where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
361            *
362            * @param uuid the uuid
363            * @param groupId the group ID
364            * @param retrieveFromCache whether to use the finder cache
365            * @return the matching cal event, or <code>null</code> if a matching cal event could not be found
366            * @throws SystemException if a system exception occurred
367            */
368            public static com.liferay.portlet.calendar.model.CalEvent fetchByUUID_G(
369                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
370                    throws com.liferay.portal.kernel.exception.SystemException {
371                    return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
372            }
373    
374            /**
375            * Returns all the cal events where companyId = &#63;.
376            *
377            * @param companyId the company ID
378            * @return the matching cal events
379            * @throws SystemException if a system exception occurred
380            */
381            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByCompanyId(
382                    long companyId)
383                    throws com.liferay.portal.kernel.exception.SystemException {
384                    return getPersistence().findByCompanyId(companyId);
385            }
386    
387            /**
388            * Returns a range of all the cal events where companyId = &#63;.
389            *
390            * <p>
391            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
392            * </p>
393            *
394            * @param companyId the company ID
395            * @param start the lower bound of the range of cal events
396            * @param end the upper bound of the range of cal events (not inclusive)
397            * @return the range of matching cal events
398            * @throws SystemException if a system exception occurred
399            */
400            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByCompanyId(
401                    long companyId, int start, int end)
402                    throws com.liferay.portal.kernel.exception.SystemException {
403                    return getPersistence().findByCompanyId(companyId, start, end);
404            }
405    
406            /**
407            * Returns an ordered range of all the cal events where companyId = &#63;.
408            *
409            * <p>
410            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
411            * </p>
412            *
413            * @param companyId the company ID
414            * @param start the lower bound of the range of cal events
415            * @param end the upper bound of the range of cal events (not inclusive)
416            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
417            * @return the ordered range of matching cal events
418            * @throws SystemException if a system exception occurred
419            */
420            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByCompanyId(
421                    long companyId, int start, int end,
422                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
423                    throws com.liferay.portal.kernel.exception.SystemException {
424                    return getPersistence()
425                                       .findByCompanyId(companyId, start, end, orderByComparator);
426            }
427    
428            /**
429            * Returns the first cal event in the ordered set where companyId = &#63;.
430            *
431            * @param companyId the company ID
432            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
433            * @return the first matching cal event
434            * @throws com.liferay.portlet.calendar.NoSuchEventException if a matching cal event could not be found
435            * @throws SystemException if a system exception occurred
436            */
437            public static com.liferay.portlet.calendar.model.CalEvent findByCompanyId_First(
438                    long companyId,
439                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
440                    throws com.liferay.portal.kernel.exception.SystemException,
441                            com.liferay.portlet.calendar.NoSuchEventException {
442                    return getPersistence()
443                                       .findByCompanyId_First(companyId, orderByComparator);
444            }
445    
446            /**
447            * Returns the first cal event in the ordered set where companyId = &#63;.
448            *
449            * @param companyId the company ID
450            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
451            * @return the first matching cal event, or <code>null</code> if a matching cal event could not be found
452            * @throws SystemException if a system exception occurred
453            */
454            public static com.liferay.portlet.calendar.model.CalEvent fetchByCompanyId_First(
455                    long companyId,
456                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
457                    throws com.liferay.portal.kernel.exception.SystemException {
458                    return getPersistence()
459                                       .fetchByCompanyId_First(companyId, orderByComparator);
460            }
461    
462            /**
463            * Returns the last cal event in the ordered set where companyId = &#63;.
464            *
465            * @param companyId the company ID
466            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
467            * @return the last matching cal event
468            * @throws com.liferay.portlet.calendar.NoSuchEventException if a matching cal event could not be found
469            * @throws SystemException if a system exception occurred
470            */
471            public static com.liferay.portlet.calendar.model.CalEvent findByCompanyId_Last(
472                    long companyId,
473                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
474                    throws com.liferay.portal.kernel.exception.SystemException,
475                            com.liferay.portlet.calendar.NoSuchEventException {
476                    return getPersistence()
477                                       .findByCompanyId_Last(companyId, orderByComparator);
478            }
479    
480            /**
481            * Returns the last cal event in the ordered set where companyId = &#63;.
482            *
483            * @param companyId the company ID
484            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
485            * @return the last matching cal event, or <code>null</code> if a matching cal event could not be found
486            * @throws SystemException if a system exception occurred
487            */
488            public static com.liferay.portlet.calendar.model.CalEvent fetchByCompanyId_Last(
489                    long companyId,
490                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
491                    throws com.liferay.portal.kernel.exception.SystemException {
492                    return getPersistence()
493                                       .fetchByCompanyId_Last(companyId, orderByComparator);
494            }
495    
496            /**
497            * Returns the cal events before and after the current cal event in the ordered set where companyId = &#63;.
498            *
499            * @param eventId the primary key of the current cal event
500            * @param companyId the company ID
501            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
502            * @return the previous, current, and next cal event
503            * @throws com.liferay.portlet.calendar.NoSuchEventException if a cal event with the primary key could not be found
504            * @throws SystemException if a system exception occurred
505            */
506            public static com.liferay.portlet.calendar.model.CalEvent[] findByCompanyId_PrevAndNext(
507                    long eventId, long companyId,
508                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
509                    throws com.liferay.portal.kernel.exception.SystemException,
510                            com.liferay.portlet.calendar.NoSuchEventException {
511                    return getPersistence()
512                                       .findByCompanyId_PrevAndNext(eventId, companyId,
513                            orderByComparator);
514            }
515    
516            /**
517            * Returns all the cal events where groupId = &#63;.
518            *
519            * @param groupId the group ID
520            * @return the matching cal events
521            * @throws SystemException if a system exception occurred
522            */
523            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByGroupId(
524                    long groupId)
525                    throws com.liferay.portal.kernel.exception.SystemException {
526                    return getPersistence().findByGroupId(groupId);
527            }
528    
529            /**
530            * Returns a range of all the cal events where groupId = &#63;.
531            *
532            * <p>
533            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
534            * </p>
535            *
536            * @param groupId the group ID
537            * @param start the lower bound of the range of cal events
538            * @param end the upper bound of the range of cal events (not inclusive)
539            * @return the range of matching cal events
540            * @throws SystemException if a system exception occurred
541            */
542            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByGroupId(
543                    long groupId, int start, int end)
544                    throws com.liferay.portal.kernel.exception.SystemException {
545                    return getPersistence().findByGroupId(groupId, start, end);
546            }
547    
548            /**
549            * Returns an ordered range of all the cal events where groupId = &#63;.
550            *
551            * <p>
552            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
553            * </p>
554            *
555            * @param groupId the group ID
556            * @param start the lower bound of the range of cal events
557            * @param end the upper bound of the range of cal events (not inclusive)
558            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
559            * @return the ordered range of matching cal events
560            * @throws SystemException if a system exception occurred
561            */
562            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByGroupId(
563                    long groupId, int start, int end,
564                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
565                    throws com.liferay.portal.kernel.exception.SystemException {
566                    return getPersistence()
567                                       .findByGroupId(groupId, start, end, orderByComparator);
568            }
569    
570            /**
571            * Returns the first cal event in the ordered set where groupId = &#63;.
572            *
573            * @param groupId the group ID
574            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
575            * @return the first matching cal event
576            * @throws com.liferay.portlet.calendar.NoSuchEventException if a matching cal event could not be found
577            * @throws SystemException if a system exception occurred
578            */
579            public static com.liferay.portlet.calendar.model.CalEvent findByGroupId_First(
580                    long groupId,
581                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
582                    throws com.liferay.portal.kernel.exception.SystemException,
583                            com.liferay.portlet.calendar.NoSuchEventException {
584                    return getPersistence().findByGroupId_First(groupId, orderByComparator);
585            }
586    
587            /**
588            * Returns the first cal event in the ordered set where groupId = &#63;.
589            *
590            * @param groupId the group ID
591            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
592            * @return the first matching cal event, or <code>null</code> if a matching cal event could not be found
593            * @throws SystemException if a system exception occurred
594            */
595            public static com.liferay.portlet.calendar.model.CalEvent fetchByGroupId_First(
596                    long groupId,
597                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
598                    throws com.liferay.portal.kernel.exception.SystemException {
599                    return getPersistence().fetchByGroupId_First(groupId, orderByComparator);
600            }
601    
602            /**
603            * Returns the last cal event in the ordered set where groupId = &#63;.
604            *
605            * @param groupId the group ID
606            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
607            * @return the last matching cal event
608            * @throws com.liferay.portlet.calendar.NoSuchEventException if a matching cal event could not be found
609            * @throws SystemException if a system exception occurred
610            */
611            public static com.liferay.portlet.calendar.model.CalEvent findByGroupId_Last(
612                    long groupId,
613                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
614                    throws com.liferay.portal.kernel.exception.SystemException,
615                            com.liferay.portlet.calendar.NoSuchEventException {
616                    return getPersistence().findByGroupId_Last(groupId, orderByComparator);
617            }
618    
619            /**
620            * Returns the last cal event in the ordered set where groupId = &#63;.
621            *
622            * @param groupId the group ID
623            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
624            * @return the last matching cal event, or <code>null</code> if a matching cal event could not be found
625            * @throws SystemException if a system exception occurred
626            */
627            public static com.liferay.portlet.calendar.model.CalEvent fetchByGroupId_Last(
628                    long groupId,
629                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
630                    throws com.liferay.portal.kernel.exception.SystemException {
631                    return getPersistence().fetchByGroupId_Last(groupId, orderByComparator);
632            }
633    
634            /**
635            * Returns the cal events before and after the current cal event in the ordered set where groupId = &#63;.
636            *
637            * @param eventId the primary key of the current cal event
638            * @param groupId the group ID
639            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
640            * @return the previous, current, and next cal event
641            * @throws com.liferay.portlet.calendar.NoSuchEventException if a cal event with the primary key could not be found
642            * @throws SystemException if a system exception occurred
643            */
644            public static com.liferay.portlet.calendar.model.CalEvent[] findByGroupId_PrevAndNext(
645                    long eventId, long groupId,
646                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
647                    throws com.liferay.portal.kernel.exception.SystemException,
648                            com.liferay.portlet.calendar.NoSuchEventException {
649                    return getPersistence()
650                                       .findByGroupId_PrevAndNext(eventId, groupId,
651                            orderByComparator);
652            }
653    
654            /**
655            * Returns all the cal events that the user has permission to view where groupId = &#63;.
656            *
657            * @param groupId the group ID
658            * @return the matching cal events that the user has permission to view
659            * @throws SystemException if a system exception occurred
660            */
661            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> filterFindByGroupId(
662                    long groupId)
663                    throws com.liferay.portal.kernel.exception.SystemException {
664                    return getPersistence().filterFindByGroupId(groupId);
665            }
666    
667            /**
668            * Returns a range of all the cal events that the user has permission to view where groupId = &#63;.
669            *
670            * <p>
671            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
672            * </p>
673            *
674            * @param groupId the group ID
675            * @param start the lower bound of the range of cal events
676            * @param end the upper bound of the range of cal events (not inclusive)
677            * @return the range of matching cal events that the user has permission to view
678            * @throws SystemException if a system exception occurred
679            */
680            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> filterFindByGroupId(
681                    long groupId, int start, int end)
682                    throws com.liferay.portal.kernel.exception.SystemException {
683                    return getPersistence().filterFindByGroupId(groupId, start, end);
684            }
685    
686            /**
687            * Returns an ordered range of all the cal events that the user has permissions to view where groupId = &#63;.
688            *
689            * <p>
690            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
691            * </p>
692            *
693            * @param groupId the group ID
694            * @param start the lower bound of the range of cal events
695            * @param end the upper bound of the range of cal events (not inclusive)
696            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
697            * @return the ordered range of matching cal events that the user has permission to view
698            * @throws SystemException if a system exception occurred
699            */
700            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> filterFindByGroupId(
701                    long groupId, int start, int end,
702                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
703                    throws com.liferay.portal.kernel.exception.SystemException {
704                    return getPersistence()
705                                       .filterFindByGroupId(groupId, start, end, orderByComparator);
706            }
707    
708            /**
709            * Returns the cal events before and after the current cal event in the ordered set of cal events that the user has permission to view where groupId = &#63;.
710            *
711            * @param eventId the primary key of the current cal event
712            * @param groupId the group ID
713            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
714            * @return the previous, current, and next cal event
715            * @throws com.liferay.portlet.calendar.NoSuchEventException if a cal event with the primary key could not be found
716            * @throws SystemException if a system exception occurred
717            */
718            public static com.liferay.portlet.calendar.model.CalEvent[] filterFindByGroupId_PrevAndNext(
719                    long eventId, long groupId,
720                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
721                    throws com.liferay.portal.kernel.exception.SystemException,
722                            com.liferay.portlet.calendar.NoSuchEventException {
723                    return getPersistence()
724                                       .filterFindByGroupId_PrevAndNext(eventId, groupId,
725                            orderByComparator);
726            }
727    
728            /**
729            * Returns all the cal events where remindBy &ne; &#63;.
730            *
731            * @param remindBy the remind by
732            * @return the matching cal events
733            * @throws SystemException if a system exception occurred
734            */
735            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByNotRemindBy(
736                    int remindBy)
737                    throws com.liferay.portal.kernel.exception.SystemException {
738                    return getPersistence().findByNotRemindBy(remindBy);
739            }
740    
741            /**
742            * Returns a range of all the cal events where remindBy &ne; &#63;.
743            *
744            * <p>
745            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
746            * </p>
747            *
748            * @param remindBy the remind by
749            * @param start the lower bound of the range of cal events
750            * @param end the upper bound of the range of cal events (not inclusive)
751            * @return the range of matching cal events
752            * @throws SystemException if a system exception occurred
753            */
754            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByNotRemindBy(
755                    int remindBy, int start, int end)
756                    throws com.liferay.portal.kernel.exception.SystemException {
757                    return getPersistence().findByNotRemindBy(remindBy, start, end);
758            }
759    
760            /**
761            * Returns an ordered range of all the cal events where remindBy &ne; &#63;.
762            *
763            * <p>
764            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
765            * </p>
766            *
767            * @param remindBy the remind by
768            * @param start the lower bound of the range of cal events
769            * @param end the upper bound of the range of cal events (not inclusive)
770            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
771            * @return the ordered range of matching cal events
772            * @throws SystemException if a system exception occurred
773            */
774            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByNotRemindBy(
775                    int remindBy, int start, int end,
776                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
777                    throws com.liferay.portal.kernel.exception.SystemException {
778                    return getPersistence()
779                                       .findByNotRemindBy(remindBy, start, end, orderByComparator);
780            }
781    
782            /**
783            * Returns the first cal event in the ordered set where remindBy &ne; &#63;.
784            *
785            * @param remindBy the remind by
786            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
787            * @return the first matching cal event
788            * @throws com.liferay.portlet.calendar.NoSuchEventException if a matching cal event could not be found
789            * @throws SystemException if a system exception occurred
790            */
791            public static com.liferay.portlet.calendar.model.CalEvent findByNotRemindBy_First(
792                    int remindBy,
793                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
794                    throws com.liferay.portal.kernel.exception.SystemException,
795                            com.liferay.portlet.calendar.NoSuchEventException {
796                    return getPersistence()
797                                       .findByNotRemindBy_First(remindBy, orderByComparator);
798            }
799    
800            /**
801            * Returns the first cal event in the ordered set where remindBy &ne; &#63;.
802            *
803            * @param remindBy the remind by
804            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
805            * @return the first matching cal event, or <code>null</code> if a matching cal event could not be found
806            * @throws SystemException if a system exception occurred
807            */
808            public static com.liferay.portlet.calendar.model.CalEvent fetchByNotRemindBy_First(
809                    int remindBy,
810                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
811                    throws com.liferay.portal.kernel.exception.SystemException {
812                    return getPersistence()
813                                       .fetchByNotRemindBy_First(remindBy, orderByComparator);
814            }
815    
816            /**
817            * Returns the last cal event in the ordered set where remindBy &ne; &#63;.
818            *
819            * @param remindBy the remind by
820            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
821            * @return the last matching cal event
822            * @throws com.liferay.portlet.calendar.NoSuchEventException if a matching cal event could not be found
823            * @throws SystemException if a system exception occurred
824            */
825            public static com.liferay.portlet.calendar.model.CalEvent findByNotRemindBy_Last(
826                    int remindBy,
827                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
828                    throws com.liferay.portal.kernel.exception.SystemException,
829                            com.liferay.portlet.calendar.NoSuchEventException {
830                    return getPersistence()
831                                       .findByNotRemindBy_Last(remindBy, orderByComparator);
832            }
833    
834            /**
835            * Returns the last cal event in the ordered set where remindBy &ne; &#63;.
836            *
837            * @param remindBy the remind by
838            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
839            * @return the last matching cal event, or <code>null</code> if a matching cal event could not be found
840            * @throws SystemException if a system exception occurred
841            */
842            public static com.liferay.portlet.calendar.model.CalEvent fetchByNotRemindBy_Last(
843                    int remindBy,
844                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
845                    throws com.liferay.portal.kernel.exception.SystemException {
846                    return getPersistence()
847                                       .fetchByNotRemindBy_Last(remindBy, orderByComparator);
848            }
849    
850            /**
851            * Returns the cal events before and after the current cal event in the ordered set where remindBy &ne; &#63;.
852            *
853            * @param eventId the primary key of the current cal event
854            * @param remindBy the remind by
855            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
856            * @return the previous, current, and next cal event
857            * @throws com.liferay.portlet.calendar.NoSuchEventException if a cal event with the primary key could not be found
858            * @throws SystemException if a system exception occurred
859            */
860            public static com.liferay.portlet.calendar.model.CalEvent[] findByNotRemindBy_PrevAndNext(
861                    long eventId, int remindBy,
862                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
863                    throws com.liferay.portal.kernel.exception.SystemException,
864                            com.liferay.portlet.calendar.NoSuchEventException {
865                    return getPersistence()
866                                       .findByNotRemindBy_PrevAndNext(eventId, remindBy,
867                            orderByComparator);
868            }
869    
870            /**
871            * Returns all the cal events where groupId = &#63; and type = &#63;.
872            *
873            * @param groupId the group ID
874            * @param type the type
875            * @return the matching cal events
876            * @throws SystemException if a system exception occurred
877            */
878            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_T(
879                    long groupId, java.lang.String type)
880                    throws com.liferay.portal.kernel.exception.SystemException {
881                    return getPersistence().findByG_T(groupId, type);
882            }
883    
884            /**
885            * Returns a range of all the cal events where groupId = &#63; and type = &#63;.
886            *
887            * <p>
888            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
889            * </p>
890            *
891            * @param groupId the group ID
892            * @param type the type
893            * @param start the lower bound of the range of cal events
894            * @param end the upper bound of the range of cal events (not inclusive)
895            * @return the range of matching cal events
896            * @throws SystemException if a system exception occurred
897            */
898            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_T(
899                    long groupId, java.lang.String type, int start, int end)
900                    throws com.liferay.portal.kernel.exception.SystemException {
901                    return getPersistence().findByG_T(groupId, type, start, end);
902            }
903    
904            /**
905            * Returns an ordered range of all the cal events where groupId = &#63; and type = &#63;.
906            *
907            * <p>
908            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
909            * </p>
910            *
911            * @param groupId the group ID
912            * @param type the type
913            * @param start the lower bound of the range of cal events
914            * @param end the upper bound of the range of cal events (not inclusive)
915            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
916            * @return the ordered range of matching cal events
917            * @throws SystemException if a system exception occurred
918            */
919            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_T(
920                    long groupId, java.lang.String type, int start, int end,
921                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
922                    throws com.liferay.portal.kernel.exception.SystemException {
923                    return getPersistence()
924                                       .findByG_T(groupId, type, start, end, orderByComparator);
925            }
926    
927            /**
928            * Returns the first cal event in the ordered set where groupId = &#63; and type = &#63;.
929            *
930            * @param groupId the group ID
931            * @param type the type
932            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
933            * @return the first matching cal event
934            * @throws com.liferay.portlet.calendar.NoSuchEventException if a matching cal event could not be found
935            * @throws SystemException if a system exception occurred
936            */
937            public static com.liferay.portlet.calendar.model.CalEvent findByG_T_First(
938                    long groupId, java.lang.String type,
939                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
940                    throws com.liferay.portal.kernel.exception.SystemException,
941                            com.liferay.portlet.calendar.NoSuchEventException {
942                    return getPersistence().findByG_T_First(groupId, type, orderByComparator);
943            }
944    
945            /**
946            * Returns the first cal event in the ordered set where groupId = &#63; and type = &#63;.
947            *
948            * @param groupId the group ID
949            * @param type the type
950            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
951            * @return the first matching cal event, or <code>null</code> if a matching cal event could not be found
952            * @throws SystemException if a system exception occurred
953            */
954            public static com.liferay.portlet.calendar.model.CalEvent fetchByG_T_First(
955                    long groupId, java.lang.String type,
956                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
957                    throws com.liferay.portal.kernel.exception.SystemException {
958                    return getPersistence()
959                                       .fetchByG_T_First(groupId, type, orderByComparator);
960            }
961    
962            /**
963            * Returns the last cal event in the ordered set where groupId = &#63; and type = &#63;.
964            *
965            * @param groupId the group ID
966            * @param type the type
967            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
968            * @return the last matching cal event
969            * @throws com.liferay.portlet.calendar.NoSuchEventException if a matching cal event could not be found
970            * @throws SystemException if a system exception occurred
971            */
972            public static com.liferay.portlet.calendar.model.CalEvent findByG_T_Last(
973                    long groupId, java.lang.String type,
974                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
975                    throws com.liferay.portal.kernel.exception.SystemException,
976                            com.liferay.portlet.calendar.NoSuchEventException {
977                    return getPersistence().findByG_T_Last(groupId, type, orderByComparator);
978            }
979    
980            /**
981            * Returns the last cal event in the ordered set where groupId = &#63; and type = &#63;.
982            *
983            * @param groupId the group ID
984            * @param type the type
985            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
986            * @return the last matching cal event, or <code>null</code> if a matching cal event could not be found
987            * @throws SystemException if a system exception occurred
988            */
989            public static com.liferay.portlet.calendar.model.CalEvent fetchByG_T_Last(
990                    long groupId, java.lang.String type,
991                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
992                    throws com.liferay.portal.kernel.exception.SystemException {
993                    return getPersistence().fetchByG_T_Last(groupId, type, orderByComparator);
994            }
995    
996            /**
997            * Returns the cal events before and after the current cal event in the ordered set where groupId = &#63; and type = &#63;.
998            *
999            * @param eventId the primary key of the current cal event
1000            * @param groupId the group ID
1001            * @param type the type
1002            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1003            * @return the previous, current, and next cal event
1004            * @throws com.liferay.portlet.calendar.NoSuchEventException if a cal event with the primary key could not be found
1005            * @throws SystemException if a system exception occurred
1006            */
1007            public static com.liferay.portlet.calendar.model.CalEvent[] findByG_T_PrevAndNext(
1008                    long eventId, long groupId, java.lang.String type,
1009                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1010                    throws com.liferay.portal.kernel.exception.SystemException,
1011                            com.liferay.portlet.calendar.NoSuchEventException {
1012                    return getPersistence()
1013                                       .findByG_T_PrevAndNext(eventId, groupId, type,
1014                            orderByComparator);
1015            }
1016    
1017            /**
1018            * Returns all the cal events where groupId = &#63; and type = any &#63;.
1019            *
1020            * <p>
1021            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
1022            * </p>
1023            *
1024            * @param groupId the group ID
1025            * @param types the types
1026            * @return the matching cal events
1027            * @throws SystemException if a system exception occurred
1028            */
1029            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_T(
1030                    long groupId, java.lang.String[] types)
1031                    throws com.liferay.portal.kernel.exception.SystemException {
1032                    return getPersistence().findByG_T(groupId, types);
1033            }
1034    
1035            /**
1036            * Returns a range of all the cal events where groupId = &#63; and type = any &#63;.
1037            *
1038            * <p>
1039            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
1040            * </p>
1041            *
1042            * @param groupId the group ID
1043            * @param types the types
1044            * @param start the lower bound of the range of cal events
1045            * @param end the upper bound of the range of cal events (not inclusive)
1046            * @return the range of matching cal events
1047            * @throws SystemException if a system exception occurred
1048            */
1049            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_T(
1050                    long groupId, java.lang.String[] types, int start, int end)
1051                    throws com.liferay.portal.kernel.exception.SystemException {
1052                    return getPersistence().findByG_T(groupId, types, start, end);
1053            }
1054    
1055            /**
1056            * Returns an ordered range of all the cal events where groupId = &#63; and type = any &#63;.
1057            *
1058            * <p>
1059            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
1060            * </p>
1061            *
1062            * @param groupId the group ID
1063            * @param types the types
1064            * @param start the lower bound of the range of cal events
1065            * @param end the upper bound of the range of cal events (not inclusive)
1066            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1067            * @return the ordered range of matching cal events
1068            * @throws SystemException if a system exception occurred
1069            */
1070            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_T(
1071                    long groupId, java.lang.String[] types, int start, int end,
1072                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1073                    throws com.liferay.portal.kernel.exception.SystemException {
1074                    return getPersistence()
1075                                       .findByG_T(groupId, types, start, end, orderByComparator);
1076            }
1077    
1078            /**
1079            * Returns all the cal events that the user has permission to view where groupId = &#63; and type = &#63;.
1080            *
1081            * @param groupId the group ID
1082            * @param type the type
1083            * @return the matching cal events that the user has permission to view
1084            * @throws SystemException if a system exception occurred
1085            */
1086            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> filterFindByG_T(
1087                    long groupId, java.lang.String type)
1088                    throws com.liferay.portal.kernel.exception.SystemException {
1089                    return getPersistence().filterFindByG_T(groupId, type);
1090            }
1091    
1092            /**
1093            * Returns a range of all the cal events that the user has permission to view where groupId = &#63; and type = &#63;.
1094            *
1095            * <p>
1096            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
1097            * </p>
1098            *
1099            * @param groupId the group ID
1100            * @param type the type
1101            * @param start the lower bound of the range of cal events
1102            * @param end the upper bound of the range of cal events (not inclusive)
1103            * @return the range of matching cal events that the user has permission to view
1104            * @throws SystemException if a system exception occurred
1105            */
1106            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> filterFindByG_T(
1107                    long groupId, java.lang.String type, int start, int end)
1108                    throws com.liferay.portal.kernel.exception.SystemException {
1109                    return getPersistence().filterFindByG_T(groupId, type, start, end);
1110            }
1111    
1112            /**
1113            * Returns an ordered range of all the cal events that the user has permissions to view where groupId = &#63; and type = &#63;.
1114            *
1115            * <p>
1116            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
1117            * </p>
1118            *
1119            * @param groupId the group ID
1120            * @param type the type
1121            * @param start the lower bound of the range of cal events
1122            * @param end the upper bound of the range of cal events (not inclusive)
1123            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1124            * @return the ordered range of matching cal events that the user has permission to view
1125            * @throws SystemException if a system exception occurred
1126            */
1127            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> filterFindByG_T(
1128                    long groupId, java.lang.String type, int start, int end,
1129                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1130                    throws com.liferay.portal.kernel.exception.SystemException {
1131                    return getPersistence()
1132                                       .filterFindByG_T(groupId, type, start, end, orderByComparator);
1133            }
1134    
1135            /**
1136            * Returns the cal events before and after the current cal event in the ordered set of cal events that the user has permission to view where groupId = &#63; and type = &#63;.
1137            *
1138            * @param eventId the primary key of the current cal event
1139            * @param groupId the group ID
1140            * @param type the type
1141            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1142            * @return the previous, current, and next cal event
1143            * @throws com.liferay.portlet.calendar.NoSuchEventException if a cal event with the primary key could not be found
1144            * @throws SystemException if a system exception occurred
1145            */
1146            public static com.liferay.portlet.calendar.model.CalEvent[] filterFindByG_T_PrevAndNext(
1147                    long eventId, long groupId, java.lang.String type,
1148                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1149                    throws com.liferay.portal.kernel.exception.SystemException,
1150                            com.liferay.portlet.calendar.NoSuchEventException {
1151                    return getPersistence()
1152                                       .filterFindByG_T_PrevAndNext(eventId, groupId, type,
1153                            orderByComparator);
1154            }
1155    
1156            /**
1157            * Returns all the cal events that the user has permission to view where groupId = &#63; and type = any &#63;.
1158            *
1159            * @param groupId the group ID
1160            * @param types the types
1161            * @return the matching cal events that the user has permission to view
1162            * @throws SystemException if a system exception occurred
1163            */
1164            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> filterFindByG_T(
1165                    long groupId, java.lang.String[] types)
1166                    throws com.liferay.portal.kernel.exception.SystemException {
1167                    return getPersistence().filterFindByG_T(groupId, types);
1168            }
1169    
1170            /**
1171            * Returns a range of all the cal events that the user has permission to view where groupId = &#63; and type = any &#63;.
1172            *
1173            * <p>
1174            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
1175            * </p>
1176            *
1177            * @param groupId the group ID
1178            * @param types the types
1179            * @param start the lower bound of the range of cal events
1180            * @param end the upper bound of the range of cal events (not inclusive)
1181            * @return the range of matching cal events that the user has permission to view
1182            * @throws SystemException if a system exception occurred
1183            */
1184            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> filterFindByG_T(
1185                    long groupId, java.lang.String[] types, int start, int end)
1186                    throws com.liferay.portal.kernel.exception.SystemException {
1187                    return getPersistence().filterFindByG_T(groupId, types, start, end);
1188            }
1189    
1190            /**
1191            * Returns an ordered range of all the cal events that the user has permission to view where groupId = &#63; and type = any &#63;.
1192            *
1193            * <p>
1194            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
1195            * </p>
1196            *
1197            * @param groupId the group ID
1198            * @param types the types
1199            * @param start the lower bound of the range of cal events
1200            * @param end the upper bound of the range of cal events (not inclusive)
1201            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1202            * @return the ordered range of matching cal events that the user has permission to view
1203            * @throws SystemException if a system exception occurred
1204            */
1205            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> filterFindByG_T(
1206                    long groupId, java.lang.String[] types, int start, int end,
1207                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1208                    throws com.liferay.portal.kernel.exception.SystemException {
1209                    return getPersistence()
1210                                       .filterFindByG_T(groupId, types, start, end,
1211                            orderByComparator);
1212            }
1213    
1214            /**
1215            * Returns all the cal events where groupId = &#63; and repeating = &#63;.
1216            *
1217            * @param groupId the group ID
1218            * @param repeating the repeating
1219            * @return the matching cal events
1220            * @throws SystemException if a system exception occurred
1221            */
1222            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_R(
1223                    long groupId, boolean repeating)
1224                    throws com.liferay.portal.kernel.exception.SystemException {
1225                    return getPersistence().findByG_R(groupId, repeating);
1226            }
1227    
1228            /**
1229            * Returns a range of all the cal events where groupId = &#63; and repeating = &#63;.
1230            *
1231            * <p>
1232            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
1233            * </p>
1234            *
1235            * @param groupId the group ID
1236            * @param repeating the repeating
1237            * @param start the lower bound of the range of cal events
1238            * @param end the upper bound of the range of cal events (not inclusive)
1239            * @return the range of matching cal events
1240            * @throws SystemException if a system exception occurred
1241            */
1242            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_R(
1243                    long groupId, boolean repeating, int start, int end)
1244                    throws com.liferay.portal.kernel.exception.SystemException {
1245                    return getPersistence().findByG_R(groupId, repeating, start, end);
1246            }
1247    
1248            /**
1249            * Returns an ordered range of all the cal events where groupId = &#63; and repeating = &#63;.
1250            *
1251            * <p>
1252            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
1253            * </p>
1254            *
1255            * @param groupId the group ID
1256            * @param repeating the repeating
1257            * @param start the lower bound of the range of cal events
1258            * @param end the upper bound of the range of cal events (not inclusive)
1259            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1260            * @return the ordered range of matching cal events
1261            * @throws SystemException if a system exception occurred
1262            */
1263            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_R(
1264                    long groupId, boolean repeating, int start, int end,
1265                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1266                    throws com.liferay.portal.kernel.exception.SystemException {
1267                    return getPersistence()
1268                                       .findByG_R(groupId, repeating, start, end, orderByComparator);
1269            }
1270    
1271            /**
1272            * Returns the first cal event in the ordered set where groupId = &#63; and repeating = &#63;.
1273            *
1274            * @param groupId the group ID
1275            * @param repeating the repeating
1276            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1277            * @return the first matching cal event
1278            * @throws com.liferay.portlet.calendar.NoSuchEventException if a matching cal event could not be found
1279            * @throws SystemException if a system exception occurred
1280            */
1281            public static com.liferay.portlet.calendar.model.CalEvent findByG_R_First(
1282                    long groupId, boolean repeating,
1283                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1284                    throws com.liferay.portal.kernel.exception.SystemException,
1285                            com.liferay.portlet.calendar.NoSuchEventException {
1286                    return getPersistence()
1287                                       .findByG_R_First(groupId, repeating, orderByComparator);
1288            }
1289    
1290            /**
1291            * Returns the first cal event in the ordered set where groupId = &#63; and repeating = &#63;.
1292            *
1293            * @param groupId the group ID
1294            * @param repeating the repeating
1295            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1296            * @return the first matching cal event, or <code>null</code> if a matching cal event could not be found
1297            * @throws SystemException if a system exception occurred
1298            */
1299            public static com.liferay.portlet.calendar.model.CalEvent fetchByG_R_First(
1300                    long groupId, boolean repeating,
1301                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1302                    throws com.liferay.portal.kernel.exception.SystemException {
1303                    return getPersistence()
1304                                       .fetchByG_R_First(groupId, repeating, orderByComparator);
1305            }
1306    
1307            /**
1308            * Returns the last cal event in the ordered set where groupId = &#63; and repeating = &#63;.
1309            *
1310            * @param groupId the group ID
1311            * @param repeating the repeating
1312            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1313            * @return the last matching cal event
1314            * @throws com.liferay.portlet.calendar.NoSuchEventException if a matching cal event could not be found
1315            * @throws SystemException if a system exception occurred
1316            */
1317            public static com.liferay.portlet.calendar.model.CalEvent findByG_R_Last(
1318                    long groupId, boolean repeating,
1319                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1320                    throws com.liferay.portal.kernel.exception.SystemException,
1321                            com.liferay.portlet.calendar.NoSuchEventException {
1322                    return getPersistence()
1323                                       .findByG_R_Last(groupId, repeating, orderByComparator);
1324            }
1325    
1326            /**
1327            * Returns the last cal event in the ordered set where groupId = &#63; and repeating = &#63;.
1328            *
1329            * @param groupId the group ID
1330            * @param repeating the repeating
1331            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1332            * @return the last matching cal event, or <code>null</code> if a matching cal event could not be found
1333            * @throws SystemException if a system exception occurred
1334            */
1335            public static com.liferay.portlet.calendar.model.CalEvent fetchByG_R_Last(
1336                    long groupId, boolean repeating,
1337                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1338                    throws com.liferay.portal.kernel.exception.SystemException {
1339                    return getPersistence()
1340                                       .fetchByG_R_Last(groupId, repeating, orderByComparator);
1341            }
1342    
1343            /**
1344            * Returns the cal events before and after the current cal event in the ordered set where groupId = &#63; and repeating = &#63;.
1345            *
1346            * @param eventId the primary key of the current cal event
1347            * @param groupId the group ID
1348            * @param repeating the repeating
1349            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1350            * @return the previous, current, and next cal event
1351            * @throws com.liferay.portlet.calendar.NoSuchEventException if a cal event with the primary key could not be found
1352            * @throws SystemException if a system exception occurred
1353            */
1354            public static com.liferay.portlet.calendar.model.CalEvent[] findByG_R_PrevAndNext(
1355                    long eventId, long groupId, boolean repeating,
1356                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1357                    throws com.liferay.portal.kernel.exception.SystemException,
1358                            com.liferay.portlet.calendar.NoSuchEventException {
1359                    return getPersistence()
1360                                       .findByG_R_PrevAndNext(eventId, groupId, repeating,
1361                            orderByComparator);
1362            }
1363    
1364            /**
1365            * Returns all the cal events that the user has permission to view where groupId = &#63; and repeating = &#63;.
1366            *
1367            * @param groupId the group ID
1368            * @param repeating the repeating
1369            * @return the matching cal events that the user has permission to view
1370            * @throws SystemException if a system exception occurred
1371            */
1372            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> filterFindByG_R(
1373                    long groupId, boolean repeating)
1374                    throws com.liferay.portal.kernel.exception.SystemException {
1375                    return getPersistence().filterFindByG_R(groupId, repeating);
1376            }
1377    
1378            /**
1379            * Returns a range of all the cal events that the user has permission to view where groupId = &#63; and repeating = &#63;.
1380            *
1381            * <p>
1382            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
1383            * </p>
1384            *
1385            * @param groupId the group ID
1386            * @param repeating the repeating
1387            * @param start the lower bound of the range of cal events
1388            * @param end the upper bound of the range of cal events (not inclusive)
1389            * @return the range of matching cal events that the user has permission to view
1390            * @throws SystemException if a system exception occurred
1391            */
1392            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> filterFindByG_R(
1393                    long groupId, boolean repeating, int start, int end)
1394                    throws com.liferay.portal.kernel.exception.SystemException {
1395                    return getPersistence().filterFindByG_R(groupId, repeating, start, end);
1396            }
1397    
1398            /**
1399            * Returns an ordered range of all the cal events that the user has permissions to view where groupId = &#63; and repeating = &#63;.
1400            *
1401            * <p>
1402            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
1403            * </p>
1404            *
1405            * @param groupId the group ID
1406            * @param repeating the repeating
1407            * @param start the lower bound of the range of cal events
1408            * @param end the upper bound of the range of cal events (not inclusive)
1409            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1410            * @return the ordered range of matching cal events that the user has permission to view
1411            * @throws SystemException if a system exception occurred
1412            */
1413            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> filterFindByG_R(
1414                    long groupId, boolean repeating, int start, int end,
1415                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1416                    throws com.liferay.portal.kernel.exception.SystemException {
1417                    return getPersistence()
1418                                       .filterFindByG_R(groupId, repeating, start, end,
1419                            orderByComparator);
1420            }
1421    
1422            /**
1423            * Returns the cal events before and after the current cal event in the ordered set of cal events that the user has permission to view where groupId = &#63; and repeating = &#63;.
1424            *
1425            * @param eventId the primary key of the current cal event
1426            * @param groupId the group ID
1427            * @param repeating the repeating
1428            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1429            * @return the previous, current, and next cal event
1430            * @throws com.liferay.portlet.calendar.NoSuchEventException if a cal event with the primary key could not be found
1431            * @throws SystemException if a system exception occurred
1432            */
1433            public static com.liferay.portlet.calendar.model.CalEvent[] filterFindByG_R_PrevAndNext(
1434                    long eventId, long groupId, boolean repeating,
1435                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1436                    throws com.liferay.portal.kernel.exception.SystemException,
1437                            com.liferay.portlet.calendar.NoSuchEventException {
1438                    return getPersistence()
1439                                       .filterFindByG_R_PrevAndNext(eventId, groupId, repeating,
1440                            orderByComparator);
1441            }
1442    
1443            /**
1444            * Returns all the cal events where groupId = &#63; and type = &#63; and repeating = &#63;.
1445            *
1446            * @param groupId the group ID
1447            * @param type the type
1448            * @param repeating the repeating
1449            * @return the matching cal events
1450            * @throws SystemException if a system exception occurred
1451            */
1452            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_T_R(
1453                    long groupId, java.lang.String type, boolean repeating)
1454                    throws com.liferay.portal.kernel.exception.SystemException {
1455                    return getPersistence().findByG_T_R(groupId, type, repeating);
1456            }
1457    
1458            /**
1459            * Returns a range of all the cal events where groupId = &#63; and type = &#63; and repeating = &#63;.
1460            *
1461            * <p>
1462            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
1463            * </p>
1464            *
1465            * @param groupId the group ID
1466            * @param type the type
1467            * @param repeating the repeating
1468            * @param start the lower bound of the range of cal events
1469            * @param end the upper bound of the range of cal events (not inclusive)
1470            * @return the range of matching cal events
1471            * @throws SystemException if a system exception occurred
1472            */
1473            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_T_R(
1474                    long groupId, java.lang.String type, boolean repeating, int start,
1475                    int end) throws com.liferay.portal.kernel.exception.SystemException {
1476                    return getPersistence().findByG_T_R(groupId, type, repeating, start, end);
1477            }
1478    
1479            /**
1480            * Returns an ordered range of all the cal events where groupId = &#63; and type = &#63; and repeating = &#63;.
1481            *
1482            * <p>
1483            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
1484            * </p>
1485            *
1486            * @param groupId the group ID
1487            * @param type the type
1488            * @param repeating the repeating
1489            * @param start the lower bound of the range of cal events
1490            * @param end the upper bound of the range of cal events (not inclusive)
1491            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1492            * @return the ordered range of matching cal events
1493            * @throws SystemException if a system exception occurred
1494            */
1495            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_T_R(
1496                    long groupId, java.lang.String type, boolean repeating, int start,
1497                    int end,
1498                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1499                    throws com.liferay.portal.kernel.exception.SystemException {
1500                    return getPersistence()
1501                                       .findByG_T_R(groupId, type, repeating, start, end,
1502                            orderByComparator);
1503            }
1504    
1505            /**
1506            * Returns the first cal event in the ordered set where groupId = &#63; and type = &#63; and repeating = &#63;.
1507            *
1508            * @param groupId the group ID
1509            * @param type the type
1510            * @param repeating the repeating
1511            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1512            * @return the first matching cal event
1513            * @throws com.liferay.portlet.calendar.NoSuchEventException if a matching cal event could not be found
1514            * @throws SystemException if a system exception occurred
1515            */
1516            public static com.liferay.portlet.calendar.model.CalEvent findByG_T_R_First(
1517                    long groupId, java.lang.String type, boolean repeating,
1518                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1519                    throws com.liferay.portal.kernel.exception.SystemException,
1520                            com.liferay.portlet.calendar.NoSuchEventException {
1521                    return getPersistence()
1522                                       .findByG_T_R_First(groupId, type, repeating,
1523                            orderByComparator);
1524            }
1525    
1526            /**
1527            * Returns the first cal event in the ordered set where groupId = &#63; and type = &#63; and repeating = &#63;.
1528            *
1529            * @param groupId the group ID
1530            * @param type the type
1531            * @param repeating the repeating
1532            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1533            * @return the first matching cal event, or <code>null</code> if a matching cal event could not be found
1534            * @throws SystemException if a system exception occurred
1535            */
1536            public static com.liferay.portlet.calendar.model.CalEvent fetchByG_T_R_First(
1537                    long groupId, java.lang.String type, boolean repeating,
1538                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1539                    throws com.liferay.portal.kernel.exception.SystemException {
1540                    return getPersistence()
1541                                       .fetchByG_T_R_First(groupId, type, repeating,
1542                            orderByComparator);
1543            }
1544    
1545            /**
1546            * Returns the last cal event in the ordered set where groupId = &#63; and type = &#63; and repeating = &#63;.
1547            *
1548            * @param groupId the group ID
1549            * @param type the type
1550            * @param repeating the repeating
1551            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1552            * @return the last matching cal event
1553            * @throws com.liferay.portlet.calendar.NoSuchEventException if a matching cal event could not be found
1554            * @throws SystemException if a system exception occurred
1555            */
1556            public static com.liferay.portlet.calendar.model.CalEvent findByG_T_R_Last(
1557                    long groupId, java.lang.String type, boolean repeating,
1558                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1559                    throws com.liferay.portal.kernel.exception.SystemException,
1560                            com.liferay.portlet.calendar.NoSuchEventException {
1561                    return getPersistence()
1562                                       .findByG_T_R_Last(groupId, type, repeating, orderByComparator);
1563            }
1564    
1565            /**
1566            * Returns the last cal event in the ordered set where groupId = &#63; and type = &#63; and repeating = &#63;.
1567            *
1568            * @param groupId the group ID
1569            * @param type the type
1570            * @param repeating the repeating
1571            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1572            * @return the last matching cal event, or <code>null</code> if a matching cal event could not be found
1573            * @throws SystemException if a system exception occurred
1574            */
1575            public static com.liferay.portlet.calendar.model.CalEvent fetchByG_T_R_Last(
1576                    long groupId, java.lang.String type, boolean repeating,
1577                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1578                    throws com.liferay.portal.kernel.exception.SystemException {
1579                    return getPersistence()
1580                                       .fetchByG_T_R_Last(groupId, type, repeating,
1581                            orderByComparator);
1582            }
1583    
1584            /**
1585            * Returns the cal events before and after the current cal event in the ordered set where groupId = &#63; and type = &#63; and repeating = &#63;.
1586            *
1587            * @param eventId the primary key of the current cal event
1588            * @param groupId the group ID
1589            * @param type the type
1590            * @param repeating the repeating
1591            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1592            * @return the previous, current, and next cal event
1593            * @throws com.liferay.portlet.calendar.NoSuchEventException if a cal event with the primary key could not be found
1594            * @throws SystemException if a system exception occurred
1595            */
1596            public static com.liferay.portlet.calendar.model.CalEvent[] findByG_T_R_PrevAndNext(
1597                    long eventId, long groupId, java.lang.String type, boolean repeating,
1598                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1599                    throws com.liferay.portal.kernel.exception.SystemException,
1600                            com.liferay.portlet.calendar.NoSuchEventException {
1601                    return getPersistence()
1602                                       .findByG_T_R_PrevAndNext(eventId, groupId, type, repeating,
1603                            orderByComparator);
1604            }
1605    
1606            /**
1607            * Returns all the cal events where groupId = &#63; and type = any &#63; and repeating = &#63;.
1608            *
1609            * <p>
1610            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
1611            * </p>
1612            *
1613            * @param groupId the group ID
1614            * @param types the types
1615            * @param repeating the repeating
1616            * @return the matching cal events
1617            * @throws SystemException if a system exception occurred
1618            */
1619            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_T_R(
1620                    long groupId, java.lang.String[] types, boolean repeating)
1621                    throws com.liferay.portal.kernel.exception.SystemException {
1622                    return getPersistence().findByG_T_R(groupId, types, repeating);
1623            }
1624    
1625            /**
1626            * Returns a range of all the cal events where groupId = &#63; and type = any &#63; and repeating = &#63;.
1627            *
1628            * <p>
1629            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
1630            * </p>
1631            *
1632            * @param groupId the group ID
1633            * @param types the types
1634            * @param repeating the repeating
1635            * @param start the lower bound of the range of cal events
1636            * @param end the upper bound of the range of cal events (not inclusive)
1637            * @return the range of matching cal events
1638            * @throws SystemException if a system exception occurred
1639            */
1640            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_T_R(
1641                    long groupId, java.lang.String[] types, boolean repeating, int start,
1642                    int end) throws com.liferay.portal.kernel.exception.SystemException {
1643                    return getPersistence()
1644                                       .findByG_T_R(groupId, types, repeating, start, end);
1645            }
1646    
1647            /**
1648            * Returns an ordered range of all the cal events where groupId = &#63; and type = any &#63; and repeating = &#63;.
1649            *
1650            * <p>
1651            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
1652            * </p>
1653            *
1654            * @param groupId the group ID
1655            * @param types the types
1656            * @param repeating the repeating
1657            * @param start the lower bound of the range of cal events
1658            * @param end the upper bound of the range of cal events (not inclusive)
1659            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1660            * @return the ordered range of matching cal events
1661            * @throws SystemException if a system exception occurred
1662            */
1663            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_T_R(
1664                    long groupId, java.lang.String[] types, boolean repeating, int start,
1665                    int end,
1666                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1667                    throws com.liferay.portal.kernel.exception.SystemException {
1668                    return getPersistence()
1669                                       .findByG_T_R(groupId, types, repeating, start, end,
1670                            orderByComparator);
1671            }
1672    
1673            /**
1674            * Returns all the cal events that the user has permission to view where groupId = &#63; and type = &#63; and repeating = &#63;.
1675            *
1676            * @param groupId the group ID
1677            * @param type the type
1678            * @param repeating the repeating
1679            * @return the matching cal events that the user has permission to view
1680            * @throws SystemException if a system exception occurred
1681            */
1682            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> filterFindByG_T_R(
1683                    long groupId, java.lang.String type, boolean repeating)
1684                    throws com.liferay.portal.kernel.exception.SystemException {
1685                    return getPersistence().filterFindByG_T_R(groupId, type, repeating);
1686            }
1687    
1688            /**
1689            * Returns a range of all the cal events that the user has permission to view where groupId = &#63; and type = &#63; and repeating = &#63;.
1690            *
1691            * <p>
1692            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
1693            * </p>
1694            *
1695            * @param groupId the group ID
1696            * @param type the type
1697            * @param repeating the repeating
1698            * @param start the lower bound of the range of cal events
1699            * @param end the upper bound of the range of cal events (not inclusive)
1700            * @return the range of matching cal events that the user has permission to view
1701            * @throws SystemException if a system exception occurred
1702            */
1703            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> filterFindByG_T_R(
1704                    long groupId, java.lang.String type, boolean repeating, int start,
1705                    int end) throws com.liferay.portal.kernel.exception.SystemException {
1706                    return getPersistence()
1707                                       .filterFindByG_T_R(groupId, type, repeating, start, end);
1708            }
1709    
1710            /**
1711            * Returns an ordered range of all the cal events that the user has permissions to view where groupId = &#63; and type = &#63; and repeating = &#63;.
1712            *
1713            * <p>
1714            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
1715            * </p>
1716            *
1717            * @param groupId the group ID
1718            * @param type the type
1719            * @param repeating the repeating
1720            * @param start the lower bound of the range of cal events
1721            * @param end the upper bound of the range of cal events (not inclusive)
1722            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1723            * @return the ordered range of matching cal events that the user has permission to view
1724            * @throws SystemException if a system exception occurred
1725            */
1726            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> filterFindByG_T_R(
1727                    long groupId, java.lang.String type, boolean repeating, int start,
1728                    int end,
1729                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1730                    throws com.liferay.portal.kernel.exception.SystemException {
1731                    return getPersistence()
1732                                       .filterFindByG_T_R(groupId, type, repeating, start, end,
1733                            orderByComparator);
1734            }
1735    
1736            /**
1737            * Returns the cal events before and after the current cal event in the ordered set of cal events that the user has permission to view where groupId = &#63; and type = &#63; and repeating = &#63;.
1738            *
1739            * @param eventId the primary key of the current cal event
1740            * @param groupId the group ID
1741            * @param type the type
1742            * @param repeating the repeating
1743            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1744            * @return the previous, current, and next cal event
1745            * @throws com.liferay.portlet.calendar.NoSuchEventException if a cal event with the primary key could not be found
1746            * @throws SystemException if a system exception occurred
1747            */
1748            public static com.liferay.portlet.calendar.model.CalEvent[] filterFindByG_T_R_PrevAndNext(
1749                    long eventId, long groupId, java.lang.String type, boolean repeating,
1750                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1751                    throws com.liferay.portal.kernel.exception.SystemException,
1752                            com.liferay.portlet.calendar.NoSuchEventException {
1753                    return getPersistence()
1754                                       .filterFindByG_T_R_PrevAndNext(eventId, groupId, type,
1755                            repeating, orderByComparator);
1756            }
1757    
1758            /**
1759            * Returns all the cal events that the user has permission to view where groupId = &#63; and type = any &#63; and repeating = &#63;.
1760            *
1761            * @param groupId the group ID
1762            * @param types the types
1763            * @param repeating the repeating
1764            * @return the matching cal events that the user has permission to view
1765            * @throws SystemException if a system exception occurred
1766            */
1767            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> filterFindByG_T_R(
1768                    long groupId, java.lang.String[] types, boolean repeating)
1769                    throws com.liferay.portal.kernel.exception.SystemException {
1770                    return getPersistence().filterFindByG_T_R(groupId, types, repeating);
1771            }
1772    
1773            /**
1774            * Returns a range of all the cal events that the user has permission to view where groupId = &#63; and type = any &#63; and repeating = &#63;.
1775            *
1776            * <p>
1777            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
1778            * </p>
1779            *
1780            * @param groupId the group ID
1781            * @param types the types
1782            * @param repeating the repeating
1783            * @param start the lower bound of the range of cal events
1784            * @param end the upper bound of the range of cal events (not inclusive)
1785            * @return the range of matching cal events that the user has permission to view
1786            * @throws SystemException if a system exception occurred
1787            */
1788            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> filterFindByG_T_R(
1789                    long groupId, java.lang.String[] types, boolean repeating, int start,
1790                    int end) throws com.liferay.portal.kernel.exception.SystemException {
1791                    return getPersistence()
1792                                       .filterFindByG_T_R(groupId, types, repeating, start, end);
1793            }
1794    
1795            /**
1796            * Returns an ordered range of all the cal events that the user has permission to view where groupId = &#63; and type = any &#63; and repeating = &#63;.
1797            *
1798            * <p>
1799            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
1800            * </p>
1801            *
1802            * @param groupId the group ID
1803            * @param types the types
1804            * @param repeating the repeating
1805            * @param start the lower bound of the range of cal events
1806            * @param end the upper bound of the range of cal events (not inclusive)
1807            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1808            * @return the ordered range of matching cal events that the user has permission to view
1809            * @throws SystemException if a system exception occurred
1810            */
1811            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> filterFindByG_T_R(
1812                    long groupId, java.lang.String[] types, boolean repeating, int start,
1813                    int end,
1814                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1815                    throws com.liferay.portal.kernel.exception.SystemException {
1816                    return getPersistence()
1817                                       .filterFindByG_T_R(groupId, types, repeating, start, end,
1818                            orderByComparator);
1819            }
1820    
1821            /**
1822            * Returns all the cal events.
1823            *
1824            * @return the cal events
1825            * @throws SystemException if a system exception occurred
1826            */
1827            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findAll()
1828                    throws com.liferay.portal.kernel.exception.SystemException {
1829                    return getPersistence().findAll();
1830            }
1831    
1832            /**
1833            * Returns a range of all the cal events.
1834            *
1835            * <p>
1836            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
1837            * </p>
1838            *
1839            * @param start the lower bound of the range of cal events
1840            * @param end the upper bound of the range of cal events (not inclusive)
1841            * @return the range of cal events
1842            * @throws SystemException if a system exception occurred
1843            */
1844            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findAll(
1845                    int start, int end)
1846                    throws com.liferay.portal.kernel.exception.SystemException {
1847                    return getPersistence().findAll(start, end);
1848            }
1849    
1850            /**
1851            * Returns an ordered range of all the cal events.
1852            *
1853            * <p>
1854            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
1855            * </p>
1856            *
1857            * @param start the lower bound of the range of cal events
1858            * @param end the upper bound of the range of cal events (not inclusive)
1859            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1860            * @return the ordered range of cal events
1861            * @throws SystemException if a system exception occurred
1862            */
1863            public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findAll(
1864                    int start, int end,
1865                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1866                    throws com.liferay.portal.kernel.exception.SystemException {
1867                    return getPersistence().findAll(start, end, orderByComparator);
1868            }
1869    
1870            /**
1871            * Removes all the cal events where uuid = &#63; from the database.
1872            *
1873            * @param uuid the uuid
1874            * @throws SystemException if a system exception occurred
1875            */
1876            public static void removeByUuid(java.lang.String uuid)
1877                    throws com.liferay.portal.kernel.exception.SystemException {
1878                    getPersistence().removeByUuid(uuid);
1879            }
1880    
1881            /**
1882            * Removes the cal event where uuid = &#63; and groupId = &#63; from the database.
1883            *
1884            * @param uuid the uuid
1885            * @param groupId the group ID
1886            * @return the cal event that was removed
1887            * @throws SystemException if a system exception occurred
1888            */
1889            public static com.liferay.portlet.calendar.model.CalEvent removeByUUID_G(
1890                    java.lang.String uuid, long groupId)
1891                    throws com.liferay.portal.kernel.exception.SystemException,
1892                            com.liferay.portlet.calendar.NoSuchEventException {
1893                    return getPersistence().removeByUUID_G(uuid, groupId);
1894            }
1895    
1896            /**
1897            * Removes all the cal events where companyId = &#63; from the database.
1898            *
1899            * @param companyId the company ID
1900            * @throws SystemException if a system exception occurred
1901            */
1902            public static void removeByCompanyId(long companyId)
1903                    throws com.liferay.portal.kernel.exception.SystemException {
1904                    getPersistence().removeByCompanyId(companyId);
1905            }
1906    
1907            /**
1908            * Removes all the cal events where groupId = &#63; from the database.
1909            *
1910            * @param groupId the group ID
1911            * @throws SystemException if a system exception occurred
1912            */
1913            public static void removeByGroupId(long groupId)
1914                    throws com.liferay.portal.kernel.exception.SystemException {
1915                    getPersistence().removeByGroupId(groupId);
1916            }
1917    
1918            /**
1919            * Removes all the cal events where remindBy &ne; &#63; from the database.
1920            *
1921            * @param remindBy the remind by
1922            * @throws SystemException if a system exception occurred
1923            */
1924            public static void removeByNotRemindBy(int remindBy)
1925                    throws com.liferay.portal.kernel.exception.SystemException {
1926                    getPersistence().removeByNotRemindBy(remindBy);
1927            }
1928    
1929            /**
1930            * Removes all the cal events where groupId = &#63; and type = &#63; from the database.
1931            *
1932            * @param groupId the group ID
1933            * @param type the type
1934            * @throws SystemException if a system exception occurred
1935            */
1936            public static void removeByG_T(long groupId, java.lang.String type)
1937                    throws com.liferay.portal.kernel.exception.SystemException {
1938                    getPersistence().removeByG_T(groupId, type);
1939            }
1940    
1941            /**
1942            * Removes all the cal events where groupId = &#63; and repeating = &#63; from the database.
1943            *
1944            * @param groupId the group ID
1945            * @param repeating the repeating
1946            * @throws SystemException if a system exception occurred
1947            */
1948            public static void removeByG_R(long groupId, boolean repeating)
1949                    throws com.liferay.portal.kernel.exception.SystemException {
1950                    getPersistence().removeByG_R(groupId, repeating);
1951            }
1952    
1953            /**
1954            * Removes all the cal events where groupId = &#63; and type = &#63; and repeating = &#63; from the database.
1955            *
1956            * @param groupId the group ID
1957            * @param type the type
1958            * @param repeating the repeating
1959            * @throws SystemException if a system exception occurred
1960            */
1961            public static void removeByG_T_R(long groupId, java.lang.String type,
1962                    boolean repeating)
1963                    throws com.liferay.portal.kernel.exception.SystemException {
1964                    getPersistence().removeByG_T_R(groupId, type, repeating);
1965            }
1966    
1967            /**
1968            * Removes all the cal events from the database.
1969            *
1970            * @throws SystemException if a system exception occurred
1971            */
1972            public static void removeAll()
1973                    throws com.liferay.portal.kernel.exception.SystemException {
1974                    getPersistence().removeAll();
1975            }
1976    
1977            /**
1978            * Returns the number of cal events where uuid = &#63;.
1979            *
1980            * @param uuid the uuid
1981            * @return the number of matching cal events
1982            * @throws SystemException if a system exception occurred
1983            */
1984            public static int countByUuid(java.lang.String uuid)
1985                    throws com.liferay.portal.kernel.exception.SystemException {
1986                    return getPersistence().countByUuid(uuid);
1987            }
1988    
1989            /**
1990            * Returns the number of cal events where uuid = &#63; and groupId = &#63;.
1991            *
1992            * @param uuid the uuid
1993            * @param groupId the group ID
1994            * @return the number of matching cal events
1995            * @throws SystemException if a system exception occurred
1996            */
1997            public static int countByUUID_G(java.lang.String uuid, long groupId)
1998                    throws com.liferay.portal.kernel.exception.SystemException {
1999                    return getPersistence().countByUUID_G(uuid, groupId);
2000            }
2001    
2002            /**
2003            * Returns the number of cal events where companyId = &#63;.
2004            *
2005            * @param companyId the company ID
2006            * @return the number of matching cal events
2007            * @throws SystemException if a system exception occurred
2008            */
2009            public static int countByCompanyId(long companyId)
2010                    throws com.liferay.portal.kernel.exception.SystemException {
2011                    return getPersistence().countByCompanyId(companyId);
2012            }
2013    
2014            /**
2015            * Returns the number of cal events where groupId = &#63;.
2016            *
2017            * @param groupId the group ID
2018            * @return the number of matching cal events
2019            * @throws SystemException if a system exception occurred
2020            */
2021            public static int countByGroupId(long groupId)
2022                    throws com.liferay.portal.kernel.exception.SystemException {
2023                    return getPersistence().countByGroupId(groupId);
2024            }
2025    
2026            /**
2027            * Returns the number of cal events that the user has permission to view where groupId = &#63;.
2028            *
2029            * @param groupId the group ID
2030            * @return the number of matching cal events that the user has permission to view
2031            * @throws SystemException if a system exception occurred
2032            */
2033            public static int filterCountByGroupId(long groupId)
2034                    throws com.liferay.portal.kernel.exception.SystemException {
2035                    return getPersistence().filterCountByGroupId(groupId);
2036            }
2037    
2038            /**
2039            * Returns the number of cal events where remindBy &ne; &#63;.
2040            *
2041            * @param remindBy the remind by
2042            * @return the number of matching cal events
2043            * @throws SystemException if a system exception occurred
2044            */
2045            public static int countByNotRemindBy(int remindBy)
2046                    throws com.liferay.portal.kernel.exception.SystemException {
2047                    return getPersistence().countByNotRemindBy(remindBy);
2048            }
2049    
2050            /**
2051            * Returns the number of cal events where groupId = &#63; and type = &#63;.
2052            *
2053            * @param groupId the group ID
2054            * @param type the type
2055            * @return the number of matching cal events
2056            * @throws SystemException if a system exception occurred
2057            */
2058            public static int countByG_T(long groupId, java.lang.String type)
2059                    throws com.liferay.portal.kernel.exception.SystemException {
2060                    return getPersistence().countByG_T(groupId, type);
2061            }
2062    
2063            /**
2064            * Returns the number of cal events where groupId = &#63; and type = any &#63;.
2065            *
2066            * @param groupId the group ID
2067            * @param types the types
2068            * @return the number of matching cal events
2069            * @throws SystemException if a system exception occurred
2070            */
2071            public static int countByG_T(long groupId, java.lang.String[] types)
2072                    throws com.liferay.portal.kernel.exception.SystemException {
2073                    return getPersistence().countByG_T(groupId, types);
2074            }
2075    
2076            /**
2077            * Returns the number of cal events that the user has permission to view where groupId = &#63; and type = &#63;.
2078            *
2079            * @param groupId the group ID
2080            * @param type the type
2081            * @return the number of matching cal events that the user has permission to view
2082            * @throws SystemException if a system exception occurred
2083            */
2084            public static int filterCountByG_T(long groupId, java.lang.String type)
2085                    throws com.liferay.portal.kernel.exception.SystemException {
2086                    return getPersistence().filterCountByG_T(groupId, type);
2087            }
2088    
2089            /**
2090            * Returns the number of cal events that the user has permission to view where groupId = &#63; and type = any &#63;.
2091            *
2092            * @param groupId the group ID
2093            * @param types the types
2094            * @return the number of matching cal events that the user has permission to view
2095            * @throws SystemException if a system exception occurred
2096            */
2097            public static int filterCountByG_T(long groupId, java.lang.String[] types)
2098                    throws com.liferay.portal.kernel.exception.SystemException {
2099                    return getPersistence().filterCountByG_T(groupId, types);
2100            }
2101    
2102            /**
2103            * Returns the number of cal events where groupId = &#63; and repeating = &#63;.
2104            *
2105            * @param groupId the group ID
2106            * @param repeating the repeating
2107            * @return the number of matching cal events
2108            * @throws SystemException if a system exception occurred
2109            */
2110            public static int countByG_R(long groupId, boolean repeating)
2111                    throws com.liferay.portal.kernel.exception.SystemException {
2112                    return getPersistence().countByG_R(groupId, repeating);
2113            }
2114    
2115            /**
2116            * Returns the number of cal events that the user has permission to view where groupId = &#63; and repeating = &#63;.
2117            *
2118            * @param groupId the group ID
2119            * @param repeating the repeating
2120            * @return the number of matching cal events that the user has permission to view
2121            * @throws SystemException if a system exception occurred
2122            */
2123            public static int filterCountByG_R(long groupId, boolean repeating)
2124                    throws com.liferay.portal.kernel.exception.SystemException {
2125                    return getPersistence().filterCountByG_R(groupId, repeating);
2126            }
2127    
2128            /**
2129            * Returns the number of cal events where groupId = &#63; and type = &#63; and repeating = &#63;.
2130            *
2131            * @param groupId the group ID
2132            * @param type the type
2133            * @param repeating the repeating
2134            * @return the number of matching cal events
2135            * @throws SystemException if a system exception occurred
2136            */
2137            public static int countByG_T_R(long groupId, java.lang.String type,
2138                    boolean repeating)
2139                    throws com.liferay.portal.kernel.exception.SystemException {
2140                    return getPersistence().countByG_T_R(groupId, type, repeating);
2141            }
2142    
2143            /**
2144            * Returns the number of cal events where groupId = &#63; and type = any &#63; and repeating = &#63;.
2145            *
2146            * @param groupId the group ID
2147            * @param types the types
2148            * @param repeating the repeating
2149            * @return the number of matching cal events
2150            * @throws SystemException if a system exception occurred
2151            */
2152            public static int countByG_T_R(long groupId, java.lang.String[] types,
2153                    boolean repeating)
2154                    throws com.liferay.portal.kernel.exception.SystemException {
2155                    return getPersistence().countByG_T_R(groupId, types, repeating);
2156            }
2157    
2158            /**
2159            * Returns the number of cal events that the user has permission to view where groupId = &#63; and type = &#63; and repeating = &#63;.
2160            *
2161            * @param groupId the group ID
2162            * @param type the type
2163            * @param repeating the repeating
2164            * @return the number of matching cal events that the user has permission to view
2165            * @throws SystemException if a system exception occurred
2166            */
2167            public static int filterCountByG_T_R(long groupId, java.lang.String type,
2168                    boolean repeating)
2169                    throws com.liferay.portal.kernel.exception.SystemException {
2170                    return getPersistence().filterCountByG_T_R(groupId, type, repeating);
2171            }
2172    
2173            /**
2174            * Returns the number of cal events that the user has permission to view where groupId = &#63; and type = any &#63; and repeating = &#63;.
2175            *
2176            * @param groupId the group ID
2177            * @param types the types
2178            * @param repeating the repeating
2179            * @return the number of matching cal events that the user has permission to view
2180            * @throws SystemException if a system exception occurred
2181            */
2182            public static int filterCountByG_T_R(long groupId,
2183                    java.lang.String[] types, boolean repeating)
2184                    throws com.liferay.portal.kernel.exception.SystemException {
2185                    return getPersistence().filterCountByG_T_R(groupId, types, repeating);
2186            }
2187    
2188            /**
2189            * Returns the number of cal events.
2190            *
2191            * @return the number of cal events
2192            * @throws SystemException if a system exception occurred
2193            */
2194            public static int countAll()
2195                    throws com.liferay.portal.kernel.exception.SystemException {
2196                    return getPersistence().countAll();
2197            }
2198    
2199            public static CalEventPersistence getPersistence() {
2200                    if (_persistence == null) {
2201                            _persistence = (CalEventPersistence)PortalBeanLocatorUtil.locate(CalEventPersistence.class.getName());
2202    
2203                            ReferenceRegistry.registerReference(CalEventUtil.class,
2204                                    "_persistence");
2205                    }
2206    
2207                    return _persistence;
2208            }
2209    
2210            /**
2211             * @deprecated
2212             */
2213            public void setPersistence(CalEventPersistence persistence) {
2214            }
2215    
2216            private static CalEventPersistence _persistence;
2217    }