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