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