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 obc)
133 throws com.liferay.portal.kernel.exception.SystemException {
134 return getPersistence().findByUuid(uuid, start, end, obc);
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 obc)
140 throws com.liferay.portal.kernel.exception.SystemException,
141 com.liferay.portlet.calendar.NoSuchEventException {
142 return getPersistence().findByUuid_First(uuid, obc);
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 obc)
148 throws com.liferay.portal.kernel.exception.SystemException,
149 com.liferay.portlet.calendar.NoSuchEventException {
150 return getPersistence().findByUuid_Last(uuid, obc);
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 obc)
156 throws com.liferay.portal.kernel.exception.SystemException,
157 com.liferay.portlet.calendar.NoSuchEventException {
158 return getPersistence().findByUuid_PrevAndNext(eventId, uuid, obc);
159 }
160
161 public static com.liferay.portlet.calendar.model.CalEvent findByUUID_G(
162 java.lang.String uuid, long groupId)
163 throws com.liferay.portal.kernel.exception.SystemException,
164 com.liferay.portlet.calendar.NoSuchEventException {
165 return getPersistence().findByUUID_G(uuid, groupId);
166 }
167
168 public static com.liferay.portlet.calendar.model.CalEvent fetchByUUID_G(
169 java.lang.String uuid, long groupId)
170 throws com.liferay.portal.kernel.exception.SystemException {
171 return getPersistence().fetchByUUID_G(uuid, groupId);
172 }
173
174 public static com.liferay.portlet.calendar.model.CalEvent fetchByUUID_G(
175 java.lang.String uuid, long groupId, boolean retrieveFromCache)
176 throws com.liferay.portal.kernel.exception.SystemException {
177 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
178 }
179
180 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByCompanyId(
181 long companyId)
182 throws com.liferay.portal.kernel.exception.SystemException {
183 return getPersistence().findByCompanyId(companyId);
184 }
185
186 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByCompanyId(
187 long companyId, int start, int end)
188 throws com.liferay.portal.kernel.exception.SystemException {
189 return getPersistence().findByCompanyId(companyId, start, end);
190 }
191
192 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByCompanyId(
193 long companyId, int start, int end,
194 com.liferay.portal.kernel.util.OrderByComparator obc)
195 throws com.liferay.portal.kernel.exception.SystemException {
196 return getPersistence().findByCompanyId(companyId, start, end, obc);
197 }
198
199 public static com.liferay.portlet.calendar.model.CalEvent findByCompanyId_First(
200 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
201 throws com.liferay.portal.kernel.exception.SystemException,
202 com.liferay.portlet.calendar.NoSuchEventException {
203 return getPersistence().findByCompanyId_First(companyId, obc);
204 }
205
206 public static com.liferay.portlet.calendar.model.CalEvent findByCompanyId_Last(
207 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
208 throws com.liferay.portal.kernel.exception.SystemException,
209 com.liferay.portlet.calendar.NoSuchEventException {
210 return getPersistence().findByCompanyId_Last(companyId, obc);
211 }
212
213 public static com.liferay.portlet.calendar.model.CalEvent[] findByCompanyId_PrevAndNext(
214 long eventId, long companyId,
215 com.liferay.portal.kernel.util.OrderByComparator obc)
216 throws com.liferay.portal.kernel.exception.SystemException,
217 com.liferay.portlet.calendar.NoSuchEventException {
218 return getPersistence()
219 .findByCompanyId_PrevAndNext(eventId, companyId, obc);
220 }
221
222 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByGroupId(
223 long groupId)
224 throws com.liferay.portal.kernel.exception.SystemException {
225 return getPersistence().findByGroupId(groupId);
226 }
227
228 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByGroupId(
229 long groupId, int start, int end)
230 throws com.liferay.portal.kernel.exception.SystemException {
231 return getPersistence().findByGroupId(groupId, start, end);
232 }
233
234 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByGroupId(
235 long groupId, int start, int end,
236 com.liferay.portal.kernel.util.OrderByComparator obc)
237 throws com.liferay.portal.kernel.exception.SystemException {
238 return getPersistence().findByGroupId(groupId, start, end, obc);
239 }
240
241 public static com.liferay.portlet.calendar.model.CalEvent findByGroupId_First(
242 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
243 throws com.liferay.portal.kernel.exception.SystemException,
244 com.liferay.portlet.calendar.NoSuchEventException {
245 return getPersistence().findByGroupId_First(groupId, obc);
246 }
247
248 public static com.liferay.portlet.calendar.model.CalEvent findByGroupId_Last(
249 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
250 throws com.liferay.portal.kernel.exception.SystemException,
251 com.liferay.portlet.calendar.NoSuchEventException {
252 return getPersistence().findByGroupId_Last(groupId, obc);
253 }
254
255 public static com.liferay.portlet.calendar.model.CalEvent[] findByGroupId_PrevAndNext(
256 long eventId, long groupId,
257 com.liferay.portal.kernel.util.OrderByComparator obc)
258 throws com.liferay.portal.kernel.exception.SystemException,
259 com.liferay.portlet.calendar.NoSuchEventException {
260 return getPersistence().findByGroupId_PrevAndNext(eventId, groupId, obc);
261 }
262
263 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByRemindBy(
264 int remindBy)
265 throws com.liferay.portal.kernel.exception.SystemException {
266 return getPersistence().findByRemindBy(remindBy);
267 }
268
269 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByRemindBy(
270 int remindBy, int start, int end)
271 throws com.liferay.portal.kernel.exception.SystemException {
272 return getPersistence().findByRemindBy(remindBy, start, end);
273 }
274
275 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByRemindBy(
276 int remindBy, int start, int end,
277 com.liferay.portal.kernel.util.OrderByComparator obc)
278 throws com.liferay.portal.kernel.exception.SystemException {
279 return getPersistence().findByRemindBy(remindBy, start, end, obc);
280 }
281
282 public static com.liferay.portlet.calendar.model.CalEvent findByRemindBy_First(
283 int remindBy, com.liferay.portal.kernel.util.OrderByComparator obc)
284 throws com.liferay.portal.kernel.exception.SystemException,
285 com.liferay.portlet.calendar.NoSuchEventException {
286 return getPersistence().findByRemindBy_First(remindBy, obc);
287 }
288
289 public static com.liferay.portlet.calendar.model.CalEvent findByRemindBy_Last(
290 int remindBy, com.liferay.portal.kernel.util.OrderByComparator obc)
291 throws com.liferay.portal.kernel.exception.SystemException,
292 com.liferay.portlet.calendar.NoSuchEventException {
293 return getPersistence().findByRemindBy_Last(remindBy, obc);
294 }
295
296 public static com.liferay.portlet.calendar.model.CalEvent[] findByRemindBy_PrevAndNext(
297 long eventId, int remindBy,
298 com.liferay.portal.kernel.util.OrderByComparator obc)
299 throws com.liferay.portal.kernel.exception.SystemException,
300 com.liferay.portlet.calendar.NoSuchEventException {
301 return getPersistence()
302 .findByRemindBy_PrevAndNext(eventId, remindBy, obc);
303 }
304
305 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_T(
306 long groupId, java.lang.String type)
307 throws com.liferay.portal.kernel.exception.SystemException {
308 return getPersistence().findByG_T(groupId, type);
309 }
310
311 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_T(
312 long groupId, java.lang.String type, int start, int end)
313 throws com.liferay.portal.kernel.exception.SystemException {
314 return getPersistence().findByG_T(groupId, type, start, end);
315 }
316
317 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_T(
318 long groupId, java.lang.String type, int start, int end,
319 com.liferay.portal.kernel.util.OrderByComparator obc)
320 throws com.liferay.portal.kernel.exception.SystemException {
321 return getPersistence().findByG_T(groupId, type, start, end, obc);
322 }
323
324 public static com.liferay.portlet.calendar.model.CalEvent findByG_T_First(
325 long groupId, java.lang.String type,
326 com.liferay.portal.kernel.util.OrderByComparator obc)
327 throws com.liferay.portal.kernel.exception.SystemException,
328 com.liferay.portlet.calendar.NoSuchEventException {
329 return getPersistence().findByG_T_First(groupId, type, obc);
330 }
331
332 public static com.liferay.portlet.calendar.model.CalEvent findByG_T_Last(
333 long groupId, java.lang.String type,
334 com.liferay.portal.kernel.util.OrderByComparator obc)
335 throws com.liferay.portal.kernel.exception.SystemException,
336 com.liferay.portlet.calendar.NoSuchEventException {
337 return getPersistence().findByG_T_Last(groupId, type, obc);
338 }
339
340 public static com.liferay.portlet.calendar.model.CalEvent[] findByG_T_PrevAndNext(
341 long eventId, long groupId, java.lang.String type,
342 com.liferay.portal.kernel.util.OrderByComparator obc)
343 throws com.liferay.portal.kernel.exception.SystemException,
344 com.liferay.portlet.calendar.NoSuchEventException {
345 return getPersistence()
346 .findByG_T_PrevAndNext(eventId, groupId, type, obc);
347 }
348
349 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_R(
350 long groupId, boolean repeating)
351 throws com.liferay.portal.kernel.exception.SystemException {
352 return getPersistence().findByG_R(groupId, repeating);
353 }
354
355 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_R(
356 long groupId, boolean repeating, int start, int end)
357 throws com.liferay.portal.kernel.exception.SystemException {
358 return getPersistence().findByG_R(groupId, repeating, start, end);
359 }
360
361 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_R(
362 long groupId, boolean repeating, int start, int end,
363 com.liferay.portal.kernel.util.OrderByComparator obc)
364 throws com.liferay.portal.kernel.exception.SystemException {
365 return getPersistence().findByG_R(groupId, repeating, start, end, obc);
366 }
367
368 public static com.liferay.portlet.calendar.model.CalEvent findByG_R_First(
369 long groupId, boolean repeating,
370 com.liferay.portal.kernel.util.OrderByComparator obc)
371 throws com.liferay.portal.kernel.exception.SystemException,
372 com.liferay.portlet.calendar.NoSuchEventException {
373 return getPersistence().findByG_R_First(groupId, repeating, obc);
374 }
375
376 public static com.liferay.portlet.calendar.model.CalEvent findByG_R_Last(
377 long groupId, boolean repeating,
378 com.liferay.portal.kernel.util.OrderByComparator obc)
379 throws com.liferay.portal.kernel.exception.SystemException,
380 com.liferay.portlet.calendar.NoSuchEventException {
381 return getPersistence().findByG_R_Last(groupId, repeating, obc);
382 }
383
384 public static com.liferay.portlet.calendar.model.CalEvent[] findByG_R_PrevAndNext(
385 long eventId, long groupId, boolean repeating,
386 com.liferay.portal.kernel.util.OrderByComparator obc)
387 throws com.liferay.portal.kernel.exception.SystemException,
388 com.liferay.portlet.calendar.NoSuchEventException {
389 return getPersistence()
390 .findByG_R_PrevAndNext(eventId, groupId, repeating, obc);
391 }
392
393 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findAll()
394 throws com.liferay.portal.kernel.exception.SystemException {
395 return getPersistence().findAll();
396 }
397
398 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findAll(
399 int start, int end)
400 throws com.liferay.portal.kernel.exception.SystemException {
401 return getPersistence().findAll(start, end);
402 }
403
404 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findAll(
405 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
406 throws com.liferay.portal.kernel.exception.SystemException {
407 return getPersistence().findAll(start, end, obc);
408 }
409
410 public static void removeByUuid(java.lang.String uuid)
411 throws com.liferay.portal.kernel.exception.SystemException {
412 getPersistence().removeByUuid(uuid);
413 }
414
415 public static void removeByUUID_G(java.lang.String uuid, long groupId)
416 throws com.liferay.portal.kernel.exception.SystemException,
417 com.liferay.portlet.calendar.NoSuchEventException {
418 getPersistence().removeByUUID_G(uuid, groupId);
419 }
420
421 public static void removeByCompanyId(long companyId)
422 throws com.liferay.portal.kernel.exception.SystemException {
423 getPersistence().removeByCompanyId(companyId);
424 }
425
426 public static void removeByGroupId(long groupId)
427 throws com.liferay.portal.kernel.exception.SystemException {
428 getPersistence().removeByGroupId(groupId);
429 }
430
431 public static void removeByRemindBy(int remindBy)
432 throws com.liferay.portal.kernel.exception.SystemException {
433 getPersistence().removeByRemindBy(remindBy);
434 }
435
436 public static void removeByG_T(long groupId, java.lang.String type)
437 throws com.liferay.portal.kernel.exception.SystemException {
438 getPersistence().removeByG_T(groupId, type);
439 }
440
441 public static void removeByG_R(long groupId, boolean repeating)
442 throws com.liferay.portal.kernel.exception.SystemException {
443 getPersistence().removeByG_R(groupId, repeating);
444 }
445
446 public static void removeAll()
447 throws com.liferay.portal.kernel.exception.SystemException {
448 getPersistence().removeAll();
449 }
450
451 public static int countByUuid(java.lang.String uuid)
452 throws com.liferay.portal.kernel.exception.SystemException {
453 return getPersistence().countByUuid(uuid);
454 }
455
456 public static int countByUUID_G(java.lang.String uuid, long groupId)
457 throws com.liferay.portal.kernel.exception.SystemException {
458 return getPersistence().countByUUID_G(uuid, groupId);
459 }
460
461 public static int countByCompanyId(long companyId)
462 throws com.liferay.portal.kernel.exception.SystemException {
463 return getPersistence().countByCompanyId(companyId);
464 }
465
466 public static int countByGroupId(long groupId)
467 throws com.liferay.portal.kernel.exception.SystemException {
468 return getPersistence().countByGroupId(groupId);
469 }
470
471 public static int countByRemindBy(int remindBy)
472 throws com.liferay.portal.kernel.exception.SystemException {
473 return getPersistence().countByRemindBy(remindBy);
474 }
475
476 public static int countByG_T(long groupId, java.lang.String type)
477 throws com.liferay.portal.kernel.exception.SystemException {
478 return getPersistence().countByG_T(groupId, type);
479 }
480
481 public static int countByG_R(long groupId, boolean repeating)
482 throws com.liferay.portal.kernel.exception.SystemException {
483 return getPersistence().countByG_R(groupId, repeating);
484 }
485
486 public static int countAll()
487 throws com.liferay.portal.kernel.exception.SystemException {
488 return getPersistence().countAll();
489 }
490
491 public static CalEventPersistence getPersistence() {
492 if (_persistence == null) {
493 _persistence = (CalEventPersistence)PortalBeanLocatorUtil.locate(CalEventPersistence.class.getName());
494 }
495
496 return _persistence;
497 }
498
499 public void setPersistence(CalEventPersistence persistence) {
500 _persistence = persistence;
501 }
502
503 private static CalEventPersistence _persistence;
504 }