1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.calendar.service.persistence;
16  
17  import com.liferay.portal.service.persistence.BasePersistence;
18  
19  import com.liferay.portlet.calendar.model.CalEvent;
20  
21  /**
22   * <a href="CalEventPersistence.java.html"><b><i>View Source</i></b></a>
23   *
24   * <p>
25   * ServiceBuilder generated this class. Modifications in this class will be
26   * overwritten the next time is generated.
27   * </p>
28   *
29   * @author    Brian Wing Shun Chan
30   * @see       CalEventPersistenceImpl
31   * @see       CalEventUtil
32   * @generated
33   */
34  public interface CalEventPersistence extends BasePersistence<CalEvent> {
35      public void cacheResult(
36          com.liferay.portlet.calendar.model.CalEvent calEvent);
37  
38      public void cacheResult(
39          java.util.List<com.liferay.portlet.calendar.model.CalEvent> calEvents);
40  
41      public com.liferay.portlet.calendar.model.CalEvent create(long eventId);
42  
43      public com.liferay.portlet.calendar.model.CalEvent remove(long eventId)
44          throws com.liferay.portal.kernel.exception.SystemException,
45              com.liferay.portlet.calendar.NoSuchEventException;
46  
47      public com.liferay.portlet.calendar.model.CalEvent updateImpl(
48          com.liferay.portlet.calendar.model.CalEvent calEvent, boolean merge)
49          throws com.liferay.portal.kernel.exception.SystemException;
50  
51      public com.liferay.portlet.calendar.model.CalEvent findByPrimaryKey(
52          long eventId)
53          throws com.liferay.portal.kernel.exception.SystemException,
54              com.liferay.portlet.calendar.NoSuchEventException;
55  
56      public com.liferay.portlet.calendar.model.CalEvent fetchByPrimaryKey(
57          long eventId)
58          throws com.liferay.portal.kernel.exception.SystemException;
59  
60      public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByUuid(
61          java.lang.String uuid)
62          throws com.liferay.portal.kernel.exception.SystemException;
63  
64      public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByUuid(
65          java.lang.String uuid, int start, int end)
66          throws com.liferay.portal.kernel.exception.SystemException;
67  
68      public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByUuid(
69          java.lang.String uuid, int start, int end,
70          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
71          throws com.liferay.portal.kernel.exception.SystemException;
72  
73      public com.liferay.portlet.calendar.model.CalEvent findByUuid_First(
74          java.lang.String uuid,
75          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
76          throws com.liferay.portal.kernel.exception.SystemException,
77              com.liferay.portlet.calendar.NoSuchEventException;
78  
79      public com.liferay.portlet.calendar.model.CalEvent findByUuid_Last(
80          java.lang.String uuid,
81          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
82          throws com.liferay.portal.kernel.exception.SystemException,
83              com.liferay.portlet.calendar.NoSuchEventException;
84  
85      public com.liferay.portlet.calendar.model.CalEvent[] findByUuid_PrevAndNext(
86          long eventId, java.lang.String uuid,
87          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
88          throws com.liferay.portal.kernel.exception.SystemException,
89              com.liferay.portlet.calendar.NoSuchEventException;
90  
91      public com.liferay.portlet.calendar.model.CalEvent findByUUID_G(
92          java.lang.String uuid, long groupId)
93          throws com.liferay.portal.kernel.exception.SystemException,
94              com.liferay.portlet.calendar.NoSuchEventException;
95  
96      public com.liferay.portlet.calendar.model.CalEvent fetchByUUID_G(
97          java.lang.String uuid, long groupId)
98          throws com.liferay.portal.kernel.exception.SystemException;
99  
100     public com.liferay.portlet.calendar.model.CalEvent fetchByUUID_G(
101         java.lang.String uuid, long groupId, boolean retrieveFromCache)
102         throws com.liferay.portal.kernel.exception.SystemException;
103 
104     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByCompanyId(
105         long companyId)
106         throws com.liferay.portal.kernel.exception.SystemException;
107 
108     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByCompanyId(
109         long companyId, int start, int end)
110         throws com.liferay.portal.kernel.exception.SystemException;
111 
112     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByCompanyId(
113         long companyId, int start, int end,
114         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
115         throws com.liferay.portal.kernel.exception.SystemException;
116 
117     public com.liferay.portlet.calendar.model.CalEvent findByCompanyId_First(
118         long companyId,
119         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
120         throws com.liferay.portal.kernel.exception.SystemException,
121             com.liferay.portlet.calendar.NoSuchEventException;
122 
123     public com.liferay.portlet.calendar.model.CalEvent findByCompanyId_Last(
124         long companyId,
125         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
126         throws com.liferay.portal.kernel.exception.SystemException,
127             com.liferay.portlet.calendar.NoSuchEventException;
128 
129     public com.liferay.portlet.calendar.model.CalEvent[] findByCompanyId_PrevAndNext(
130         long eventId, long companyId,
131         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
132         throws com.liferay.portal.kernel.exception.SystemException,
133             com.liferay.portlet.calendar.NoSuchEventException;
134 
135     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByGroupId(
136         long groupId)
137         throws com.liferay.portal.kernel.exception.SystemException;
138 
139     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByGroupId(
140         long groupId, int start, int end)
141         throws com.liferay.portal.kernel.exception.SystemException;
142 
143     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByGroupId(
144         long groupId, int start, int end,
145         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
146         throws com.liferay.portal.kernel.exception.SystemException;
147 
148     public com.liferay.portlet.calendar.model.CalEvent findByGroupId_First(
149         long groupId,
150         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
151         throws com.liferay.portal.kernel.exception.SystemException,
152             com.liferay.portlet.calendar.NoSuchEventException;
153 
154     public com.liferay.portlet.calendar.model.CalEvent findByGroupId_Last(
155         long groupId,
156         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
157         throws com.liferay.portal.kernel.exception.SystemException,
158             com.liferay.portlet.calendar.NoSuchEventException;
159 
160     public com.liferay.portlet.calendar.model.CalEvent[] findByGroupId_PrevAndNext(
161         long eventId, long groupId,
162         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
163         throws com.liferay.portal.kernel.exception.SystemException,
164             com.liferay.portlet.calendar.NoSuchEventException;
165 
166     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> filterFindByGroupId(
167         long groupId)
168         throws com.liferay.portal.kernel.exception.SystemException;
169 
170     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> filterFindByGroupId(
171         long groupId, int start, int end)
172         throws com.liferay.portal.kernel.exception.SystemException;
173 
174     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> filterFindByGroupId(
175         long groupId, int start, int end,
176         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
177         throws com.liferay.portal.kernel.exception.SystemException;
178 
179     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByRemindBy(
180         int remindBy)
181         throws com.liferay.portal.kernel.exception.SystemException;
182 
183     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByRemindBy(
184         int remindBy, int start, int end)
185         throws com.liferay.portal.kernel.exception.SystemException;
186 
187     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByRemindBy(
188         int remindBy, int start, int end,
189         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
190         throws com.liferay.portal.kernel.exception.SystemException;
191 
192     public com.liferay.portlet.calendar.model.CalEvent findByRemindBy_First(
193         int remindBy,
194         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
195         throws com.liferay.portal.kernel.exception.SystemException,
196             com.liferay.portlet.calendar.NoSuchEventException;
197 
198     public com.liferay.portlet.calendar.model.CalEvent findByRemindBy_Last(
199         int remindBy,
200         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
201         throws com.liferay.portal.kernel.exception.SystemException,
202             com.liferay.portlet.calendar.NoSuchEventException;
203 
204     public com.liferay.portlet.calendar.model.CalEvent[] findByRemindBy_PrevAndNext(
205         long eventId, int remindBy,
206         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
207         throws com.liferay.portal.kernel.exception.SystemException,
208             com.liferay.portlet.calendar.NoSuchEventException;
209 
210     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_T(
211         long groupId, java.lang.String type)
212         throws com.liferay.portal.kernel.exception.SystemException;
213 
214     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_T(
215         long groupId, java.lang.String type, int start, int end)
216         throws com.liferay.portal.kernel.exception.SystemException;
217 
218     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_T(
219         long groupId, java.lang.String type, int start, int end,
220         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
221         throws com.liferay.portal.kernel.exception.SystemException;
222 
223     public com.liferay.portlet.calendar.model.CalEvent findByG_T_First(
224         long groupId, java.lang.String type,
225         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
226         throws com.liferay.portal.kernel.exception.SystemException,
227             com.liferay.portlet.calendar.NoSuchEventException;
228 
229     public com.liferay.portlet.calendar.model.CalEvent findByG_T_Last(
230         long groupId, java.lang.String type,
231         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
232         throws com.liferay.portal.kernel.exception.SystemException,
233             com.liferay.portlet.calendar.NoSuchEventException;
234 
235     public com.liferay.portlet.calendar.model.CalEvent[] findByG_T_PrevAndNext(
236         long eventId, long groupId, java.lang.String type,
237         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
238         throws com.liferay.portal.kernel.exception.SystemException,
239             com.liferay.portlet.calendar.NoSuchEventException;
240 
241     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> filterFindByG_T(
242         long groupId, java.lang.String type)
243         throws com.liferay.portal.kernel.exception.SystemException;
244 
245     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> filterFindByG_T(
246         long groupId, java.lang.String type, int start, int end)
247         throws com.liferay.portal.kernel.exception.SystemException;
248 
249     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> filterFindByG_T(
250         long groupId, java.lang.String type, int start, int end,
251         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
252         throws com.liferay.portal.kernel.exception.SystemException;
253 
254     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_R(
255         long groupId, boolean repeating)
256         throws com.liferay.portal.kernel.exception.SystemException;
257 
258     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_R(
259         long groupId, boolean repeating, int start, int end)
260         throws com.liferay.portal.kernel.exception.SystemException;
261 
262     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_R(
263         long groupId, boolean repeating, int start, int end,
264         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
265         throws com.liferay.portal.kernel.exception.SystemException;
266 
267     public com.liferay.portlet.calendar.model.CalEvent findByG_R_First(
268         long groupId, boolean repeating,
269         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
270         throws com.liferay.portal.kernel.exception.SystemException,
271             com.liferay.portlet.calendar.NoSuchEventException;
272 
273     public com.liferay.portlet.calendar.model.CalEvent findByG_R_Last(
274         long groupId, boolean repeating,
275         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
276         throws com.liferay.portal.kernel.exception.SystemException,
277             com.liferay.portlet.calendar.NoSuchEventException;
278 
279     public com.liferay.portlet.calendar.model.CalEvent[] findByG_R_PrevAndNext(
280         long eventId, long groupId, boolean repeating,
281         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
282         throws com.liferay.portal.kernel.exception.SystemException,
283             com.liferay.portlet.calendar.NoSuchEventException;
284 
285     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> filterFindByG_R(
286         long groupId, boolean repeating)
287         throws com.liferay.portal.kernel.exception.SystemException;
288 
289     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> filterFindByG_R(
290         long groupId, boolean repeating, int start, int end)
291         throws com.liferay.portal.kernel.exception.SystemException;
292 
293     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> filterFindByG_R(
294         long groupId, boolean repeating, int start, int end,
295         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
296         throws com.liferay.portal.kernel.exception.SystemException;
297 
298     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findAll()
299         throws com.liferay.portal.kernel.exception.SystemException;
300 
301     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findAll(
302         int start, int end)
303         throws com.liferay.portal.kernel.exception.SystemException;
304 
305     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findAll(
306         int start, int end,
307         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
308         throws com.liferay.portal.kernel.exception.SystemException;
309 
310     public void removeByUuid(java.lang.String uuid)
311         throws com.liferay.portal.kernel.exception.SystemException;
312 
313     public void removeByUUID_G(java.lang.String uuid, long groupId)
314         throws com.liferay.portal.kernel.exception.SystemException,
315             com.liferay.portlet.calendar.NoSuchEventException;
316 
317     public void removeByCompanyId(long companyId)
318         throws com.liferay.portal.kernel.exception.SystemException;
319 
320     public void removeByGroupId(long groupId)
321         throws com.liferay.portal.kernel.exception.SystemException;
322 
323     public void removeByRemindBy(int remindBy)
324         throws com.liferay.portal.kernel.exception.SystemException;
325 
326     public void removeByG_T(long groupId, java.lang.String type)
327         throws com.liferay.portal.kernel.exception.SystemException;
328 
329     public void removeByG_R(long groupId, boolean repeating)
330         throws com.liferay.portal.kernel.exception.SystemException;
331 
332     public void removeAll()
333         throws com.liferay.portal.kernel.exception.SystemException;
334 
335     public int countByUuid(java.lang.String uuid)
336         throws com.liferay.portal.kernel.exception.SystemException;
337 
338     public int countByUUID_G(java.lang.String uuid, long groupId)
339         throws com.liferay.portal.kernel.exception.SystemException;
340 
341     public int countByCompanyId(long companyId)
342         throws com.liferay.portal.kernel.exception.SystemException;
343 
344     public int countByGroupId(long groupId)
345         throws com.liferay.portal.kernel.exception.SystemException;
346 
347     public int filterCountByGroupId(long groupId)
348         throws com.liferay.portal.kernel.exception.SystemException;
349 
350     public int countByRemindBy(int remindBy)
351         throws com.liferay.portal.kernel.exception.SystemException;
352 
353     public int countByG_T(long groupId, java.lang.String type)
354         throws com.liferay.portal.kernel.exception.SystemException;
355 
356     public int filterCountByG_T(long groupId, java.lang.String type)
357         throws com.liferay.portal.kernel.exception.SystemException;
358 
359     public int countByG_R(long groupId, boolean repeating)
360         throws com.liferay.portal.kernel.exception.SystemException;
361 
362     public int filterCountByG_R(long groupId, boolean repeating)
363         throws com.liferay.portal.kernel.exception.SystemException;
364 
365     public int countAll()
366         throws com.liferay.portal.kernel.exception.SystemException;
367 }