001    /**
002     * Copyright (c) 2000-2010 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     * @author    Brian Wing Shun Chan
023     * @see       CalEventPersistenceImpl
024     * @see       CalEventUtil
025     * @generated
026     */
027    public interface CalEventPersistence extends BasePersistence<CalEvent> {
028            public void cacheResult(
029                    com.liferay.portlet.calendar.model.CalEvent calEvent);
030    
031            public void cacheResult(
032                    java.util.List<com.liferay.portlet.calendar.model.CalEvent> calEvents);
033    
034            public com.liferay.portlet.calendar.model.CalEvent create(long eventId);
035    
036            public com.liferay.portlet.calendar.model.CalEvent remove(long eventId)
037                    throws com.liferay.portal.kernel.exception.SystemException,
038                            com.liferay.portlet.calendar.NoSuchEventException;
039    
040            public com.liferay.portlet.calendar.model.CalEvent updateImpl(
041                    com.liferay.portlet.calendar.model.CalEvent calEvent, boolean merge)
042                    throws com.liferay.portal.kernel.exception.SystemException;
043    
044            public com.liferay.portlet.calendar.model.CalEvent findByPrimaryKey(
045                    long eventId)
046                    throws com.liferay.portal.kernel.exception.SystemException,
047                            com.liferay.portlet.calendar.NoSuchEventException;
048    
049            public com.liferay.portlet.calendar.model.CalEvent fetchByPrimaryKey(
050                    long eventId)
051                    throws com.liferay.portal.kernel.exception.SystemException;
052    
053            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByUuid(
054                    java.lang.String uuid)
055                    throws com.liferay.portal.kernel.exception.SystemException;
056    
057            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByUuid(
058                    java.lang.String uuid, int start, int end)
059                    throws com.liferay.portal.kernel.exception.SystemException;
060    
061            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByUuid(
062                    java.lang.String uuid, int start, int end,
063                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
064                    throws com.liferay.portal.kernel.exception.SystemException;
065    
066            public com.liferay.portlet.calendar.model.CalEvent findByUuid_First(
067                    java.lang.String uuid,
068                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
069                    throws com.liferay.portal.kernel.exception.SystemException,
070                            com.liferay.portlet.calendar.NoSuchEventException;
071    
072            public com.liferay.portlet.calendar.model.CalEvent findByUuid_Last(
073                    java.lang.String uuid,
074                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
075                    throws com.liferay.portal.kernel.exception.SystemException,
076                            com.liferay.portlet.calendar.NoSuchEventException;
077    
078            public com.liferay.portlet.calendar.model.CalEvent[] findByUuid_PrevAndNext(
079                    long eventId, java.lang.String uuid,
080                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
081                    throws com.liferay.portal.kernel.exception.SystemException,
082                            com.liferay.portlet.calendar.NoSuchEventException;
083    
084            public com.liferay.portlet.calendar.model.CalEvent findByUUID_G(
085                    java.lang.String uuid, long groupId)
086                    throws com.liferay.portal.kernel.exception.SystemException,
087                            com.liferay.portlet.calendar.NoSuchEventException;
088    
089            public com.liferay.portlet.calendar.model.CalEvent fetchByUUID_G(
090                    java.lang.String uuid, long groupId)
091                    throws com.liferay.portal.kernel.exception.SystemException;
092    
093            public com.liferay.portlet.calendar.model.CalEvent fetchByUUID_G(
094                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
095                    throws com.liferay.portal.kernel.exception.SystemException;
096    
097            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByCompanyId(
098                    long companyId)
099                    throws com.liferay.portal.kernel.exception.SystemException;
100    
101            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByCompanyId(
102                    long companyId, int start, int end)
103                    throws com.liferay.portal.kernel.exception.SystemException;
104    
105            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByCompanyId(
106                    long companyId, int start, int end,
107                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
108                    throws com.liferay.portal.kernel.exception.SystemException;
109    
110            public com.liferay.portlet.calendar.model.CalEvent findByCompanyId_First(
111                    long companyId,
112                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
113                    throws com.liferay.portal.kernel.exception.SystemException,
114                            com.liferay.portlet.calendar.NoSuchEventException;
115    
116            public com.liferay.portlet.calendar.model.CalEvent findByCompanyId_Last(
117                    long companyId,
118                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
119                    throws com.liferay.portal.kernel.exception.SystemException,
120                            com.liferay.portlet.calendar.NoSuchEventException;
121    
122            public com.liferay.portlet.calendar.model.CalEvent[] findByCompanyId_PrevAndNext(
123                    long eventId, long companyId,
124                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
125                    throws com.liferay.portal.kernel.exception.SystemException,
126                            com.liferay.portlet.calendar.NoSuchEventException;
127    
128            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByGroupId(
129                    long groupId)
130                    throws com.liferay.portal.kernel.exception.SystemException;
131    
132            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByGroupId(
133                    long groupId, int start, int end)
134                    throws com.liferay.portal.kernel.exception.SystemException;
135    
136            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByGroupId(
137                    long groupId, int start, int end,
138                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
139                    throws com.liferay.portal.kernel.exception.SystemException;
140    
141            public com.liferay.portlet.calendar.model.CalEvent findByGroupId_First(
142                    long groupId,
143                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
144                    throws com.liferay.portal.kernel.exception.SystemException,
145                            com.liferay.portlet.calendar.NoSuchEventException;
146    
147            public com.liferay.portlet.calendar.model.CalEvent findByGroupId_Last(
148                    long groupId,
149                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
150                    throws com.liferay.portal.kernel.exception.SystemException,
151                            com.liferay.portlet.calendar.NoSuchEventException;
152    
153            public com.liferay.portlet.calendar.model.CalEvent[] findByGroupId_PrevAndNext(
154                    long eventId, long groupId,
155                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
156                    throws com.liferay.portal.kernel.exception.SystemException,
157                            com.liferay.portlet.calendar.NoSuchEventException;
158    
159            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> filterFindByGroupId(
160                    long groupId)
161                    throws com.liferay.portal.kernel.exception.SystemException;
162    
163            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> filterFindByGroupId(
164                    long groupId, int start, int end)
165                    throws com.liferay.portal.kernel.exception.SystemException;
166    
167            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> filterFindByGroupId(
168                    long groupId, int start, int end,
169                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
170                    throws com.liferay.portal.kernel.exception.SystemException;
171    
172            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByNotRemindBy(
173                    int remindBy)
174                    throws com.liferay.portal.kernel.exception.SystemException;
175    
176            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByNotRemindBy(
177                    int remindBy, int start, int end)
178                    throws com.liferay.portal.kernel.exception.SystemException;
179    
180            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByNotRemindBy(
181                    int remindBy, int start, int end,
182                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
183                    throws com.liferay.portal.kernel.exception.SystemException;
184    
185            public com.liferay.portlet.calendar.model.CalEvent findByNotRemindBy_First(
186                    int remindBy,
187                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
188                    throws com.liferay.portal.kernel.exception.SystemException,
189                            com.liferay.portlet.calendar.NoSuchEventException;
190    
191            public com.liferay.portlet.calendar.model.CalEvent findByNotRemindBy_Last(
192                    int remindBy,
193                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
194                    throws com.liferay.portal.kernel.exception.SystemException,
195                            com.liferay.portlet.calendar.NoSuchEventException;
196    
197            public com.liferay.portlet.calendar.model.CalEvent[] findByNotRemindBy_PrevAndNext(
198                    long eventId, int remindBy,
199                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
200                    throws com.liferay.portal.kernel.exception.SystemException,
201                            com.liferay.portlet.calendar.NoSuchEventException;
202    
203            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_T(
204                    long groupId, java.lang.String type)
205                    throws com.liferay.portal.kernel.exception.SystemException;
206    
207            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_T(
208                    long groupId, java.lang.String type, int start, int end)
209                    throws com.liferay.portal.kernel.exception.SystemException;
210    
211            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_T(
212                    long groupId, java.lang.String type, int start, int end,
213                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
214                    throws com.liferay.portal.kernel.exception.SystemException;
215    
216            public com.liferay.portlet.calendar.model.CalEvent findByG_T_First(
217                    long groupId, java.lang.String type,
218                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
219                    throws com.liferay.portal.kernel.exception.SystemException,
220                            com.liferay.portlet.calendar.NoSuchEventException;
221    
222            public com.liferay.portlet.calendar.model.CalEvent findByG_T_Last(
223                    long groupId, java.lang.String type,
224                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
225                    throws com.liferay.portal.kernel.exception.SystemException,
226                            com.liferay.portlet.calendar.NoSuchEventException;
227    
228            public com.liferay.portlet.calendar.model.CalEvent[] findByG_T_PrevAndNext(
229                    long eventId, long groupId, java.lang.String type,
230                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
231                    throws com.liferay.portal.kernel.exception.SystemException,
232                            com.liferay.portlet.calendar.NoSuchEventException;
233    
234            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> filterFindByG_T(
235                    long groupId, java.lang.String type)
236                    throws com.liferay.portal.kernel.exception.SystemException;
237    
238            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> filterFindByG_T(
239                    long groupId, java.lang.String type, int start, int end)
240                    throws com.liferay.portal.kernel.exception.SystemException;
241    
242            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> filterFindByG_T(
243                    long groupId, java.lang.String type, int start, int end,
244                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
245                    throws com.liferay.portal.kernel.exception.SystemException;
246    
247            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_R(
248                    long groupId, boolean repeating)
249                    throws com.liferay.portal.kernel.exception.SystemException;
250    
251            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_R(
252                    long groupId, boolean repeating, int start, int end)
253                    throws com.liferay.portal.kernel.exception.SystemException;
254    
255            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_R(
256                    long groupId, boolean repeating, int start, int end,
257                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
258                    throws com.liferay.portal.kernel.exception.SystemException;
259    
260            public com.liferay.portlet.calendar.model.CalEvent findByG_R_First(
261                    long groupId, boolean repeating,
262                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
263                    throws com.liferay.portal.kernel.exception.SystemException,
264                            com.liferay.portlet.calendar.NoSuchEventException;
265    
266            public com.liferay.portlet.calendar.model.CalEvent findByG_R_Last(
267                    long groupId, boolean repeating,
268                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
269                    throws com.liferay.portal.kernel.exception.SystemException,
270                            com.liferay.portlet.calendar.NoSuchEventException;
271    
272            public com.liferay.portlet.calendar.model.CalEvent[] findByG_R_PrevAndNext(
273                    long eventId, long groupId, boolean repeating,
274                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
275                    throws com.liferay.portal.kernel.exception.SystemException,
276                            com.liferay.portlet.calendar.NoSuchEventException;
277    
278            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> filterFindByG_R(
279                    long groupId, boolean repeating)
280                    throws com.liferay.portal.kernel.exception.SystemException;
281    
282            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> filterFindByG_R(
283                    long groupId, boolean repeating, int start, int end)
284                    throws com.liferay.portal.kernel.exception.SystemException;
285    
286            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> filterFindByG_R(
287                    long groupId, boolean repeating, int start, int end,
288                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
289                    throws com.liferay.portal.kernel.exception.SystemException;
290    
291            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findAll()
292                    throws com.liferay.portal.kernel.exception.SystemException;
293    
294            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findAll(
295                    int start, int end)
296                    throws com.liferay.portal.kernel.exception.SystemException;
297    
298            public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findAll(
299                    int start, int end,
300                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
301                    throws com.liferay.portal.kernel.exception.SystemException;
302    
303            public void removeByUuid(java.lang.String uuid)
304                    throws com.liferay.portal.kernel.exception.SystemException;
305    
306            public void removeByUUID_G(java.lang.String uuid, long groupId)
307                    throws com.liferay.portal.kernel.exception.SystemException,
308                            com.liferay.portlet.calendar.NoSuchEventException;
309    
310            public void removeByCompanyId(long companyId)
311                    throws com.liferay.portal.kernel.exception.SystemException;
312    
313            public void removeByGroupId(long groupId)
314                    throws com.liferay.portal.kernel.exception.SystemException;
315    
316            public void removeByNotRemindBy(int remindBy)
317                    throws com.liferay.portal.kernel.exception.SystemException;
318    
319            public void removeByG_T(long groupId, java.lang.String type)
320                    throws com.liferay.portal.kernel.exception.SystemException;
321    
322            public void removeByG_R(long groupId, boolean repeating)
323                    throws com.liferay.portal.kernel.exception.SystemException;
324    
325            public void removeAll()
326                    throws com.liferay.portal.kernel.exception.SystemException;
327    
328            public int countByUuid(java.lang.String uuid)
329                    throws com.liferay.portal.kernel.exception.SystemException;
330    
331            public int countByUUID_G(java.lang.String uuid, long groupId)
332                    throws com.liferay.portal.kernel.exception.SystemException;
333    
334            public int countByCompanyId(long companyId)
335                    throws com.liferay.portal.kernel.exception.SystemException;
336    
337            public int countByGroupId(long groupId)
338                    throws com.liferay.portal.kernel.exception.SystemException;
339    
340            public int filterCountByGroupId(long groupId)
341                    throws com.liferay.portal.kernel.exception.SystemException;
342    
343            public int countByNotRemindBy(int remindBy)
344                    throws com.liferay.portal.kernel.exception.SystemException;
345    
346            public int countByG_T(long groupId, java.lang.String type)
347                    throws com.liferay.portal.kernel.exception.SystemException;
348    
349            public int filterCountByG_T(long groupId, java.lang.String type)
350                    throws com.liferay.portal.kernel.exception.SystemException;
351    
352            public int countByG_R(long groupId, boolean repeating)
353                    throws com.liferay.portal.kernel.exception.SystemException;
354    
355            public int filterCountByG_R(long groupId, boolean repeating)
356                    throws com.liferay.portal.kernel.exception.SystemException;
357    
358            public int countAll()
359                    throws com.liferay.portal.kernel.exception.SystemException;
360    }