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