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