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 obc)
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 obc)
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 obc)
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 obc)
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 obc)
115         throws com.liferay.portal.kernel.exception.SystemException;
116 
117     public com.liferay.portlet.calendar.model.CalEvent findByCompanyId_First(
118         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
119         throws com.liferay.portal.kernel.exception.SystemException,
120             com.liferay.portlet.calendar.NoSuchEventException;
121 
122     public com.liferay.portlet.calendar.model.CalEvent findByCompanyId_Last(
123         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
124         throws com.liferay.portal.kernel.exception.SystemException,
125             com.liferay.portlet.calendar.NoSuchEventException;
126 
127     public com.liferay.portlet.calendar.model.CalEvent[] findByCompanyId_PrevAndNext(
128         long eventId, long companyId,
129         com.liferay.portal.kernel.util.OrderByComparator obc)
130         throws com.liferay.portal.kernel.exception.SystemException,
131             com.liferay.portlet.calendar.NoSuchEventException;
132 
133     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByGroupId(
134         long groupId)
135         throws com.liferay.portal.kernel.exception.SystemException;
136 
137     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByGroupId(
138         long groupId, int start, int end)
139         throws com.liferay.portal.kernel.exception.SystemException;
140 
141     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByGroupId(
142         long groupId, int start, int end,
143         com.liferay.portal.kernel.util.OrderByComparator obc)
144         throws com.liferay.portal.kernel.exception.SystemException;
145 
146     public com.liferay.portlet.calendar.model.CalEvent findByGroupId_First(
147         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
148         throws com.liferay.portal.kernel.exception.SystemException,
149             com.liferay.portlet.calendar.NoSuchEventException;
150 
151     public com.liferay.portlet.calendar.model.CalEvent findByGroupId_Last(
152         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
153         throws com.liferay.portal.kernel.exception.SystemException,
154             com.liferay.portlet.calendar.NoSuchEventException;
155 
156     public com.liferay.portlet.calendar.model.CalEvent[] findByGroupId_PrevAndNext(
157         long eventId, long groupId,
158         com.liferay.portal.kernel.util.OrderByComparator obc)
159         throws com.liferay.portal.kernel.exception.SystemException,
160             com.liferay.portlet.calendar.NoSuchEventException;
161 
162     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByRemindBy(
163         int remindBy)
164         throws com.liferay.portal.kernel.exception.SystemException;
165 
166     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByRemindBy(
167         int remindBy, int start, int end)
168         throws com.liferay.portal.kernel.exception.SystemException;
169 
170     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByRemindBy(
171         int remindBy, int start, int end,
172         com.liferay.portal.kernel.util.OrderByComparator obc)
173         throws com.liferay.portal.kernel.exception.SystemException;
174 
175     public com.liferay.portlet.calendar.model.CalEvent findByRemindBy_First(
176         int remindBy, com.liferay.portal.kernel.util.OrderByComparator obc)
177         throws com.liferay.portal.kernel.exception.SystemException,
178             com.liferay.portlet.calendar.NoSuchEventException;
179 
180     public com.liferay.portlet.calendar.model.CalEvent findByRemindBy_Last(
181         int remindBy, com.liferay.portal.kernel.util.OrderByComparator obc)
182         throws com.liferay.portal.kernel.exception.SystemException,
183             com.liferay.portlet.calendar.NoSuchEventException;
184 
185     public com.liferay.portlet.calendar.model.CalEvent[] findByRemindBy_PrevAndNext(
186         long eventId, int remindBy,
187         com.liferay.portal.kernel.util.OrderByComparator obc)
188         throws com.liferay.portal.kernel.exception.SystemException,
189             com.liferay.portlet.calendar.NoSuchEventException;
190 
191     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_T(
192         long groupId, java.lang.String type)
193         throws com.liferay.portal.kernel.exception.SystemException;
194 
195     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_T(
196         long groupId, java.lang.String type, int start, int end)
197         throws com.liferay.portal.kernel.exception.SystemException;
198 
199     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_T(
200         long groupId, java.lang.String type, int start, int end,
201         com.liferay.portal.kernel.util.OrderByComparator obc)
202         throws com.liferay.portal.kernel.exception.SystemException;
203 
204     public com.liferay.portlet.calendar.model.CalEvent findByG_T_First(
205         long groupId, java.lang.String type,
206         com.liferay.portal.kernel.util.OrderByComparator obc)
207         throws com.liferay.portal.kernel.exception.SystemException,
208             com.liferay.portlet.calendar.NoSuchEventException;
209 
210     public com.liferay.portlet.calendar.model.CalEvent findByG_T_Last(
211         long groupId, java.lang.String type,
212         com.liferay.portal.kernel.util.OrderByComparator obc)
213         throws com.liferay.portal.kernel.exception.SystemException,
214             com.liferay.portlet.calendar.NoSuchEventException;
215 
216     public com.liferay.portlet.calendar.model.CalEvent[] findByG_T_PrevAndNext(
217         long eventId, long groupId, java.lang.String type,
218         com.liferay.portal.kernel.util.OrderByComparator obc)
219         throws com.liferay.portal.kernel.exception.SystemException,
220             com.liferay.portlet.calendar.NoSuchEventException;
221 
222     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_R(
223         long groupId, boolean repeating)
224         throws com.liferay.portal.kernel.exception.SystemException;
225 
226     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_R(
227         long groupId, boolean repeating, int start, int end)
228         throws com.liferay.portal.kernel.exception.SystemException;
229 
230     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_R(
231         long groupId, boolean repeating, int start, int end,
232         com.liferay.portal.kernel.util.OrderByComparator obc)
233         throws com.liferay.portal.kernel.exception.SystemException;
234 
235     public com.liferay.portlet.calendar.model.CalEvent findByG_R_First(
236         long groupId, boolean repeating,
237         com.liferay.portal.kernel.util.OrderByComparator obc)
238         throws com.liferay.portal.kernel.exception.SystemException,
239             com.liferay.portlet.calendar.NoSuchEventException;
240 
241     public com.liferay.portlet.calendar.model.CalEvent findByG_R_Last(
242         long groupId, boolean repeating,
243         com.liferay.portal.kernel.util.OrderByComparator obc)
244         throws com.liferay.portal.kernel.exception.SystemException,
245             com.liferay.portlet.calendar.NoSuchEventException;
246 
247     public com.liferay.portlet.calendar.model.CalEvent[] findByG_R_PrevAndNext(
248         long eventId, long groupId, boolean repeating,
249         com.liferay.portal.kernel.util.OrderByComparator obc)
250         throws com.liferay.portal.kernel.exception.SystemException,
251             com.liferay.portlet.calendar.NoSuchEventException;
252 
253     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findAll()
254         throws com.liferay.portal.kernel.exception.SystemException;
255 
256     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findAll(
257         int start, int end)
258         throws com.liferay.portal.kernel.exception.SystemException;
259 
260     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findAll(
261         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
262         throws com.liferay.portal.kernel.exception.SystemException;
263 
264     public void removeByUuid(java.lang.String uuid)
265         throws com.liferay.portal.kernel.exception.SystemException;
266 
267     public void removeByUUID_G(java.lang.String uuid, long groupId)
268         throws com.liferay.portal.kernel.exception.SystemException,
269             com.liferay.portlet.calendar.NoSuchEventException;
270 
271     public void removeByCompanyId(long companyId)
272         throws com.liferay.portal.kernel.exception.SystemException;
273 
274     public void removeByGroupId(long groupId)
275         throws com.liferay.portal.kernel.exception.SystemException;
276 
277     public void removeByRemindBy(int remindBy)
278         throws com.liferay.portal.kernel.exception.SystemException;
279 
280     public void removeByG_T(long groupId, java.lang.String type)
281         throws com.liferay.portal.kernel.exception.SystemException;
282 
283     public void removeByG_R(long groupId, boolean repeating)
284         throws com.liferay.portal.kernel.exception.SystemException;
285 
286     public void removeAll()
287         throws com.liferay.portal.kernel.exception.SystemException;
288 
289     public int countByUuid(java.lang.String uuid)
290         throws com.liferay.portal.kernel.exception.SystemException;
291 
292     public int countByUUID_G(java.lang.String uuid, long groupId)
293         throws com.liferay.portal.kernel.exception.SystemException;
294 
295     public int countByCompanyId(long companyId)
296         throws com.liferay.portal.kernel.exception.SystemException;
297 
298     public int countByGroupId(long groupId)
299         throws com.liferay.portal.kernel.exception.SystemException;
300 
301     public int countByRemindBy(int remindBy)
302         throws com.liferay.portal.kernel.exception.SystemException;
303 
304     public int countByG_T(long groupId, java.lang.String type)
305         throws com.liferay.portal.kernel.exception.SystemException;
306 
307     public int countByG_R(long groupId, boolean repeating)
308         throws com.liferay.portal.kernel.exception.SystemException;
309 
310     public int countAll()
311         throws com.liferay.portal.kernel.exception.SystemException;
312 }