1
14
15 package com.liferay.portlet.calendar.service.persistence;
16
17 import com.liferay.portal.SystemException;
18 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
19 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
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.SystemException,
95 com.liferay.portlet.calendar.NoSuchEventException {
96 return getPersistence().remove(eventId);
97 }
98
99
102 public static com.liferay.portlet.calendar.model.CalEvent update(
103 com.liferay.portlet.calendar.model.CalEvent calEvent)
104 throws com.liferay.portal.SystemException {
105 return getPersistence().update(calEvent);
106 }
107
108 public static com.liferay.portlet.calendar.model.CalEvent updateImpl(
109 com.liferay.portlet.calendar.model.CalEvent calEvent, boolean merge)
110 throws com.liferay.portal.SystemException {
111 return getPersistence().updateImpl(calEvent, merge);
112 }
113
114 public static com.liferay.portlet.calendar.model.CalEvent findByPrimaryKey(
115 long eventId)
116 throws com.liferay.portal.SystemException,
117 com.liferay.portlet.calendar.NoSuchEventException {
118 return getPersistence().findByPrimaryKey(eventId);
119 }
120
121 public static com.liferay.portlet.calendar.model.CalEvent fetchByPrimaryKey(
122 long eventId) throws com.liferay.portal.SystemException {
123 return getPersistence().fetchByPrimaryKey(eventId);
124 }
125
126 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByUuid(
127 java.lang.String uuid) throws com.liferay.portal.SystemException {
128 return getPersistence().findByUuid(uuid);
129 }
130
131 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByUuid(
132 java.lang.String uuid, int start, int end)
133 throws com.liferay.portal.SystemException {
134 return getPersistence().findByUuid(uuid, start, end);
135 }
136
137 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByUuid(
138 java.lang.String uuid, int start, int end,
139 com.liferay.portal.kernel.util.OrderByComparator obc)
140 throws com.liferay.portal.SystemException {
141 return getPersistence().findByUuid(uuid, start, end, obc);
142 }
143
144 public static com.liferay.portlet.calendar.model.CalEvent findByUuid_First(
145 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_First(uuid, obc);
150 }
151
152 public static com.liferay.portlet.calendar.model.CalEvent findByUuid_Last(
153 java.lang.String uuid,
154 com.liferay.portal.kernel.util.OrderByComparator obc)
155 throws com.liferay.portal.SystemException,
156 com.liferay.portlet.calendar.NoSuchEventException {
157 return getPersistence().findByUuid_Last(uuid, obc);
158 }
159
160 public static com.liferay.portlet.calendar.model.CalEvent[] findByUuid_PrevAndNext(
161 long eventId, java.lang.String uuid,
162 com.liferay.portal.kernel.util.OrderByComparator obc)
163 throws com.liferay.portal.SystemException,
164 com.liferay.portlet.calendar.NoSuchEventException {
165 return getPersistence().findByUuid_PrevAndNext(eventId, uuid, obc);
166 }
167
168 public static com.liferay.portlet.calendar.model.CalEvent findByUUID_G(
169 java.lang.String uuid, long groupId)
170 throws com.liferay.portal.SystemException,
171 com.liferay.portlet.calendar.NoSuchEventException {
172 return getPersistence().findByUUID_G(uuid, groupId);
173 }
174
175 public static com.liferay.portlet.calendar.model.CalEvent fetchByUUID_G(
176 java.lang.String uuid, long groupId)
177 throws com.liferay.portal.SystemException {
178 return getPersistence().fetchByUUID_G(uuid, groupId);
179 }
180
181 public static com.liferay.portlet.calendar.model.CalEvent fetchByUUID_G(
182 java.lang.String uuid, long groupId, boolean retrieveFromCache)
183 throws com.liferay.portal.SystemException {
184 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
185 }
186
187 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByGroupId(
188 long groupId) throws com.liferay.portal.SystemException {
189 return getPersistence().findByGroupId(groupId);
190 }
191
192 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByGroupId(
193 long groupId, int start, int end)
194 throws com.liferay.portal.SystemException {
195 return getPersistence().findByGroupId(groupId, start, end);
196 }
197
198 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByGroupId(
199 long groupId, int start, int end,
200 com.liferay.portal.kernel.util.OrderByComparator obc)
201 throws com.liferay.portal.SystemException {
202 return getPersistence().findByGroupId(groupId, start, end, obc);
203 }
204
205 public static com.liferay.portlet.calendar.model.CalEvent findByGroupId_First(
206 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
207 throws com.liferay.portal.SystemException,
208 com.liferay.portlet.calendar.NoSuchEventException {
209 return getPersistence().findByGroupId_First(groupId, obc);
210 }
211
212 public static com.liferay.portlet.calendar.model.CalEvent findByGroupId_Last(
213 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
214 throws com.liferay.portal.SystemException,
215 com.liferay.portlet.calendar.NoSuchEventException {
216 return getPersistence().findByGroupId_Last(groupId, obc);
217 }
218
219 public static com.liferay.portlet.calendar.model.CalEvent[] findByGroupId_PrevAndNext(
220 long eventId, long groupId,
221 com.liferay.portal.kernel.util.OrderByComparator obc)
222 throws com.liferay.portal.SystemException,
223 com.liferay.portlet.calendar.NoSuchEventException {
224 return getPersistence().findByGroupId_PrevAndNext(eventId, groupId, obc);
225 }
226
227 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByRemindBy(
228 int remindBy) throws com.liferay.portal.SystemException {
229 return getPersistence().findByRemindBy(remindBy);
230 }
231
232 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByRemindBy(
233 int remindBy, int start, int end)
234 throws com.liferay.portal.SystemException {
235 return getPersistence().findByRemindBy(remindBy, start, end);
236 }
237
238 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByRemindBy(
239 int remindBy, int start, int end,
240 com.liferay.portal.kernel.util.OrderByComparator obc)
241 throws com.liferay.portal.SystemException {
242 return getPersistence().findByRemindBy(remindBy, start, end, obc);
243 }
244
245 public static com.liferay.portlet.calendar.model.CalEvent findByRemindBy_First(
246 int remindBy, com.liferay.portal.kernel.util.OrderByComparator obc)
247 throws com.liferay.portal.SystemException,
248 com.liferay.portlet.calendar.NoSuchEventException {
249 return getPersistence().findByRemindBy_First(remindBy, obc);
250 }
251
252 public static com.liferay.portlet.calendar.model.CalEvent findByRemindBy_Last(
253 int remindBy, com.liferay.portal.kernel.util.OrderByComparator obc)
254 throws com.liferay.portal.SystemException,
255 com.liferay.portlet.calendar.NoSuchEventException {
256 return getPersistence().findByRemindBy_Last(remindBy, obc);
257 }
258
259 public static com.liferay.portlet.calendar.model.CalEvent[] findByRemindBy_PrevAndNext(
260 long eventId, int remindBy,
261 com.liferay.portal.kernel.util.OrderByComparator obc)
262 throws com.liferay.portal.SystemException,
263 com.liferay.portlet.calendar.NoSuchEventException {
264 return getPersistence()
265 .findByRemindBy_PrevAndNext(eventId, remindBy, obc);
266 }
267
268 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_T(
269 long groupId, java.lang.String type)
270 throws com.liferay.portal.SystemException {
271 return getPersistence().findByG_T(groupId, type);
272 }
273
274 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_T(
275 long groupId, java.lang.String type, int start, int end)
276 throws com.liferay.portal.SystemException {
277 return getPersistence().findByG_T(groupId, type, start, end);
278 }
279
280 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_T(
281 long groupId, java.lang.String type, int start, int end,
282 com.liferay.portal.kernel.util.OrderByComparator obc)
283 throws com.liferay.portal.SystemException {
284 return getPersistence().findByG_T(groupId, type, start, end, obc);
285 }
286
287 public static com.liferay.portlet.calendar.model.CalEvent findByG_T_First(
288 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().findByG_T_First(groupId, type, obc);
293 }
294
295 public static com.liferay.portlet.calendar.model.CalEvent findByG_T_Last(
296 long groupId, java.lang.String type,
297 com.liferay.portal.kernel.util.OrderByComparator obc)
298 throws com.liferay.portal.SystemException,
299 com.liferay.portlet.calendar.NoSuchEventException {
300 return getPersistence().findByG_T_Last(groupId, type, obc);
301 }
302
303 public static com.liferay.portlet.calendar.model.CalEvent[] findByG_T_PrevAndNext(
304 long eventId, long groupId, java.lang.String type,
305 com.liferay.portal.kernel.util.OrderByComparator obc)
306 throws com.liferay.portal.SystemException,
307 com.liferay.portlet.calendar.NoSuchEventException {
308 return getPersistence()
309 .findByG_T_PrevAndNext(eventId, groupId, type, obc);
310 }
311
312 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_R(
313 long groupId, boolean repeating)
314 throws com.liferay.portal.SystemException {
315 return getPersistence().findByG_R(groupId, repeating);
316 }
317
318 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_R(
319 long groupId, boolean repeating, int start, int end)
320 throws com.liferay.portal.SystemException {
321 return getPersistence().findByG_R(groupId, repeating, start, end);
322 }
323
324 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findByG_R(
325 long groupId, boolean repeating, int start, int end,
326 com.liferay.portal.kernel.util.OrderByComparator obc)
327 throws com.liferay.portal.SystemException {
328 return getPersistence().findByG_R(groupId, repeating, start, end, obc);
329 }
330
331 public static com.liferay.portlet.calendar.model.CalEvent findByG_R_First(
332 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().findByG_R_First(groupId, repeating, obc);
337 }
338
339 public static com.liferay.portlet.calendar.model.CalEvent findByG_R_Last(
340 long groupId, boolean repeating,
341 com.liferay.portal.kernel.util.OrderByComparator obc)
342 throws com.liferay.portal.SystemException,
343 com.liferay.portlet.calendar.NoSuchEventException {
344 return getPersistence().findByG_R_Last(groupId, repeating, obc);
345 }
346
347 public static com.liferay.portlet.calendar.model.CalEvent[] findByG_R_PrevAndNext(
348 long eventId, long groupId, boolean repeating,
349 com.liferay.portal.kernel.util.OrderByComparator obc)
350 throws com.liferay.portal.SystemException,
351 com.liferay.portlet.calendar.NoSuchEventException {
352 return getPersistence()
353 .findByG_R_PrevAndNext(eventId, groupId, repeating, obc);
354 }
355
356 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findAll()
357 throws com.liferay.portal.SystemException {
358 return getPersistence().findAll();
359 }
360
361 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findAll(
362 int start, int end) throws com.liferay.portal.SystemException {
363 return getPersistence().findAll(start, end);
364 }
365
366 public static java.util.List<com.liferay.portlet.calendar.model.CalEvent> findAll(
367 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
368 throws com.liferay.portal.SystemException {
369 return getPersistence().findAll(start, end, obc);
370 }
371
372 public static void removeByUuid(java.lang.String uuid)
373 throws com.liferay.portal.SystemException {
374 getPersistence().removeByUuid(uuid);
375 }
376
377 public static void removeByUUID_G(java.lang.String uuid, long groupId)
378 throws com.liferay.portal.SystemException,
379 com.liferay.portlet.calendar.NoSuchEventException {
380 getPersistence().removeByUUID_G(uuid, groupId);
381 }
382
383 public static void removeByGroupId(long groupId)
384 throws com.liferay.portal.SystemException {
385 getPersistence().removeByGroupId(groupId);
386 }
387
388 public static void removeByRemindBy(int remindBy)
389 throws com.liferay.portal.SystemException {
390 getPersistence().removeByRemindBy(remindBy);
391 }
392
393 public static void removeByG_T(long groupId, java.lang.String type)
394 throws com.liferay.portal.SystemException {
395 getPersistence().removeByG_T(groupId, type);
396 }
397
398 public static void removeByG_R(long groupId, boolean repeating)
399 throws com.liferay.portal.SystemException {
400 getPersistence().removeByG_R(groupId, repeating);
401 }
402
403 public static void removeAll() throws com.liferay.portal.SystemException {
404 getPersistence().removeAll();
405 }
406
407 public static int countByUuid(java.lang.String uuid)
408 throws com.liferay.portal.SystemException {
409 return getPersistence().countByUuid(uuid);
410 }
411
412 public static int countByUUID_G(java.lang.String uuid, long groupId)
413 throws com.liferay.portal.SystemException {
414 return getPersistence().countByUUID_G(uuid, groupId);
415 }
416
417 public static int countByGroupId(long groupId)
418 throws com.liferay.portal.SystemException {
419 return getPersistence().countByGroupId(groupId);
420 }
421
422 public static int countByRemindBy(int remindBy)
423 throws com.liferay.portal.SystemException {
424 return getPersistence().countByRemindBy(remindBy);
425 }
426
427 public static int countByG_T(long groupId, java.lang.String type)
428 throws com.liferay.portal.SystemException {
429 return getPersistence().countByG_T(groupId, type);
430 }
431
432 public static int countByG_R(long groupId, boolean repeating)
433 throws com.liferay.portal.SystemException {
434 return getPersistence().countByG_R(groupId, repeating);
435 }
436
437 public static int countAll() throws com.liferay.portal.SystemException {
438 return getPersistence().countAll();
439 }
440
441 public static CalEventPersistence getPersistence() {
442 if (_persistence == null) {
443 _persistence = (CalEventPersistence)PortalBeanLocatorUtil.locate(CalEventPersistence.class.getName());
444 }
445
446 return _persistence;
447 }
448
449 public void setPersistence(CalEventPersistence persistence) {
450 _persistence = persistence;
451 }
452
453 private static CalEventPersistence _persistence;
454 }