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