1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.calendar.service.persistence;
24  
25  import com.liferay.portal.service.persistence.BasePersistence;
26  
27  /**
28   * <a href="CalEventPersistence.java.html"><b><i>View Source</i></b></a>
29   *
30   * <p>
31   * ServiceBuilder generated this class. Modifications in this class will be
32   * overwritten the next time is generated.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       CalEventPersistenceImpl
37   * @see       CalEventUtil
38   * @generated
39   */
40  public interface CalEventPersistence extends BasePersistence {
41      public void cacheResult(
42          com.liferay.portlet.calendar.model.CalEvent calEvent);
43  
44      public void cacheResult(
45          java.util.List<com.liferay.portlet.calendar.model.CalEvent> calEvents);
46  
47      public void clearCache();
48  
49      public com.liferay.portlet.calendar.model.CalEvent create(long eventId);
50  
51      public com.liferay.portlet.calendar.model.CalEvent remove(long eventId)
52          throws com.liferay.portal.SystemException,
53              com.liferay.portlet.calendar.NoSuchEventException;
54  
55      public com.liferay.portlet.calendar.model.CalEvent remove(
56          com.liferay.portlet.calendar.model.CalEvent calEvent)
57          throws com.liferay.portal.SystemException;
58  
59      /**
60       * @deprecated Use {@link #update(CalEvent, boolean merge)}.
61       */
62      public com.liferay.portlet.calendar.model.CalEvent update(
63          com.liferay.portlet.calendar.model.CalEvent calEvent)
64          throws com.liferay.portal.SystemException;
65  
66      /**
67       * Add, update, or merge, the entity. This method also calls the model
68       * listeners to trigger the proper events associated with adding, deleting,
69       * or updating an entity.
70       *
71       * @param  calEvent the entity to add, update, or merge
72       * @param  merge boolean value for whether to merge the entity. The default
73       *         value is false. Setting merge to true is more expensive and
74       *         should only be true when calEvent is transient. See
75       *         LEP-5473 for a detailed discussion of this method.
76       * @return the entity that was added, updated, or merged
77       */
78      public com.liferay.portlet.calendar.model.CalEvent update(
79          com.liferay.portlet.calendar.model.CalEvent calEvent, boolean merge)
80          throws com.liferay.portal.SystemException;
81  
82      public com.liferay.portlet.calendar.model.CalEvent updateImpl(
83          com.liferay.portlet.calendar.model.CalEvent calEvent, boolean merge)
84          throws com.liferay.portal.SystemException;
85  
86      public com.liferay.portlet.calendar.model.CalEvent findByPrimaryKey(
87          long eventId)
88          throws com.liferay.portal.SystemException,
89              com.liferay.portlet.calendar.NoSuchEventException;
90  
91      public com.liferay.portlet.calendar.model.CalEvent fetchByPrimaryKey(
92          long eventId) throws com.liferay.portal.SystemException;
93  
94      public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByUuid(
95          java.lang.String uuid) throws com.liferay.portal.SystemException;
96  
97      public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByUuid(
98          java.lang.String uuid, int start, int end)
99          throws com.liferay.portal.SystemException;
100 
101     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByUuid(
102         java.lang.String uuid, int start, int end,
103         com.liferay.portal.kernel.util.OrderByComparator obc)
104         throws com.liferay.portal.SystemException;
105 
106     public com.liferay.portlet.calendar.model.CalEvent findByUuid_First(
107         java.lang.String uuid,
108         com.liferay.portal.kernel.util.OrderByComparator obc)
109         throws com.liferay.portal.SystemException,
110             com.liferay.portlet.calendar.NoSuchEventException;
111 
112     public com.liferay.portlet.calendar.model.CalEvent findByUuid_Last(
113         java.lang.String uuid,
114         com.liferay.portal.kernel.util.OrderByComparator obc)
115         throws com.liferay.portal.SystemException,
116             com.liferay.portlet.calendar.NoSuchEventException;
117 
118     public com.liferay.portlet.calendar.model.CalEvent[] findByUuid_PrevAndNext(
119         long eventId, java.lang.String uuid,
120         com.liferay.portal.kernel.util.OrderByComparator obc)
121         throws com.liferay.portal.SystemException,
122             com.liferay.portlet.calendar.NoSuchEventException;
123 
124     public com.liferay.portlet.calendar.model.CalEvent findByUUID_G(
125         java.lang.String uuid, long groupId)
126         throws com.liferay.portal.SystemException,
127             com.liferay.portlet.calendar.NoSuchEventException;
128 
129     public com.liferay.portlet.calendar.model.CalEvent fetchByUUID_G(
130         java.lang.String uuid, long groupId)
131         throws com.liferay.portal.SystemException;
132 
133     public com.liferay.portlet.calendar.model.CalEvent fetchByUUID_G(
134         java.lang.String uuid, long groupId, boolean retrieveFromCache)
135         throws com.liferay.portal.SystemException;
136 
137     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByGroupId(
138         long groupId) throws com.liferay.portal.SystemException;
139 
140     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByGroupId(
141         long groupId, int start, int end)
142         throws com.liferay.portal.SystemException;
143 
144     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByGroupId(
145         long groupId, 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 findByGroupId_First(
150         long groupId, 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 findByGroupId_Last(
155         long groupId, 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[] findByGroupId_PrevAndNext(
160         long eventId, long groupId,
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> findByRemindBy(
166         int remindBy) throws com.liferay.portal.SystemException;
167 
168     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByRemindBy(
169         int remindBy, int start, int end)
170         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         com.liferay.portal.kernel.util.OrderByComparator obc)
175         throws com.liferay.portal.SystemException;
176 
177     public com.liferay.portlet.calendar.model.CalEvent findByRemindBy_First(
178         int remindBy, com.liferay.portal.kernel.util.OrderByComparator obc)
179         throws com.liferay.portal.SystemException,
180             com.liferay.portlet.calendar.NoSuchEventException;
181 
182     public com.liferay.portlet.calendar.model.CalEvent findByRemindBy_Last(
183         int remindBy, com.liferay.portal.kernel.util.OrderByComparator obc)
184         throws com.liferay.portal.SystemException,
185             com.liferay.portlet.calendar.NoSuchEventException;
186 
187     public com.liferay.portlet.calendar.model.CalEvent[] findByRemindBy_PrevAndNext(
188         long eventId, int remindBy,
189         com.liferay.portal.kernel.util.OrderByComparator obc)
190         throws com.liferay.portal.SystemException,
191             com.liferay.portlet.calendar.NoSuchEventException;
192 
193     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_T(
194         long groupId, java.lang.String type)
195         throws com.liferay.portal.SystemException;
196 
197     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_T(
198         long groupId, java.lang.String type, int start, int end)
199         throws com.liferay.portal.SystemException;
200 
201     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_T(
202         long groupId, java.lang.String type, int start, int end,
203         com.liferay.portal.kernel.util.OrderByComparator obc)
204         throws com.liferay.portal.SystemException;
205 
206     public com.liferay.portlet.calendar.model.CalEvent findByG_T_First(
207         long groupId, java.lang.String type,
208         com.liferay.portal.kernel.util.OrderByComparator obc)
209         throws com.liferay.portal.SystemException,
210             com.liferay.portlet.calendar.NoSuchEventException;
211 
212     public com.liferay.portlet.calendar.model.CalEvent findByG_T_Last(
213         long groupId, java.lang.String type,
214         com.liferay.portal.kernel.util.OrderByComparator obc)
215         throws com.liferay.portal.SystemException,
216             com.liferay.portlet.calendar.NoSuchEventException;
217 
218     public com.liferay.portlet.calendar.model.CalEvent[] findByG_T_PrevAndNext(
219         long eventId, long groupId, java.lang.String type,
220         com.liferay.portal.kernel.util.OrderByComparator obc)
221         throws com.liferay.portal.SystemException,
222             com.liferay.portlet.calendar.NoSuchEventException;
223 
224     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_R(
225         long groupId, boolean repeating)
226         throws com.liferay.portal.SystemException;
227 
228     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_R(
229         long groupId, boolean repeating, int start, int end)
230         throws com.liferay.portal.SystemException;
231 
232     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_R(
233         long groupId, boolean repeating, int start, int end,
234         com.liferay.portal.kernel.util.OrderByComparator obc)
235         throws com.liferay.portal.SystemException;
236 
237     public com.liferay.portlet.calendar.model.CalEvent findByG_R_First(
238         long groupId, boolean repeating,
239         com.liferay.portal.kernel.util.OrderByComparator obc)
240         throws com.liferay.portal.SystemException,
241             com.liferay.portlet.calendar.NoSuchEventException;
242 
243     public com.liferay.portlet.calendar.model.CalEvent findByG_R_Last(
244         long groupId, boolean repeating,
245         com.liferay.portal.kernel.util.OrderByComparator obc)
246         throws com.liferay.portal.SystemException,
247             com.liferay.portlet.calendar.NoSuchEventException;
248 
249     public com.liferay.portlet.calendar.model.CalEvent[] findByG_R_PrevAndNext(
250         long eventId, long groupId, boolean repeating,
251         com.liferay.portal.kernel.util.OrderByComparator obc)
252         throws com.liferay.portal.SystemException,
253             com.liferay.portlet.calendar.NoSuchEventException;
254 
255     public java.util.List<Object> findWithDynamicQuery(
256         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
257         throws com.liferay.portal.SystemException;
258 
259     public java.util.List<Object> findWithDynamicQuery(
260         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
261         int end) throws com.liferay.portal.SystemException;
262 
263     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findAll()
264         throws com.liferay.portal.SystemException;
265 
266     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findAll(
267         int start, int end) throws com.liferay.portal.SystemException;
268 
269     public java.util.List<com.liferay.portlet.calendar.model.CalEvent> findAll(
270         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
271         throws com.liferay.portal.SystemException;
272 
273     public void removeByUuid(java.lang.String uuid)
274         throws com.liferay.portal.SystemException;
275 
276     public void removeByUUID_G(java.lang.String uuid, long groupId)
277         throws com.liferay.portal.SystemException,
278             com.liferay.portlet.calendar.NoSuchEventException;
279 
280     public void removeByGroupId(long groupId)
281         throws com.liferay.portal.SystemException;
282 
283     public void removeByRemindBy(int remindBy)
284         throws com.liferay.portal.SystemException;
285 
286     public void removeByG_T(long groupId, java.lang.String type)
287         throws com.liferay.portal.SystemException;
288 
289     public void removeByG_R(long groupId, boolean repeating)
290         throws com.liferay.portal.SystemException;
291 
292     public void removeAll() throws com.liferay.portal.SystemException;
293 
294     public int countByUuid(java.lang.String uuid)
295         throws com.liferay.portal.SystemException;
296 
297     public int countByUUID_G(java.lang.String uuid, long groupId)
298         throws com.liferay.portal.SystemException;
299 
300     public int countByGroupId(long groupId)
301         throws com.liferay.portal.SystemException;
302 
303     public int countByRemindBy(int remindBy)
304         throws com.liferay.portal.SystemException;
305 
306     public int countByG_T(long groupId, java.lang.String type)
307         throws com.liferay.portal.SystemException;
308 
309     public int countByG_R(long groupId, boolean repeating)
310         throws com.liferay.portal.SystemException;
311 
312     public int countAll() throws com.liferay.portal.SystemException;
313 }