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