001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service.persistence;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
021    import com.liferay.portal.kernel.exception.SystemException;
022    import com.liferay.portal.kernel.util.OrderByComparator;
023    import com.liferay.portal.kernel.util.ReferenceRegistry;
024    import com.liferay.portal.model.SystemEvent;
025    import com.liferay.portal.service.ServiceContext;
026    
027    import java.util.List;
028    
029    /**
030     * The persistence utility for the system event service. This utility wraps {@link SystemEventPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
031     *
032     * <p>
033     * Caching information and settings can be found in <code>portal.properties</code>
034     * </p>
035     *
036     * @author Brian Wing Shun Chan
037     * @see SystemEventPersistence
038     * @see SystemEventPersistenceImpl
039     * @generated
040     */
041    @ProviderType
042    public class SystemEventUtil {
043            /*
044             * NOTE FOR DEVELOPERS:
045             *
046             * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
047             */
048    
049            /**
050             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
051             */
052            public static void clearCache() {
053                    getPersistence().clearCache();
054            }
055    
056            /**
057             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
058             */
059            public static void clearCache(SystemEvent systemEvent) {
060                    getPersistence().clearCache(systemEvent);
061            }
062    
063            /**
064             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
065             */
066            public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
067                    throws SystemException {
068                    return getPersistence().countWithDynamicQuery(dynamicQuery);
069            }
070    
071            /**
072             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
073             */
074            public static List<SystemEvent> findWithDynamicQuery(
075                    DynamicQuery dynamicQuery) throws SystemException {
076                    return getPersistence().findWithDynamicQuery(dynamicQuery);
077            }
078    
079            /**
080             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
081             */
082            public static List<SystemEvent> findWithDynamicQuery(
083                    DynamicQuery dynamicQuery, int start, int end)
084                    throws SystemException {
085                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
086            }
087    
088            /**
089             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
090             */
091            public static List<SystemEvent> findWithDynamicQuery(
092                    DynamicQuery dynamicQuery, int start, int end,
093                    OrderByComparator orderByComparator) throws SystemException {
094                    return getPersistence()
095                                       .findWithDynamicQuery(dynamicQuery, start, end,
096                            orderByComparator);
097            }
098    
099            /**
100             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel)
101             */
102            public static SystemEvent update(SystemEvent systemEvent)
103                    throws SystemException {
104                    return getPersistence().update(systemEvent);
105            }
106    
107            /**
108             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext)
109             */
110            public static SystemEvent update(SystemEvent systemEvent,
111                    ServiceContext serviceContext) throws SystemException {
112                    return getPersistence().update(systemEvent, serviceContext);
113            }
114    
115            /**
116            * Returns all the system events where groupId = &#63;.
117            *
118            * @param groupId the group ID
119            * @return the matching system events
120            * @throws SystemException if a system exception occurred
121            */
122            public static java.util.List<com.liferay.portal.model.SystemEvent> findByGroupId(
123                    long groupId)
124                    throws com.liferay.portal.kernel.exception.SystemException {
125                    return getPersistence().findByGroupId(groupId);
126            }
127    
128            /**
129            * Returns a range of all the system events where groupId = &#63;.
130            *
131            * <p>
132            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.SystemEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
133            * </p>
134            *
135            * @param groupId the group ID
136            * @param start the lower bound of the range of system events
137            * @param end the upper bound of the range of system events (not inclusive)
138            * @return the range of matching system events
139            * @throws SystemException if a system exception occurred
140            */
141            public static java.util.List<com.liferay.portal.model.SystemEvent> findByGroupId(
142                    long groupId, int start, int end)
143                    throws com.liferay.portal.kernel.exception.SystemException {
144                    return getPersistence().findByGroupId(groupId, start, end);
145            }
146    
147            /**
148            * Returns an ordered range of all the system events where groupId = &#63;.
149            *
150            * <p>
151            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.SystemEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
152            * </p>
153            *
154            * @param groupId the group ID
155            * @param start the lower bound of the range of system events
156            * @param end the upper bound of the range of system events (not inclusive)
157            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
158            * @return the ordered range of matching system events
159            * @throws SystemException if a system exception occurred
160            */
161            public static java.util.List<com.liferay.portal.model.SystemEvent> findByGroupId(
162                    long groupId, int start, int end,
163                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
164                    throws com.liferay.portal.kernel.exception.SystemException {
165                    return getPersistence()
166                                       .findByGroupId(groupId, start, end, orderByComparator);
167            }
168    
169            /**
170            * Returns the first system event in the ordered set where groupId = &#63;.
171            *
172            * @param groupId the group ID
173            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
174            * @return the first matching system event
175            * @throws com.liferay.portal.NoSuchSystemEventException if a matching system event could not be found
176            * @throws SystemException if a system exception occurred
177            */
178            public static com.liferay.portal.model.SystemEvent findByGroupId_First(
179                    long groupId,
180                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
181                    throws com.liferay.portal.NoSuchSystemEventException,
182                            com.liferay.portal.kernel.exception.SystemException {
183                    return getPersistence().findByGroupId_First(groupId, orderByComparator);
184            }
185    
186            /**
187            * Returns the first system event in the ordered set where groupId = &#63;.
188            *
189            * @param groupId the group ID
190            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
191            * @return the first matching system event, or <code>null</code> if a matching system event could not be found
192            * @throws SystemException if a system exception occurred
193            */
194            public static com.liferay.portal.model.SystemEvent fetchByGroupId_First(
195                    long groupId,
196                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
197                    throws com.liferay.portal.kernel.exception.SystemException {
198                    return getPersistence().fetchByGroupId_First(groupId, orderByComparator);
199            }
200    
201            /**
202            * Returns the last system event in the ordered set where groupId = &#63;.
203            *
204            * @param groupId the group ID
205            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
206            * @return the last matching system event
207            * @throws com.liferay.portal.NoSuchSystemEventException if a matching system event could not be found
208            * @throws SystemException if a system exception occurred
209            */
210            public static com.liferay.portal.model.SystemEvent findByGroupId_Last(
211                    long groupId,
212                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
213                    throws com.liferay.portal.NoSuchSystemEventException,
214                            com.liferay.portal.kernel.exception.SystemException {
215                    return getPersistence().findByGroupId_Last(groupId, orderByComparator);
216            }
217    
218            /**
219            * Returns the last system event in the ordered set where groupId = &#63;.
220            *
221            * @param groupId the group ID
222            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
223            * @return the last matching system event, or <code>null</code> if a matching system event could not be found
224            * @throws SystemException if a system exception occurred
225            */
226            public static com.liferay.portal.model.SystemEvent fetchByGroupId_Last(
227                    long groupId,
228                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
229                    throws com.liferay.portal.kernel.exception.SystemException {
230                    return getPersistence().fetchByGroupId_Last(groupId, orderByComparator);
231            }
232    
233            /**
234            * Returns the system events before and after the current system event in the ordered set where groupId = &#63;.
235            *
236            * @param systemEventId the primary key of the current system event
237            * @param groupId the group ID
238            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
239            * @return the previous, current, and next system event
240            * @throws com.liferay.portal.NoSuchSystemEventException if a system event with the primary key could not be found
241            * @throws SystemException if a system exception occurred
242            */
243            public static com.liferay.portal.model.SystemEvent[] findByGroupId_PrevAndNext(
244                    long systemEventId, long groupId,
245                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
246                    throws com.liferay.portal.NoSuchSystemEventException,
247                            com.liferay.portal.kernel.exception.SystemException {
248                    return getPersistence()
249                                       .findByGroupId_PrevAndNext(systemEventId, groupId,
250                            orderByComparator);
251            }
252    
253            /**
254            * Removes all the system events where groupId = &#63; from the database.
255            *
256            * @param groupId the group ID
257            * @throws SystemException if a system exception occurred
258            */
259            public static void removeByGroupId(long groupId)
260                    throws com.liferay.portal.kernel.exception.SystemException {
261                    getPersistence().removeByGroupId(groupId);
262            }
263    
264            /**
265            * Returns the number of system events where groupId = &#63;.
266            *
267            * @param groupId the group ID
268            * @return the number of matching system events
269            * @throws SystemException if a system exception occurred
270            */
271            public static int countByGroupId(long groupId)
272                    throws com.liferay.portal.kernel.exception.SystemException {
273                    return getPersistence().countByGroupId(groupId);
274            }
275    
276            /**
277            * Returns all the system events where groupId = &#63; and systemEventSetKey = &#63;.
278            *
279            * @param groupId the group ID
280            * @param systemEventSetKey the system event set key
281            * @return the matching system events
282            * @throws SystemException if a system exception occurred
283            */
284            public static java.util.List<com.liferay.portal.model.SystemEvent> findByG_S(
285                    long groupId, long systemEventSetKey)
286                    throws com.liferay.portal.kernel.exception.SystemException {
287                    return getPersistence().findByG_S(groupId, systemEventSetKey);
288            }
289    
290            /**
291            * Returns a range of all the system events where groupId = &#63; and systemEventSetKey = &#63;.
292            *
293            * <p>
294            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.SystemEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
295            * </p>
296            *
297            * @param groupId the group ID
298            * @param systemEventSetKey the system event set key
299            * @param start the lower bound of the range of system events
300            * @param end the upper bound of the range of system events (not inclusive)
301            * @return the range of matching system events
302            * @throws SystemException if a system exception occurred
303            */
304            public static java.util.List<com.liferay.portal.model.SystemEvent> findByG_S(
305                    long groupId, long systemEventSetKey, int start, int end)
306                    throws com.liferay.portal.kernel.exception.SystemException {
307                    return getPersistence().findByG_S(groupId, systemEventSetKey, start, end);
308            }
309    
310            /**
311            * Returns an ordered range of all the system events where groupId = &#63; and systemEventSetKey = &#63;.
312            *
313            * <p>
314            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.SystemEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
315            * </p>
316            *
317            * @param groupId the group ID
318            * @param systemEventSetKey the system event set key
319            * @param start the lower bound of the range of system events
320            * @param end the upper bound of the range of system events (not inclusive)
321            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
322            * @return the ordered range of matching system events
323            * @throws SystemException if a system exception occurred
324            */
325            public static java.util.List<com.liferay.portal.model.SystemEvent> findByG_S(
326                    long groupId, long systemEventSetKey, int start, int end,
327                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
328                    throws com.liferay.portal.kernel.exception.SystemException {
329                    return getPersistence()
330                                       .findByG_S(groupId, systemEventSetKey, start, end,
331                            orderByComparator);
332            }
333    
334            /**
335            * Returns the first system event in the ordered set where groupId = &#63; and systemEventSetKey = &#63;.
336            *
337            * @param groupId the group ID
338            * @param systemEventSetKey the system event set key
339            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
340            * @return the first matching system event
341            * @throws com.liferay.portal.NoSuchSystemEventException if a matching system event could not be found
342            * @throws SystemException if a system exception occurred
343            */
344            public static com.liferay.portal.model.SystemEvent findByG_S_First(
345                    long groupId, long systemEventSetKey,
346                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
347                    throws com.liferay.portal.NoSuchSystemEventException,
348                            com.liferay.portal.kernel.exception.SystemException {
349                    return getPersistence()
350                                       .findByG_S_First(groupId, systemEventSetKey,
351                            orderByComparator);
352            }
353    
354            /**
355            * Returns the first system event in the ordered set where groupId = &#63; and systemEventSetKey = &#63;.
356            *
357            * @param groupId the group ID
358            * @param systemEventSetKey the system event set key
359            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
360            * @return the first matching system event, or <code>null</code> if a matching system event could not be found
361            * @throws SystemException if a system exception occurred
362            */
363            public static com.liferay.portal.model.SystemEvent fetchByG_S_First(
364                    long groupId, long systemEventSetKey,
365                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
366                    throws com.liferay.portal.kernel.exception.SystemException {
367                    return getPersistence()
368                                       .fetchByG_S_First(groupId, systemEventSetKey,
369                            orderByComparator);
370            }
371    
372            /**
373            * Returns the last system event in the ordered set where groupId = &#63; and systemEventSetKey = &#63;.
374            *
375            * @param groupId the group ID
376            * @param systemEventSetKey the system event set key
377            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
378            * @return the last matching system event
379            * @throws com.liferay.portal.NoSuchSystemEventException if a matching system event could not be found
380            * @throws SystemException if a system exception occurred
381            */
382            public static com.liferay.portal.model.SystemEvent findByG_S_Last(
383                    long groupId, long systemEventSetKey,
384                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
385                    throws com.liferay.portal.NoSuchSystemEventException,
386                            com.liferay.portal.kernel.exception.SystemException {
387                    return getPersistence()
388                                       .findByG_S_Last(groupId, systemEventSetKey, orderByComparator);
389            }
390    
391            /**
392            * Returns the last system event in the ordered set where groupId = &#63; and systemEventSetKey = &#63;.
393            *
394            * @param groupId the group ID
395            * @param systemEventSetKey the system event set key
396            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
397            * @return the last matching system event, or <code>null</code> if a matching system event could not be found
398            * @throws SystemException if a system exception occurred
399            */
400            public static com.liferay.portal.model.SystemEvent fetchByG_S_Last(
401                    long groupId, long systemEventSetKey,
402                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
403                    throws com.liferay.portal.kernel.exception.SystemException {
404                    return getPersistence()
405                                       .fetchByG_S_Last(groupId, systemEventSetKey,
406                            orderByComparator);
407            }
408    
409            /**
410            * Returns the system events before and after the current system event in the ordered set where groupId = &#63; and systemEventSetKey = &#63;.
411            *
412            * @param systemEventId the primary key of the current system event
413            * @param groupId the group ID
414            * @param systemEventSetKey the system event set key
415            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
416            * @return the previous, current, and next system event
417            * @throws com.liferay.portal.NoSuchSystemEventException if a system event with the primary key could not be found
418            * @throws SystemException if a system exception occurred
419            */
420            public static com.liferay.portal.model.SystemEvent[] findByG_S_PrevAndNext(
421                    long systemEventId, long groupId, long systemEventSetKey,
422                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
423                    throws com.liferay.portal.NoSuchSystemEventException,
424                            com.liferay.portal.kernel.exception.SystemException {
425                    return getPersistence()
426                                       .findByG_S_PrevAndNext(systemEventId, groupId,
427                            systemEventSetKey, orderByComparator);
428            }
429    
430            /**
431            * Removes all the system events where groupId = &#63; and systemEventSetKey = &#63; from the database.
432            *
433            * @param groupId the group ID
434            * @param systemEventSetKey the system event set key
435            * @throws SystemException if a system exception occurred
436            */
437            public static void removeByG_S(long groupId, long systemEventSetKey)
438                    throws com.liferay.portal.kernel.exception.SystemException {
439                    getPersistence().removeByG_S(groupId, systemEventSetKey);
440            }
441    
442            /**
443            * Returns the number of system events where groupId = &#63; and systemEventSetKey = &#63;.
444            *
445            * @param groupId the group ID
446            * @param systemEventSetKey the system event set key
447            * @return the number of matching system events
448            * @throws SystemException if a system exception occurred
449            */
450            public static int countByG_S(long groupId, long systemEventSetKey)
451                    throws com.liferay.portal.kernel.exception.SystemException {
452                    return getPersistence().countByG_S(groupId, systemEventSetKey);
453            }
454    
455            /**
456            * Returns all the system events where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
457            *
458            * @param groupId the group ID
459            * @param classNameId the class name ID
460            * @param classPK the class p k
461            * @return the matching system events
462            * @throws SystemException if a system exception occurred
463            */
464            public static java.util.List<com.liferay.portal.model.SystemEvent> findByG_C_C(
465                    long groupId, long classNameId, long classPK)
466                    throws com.liferay.portal.kernel.exception.SystemException {
467                    return getPersistence().findByG_C_C(groupId, classNameId, classPK);
468            }
469    
470            /**
471            * Returns a range of all the system events where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
472            *
473            * <p>
474            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.SystemEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
475            * </p>
476            *
477            * @param groupId the group ID
478            * @param classNameId the class name ID
479            * @param classPK the class p k
480            * @param start the lower bound of the range of system events
481            * @param end the upper bound of the range of system events (not inclusive)
482            * @return the range of matching system events
483            * @throws SystemException if a system exception occurred
484            */
485            public static java.util.List<com.liferay.portal.model.SystemEvent> findByG_C_C(
486                    long groupId, long classNameId, long classPK, int start, int end)
487                    throws com.liferay.portal.kernel.exception.SystemException {
488                    return getPersistence()
489                                       .findByG_C_C(groupId, classNameId, classPK, start, end);
490            }
491    
492            /**
493            * Returns an ordered range of all the system events where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
494            *
495            * <p>
496            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.SystemEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
497            * </p>
498            *
499            * @param groupId the group ID
500            * @param classNameId the class name ID
501            * @param classPK the class p k
502            * @param start the lower bound of the range of system events
503            * @param end the upper bound of the range of system events (not inclusive)
504            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
505            * @return the ordered range of matching system events
506            * @throws SystemException if a system exception occurred
507            */
508            public static java.util.List<com.liferay.portal.model.SystemEvent> findByG_C_C(
509                    long groupId, long classNameId, long classPK, int start, int end,
510                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
511                    throws com.liferay.portal.kernel.exception.SystemException {
512                    return getPersistence()
513                                       .findByG_C_C(groupId, classNameId, classPK, start, end,
514                            orderByComparator);
515            }
516    
517            /**
518            * Returns the first system event in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
519            *
520            * @param groupId the group ID
521            * @param classNameId the class name ID
522            * @param classPK the class p k
523            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
524            * @return the first matching system event
525            * @throws com.liferay.portal.NoSuchSystemEventException if a matching system event could not be found
526            * @throws SystemException if a system exception occurred
527            */
528            public static com.liferay.portal.model.SystemEvent findByG_C_C_First(
529                    long groupId, long classNameId, long classPK,
530                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
531                    throws com.liferay.portal.NoSuchSystemEventException,
532                            com.liferay.portal.kernel.exception.SystemException {
533                    return getPersistence()
534                                       .findByG_C_C_First(groupId, classNameId, classPK,
535                            orderByComparator);
536            }
537    
538            /**
539            * Returns the first system event in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
540            *
541            * @param groupId the group ID
542            * @param classNameId the class name ID
543            * @param classPK the class p k
544            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
545            * @return the first matching system event, or <code>null</code> if a matching system event could not be found
546            * @throws SystemException if a system exception occurred
547            */
548            public static com.liferay.portal.model.SystemEvent fetchByG_C_C_First(
549                    long groupId, long classNameId, long classPK,
550                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
551                    throws com.liferay.portal.kernel.exception.SystemException {
552                    return getPersistence()
553                                       .fetchByG_C_C_First(groupId, classNameId, classPK,
554                            orderByComparator);
555            }
556    
557            /**
558            * Returns the last system event in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
559            *
560            * @param groupId the group ID
561            * @param classNameId the class name ID
562            * @param classPK the class p k
563            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
564            * @return the last matching system event
565            * @throws com.liferay.portal.NoSuchSystemEventException if a matching system event could not be found
566            * @throws SystemException if a system exception occurred
567            */
568            public static com.liferay.portal.model.SystemEvent findByG_C_C_Last(
569                    long groupId, long classNameId, long classPK,
570                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
571                    throws com.liferay.portal.NoSuchSystemEventException,
572                            com.liferay.portal.kernel.exception.SystemException {
573                    return getPersistence()
574                                       .findByG_C_C_Last(groupId, classNameId, classPK,
575                            orderByComparator);
576            }
577    
578            /**
579            * Returns the last system event in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
580            *
581            * @param groupId the group ID
582            * @param classNameId the class name ID
583            * @param classPK the class p k
584            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
585            * @return the last matching system event, or <code>null</code> if a matching system event could not be found
586            * @throws SystemException if a system exception occurred
587            */
588            public static com.liferay.portal.model.SystemEvent fetchByG_C_C_Last(
589                    long groupId, long classNameId, long classPK,
590                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
591                    throws com.liferay.portal.kernel.exception.SystemException {
592                    return getPersistence()
593                                       .fetchByG_C_C_Last(groupId, classNameId, classPK,
594                            orderByComparator);
595            }
596    
597            /**
598            * Returns the system events before and after the current system event in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
599            *
600            * @param systemEventId the primary key of the current system event
601            * @param groupId the group ID
602            * @param classNameId the class name ID
603            * @param classPK the class p k
604            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
605            * @return the previous, current, and next system event
606            * @throws com.liferay.portal.NoSuchSystemEventException if a system event with the primary key could not be found
607            * @throws SystemException if a system exception occurred
608            */
609            public static com.liferay.portal.model.SystemEvent[] findByG_C_C_PrevAndNext(
610                    long systemEventId, long groupId, long classNameId, long classPK,
611                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
612                    throws com.liferay.portal.NoSuchSystemEventException,
613                            com.liferay.portal.kernel.exception.SystemException {
614                    return getPersistence()
615                                       .findByG_C_C_PrevAndNext(systemEventId, groupId,
616                            classNameId, classPK, orderByComparator);
617            }
618    
619            /**
620            * Removes all the system events where groupId = &#63; and classNameId = &#63; and classPK = &#63; from the database.
621            *
622            * @param groupId the group ID
623            * @param classNameId the class name ID
624            * @param classPK the class p k
625            * @throws SystemException if a system exception occurred
626            */
627            public static void removeByG_C_C(long groupId, long classNameId,
628                    long classPK)
629                    throws com.liferay.portal.kernel.exception.SystemException {
630                    getPersistence().removeByG_C_C(groupId, classNameId, classPK);
631            }
632    
633            /**
634            * Returns the number of system events where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
635            *
636            * @param groupId the group ID
637            * @param classNameId the class name ID
638            * @param classPK the class p k
639            * @return the number of matching system events
640            * @throws SystemException if a system exception occurred
641            */
642            public static int countByG_C_C(long groupId, long classNameId, long classPK)
643                    throws com.liferay.portal.kernel.exception.SystemException {
644                    return getPersistence().countByG_C_C(groupId, classNameId, classPK);
645            }
646    
647            /**
648            * Returns all the system events where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
649            *
650            * @param groupId the group ID
651            * @param classNameId the class name ID
652            * @param classPK the class p k
653            * @param type the type
654            * @return the matching system events
655            * @throws SystemException if a system exception occurred
656            */
657            public static java.util.List<com.liferay.portal.model.SystemEvent> findByG_C_C_T(
658                    long groupId, long classNameId, long classPK, int type)
659                    throws com.liferay.portal.kernel.exception.SystemException {
660                    return getPersistence()
661                                       .findByG_C_C_T(groupId, classNameId, classPK, type);
662            }
663    
664            /**
665            * Returns a range of all the system events where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
666            *
667            * <p>
668            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.SystemEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
669            * </p>
670            *
671            * @param groupId the group ID
672            * @param classNameId the class name ID
673            * @param classPK the class p k
674            * @param type the type
675            * @param start the lower bound of the range of system events
676            * @param end the upper bound of the range of system events (not inclusive)
677            * @return the range of matching system events
678            * @throws SystemException if a system exception occurred
679            */
680            public static java.util.List<com.liferay.portal.model.SystemEvent> findByG_C_C_T(
681                    long groupId, long classNameId, long classPK, int type, int start,
682                    int end) throws com.liferay.portal.kernel.exception.SystemException {
683                    return getPersistence()
684                                       .findByG_C_C_T(groupId, classNameId, classPK, type, start,
685                            end);
686            }
687    
688            /**
689            * Returns an ordered range of all the system events where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
690            *
691            * <p>
692            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.SystemEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
693            * </p>
694            *
695            * @param groupId the group ID
696            * @param classNameId the class name ID
697            * @param classPK the class p k
698            * @param type the type
699            * @param start the lower bound of the range of system events
700            * @param end the upper bound of the range of system events (not inclusive)
701            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
702            * @return the ordered range of matching system events
703            * @throws SystemException if a system exception occurred
704            */
705            public static java.util.List<com.liferay.portal.model.SystemEvent> findByG_C_C_T(
706                    long groupId, long classNameId, long classPK, int type, int start,
707                    int end,
708                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
709                    throws com.liferay.portal.kernel.exception.SystemException {
710                    return getPersistence()
711                                       .findByG_C_C_T(groupId, classNameId, classPK, type, start,
712                            end, orderByComparator);
713            }
714    
715            /**
716            * Returns the first system event in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
717            *
718            * @param groupId the group ID
719            * @param classNameId the class name ID
720            * @param classPK the class p k
721            * @param type the type
722            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
723            * @return the first matching system event
724            * @throws com.liferay.portal.NoSuchSystemEventException if a matching system event could not be found
725            * @throws SystemException if a system exception occurred
726            */
727            public static com.liferay.portal.model.SystemEvent findByG_C_C_T_First(
728                    long groupId, long classNameId, long classPK, int type,
729                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
730                    throws com.liferay.portal.NoSuchSystemEventException,
731                            com.liferay.portal.kernel.exception.SystemException {
732                    return getPersistence()
733                                       .findByG_C_C_T_First(groupId, classNameId, classPK, type,
734                            orderByComparator);
735            }
736    
737            /**
738            * Returns the first system event in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
739            *
740            * @param groupId the group ID
741            * @param classNameId the class name ID
742            * @param classPK the class p k
743            * @param type the type
744            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
745            * @return the first matching system event, or <code>null</code> if a matching system event could not be found
746            * @throws SystemException if a system exception occurred
747            */
748            public static com.liferay.portal.model.SystemEvent fetchByG_C_C_T_First(
749                    long groupId, long classNameId, long classPK, int type,
750                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
751                    throws com.liferay.portal.kernel.exception.SystemException {
752                    return getPersistence()
753                                       .fetchByG_C_C_T_First(groupId, classNameId, classPK, type,
754                            orderByComparator);
755            }
756    
757            /**
758            * Returns the last system event in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
759            *
760            * @param groupId the group ID
761            * @param classNameId the class name ID
762            * @param classPK the class p k
763            * @param type the type
764            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
765            * @return the last matching system event
766            * @throws com.liferay.portal.NoSuchSystemEventException if a matching system event could not be found
767            * @throws SystemException if a system exception occurred
768            */
769            public static com.liferay.portal.model.SystemEvent findByG_C_C_T_Last(
770                    long groupId, long classNameId, long classPK, int type,
771                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
772                    throws com.liferay.portal.NoSuchSystemEventException,
773                            com.liferay.portal.kernel.exception.SystemException {
774                    return getPersistence()
775                                       .findByG_C_C_T_Last(groupId, classNameId, classPK, type,
776                            orderByComparator);
777            }
778    
779            /**
780            * Returns the last system event in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
781            *
782            * @param groupId the group ID
783            * @param classNameId the class name ID
784            * @param classPK the class p k
785            * @param type the type
786            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
787            * @return the last matching system event, or <code>null</code> if a matching system event could not be found
788            * @throws SystemException if a system exception occurred
789            */
790            public static com.liferay.portal.model.SystemEvent fetchByG_C_C_T_Last(
791                    long groupId, long classNameId, long classPK, int type,
792                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
793                    throws com.liferay.portal.kernel.exception.SystemException {
794                    return getPersistence()
795                                       .fetchByG_C_C_T_Last(groupId, classNameId, classPK, type,
796                            orderByComparator);
797            }
798    
799            /**
800            * Returns the system events before and after the current system event in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
801            *
802            * @param systemEventId the primary key of the current system event
803            * @param groupId the group ID
804            * @param classNameId the class name ID
805            * @param classPK the class p k
806            * @param type the type
807            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
808            * @return the previous, current, and next system event
809            * @throws com.liferay.portal.NoSuchSystemEventException if a system event with the primary key could not be found
810            * @throws SystemException if a system exception occurred
811            */
812            public static com.liferay.portal.model.SystemEvent[] findByG_C_C_T_PrevAndNext(
813                    long systemEventId, long groupId, long classNameId, long classPK,
814                    int type,
815                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
816                    throws com.liferay.portal.NoSuchSystemEventException,
817                            com.liferay.portal.kernel.exception.SystemException {
818                    return getPersistence()
819                                       .findByG_C_C_T_PrevAndNext(systemEventId, groupId,
820                            classNameId, classPK, type, orderByComparator);
821            }
822    
823            /**
824            * Removes all the system events where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; from the database.
825            *
826            * @param groupId the group ID
827            * @param classNameId the class name ID
828            * @param classPK the class p k
829            * @param type the type
830            * @throws SystemException if a system exception occurred
831            */
832            public static void removeByG_C_C_T(long groupId, long classNameId,
833                    long classPK, int type)
834                    throws com.liferay.portal.kernel.exception.SystemException {
835                    getPersistence().removeByG_C_C_T(groupId, classNameId, classPK, type);
836            }
837    
838            /**
839            * Returns the number of system events where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
840            *
841            * @param groupId the group ID
842            * @param classNameId the class name ID
843            * @param classPK the class p k
844            * @param type the type
845            * @return the number of matching system events
846            * @throws SystemException if a system exception occurred
847            */
848            public static int countByG_C_C_T(long groupId, long classNameId,
849                    long classPK, int type)
850                    throws com.liferay.portal.kernel.exception.SystemException {
851                    return getPersistence()
852                                       .countByG_C_C_T(groupId, classNameId, classPK, type);
853            }
854    
855            /**
856            * Caches the system event in the entity cache if it is enabled.
857            *
858            * @param systemEvent the system event
859            */
860            public static void cacheResult(
861                    com.liferay.portal.model.SystemEvent systemEvent) {
862                    getPersistence().cacheResult(systemEvent);
863            }
864    
865            /**
866            * Caches the system events in the entity cache if it is enabled.
867            *
868            * @param systemEvents the system events
869            */
870            public static void cacheResult(
871                    java.util.List<com.liferay.portal.model.SystemEvent> systemEvents) {
872                    getPersistence().cacheResult(systemEvents);
873            }
874    
875            /**
876            * Creates a new system event with the primary key. Does not add the system event to the database.
877            *
878            * @param systemEventId the primary key for the new system event
879            * @return the new system event
880            */
881            public static com.liferay.portal.model.SystemEvent create(
882                    long systemEventId) {
883                    return getPersistence().create(systemEventId);
884            }
885    
886            /**
887            * Removes the system event with the primary key from the database. Also notifies the appropriate model listeners.
888            *
889            * @param systemEventId the primary key of the system event
890            * @return the system event that was removed
891            * @throws com.liferay.portal.NoSuchSystemEventException if a system event with the primary key could not be found
892            * @throws SystemException if a system exception occurred
893            */
894            public static com.liferay.portal.model.SystemEvent remove(
895                    long systemEventId)
896                    throws com.liferay.portal.NoSuchSystemEventException,
897                            com.liferay.portal.kernel.exception.SystemException {
898                    return getPersistence().remove(systemEventId);
899            }
900    
901            public static com.liferay.portal.model.SystemEvent updateImpl(
902                    com.liferay.portal.model.SystemEvent systemEvent)
903                    throws com.liferay.portal.kernel.exception.SystemException {
904                    return getPersistence().updateImpl(systemEvent);
905            }
906    
907            /**
908            * Returns the system event with the primary key or throws a {@link com.liferay.portal.NoSuchSystemEventException} if it could not be found.
909            *
910            * @param systemEventId the primary key of the system event
911            * @return the system event
912            * @throws com.liferay.portal.NoSuchSystemEventException if a system event with the primary key could not be found
913            * @throws SystemException if a system exception occurred
914            */
915            public static com.liferay.portal.model.SystemEvent findByPrimaryKey(
916                    long systemEventId)
917                    throws com.liferay.portal.NoSuchSystemEventException,
918                            com.liferay.portal.kernel.exception.SystemException {
919                    return getPersistence().findByPrimaryKey(systemEventId);
920            }
921    
922            /**
923            * Returns the system event with the primary key or returns <code>null</code> if it could not be found.
924            *
925            * @param systemEventId the primary key of the system event
926            * @return the system event, or <code>null</code> if a system event with the primary key could not be found
927            * @throws SystemException if a system exception occurred
928            */
929            public static com.liferay.portal.model.SystemEvent fetchByPrimaryKey(
930                    long systemEventId)
931                    throws com.liferay.portal.kernel.exception.SystemException {
932                    return getPersistence().fetchByPrimaryKey(systemEventId);
933            }
934    
935            /**
936            * Returns all the system events.
937            *
938            * @return the system events
939            * @throws SystemException if a system exception occurred
940            */
941            public static java.util.List<com.liferay.portal.model.SystemEvent> findAll()
942                    throws com.liferay.portal.kernel.exception.SystemException {
943                    return getPersistence().findAll();
944            }
945    
946            /**
947            * Returns a range of all the system events.
948            *
949            * <p>
950            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.SystemEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
951            * </p>
952            *
953            * @param start the lower bound of the range of system events
954            * @param end the upper bound of the range of system events (not inclusive)
955            * @return the range of system events
956            * @throws SystemException if a system exception occurred
957            */
958            public static java.util.List<com.liferay.portal.model.SystemEvent> findAll(
959                    int start, int end)
960                    throws com.liferay.portal.kernel.exception.SystemException {
961                    return getPersistence().findAll(start, end);
962            }
963    
964            /**
965            * Returns an ordered range of all the system events.
966            *
967            * <p>
968            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.SystemEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
969            * </p>
970            *
971            * @param start the lower bound of the range of system events
972            * @param end the upper bound of the range of system events (not inclusive)
973            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
974            * @return the ordered range of system events
975            * @throws SystemException if a system exception occurred
976            */
977            public static java.util.List<com.liferay.portal.model.SystemEvent> findAll(
978                    int start, int end,
979                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
980                    throws com.liferay.portal.kernel.exception.SystemException {
981                    return getPersistence().findAll(start, end, orderByComparator);
982            }
983    
984            /**
985            * Removes all the system events from the database.
986            *
987            * @throws SystemException if a system exception occurred
988            */
989            public static void removeAll()
990                    throws com.liferay.portal.kernel.exception.SystemException {
991                    getPersistence().removeAll();
992            }
993    
994            /**
995            * Returns the number of system events.
996            *
997            * @return the number of system events
998            * @throws SystemException if a system exception occurred
999            */
1000            public static int countAll()
1001                    throws com.liferay.portal.kernel.exception.SystemException {
1002                    return getPersistence().countAll();
1003            }
1004    
1005            public static SystemEventPersistence getPersistence() {
1006                    if (_persistence == null) {
1007                            _persistence = (SystemEventPersistence)PortalBeanLocatorUtil.locate(SystemEventPersistence.class.getName());
1008    
1009                            ReferenceRegistry.registerReference(SystemEventUtil.class,
1010                                    "_persistence");
1011                    }
1012    
1013                    return _persistence;
1014            }
1015    
1016            /**
1017             * @deprecated As of 6.2.0
1018             */
1019            public void setPersistence(SystemEventPersistence persistence) {
1020            }
1021    
1022            private static SystemEventPersistence _persistence;
1023    }