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> findByCompanyId(
179         long companyId) throws com.liferay.portal.SystemException {
180         return getPersistence().findByCompanyId(companyId);
181     }
182 
183     public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByCompanyId(
184         long companyId, int start, int end)
185         throws com.liferay.portal.SystemException {
186         return getPersistence().findByCompanyId(companyId, start, end);
187     }
188 
189     public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByCompanyId(
190         long companyId, int start, int end,
191         com.liferay.portal.kernel.util.OrderByComparator obc)
192         throws com.liferay.portal.SystemException {
193         return getPersistence().findByCompanyId(companyId, start, end, obc);
194     }
195 
196     public static com.liferay.portlet.calendar.model.CalEvent findByCompanyId_First(
197         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
198         throws com.liferay.portal.SystemException,
199             com.liferay.portlet.calendar.NoSuchEventException {
200         return getPersistence().findByCompanyId_First(companyId, obc);
201     }
202 
203     public static com.liferay.portlet.calendar.model.CalEvent findByCompanyId_Last(
204         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
205         throws com.liferay.portal.SystemException,
206             com.liferay.portlet.calendar.NoSuchEventException {
207         return getPersistence().findByCompanyId_Last(companyId, obc);
208     }
209 
210     public static com.liferay.portlet.calendar.model.CalEvent[] findByCompanyId_PrevAndNext(
211         long eventId, long companyId,
212         com.liferay.portal.kernel.util.OrderByComparator obc)
213         throws com.liferay.portal.SystemException,
214             com.liferay.portlet.calendar.NoSuchEventException {
215         return getPersistence()
216                    .findByCompanyId_PrevAndNext(eventId, companyId, obc);
217     }
218 
219     public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByGroupId(
220         long groupId) throws com.liferay.portal.SystemException {
221         return getPersistence().findByGroupId(groupId);
222     }
223 
224     public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByGroupId(
225         long groupId, int start, int end)
226         throws com.liferay.portal.SystemException {
227         return getPersistence().findByGroupId(groupId, start, end);
228     }
229 
230     public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByGroupId(
231         long groupId, int start, int end,
232         com.liferay.portal.kernel.util.OrderByComparator obc)
233         throws com.liferay.portal.SystemException {
234         return getPersistence().findByGroupId(groupId, start, end, obc);
235     }
236 
237     public static com.liferay.portlet.calendar.model.CalEvent findByGroupId_First(
238         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
239         throws com.liferay.portal.SystemException,
240             com.liferay.portlet.calendar.NoSuchEventException {
241         return getPersistence().findByGroupId_First(groupId, obc);
242     }
243 
244     public static com.liferay.portlet.calendar.model.CalEvent findByGroupId_Last(
245         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
246         throws com.liferay.portal.SystemException,
247             com.liferay.portlet.calendar.NoSuchEventException {
248         return getPersistence().findByGroupId_Last(groupId, obc);
249     }
250 
251     public static com.liferay.portlet.calendar.model.CalEvent[] findByGroupId_PrevAndNext(
252         long eventId, long groupId,
253         com.liferay.portal.kernel.util.OrderByComparator obc)
254         throws com.liferay.portal.SystemException,
255             com.liferay.portlet.calendar.NoSuchEventException {
256         return getPersistence().findByGroupId_PrevAndNext(eventId, groupId, obc);
257     }
258 
259     public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByRemindBy(
260         int remindBy) throws com.liferay.portal.SystemException {
261         return getPersistence().findByRemindBy(remindBy);
262     }
263 
264     public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByRemindBy(
265         int remindBy, int start, int end)
266         throws com.liferay.portal.SystemException {
267         return getPersistence().findByRemindBy(remindBy, start, end);
268     }
269 
270     public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByRemindBy(
271         int remindBy, int start, int end,
272         com.liferay.portal.kernel.util.OrderByComparator obc)
273         throws com.liferay.portal.SystemException {
274         return getPersistence().findByRemindBy(remindBy, start, end, obc);
275     }
276 
277     public static com.liferay.portlet.calendar.model.CalEvent findByRemindBy_First(
278         int remindBy, com.liferay.portal.kernel.util.OrderByComparator obc)
279         throws com.liferay.portal.SystemException,
280             com.liferay.portlet.calendar.NoSuchEventException {
281         return getPersistence().findByRemindBy_First(remindBy, obc);
282     }
283 
284     public static com.liferay.portlet.calendar.model.CalEvent findByRemindBy_Last(
285         int remindBy, com.liferay.portal.kernel.util.OrderByComparator obc)
286         throws com.liferay.portal.SystemException,
287             com.liferay.portlet.calendar.NoSuchEventException {
288         return getPersistence().findByRemindBy_Last(remindBy, obc);
289     }
290 
291     public static com.liferay.portlet.calendar.model.CalEvent[] findByRemindBy_PrevAndNext(
292         long eventId, int remindBy,
293         com.liferay.portal.kernel.util.OrderByComparator obc)
294         throws com.liferay.portal.SystemException,
295             com.liferay.portlet.calendar.NoSuchEventException {
296         return getPersistence()
297                    .findByRemindBy_PrevAndNext(eventId, remindBy, obc);
298     }
299 
300     public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_T(
301         long groupId, java.lang.String type)
302         throws com.liferay.portal.SystemException {
303         return getPersistence().findByG_T(groupId, type);
304     }
305 
306     public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_T(
307         long groupId, java.lang.String type, int start, int end)
308         throws com.liferay.portal.SystemException {
309         return getPersistence().findByG_T(groupId, type, start, end);
310     }
311 
312     public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_T(
313         long groupId, java.lang.String type, int start, int end,
314         com.liferay.portal.kernel.util.OrderByComparator obc)
315         throws com.liferay.portal.SystemException {
316         return getPersistence().findByG_T(groupId, type, start, end, obc);
317     }
318 
319     public static com.liferay.portlet.calendar.model.CalEvent findByG_T_First(
320         long groupId, java.lang.String type,
321         com.liferay.portal.kernel.util.OrderByComparator obc)
322         throws com.liferay.portal.SystemException,
323             com.liferay.portlet.calendar.NoSuchEventException {
324         return getPersistence().findByG_T_First(groupId, type, obc);
325     }
326 
327     public static com.liferay.portlet.calendar.model.CalEvent findByG_T_Last(
328         long groupId, java.lang.String type,
329         com.liferay.portal.kernel.util.OrderByComparator obc)
330         throws com.liferay.portal.SystemException,
331             com.liferay.portlet.calendar.NoSuchEventException {
332         return getPersistence().findByG_T_Last(groupId, type, obc);
333     }
334 
335     public static com.liferay.portlet.calendar.model.CalEvent[] findByG_T_PrevAndNext(
336         long eventId, long groupId, java.lang.String type,
337         com.liferay.portal.kernel.util.OrderByComparator obc)
338         throws com.liferay.portal.SystemException,
339             com.liferay.portlet.calendar.NoSuchEventException {
340         return getPersistence()
341                    .findByG_T_PrevAndNext(eventId, groupId, type, obc);
342     }
343 
344     public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_R(
345         long groupId, boolean repeating)
346         throws com.liferay.portal.SystemException {
347         return getPersistence().findByG_R(groupId, repeating);
348     }
349 
350     public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_R(
351         long groupId, boolean repeating, int start, int end)
352         throws com.liferay.portal.SystemException {
353         return getPersistence().findByG_R(groupId, repeating, start, end);
354     }
355 
356     public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_R(
357         long groupId, boolean repeating, int start, int end,
358         com.liferay.portal.kernel.util.OrderByComparator obc)
359         throws com.liferay.portal.SystemException {
360         return getPersistence().findByG_R(groupId, repeating, start, end, obc);
361     }
362 
363     public static com.liferay.portlet.calendar.model.CalEvent findByG_R_First(
364         long groupId, boolean repeating,
365         com.liferay.portal.kernel.util.OrderByComparator obc)
366         throws com.liferay.portal.SystemException,
367             com.liferay.portlet.calendar.NoSuchEventException {
368         return getPersistence().findByG_R_First(groupId, repeating, obc);
369     }
370 
371     public static com.liferay.portlet.calendar.model.CalEvent findByG_R_Last(
372         long groupId, boolean repeating,
373         com.liferay.portal.kernel.util.OrderByComparator obc)
374         throws com.liferay.portal.SystemException,
375             com.liferay.portlet.calendar.NoSuchEventException {
376         return getPersistence().findByG_R_Last(groupId, repeating, obc);
377     }
378 
379     public static com.liferay.portlet.calendar.model.CalEvent[] findByG_R_PrevAndNext(
380         long eventId, long groupId, boolean repeating,
381         com.liferay.portal.kernel.util.OrderByComparator obc)
382         throws com.liferay.portal.SystemException,
383             com.liferay.portlet.calendar.NoSuchEventException {
384         return getPersistence()
385                    .findByG_R_PrevAndNext(eventId, groupId, repeating, obc);
386     }
387 
388     public static java.util.List<Object> findWithDynamicQuery(
389         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
390         throws com.liferay.portal.SystemException {
391         return getPersistence().findWithDynamicQuery(dynamicQuery);
392     }
393 
394     public static java.util.List<Object> findWithDynamicQuery(
395         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
396         int end) throws com.liferay.portal.SystemException {
397         return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
398     }
399 
400     public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findAll()
401         throws com.liferay.portal.SystemException {
402         return getPersistence().findAll();
403     }
404 
405     public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findAll(
406         int start, int end) throws com.liferay.portal.SystemException {
407         return getPersistence().findAll(start, end);
408     }
409 
410     public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findAll(
411         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
412         throws com.liferay.portal.SystemException {
413         return getPersistence().findAll(start, end, obc);
414     }
415 
416     public static void removeByUuid(java.lang.String uuid)
417         throws com.liferay.portal.SystemException {
418         getPersistence().removeByUuid(uuid);
419     }
420 
421     public static void removeByUUID_G(java.lang.String uuid, long groupId)
422         throws com.liferay.portal.SystemException,
423             com.liferay.portlet.calendar.NoSuchEventException {
424         getPersistence().removeByUUID_G(uuid, groupId);
425     }
426 
427     public static void removeByCompanyId(long companyId)
428         throws com.liferay.portal.SystemException {
429         getPersistence().removeByCompanyId(companyId);
430     }
431 
432     public static void removeByGroupId(long groupId)
433         throws com.liferay.portal.SystemException {
434         getPersistence().removeByGroupId(groupId);
435     }
436 
437     public static void removeByRemindBy(int remindBy)
438         throws com.liferay.portal.SystemException {
439         getPersistence().removeByRemindBy(remindBy);
440     }
441 
442     public static void removeByG_T(long groupId, java.lang.String type)
443         throws com.liferay.portal.SystemException {
444         getPersistence().removeByG_T(groupId, type);
445     }
446 
447     public static void removeByG_R(long groupId, boolean repeating)
448         throws com.liferay.portal.SystemException {
449         getPersistence().removeByG_R(groupId, repeating);
450     }
451 
452     public static void removeAll() throws com.liferay.portal.SystemException {
453         getPersistence().removeAll();
454     }
455 
456     public static int countByUuid(java.lang.String uuid)
457         throws com.liferay.portal.SystemException {
458         return getPersistence().countByUuid(uuid);
459     }
460 
461     public static int countByUUID_G(java.lang.String uuid, long groupId)
462         throws com.liferay.portal.SystemException {
463         return getPersistence().countByUUID_G(uuid, groupId);
464     }
465 
466     public static int countByCompanyId(long companyId)
467         throws com.liferay.portal.SystemException {
468         return getPersistence().countByCompanyId(companyId);
469     }
470 
471     public static int countByGroupId(long groupId)
472         throws com.liferay.portal.SystemException {
473         return getPersistence().countByGroupId(groupId);
474     }
475 
476     public static int countByRemindBy(int remindBy)
477         throws com.liferay.portal.SystemException {
478         return getPersistence().countByRemindBy(remindBy);
479     }
480 
481     public static int countByG_T(long groupId, java.lang.String type)
482         throws com.liferay.portal.SystemException {
483         return getPersistence().countByG_T(groupId, type);
484     }
485 
486     public static int countByG_R(long groupId, boolean repeating)
487         throws com.liferay.portal.SystemException {
488         return getPersistence().countByG_R(groupId, repeating);
489     }
490 
491     public static int countAll() throws com.liferay.portal.SystemException {
492         return getPersistence().countAll();
493     }
494 
495     public static CalEventPersistence getPersistence() {
496         return _persistence;
497     }
498 
499     public void setPersistence(CalEventPersistence persistence) {
500         _persistence = persistence;
501     }
502 
503     private static CalEventPersistence _persistence;
504 }