1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions 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   * <a href="CalEventUtil.java.html"><b><i>View Source</i></b></a>
27   *
28   * @author Brian Wing Shun Chan
29   *
30   */
31  public class CalEventUtil {
32      public static com.liferay.portlet.calendar.model.CalEvent create(
33          long eventId) {
34          return getPersistence().create(eventId);
35      }
36  
37      public static com.liferay.portlet.calendar.model.CalEvent remove(
38          long eventId)
39          throws com.liferay.portal.SystemException, 
40              com.liferay.portlet.calendar.NoSuchEventException {
41          return getPersistence().remove(eventId);
42      }
43  
44      public static com.liferay.portlet.calendar.model.CalEvent remove(
45          com.liferay.portlet.calendar.model.CalEvent calEvent)
46          throws com.liferay.portal.SystemException {
47          return getPersistence().remove(calEvent);
48      }
49  
50      public static com.liferay.portlet.calendar.model.CalEvent update(
51          com.liferay.portlet.calendar.model.CalEvent calEvent)
52          throws com.liferay.portal.SystemException {
53          return getPersistence().update(calEvent);
54      }
55  
56      public static com.liferay.portlet.calendar.model.CalEvent update(
57          com.liferay.portlet.calendar.model.CalEvent calEvent, boolean merge)
58          throws com.liferay.portal.SystemException {
59          return getPersistence().update(calEvent, merge);
60      }
61  
62      public static com.liferay.portlet.calendar.model.CalEvent updateImpl(
63          com.liferay.portlet.calendar.model.CalEvent calEvent, boolean merge)
64          throws com.liferay.portal.SystemException {
65          return getPersistence().updateImpl(calEvent, merge);
66      }
67  
68      public static com.liferay.portlet.calendar.model.CalEvent findByPrimaryKey(
69          long eventId)
70          throws com.liferay.portal.SystemException, 
71              com.liferay.portlet.calendar.NoSuchEventException {
72          return getPersistence().findByPrimaryKey(eventId);
73      }
74  
75      public static com.liferay.portlet.calendar.model.CalEvent fetchByPrimaryKey(
76          long eventId) throws com.liferay.portal.SystemException {
77          return getPersistence().fetchByPrimaryKey(eventId);
78      }
79  
80      public static java.util.List findByUuid(java.lang.String uuid)
81          throws com.liferay.portal.SystemException {
82          return getPersistence().findByUuid(uuid);
83      }
84  
85      public static java.util.List findByUuid(java.lang.String uuid, int begin,
86          int end) throws com.liferay.portal.SystemException {
87          return getPersistence().findByUuid(uuid, begin, end);
88      }
89  
90      public static java.util.List findByUuid(java.lang.String uuid, int begin,
91          int end, com.liferay.portal.kernel.util.OrderByComparator obc)
92          throws com.liferay.portal.SystemException {
93          return getPersistence().findByUuid(uuid, begin, end, obc);
94      }
95  
96      public static com.liferay.portlet.calendar.model.CalEvent findByUuid_First(
97          java.lang.String uuid,
98          com.liferay.portal.kernel.util.OrderByComparator obc)
99          throws com.liferay.portal.SystemException, 
100             com.liferay.portlet.calendar.NoSuchEventException {
101         return getPersistence().findByUuid_First(uuid, obc);
102     }
103 
104     public static com.liferay.portlet.calendar.model.CalEvent findByUuid_Last(
105         java.lang.String uuid,
106         com.liferay.portal.kernel.util.OrderByComparator obc)
107         throws com.liferay.portal.SystemException, 
108             com.liferay.portlet.calendar.NoSuchEventException {
109         return getPersistence().findByUuid_Last(uuid, obc);
110     }
111 
112     public static com.liferay.portlet.calendar.model.CalEvent[] findByUuid_PrevAndNext(
113         long eventId, 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         return getPersistence().findByUuid_PrevAndNext(eventId, uuid, obc);
118     }
119 
120     public static com.liferay.portlet.calendar.model.CalEvent findByUUID_G(
121         java.lang.String uuid, long groupId)
122         throws com.liferay.portal.SystemException, 
123             com.liferay.portlet.calendar.NoSuchEventException {
124         return getPersistence().findByUUID_G(uuid, groupId);
125     }
126 
127     public static com.liferay.portlet.calendar.model.CalEvent fetchByUUID_G(
128         java.lang.String uuid, long groupId)
129         throws com.liferay.portal.SystemException {
130         return getPersistence().fetchByUUID_G(uuid, groupId);
131     }
132 
133     public static java.util.List findByGroupId(long groupId)
134         throws com.liferay.portal.SystemException {
135         return getPersistence().findByGroupId(groupId);
136     }
137 
138     public static java.util.List findByGroupId(long groupId, int begin, int end)
139         throws com.liferay.portal.SystemException {
140         return getPersistence().findByGroupId(groupId, begin, end);
141     }
142 
143     public static java.util.List findByGroupId(long groupId, int begin,
144         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
145         throws com.liferay.portal.SystemException {
146         return getPersistence().findByGroupId(groupId, begin, end, obc);
147     }
148 
149     public static 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         return getPersistence().findByGroupId_First(groupId, obc);
154     }
155 
156     public static com.liferay.portlet.calendar.model.CalEvent findByGroupId_Last(
157         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
158         throws com.liferay.portal.SystemException, 
159             com.liferay.portlet.calendar.NoSuchEventException {
160         return getPersistence().findByGroupId_Last(groupId, obc);
161     }
162 
163     public static com.liferay.portlet.calendar.model.CalEvent[] findByGroupId_PrevAndNext(
164         long eventId, long groupId,
165         com.liferay.portal.kernel.util.OrderByComparator obc)
166         throws com.liferay.portal.SystemException, 
167             com.liferay.portlet.calendar.NoSuchEventException {
168         return getPersistence().findByGroupId_PrevAndNext(eventId, groupId, obc);
169     }
170 
171     public static java.util.List findByG_T(long groupId, java.lang.String type)
172         throws com.liferay.portal.SystemException {
173         return getPersistence().findByG_T(groupId, type);
174     }
175 
176     public static java.util.List findByG_T(long groupId, java.lang.String type,
177         int begin, int end) throws com.liferay.portal.SystemException {
178         return getPersistence().findByG_T(groupId, type, begin, end);
179     }
180 
181     public static java.util.List findByG_T(long groupId, java.lang.String type,
182         int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
183         throws com.liferay.portal.SystemException {
184         return getPersistence().findByG_T(groupId, type, begin, end, obc);
185     }
186 
187     public static com.liferay.portlet.calendar.model.CalEvent findByG_T_First(
188         long groupId, java.lang.String type,
189         com.liferay.portal.kernel.util.OrderByComparator obc)
190         throws com.liferay.portal.SystemException, 
191             com.liferay.portlet.calendar.NoSuchEventException {
192         return getPersistence().findByG_T_First(groupId, type, obc);
193     }
194 
195     public static com.liferay.portlet.calendar.model.CalEvent findByG_T_Last(
196         long groupId, java.lang.String type,
197         com.liferay.portal.kernel.util.OrderByComparator obc)
198         throws com.liferay.portal.SystemException, 
199             com.liferay.portlet.calendar.NoSuchEventException {
200         return getPersistence().findByG_T_Last(groupId, type, obc);
201     }
202 
203     public static com.liferay.portlet.calendar.model.CalEvent[] findByG_T_PrevAndNext(
204         long eventId, long groupId, java.lang.String type,
205         com.liferay.portal.kernel.util.OrderByComparator obc)
206         throws com.liferay.portal.SystemException, 
207             com.liferay.portlet.calendar.NoSuchEventException {
208         return getPersistence().findByG_T_PrevAndNext(eventId, groupId, type,
209             obc);
210     }
211 
212     public static java.util.List findByG_R(long groupId, boolean repeating)
213         throws com.liferay.portal.SystemException {
214         return getPersistence().findByG_R(groupId, repeating);
215     }
216 
217     public static java.util.List findByG_R(long groupId, boolean repeating,
218         int begin, int end) throws com.liferay.portal.SystemException {
219         return getPersistence().findByG_R(groupId, repeating, begin, end);
220     }
221 
222     public static java.util.List findByG_R(long groupId, boolean repeating,
223         int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
224         throws com.liferay.portal.SystemException {
225         return getPersistence().findByG_R(groupId, repeating, begin, end, obc);
226     }
227 
228     public static com.liferay.portlet.calendar.model.CalEvent findByG_R_First(
229         long groupId, boolean repeating,
230         com.liferay.portal.kernel.util.OrderByComparator obc)
231         throws com.liferay.portal.SystemException, 
232             com.liferay.portlet.calendar.NoSuchEventException {
233         return getPersistence().findByG_R_First(groupId, repeating, obc);
234     }
235 
236     public static com.liferay.portlet.calendar.model.CalEvent findByG_R_Last(
237         long groupId, boolean repeating,
238         com.liferay.portal.kernel.util.OrderByComparator obc)
239         throws com.liferay.portal.SystemException, 
240             com.liferay.portlet.calendar.NoSuchEventException {
241         return getPersistence().findByG_R_Last(groupId, repeating, obc);
242     }
243 
244     public static com.liferay.portlet.calendar.model.CalEvent[] findByG_R_PrevAndNext(
245         long eventId, long groupId, boolean repeating,
246         com.liferay.portal.kernel.util.OrderByComparator obc)
247         throws com.liferay.portal.SystemException, 
248             com.liferay.portlet.calendar.NoSuchEventException {
249         return getPersistence().findByG_R_PrevAndNext(eventId, groupId,
250             repeating, obc);
251     }
252 
253     public static java.util.List findWithDynamicQuery(
254         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
255         throws com.liferay.portal.SystemException {
256         return getPersistence().findWithDynamicQuery(queryInitializer);
257     }
258 
259     public static java.util.List findWithDynamicQuery(
260         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
261         int begin, int end) throws com.liferay.portal.SystemException {
262         return getPersistence().findWithDynamicQuery(queryInitializer, begin,
263             end);
264     }
265 
266     public static java.util.List findAll()
267         throws com.liferay.portal.SystemException {
268         return getPersistence().findAll();
269     }
270 
271     public static java.util.List findAll(int begin, int end)
272         throws com.liferay.portal.SystemException {
273         return getPersistence().findAll(begin, end);
274     }
275 
276     public static java.util.List findAll(int begin, int end,
277         com.liferay.portal.kernel.util.OrderByComparator obc)
278         throws com.liferay.portal.SystemException {
279         return getPersistence().findAll(begin, end, obc);
280     }
281 
282     public static void removeByUuid(java.lang.String uuid)
283         throws com.liferay.portal.SystemException {
284         getPersistence().removeByUuid(uuid);
285     }
286 
287     public static void removeByUUID_G(java.lang.String uuid, long groupId)
288         throws com.liferay.portal.SystemException, 
289             com.liferay.portlet.calendar.NoSuchEventException {
290         getPersistence().removeByUUID_G(uuid, groupId);
291     }
292 
293     public static void removeByGroupId(long groupId)
294         throws com.liferay.portal.SystemException {
295         getPersistence().removeByGroupId(groupId);
296     }
297 
298     public static void removeByG_T(long groupId, java.lang.String type)
299         throws com.liferay.portal.SystemException {
300         getPersistence().removeByG_T(groupId, type);
301     }
302 
303     public static void removeByG_R(long groupId, boolean repeating)
304         throws com.liferay.portal.SystemException {
305         getPersistence().removeByG_R(groupId, repeating);
306     }
307 
308     public static void removeAll() throws com.liferay.portal.SystemException {
309         getPersistence().removeAll();
310     }
311 
312     public static int countByUuid(java.lang.String uuid)
313         throws com.liferay.portal.SystemException {
314         return getPersistence().countByUuid(uuid);
315     }
316 
317     public static int countByUUID_G(java.lang.String uuid, long groupId)
318         throws com.liferay.portal.SystemException {
319         return getPersistence().countByUUID_G(uuid, groupId);
320     }
321 
322     public static int countByGroupId(long groupId)
323         throws com.liferay.portal.SystemException {
324         return getPersistence().countByGroupId(groupId);
325     }
326 
327     public static int countByG_T(long groupId, java.lang.String type)
328         throws com.liferay.portal.SystemException {
329         return getPersistence().countByG_T(groupId, type);
330     }
331 
332     public static int countByG_R(long groupId, boolean repeating)
333         throws com.liferay.portal.SystemException {
334         return getPersistence().countByG_R(groupId, repeating);
335     }
336 
337     public static int countAll() throws com.liferay.portal.SystemException {
338         return getPersistence().countAll();
339     }
340 
341     public static CalEventPersistence getPersistence() {
342         return _getUtil()._persistence;
343     }
344 
345     public void setPersistence(CalEventPersistence persistence) {
346         _persistence = persistence;
347     }
348 
349     private static CalEventUtil _getUtil() {
350         if (_util == null) {
351             _util = (CalEventUtil)com.liferay.portal.kernel.bean.BeanLocatorUtil.locate(_UTIL);
352         }
353 
354         return _util;
355     }
356 
357     private static final String _UTIL = CalEventUtil.class.getName();
358     private static CalEventUtil _util;
359     private CalEventPersistence _persistence;
360 }