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  
26  /**
27   * <a href="CalEventUtil.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * @author    Brian Wing Shun Chan
35   * @see       CalEventPersistence
36   * @see       CalEventPersistenceImpl
37   * @generated
38   */
39  public class CalEventUtil {
40      public static void cacheResult(
41          com.liferay.portlet.calendar.model.CalEvent calEvent) {
42          getPersistence().cacheResult(calEvent);
43      }
44  
45      public static void cacheResult(
46          java.util.List<com.liferay.portlet.calendar.model.CalEvent> calEvents) {
47          getPersistence().cacheResult(calEvents);
48      }
49  
50      public static void clearCache() {
51          getPersistence().clearCache();
52      }
53  
54      public static com.liferay.portlet.calendar.model.CalEvent create(
55          long eventId) {
56          return getPersistence().create(eventId);
57      }
58  
59      public static com.liferay.portlet.calendar.model.CalEvent remove(
60          long eventId)
61          throws com.liferay.portal.SystemException,
62              com.liferay.portlet.calendar.NoSuchEventException {
63          return getPersistence().remove(eventId);
64      }
65  
66      public static com.liferay.portlet.calendar.model.CalEvent remove(
67          com.liferay.portlet.calendar.model.CalEvent calEvent)
68          throws com.liferay.portal.SystemException {
69          return getPersistence().remove(calEvent);
70      }
71  
72      /**
73       * @deprecated Use {@link #update(CalEvent, boolean merge)}.
74       */
75      public static com.liferay.portlet.calendar.model.CalEvent update(
76          com.liferay.portlet.calendar.model.CalEvent calEvent)
77          throws com.liferay.portal.SystemException {
78          return getPersistence().update(calEvent);
79      }
80  
81      /**
82       * Add, update, or merge, the entity. This method also calls the model
83       * listeners to trigger the proper events associated with adding, deleting,
84       * or updating an entity.
85       *
86       * @param  calEvent the entity to add, update, or merge
87       * @param  merge boolean value for whether to merge the entity. The default
88       *         value is false. Setting merge to true is more expensive and
89       *         should only be true when calEvent is transient. See
90       *         LEP-5473 for a detailed discussion of this method.
91       * @return the entity that was added, updated, or merged
92       */
93      public static com.liferay.portlet.calendar.model.CalEvent update(
94          com.liferay.portlet.calendar.model.CalEvent calEvent, boolean merge)
95          throws com.liferay.portal.SystemException {
96          return getPersistence().update(calEvent, merge);
97      }
98  
99      public static com.liferay.portlet.calendar.model.CalEvent updateImpl(
100         com.liferay.portlet.calendar.model.CalEvent calEvent, boolean merge)
101         throws com.liferay.portal.SystemException {
102         return getPersistence().updateImpl(calEvent, merge);
103     }
104 
105     public static com.liferay.portlet.calendar.model.CalEvent findByPrimaryKey(
106         long eventId)
107         throws com.liferay.portal.SystemException,
108             com.liferay.portlet.calendar.NoSuchEventException {
109         return getPersistence().findByPrimaryKey(eventId);
110     }
111 
112     public static com.liferay.portlet.calendar.model.CalEvent fetchByPrimaryKey(
113         long eventId) throws com.liferay.portal.SystemException {
114         return getPersistence().fetchByPrimaryKey(eventId);
115     }
116 
117     public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByUuid(
118         java.lang.String uuid) throws com.liferay.portal.SystemException {
119         return getPersistence().findByUuid(uuid);
120     }
121 
122     public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByUuid(
123         java.lang.String uuid, int start, int end)
124         throws com.liferay.portal.SystemException {
125         return getPersistence().findByUuid(uuid, start, end);
126     }
127 
128     public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByUuid(
129         java.lang.String uuid, int start, int end,
130         com.liferay.portal.kernel.util.OrderByComparator obc)
131         throws com.liferay.portal.SystemException {
132         return getPersistence().findByUuid(uuid, start, end, obc);
133     }
134 
135     public static com.liferay.portlet.calendar.model.CalEvent findByUuid_First(
136         java.lang.String uuid,
137         com.liferay.portal.kernel.util.OrderByComparator obc)
138         throws com.liferay.portal.SystemException,
139             com.liferay.portlet.calendar.NoSuchEventException {
140         return getPersistence().findByUuid_First(uuid, obc);
141     }
142 
143     public static com.liferay.portlet.calendar.model.CalEvent findByUuid_Last(
144         java.lang.String uuid,
145         com.liferay.portal.kernel.util.OrderByComparator obc)
146         throws com.liferay.portal.SystemException,
147             com.liferay.portlet.calendar.NoSuchEventException {
148         return getPersistence().findByUuid_Last(uuid, obc);
149     }
150 
151     public static com.liferay.portlet.calendar.model.CalEvent[] findByUuid_PrevAndNext(
152         long eventId, java.lang.String uuid,
153         com.liferay.portal.kernel.util.OrderByComparator obc)
154         throws com.liferay.portal.SystemException,
155             com.liferay.portlet.calendar.NoSuchEventException {
156         return getPersistence().findByUuid_PrevAndNext(eventId, uuid, obc);
157     }
158 
159     public static com.liferay.portlet.calendar.model.CalEvent findByUUID_G(
160         java.lang.String uuid, long groupId)
161         throws com.liferay.portal.SystemException,
162             com.liferay.portlet.calendar.NoSuchEventException {
163         return getPersistence().findByUUID_G(uuid, groupId);
164     }
165 
166     public static com.liferay.portlet.calendar.model.CalEvent fetchByUUID_G(
167         java.lang.String uuid, long groupId)
168         throws com.liferay.portal.SystemException {
169         return getPersistence().fetchByUUID_G(uuid, groupId);
170     }
171 
172     public static com.liferay.portlet.calendar.model.CalEvent fetchByUUID_G(
173         java.lang.String uuid, long groupId, boolean retrieveFromCache)
174         throws com.liferay.portal.SystemException {
175         return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
176     }
177 
178     public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByGroupId(
179         long groupId) throws com.liferay.portal.SystemException {
180         return getPersistence().findByGroupId(groupId);
181     }
182 
183     public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByGroupId(
184         long groupId, int start, int end)
185         throws com.liferay.portal.SystemException {
186         return getPersistence().findByGroupId(groupId, start, end);
187     }
188 
189     public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByGroupId(
190         long groupId, int start, int end,
191         com.liferay.portal.kernel.util.OrderByComparator obc)
192         throws com.liferay.portal.SystemException {
193         return getPersistence().findByGroupId(groupId, start, end, obc);
194     }
195 
196     public static com.liferay.portlet.calendar.model.CalEvent findByGroupId_First(
197         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
198         throws com.liferay.portal.SystemException,
199             com.liferay.portlet.calendar.NoSuchEventException {
200         return getPersistence().findByGroupId_First(groupId, obc);
201     }
202 
203     public static com.liferay.portlet.calendar.model.CalEvent findByGroupId_Last(
204         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
205         throws com.liferay.portal.SystemException,
206             com.liferay.portlet.calendar.NoSuchEventException {
207         return getPersistence().findByGroupId_Last(groupId, obc);
208     }
209 
210     public static com.liferay.portlet.calendar.model.CalEvent[] findByGroupId_PrevAndNext(
211         long eventId, long groupId,
212         com.liferay.portal.kernel.util.OrderByComparator obc)
213         throws com.liferay.portal.SystemException,
214             com.liferay.portlet.calendar.NoSuchEventException {
215         return getPersistence().findByGroupId_PrevAndNext(eventId, groupId, obc);
216     }
217 
218     public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByRemindBy(
219         int remindBy) throws com.liferay.portal.SystemException {
220         return getPersistence().findByRemindBy(remindBy);
221     }
222 
223     public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByRemindBy(
224         int remindBy, int start, int end)
225         throws com.liferay.portal.SystemException {
226         return getPersistence().findByRemindBy(remindBy, start, end);
227     }
228 
229     public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByRemindBy(
230         int remindBy, int start, int end,
231         com.liferay.portal.kernel.util.OrderByComparator obc)
232         throws com.liferay.portal.SystemException {
233         return getPersistence().findByRemindBy(remindBy, start, end, obc);
234     }
235 
236     public static com.liferay.portlet.calendar.model.CalEvent findByRemindBy_First(
237         int remindBy, com.liferay.portal.kernel.util.OrderByComparator obc)
238         throws com.liferay.portal.SystemException,
239             com.liferay.portlet.calendar.NoSuchEventException {
240         return getPersistence().findByRemindBy_First(remindBy, obc);
241     }
242 
243     public static com.liferay.portlet.calendar.model.CalEvent findByRemindBy_Last(
244         int remindBy, com.liferay.portal.kernel.util.OrderByComparator obc)
245         throws com.liferay.portal.SystemException,
246             com.liferay.portlet.calendar.NoSuchEventException {
247         return getPersistence().findByRemindBy_Last(remindBy, obc);
248     }
249 
250     public static com.liferay.portlet.calendar.model.CalEvent[] findByRemindBy_PrevAndNext(
251         long eventId, int remindBy,
252         com.liferay.portal.kernel.util.OrderByComparator obc)
253         throws com.liferay.portal.SystemException,
254             com.liferay.portlet.calendar.NoSuchEventException {
255         return getPersistence()
256                    .findByRemindBy_PrevAndNext(eventId, remindBy, obc);
257     }
258 
259     public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_T(
260         long groupId, java.lang.String type)
261         throws com.liferay.portal.SystemException {
262         return getPersistence().findByG_T(groupId, type);
263     }
264 
265     public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_T(
266         long groupId, java.lang.String type, int start, int end)
267         throws com.liferay.portal.SystemException {
268         return getPersistence().findByG_T(groupId, type, start, end);
269     }
270 
271     public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_T(
272         long groupId, java.lang.String type, int start, int end,
273         com.liferay.portal.kernel.util.OrderByComparator obc)
274         throws com.liferay.portal.SystemException {
275         return getPersistence().findByG_T(groupId, type, start, end, obc);
276     }
277 
278     public static com.liferay.portlet.calendar.model.CalEvent findByG_T_First(
279         long groupId, java.lang.String type,
280         com.liferay.portal.kernel.util.OrderByComparator obc)
281         throws com.liferay.portal.SystemException,
282             com.liferay.portlet.calendar.NoSuchEventException {
283         return getPersistence().findByG_T_First(groupId, type, obc);
284     }
285 
286     public static com.liferay.portlet.calendar.model.CalEvent findByG_T_Last(
287         long groupId, java.lang.String type,
288         com.liferay.portal.kernel.util.OrderByComparator obc)
289         throws com.liferay.portal.SystemException,
290             com.liferay.portlet.calendar.NoSuchEventException {
291         return getPersistence().findByG_T_Last(groupId, type, obc);
292     }
293 
294     public static com.liferay.portlet.calendar.model.CalEvent[] findByG_T_PrevAndNext(
295         long eventId, long groupId, java.lang.String type,
296         com.liferay.portal.kernel.util.OrderByComparator obc)
297         throws com.liferay.portal.SystemException,
298             com.liferay.portlet.calendar.NoSuchEventException {
299         return getPersistence()
300                    .findByG_T_PrevAndNext(eventId, groupId, type, obc);
301     }
302 
303     public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_R(
304         long groupId, boolean repeating)
305         throws com.liferay.portal.SystemException {
306         return getPersistence().findByG_R(groupId, repeating);
307     }
308 
309     public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_R(
310         long groupId, boolean repeating, int start, int end)
311         throws com.liferay.portal.SystemException {
312         return getPersistence().findByG_R(groupId, repeating, start, end);
313     }
314 
315     public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_R(
316         long groupId, boolean repeating, int start, int end,
317         com.liferay.portal.kernel.util.OrderByComparator obc)
318         throws com.liferay.portal.SystemException {
319         return getPersistence().findByG_R(groupId, repeating, start, end, obc);
320     }
321 
322     public static com.liferay.portlet.calendar.model.CalEvent findByG_R_First(
323         long groupId, boolean repeating,
324         com.liferay.portal.kernel.util.OrderByComparator obc)
325         throws com.liferay.portal.SystemException,
326             com.liferay.portlet.calendar.NoSuchEventException {
327         return getPersistence().findByG_R_First(groupId, repeating, obc);
328     }
329 
330     public static com.liferay.portlet.calendar.model.CalEvent findByG_R_Last(
331         long groupId, boolean repeating,
332         com.liferay.portal.kernel.util.OrderByComparator obc)
333         throws com.liferay.portal.SystemException,
334             com.liferay.portlet.calendar.NoSuchEventException {
335         return getPersistence().findByG_R_Last(groupId, repeating, obc);
336     }
337 
338     public static com.liferay.portlet.calendar.model.CalEvent[] findByG_R_PrevAndNext(
339         long eventId, long groupId, boolean repeating,
340         com.liferay.portal.kernel.util.OrderByComparator obc)
341         throws com.liferay.portal.SystemException,
342             com.liferay.portlet.calendar.NoSuchEventException {
343         return getPersistence()
344                    .findByG_R_PrevAndNext(eventId, groupId, repeating, obc);
345     }
346 
347     public static java.util.List<Object> findWithDynamicQuery(
348         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
349         throws com.liferay.portal.SystemException {
350         return getPersistence().findWithDynamicQuery(dynamicQuery);
351     }
352 
353     public static java.util.List<Object> findWithDynamicQuery(
354         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
355         int end) throws com.liferay.portal.SystemException {
356         return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
357     }
358 
359     public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findAll()
360         throws com.liferay.portal.SystemException {
361         return getPersistence().findAll();
362     }
363 
364     public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findAll(
365         int start, int end) throws com.liferay.portal.SystemException {
366         return getPersistence().findAll(start, end);
367     }
368 
369     public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findAll(
370         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
371         throws com.liferay.portal.SystemException {
372         return getPersistence().findAll(start, end, obc);
373     }
374 
375     public static void removeByUuid(java.lang.String uuid)
376         throws com.liferay.portal.SystemException {
377         getPersistence().removeByUuid(uuid);
378     }
379 
380     public static void removeByUUID_G(java.lang.String uuid, long groupId)
381         throws com.liferay.portal.SystemException,
382             com.liferay.portlet.calendar.NoSuchEventException {
383         getPersistence().removeByUUID_G(uuid, groupId);
384     }
385 
386     public static void removeByGroupId(long groupId)
387         throws com.liferay.portal.SystemException {
388         getPersistence().removeByGroupId(groupId);
389     }
390 
391     public static void removeByRemindBy(int remindBy)
392         throws com.liferay.portal.SystemException {
393         getPersistence().removeByRemindBy(remindBy);
394     }
395 
396     public static void removeByG_T(long groupId, java.lang.String type)
397         throws com.liferay.portal.SystemException {
398         getPersistence().removeByG_T(groupId, type);
399     }
400 
401     public static void removeByG_R(long groupId, boolean repeating)
402         throws com.liferay.portal.SystemException {
403         getPersistence().removeByG_R(groupId, repeating);
404     }
405 
406     public static void removeAll() throws com.liferay.portal.SystemException {
407         getPersistence().removeAll();
408     }
409 
410     public static int countByUuid(java.lang.String uuid)
411         throws com.liferay.portal.SystemException {
412         return getPersistence().countByUuid(uuid);
413     }
414 
415     public static int countByUUID_G(java.lang.String uuid, long groupId)
416         throws com.liferay.portal.SystemException {
417         return getPersistence().countByUUID_G(uuid, groupId);
418     }
419 
420     public static int countByGroupId(long groupId)
421         throws com.liferay.portal.SystemException {
422         return getPersistence().countByGroupId(groupId);
423     }
424 
425     public static int countByRemindBy(int remindBy)
426         throws com.liferay.portal.SystemException {
427         return getPersistence().countByRemindBy(remindBy);
428     }
429 
430     public static int countByG_T(long groupId, java.lang.String type)
431         throws com.liferay.portal.SystemException {
432         return getPersistence().countByG_T(groupId, type);
433     }
434 
435     public static int countByG_R(long groupId, boolean repeating)
436         throws com.liferay.portal.SystemException {
437         return getPersistence().countByG_R(groupId, repeating);
438     }
439 
440     public static int countAll() throws com.liferay.portal.SystemException {
441         return getPersistence().countAll();
442     }
443 
444     public static CalEventPersistence getPersistence() {
445         return _persistence;
446     }
447 
448     public void setPersistence(CalEventPersistence persistence) {
449         _persistence = persistence;
450     }
451 
452     private static CalEventPersistence _persistence;
453 }