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