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