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