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