1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
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.SystemException,
45              com.liferay.portlet.calendar.NoSuchEventException;
46  
47      /**
48       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
49       */
50      public com.liferay.portlet.calendar.model.CalEvent update(
51          com.liferay.portlet.calendar.model.CalEvent calEvent)
52          throws com.liferay.portal.SystemException;
53  
54      public com.liferay.portlet.calendar.model.CalEvent updateImpl(
55          com.liferay.portlet.calendar.model.CalEvent calEvent, boolean merge)
56          throws com.liferay.portal.SystemException;
57  
58      public com.liferay.portlet.calendar.model.CalEvent findByPrimaryKey(
59          long eventId)
60          throws com.liferay.portal.SystemException,
61              com.liferay.portlet.calendar.NoSuchEventException;
62  
63      public com.liferay.portlet.calendar.model.CalEvent fetchByPrimaryKey(
64          long eventId) throws com.liferay.portal.SystemException;
65  
66      public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByUuid(
67          java.lang.String uuid) throws com.liferay.portal.SystemException;
68  
69      public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByUuid(
70          java.lang.String uuid, int start, int end)
71          throws com.liferay.portal.SystemException;
72  
73      public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByUuid(
74          java.lang.String uuid, int start, int end,
75          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
76          throws com.liferay.portal.SystemException;
77  
78      public com.liferay.portlet.calendar.model.CalEvent findByUuid_First(
79          java.lang.String uuid,
80          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
81          throws com.liferay.portal.SystemException,
82              com.liferay.portlet.calendar.NoSuchEventException;
83  
84      public com.liferay.portlet.calendar.model.CalEvent findByUuid_Last(
85          java.lang.String uuid,
86          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
87          throws com.liferay.portal.SystemException,
88              com.liferay.portlet.calendar.NoSuchEventException;
89  
90      public com.liferay.portlet.calendar.model.CalEvent[] findByUuid_PrevAndNext(
91          long eventId, java.lang.String uuid,
92          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
93          throws com.liferay.portal.SystemException,
94              com.liferay.portlet.calendar.NoSuchEventException;
95  
96      public com.liferay.portlet.calendar.model.CalEvent findByUUID_G(
97          java.lang.String uuid, long groupId)
98          throws com.liferay.portal.SystemException,
99              com.liferay.portlet.calendar.NoSuchEventException;
100 
101     public com.liferay.portlet.calendar.model.CalEvent fetchByUUID_G(
102         java.lang.String uuid, long groupId)
103         throws com.liferay.portal.SystemException;
104 
105     public com.liferay.portlet.calendar.model.CalEvent fetchByUUID_G(
106         java.lang.String uuid, long groupId, boolean retrieveFromCache)
107         throws com.liferay.portal.SystemException;
108 
109     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByCompanyId(
110         long companyId) throws com.liferay.portal.SystemException;
111 
112     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByCompanyId(
113         long companyId, int start, int end)
114         throws com.liferay.portal.SystemException;
115 
116     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByCompanyId(
117         long companyId, int start, int end,
118         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
119         throws com.liferay.portal.SystemException;
120 
121     public com.liferay.portlet.calendar.model.CalEvent findByCompanyId_First(
122         long companyId,
123         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
124         throws com.liferay.portal.SystemException,
125             com.liferay.portlet.calendar.NoSuchEventException;
126 
127     public com.liferay.portlet.calendar.model.CalEvent findByCompanyId_Last(
128         long companyId,
129         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
130         throws com.liferay.portal.SystemException,
131             com.liferay.portlet.calendar.NoSuchEventException;
132 
133     public com.liferay.portlet.calendar.model.CalEvent[] findByCompanyId_PrevAndNext(
134         long eventId, long companyId,
135         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
136         throws com.liferay.portal.SystemException,
137             com.liferay.portlet.calendar.NoSuchEventException;
138 
139     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByGroupId(
140         long groupId) throws com.liferay.portal.SystemException;
141 
142     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByGroupId(
143         long groupId, int start, int end)
144         throws com.liferay.portal.SystemException;
145 
146     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByGroupId(
147         long groupId, int start, int end,
148         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149         throws com.liferay.portal.SystemException;
150 
151     public com.liferay.portlet.calendar.model.CalEvent findByGroupId_First(
152         long groupId,
153         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
154         throws com.liferay.portal.SystemException,
155             com.liferay.portlet.calendar.NoSuchEventException;
156 
157     public com.liferay.portlet.calendar.model.CalEvent findByGroupId_Last(
158         long groupId,
159         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
160         throws com.liferay.portal.SystemException,
161             com.liferay.portlet.calendar.NoSuchEventException;
162 
163     public com.liferay.portlet.calendar.model.CalEvent[] findByGroupId_PrevAndNext(
164         long eventId, long groupId,
165         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
166         throws com.liferay.portal.SystemException,
167             com.liferay.portlet.calendar.NoSuchEventException;
168 
169     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByRemindBy(
170         int remindBy) throws com.liferay.portal.SystemException;
171 
172     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByRemindBy(
173         int remindBy, int start, int end)
174         throws com.liferay.portal.SystemException;
175 
176     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByRemindBy(
177         int remindBy, int start, int end,
178         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
179         throws com.liferay.portal.SystemException;
180 
181     public com.liferay.portlet.calendar.model.CalEvent findByRemindBy_First(
182         int remindBy,
183         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
184         throws com.liferay.portal.SystemException,
185             com.liferay.portlet.calendar.NoSuchEventException;
186 
187     public com.liferay.portlet.calendar.model.CalEvent findByRemindBy_Last(
188         int remindBy,
189         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
190         throws com.liferay.portal.SystemException,
191             com.liferay.portlet.calendar.NoSuchEventException;
192 
193     public com.liferay.portlet.calendar.model.CalEvent[] findByRemindBy_PrevAndNext(
194         long eventId, int remindBy,
195         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
196         throws com.liferay.portal.SystemException,
197             com.liferay.portlet.calendar.NoSuchEventException;
198 
199     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_T(
200         long groupId, java.lang.String type)
201         throws com.liferay.portal.SystemException;
202 
203     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_T(
204         long groupId, java.lang.String type, int start, int end)
205         throws com.liferay.portal.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         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
210         throws com.liferay.portal.SystemException;
211 
212     public com.liferay.portlet.calendar.model.CalEvent findByG_T_First(
213         long groupId, java.lang.String type,
214         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
215         throws com.liferay.portal.SystemException,
216             com.liferay.portlet.calendar.NoSuchEventException;
217 
218     public com.liferay.portlet.calendar.model.CalEvent findByG_T_Last(
219         long groupId, java.lang.String type,
220         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
221         throws com.liferay.portal.SystemException,
222             com.liferay.portlet.calendar.NoSuchEventException;
223 
224     public com.liferay.portlet.calendar.model.CalEvent[] findByG_T_PrevAndNext(
225         long eventId, long groupId, java.lang.String type,
226         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
227         throws com.liferay.portal.SystemException,
228             com.liferay.portlet.calendar.NoSuchEventException;
229 
230     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_R(
231         long groupId, boolean repeating)
232         throws com.liferay.portal.SystemException;
233 
234     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_R(
235         long groupId, boolean repeating, int start, int end)
236         throws com.liferay.portal.SystemException;
237 
238     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_R(
239         long groupId, boolean repeating, int start, int end,
240         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
241         throws com.liferay.portal.SystemException;
242 
243     public com.liferay.portlet.calendar.model.CalEvent findByG_R_First(
244         long groupId, boolean repeating,
245         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
246         throws com.liferay.portal.SystemException,
247             com.liferay.portlet.calendar.NoSuchEventException;
248 
249     public com.liferay.portlet.calendar.model.CalEvent findByG_R_Last(
250         long groupId, boolean repeating,
251         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
252         throws com.liferay.portal.SystemException,
253             com.liferay.portlet.calendar.NoSuchEventException;
254 
255     public com.liferay.portlet.calendar.model.CalEvent[] findByG_R_PrevAndNext(
256         long eventId, long groupId, boolean repeating,
257         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
258         throws com.liferay.portal.SystemException,
259             com.liferay.portlet.calendar.NoSuchEventException;
260 
261     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findAll()
262         throws com.liferay.portal.SystemException;
263 
264     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findAll(
265         int start, int end) throws com.liferay.portal.SystemException;
266 
267     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findAll(
268         int start, int end,
269         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
270         throws com.liferay.portal.SystemException;
271 
272     public void removeByUuid(java.lang.String uuid)
273         throws com.liferay.portal.SystemException;
274 
275     public void removeByUUID_G(java.lang.String uuid, long groupId)
276         throws com.liferay.portal.SystemException,
277             com.liferay.portlet.calendar.NoSuchEventException;
278 
279     public void removeByCompanyId(long companyId)
280         throws com.liferay.portal.SystemException;
281 
282     public void removeByGroupId(long groupId)
283         throws com.liferay.portal.SystemException;
284 
285     public void removeByRemindBy(int remindBy)
286         throws com.liferay.portal.SystemException;
287 
288     public void removeByG_T(long groupId, java.lang.String type)
289         throws com.liferay.portal.SystemException;
290 
291     public void removeByG_R(long groupId, boolean repeating)
292         throws com.liferay.portal.SystemException;
293 
294     public void removeAll() throws com.liferay.portal.SystemException;
295 
296     public int countByUuid(java.lang.String uuid)
297         throws com.liferay.portal.SystemException;
298 
299     public int countByUUID_G(java.lang.String uuid, long groupId)
300         throws com.liferay.portal.SystemException;
301 
302     public int countByCompanyId(long companyId)
303         throws com.liferay.portal.SystemException;
304 
305     public int countByGroupId(long groupId)
306         throws com.liferay.portal.SystemException;
307 
308     public int countByRemindBy(int remindBy)
309         throws com.liferay.portal.SystemException;
310 
311     public int countByG_T(long groupId, java.lang.String type)
312         throws com.liferay.portal.SystemException;
313 
314     public int countByG_R(long groupId, boolean repeating)
315         throws com.liferay.portal.SystemException;
316 
317     public int countAll() throws com.liferay.portal.SystemException;
318 }