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