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