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.model.SystemEvent;
020    
021    /**
022     * The persistence interface for the system event service.
023     *
024     * <p>
025     * Caching information and settings can be found in <code>portal.properties</code>
026     * </p>
027     *
028     * @author Brian Wing Shun Chan
029     * @see SystemEventPersistenceImpl
030     * @see SystemEventUtil
031     * @generated
032     */
033    @ProviderType
034    public interface SystemEventPersistence extends BasePersistence<SystemEvent> {
035            /*
036             * NOTE FOR DEVELOPERS:
037             *
038             * Never modify or reference this interface directly. Always use {@link SystemEventUtil} to access the system event persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
039             */
040    
041            /**
042            * Returns all the system events where groupId = &#63;.
043            *
044            * @param groupId the group ID
045            * @return the matching system events
046            */
047            public java.util.List<com.liferay.portal.model.SystemEvent> findByGroupId(
048                    long groupId);
049    
050            /**
051            * Returns a range of all the system events where groupId = &#63;.
052            *
053            * <p>
054            * 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.
055            * </p>
056            *
057            * @param groupId the group ID
058            * @param start the lower bound of the range of system events
059            * @param end the upper bound of the range of system events (not inclusive)
060            * @return the range of matching system events
061            */
062            public java.util.List<com.liferay.portal.model.SystemEvent> findByGroupId(
063                    long groupId, int start, int end);
064    
065            /**
066            * Returns an ordered range of all the system events where groupId = &#63;.
067            *
068            * <p>
069            * 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.
070            * </p>
071            *
072            * @param groupId the group ID
073            * @param start the lower bound of the range of system events
074            * @param end the upper bound of the range of system events (not inclusive)
075            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
076            * @return the ordered range of matching system events
077            */
078            public java.util.List<com.liferay.portal.model.SystemEvent> findByGroupId(
079                    long groupId, int start, int end,
080                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.SystemEvent> orderByComparator);
081    
082            /**
083            * Returns the first system event in the ordered set where groupId = &#63;.
084            *
085            * @param groupId the group ID
086            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
087            * @return the first matching system event
088            * @throws com.liferay.portal.NoSuchSystemEventException if a matching system event could not be found
089            */
090            public com.liferay.portal.model.SystemEvent findByGroupId_First(
091                    long groupId,
092                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.SystemEvent> orderByComparator)
093                    throws com.liferay.portal.NoSuchSystemEventException;
094    
095            /**
096            * Returns the first system event in the ordered set where groupId = &#63;.
097            *
098            * @param groupId the group ID
099            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
100            * @return the first matching system event, or <code>null</code> if a matching system event could not be found
101            */
102            public com.liferay.portal.model.SystemEvent fetchByGroupId_First(
103                    long groupId,
104                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.SystemEvent> orderByComparator);
105    
106            /**
107            * Returns the last system event in the ordered set where groupId = &#63;.
108            *
109            * @param groupId the group ID
110            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
111            * @return the last matching system event
112            * @throws com.liferay.portal.NoSuchSystemEventException if a matching system event could not be found
113            */
114            public com.liferay.portal.model.SystemEvent findByGroupId_Last(
115                    long groupId,
116                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.SystemEvent> orderByComparator)
117                    throws com.liferay.portal.NoSuchSystemEventException;
118    
119            /**
120            * Returns the last system event in the ordered set where groupId = &#63;.
121            *
122            * @param groupId the group ID
123            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
124            * @return the last matching system event, or <code>null</code> if a matching system event could not be found
125            */
126            public com.liferay.portal.model.SystemEvent fetchByGroupId_Last(
127                    long groupId,
128                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.SystemEvent> orderByComparator);
129    
130            /**
131            * Returns the system events before and after the current system event in the ordered set where groupId = &#63;.
132            *
133            * @param systemEventId the primary key of the current system event
134            * @param groupId the group ID
135            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
136            * @return the previous, current, and next system event
137            * @throws com.liferay.portal.NoSuchSystemEventException if a system event with the primary key could not be found
138            */
139            public com.liferay.portal.model.SystemEvent[] findByGroupId_PrevAndNext(
140                    long systemEventId, long groupId,
141                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.SystemEvent> orderByComparator)
142                    throws com.liferay.portal.NoSuchSystemEventException;
143    
144            /**
145            * Removes all the system events where groupId = &#63; from the database.
146            *
147            * @param groupId the group ID
148            */
149            public void removeByGroupId(long groupId);
150    
151            /**
152            * Returns the number of system events where groupId = &#63;.
153            *
154            * @param groupId the group ID
155            * @return the number of matching system events
156            */
157            public int countByGroupId(long groupId);
158    
159            /**
160            * Returns all the system events where groupId = &#63; and systemEventSetKey = &#63;.
161            *
162            * @param groupId the group ID
163            * @param systemEventSetKey the system event set key
164            * @return the matching system events
165            */
166            public java.util.List<com.liferay.portal.model.SystemEvent> findByG_S(
167                    long groupId, long systemEventSetKey);
168    
169            /**
170            * Returns a range of all the system events where groupId = &#63; and systemEventSetKey = &#63;.
171            *
172            * <p>
173            * 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.
174            * </p>
175            *
176            * @param groupId the group ID
177            * @param systemEventSetKey the system event set key
178            * @param start the lower bound of the range of system events
179            * @param end the upper bound of the range of system events (not inclusive)
180            * @return the range of matching system events
181            */
182            public java.util.List<com.liferay.portal.model.SystemEvent> findByG_S(
183                    long groupId, long systemEventSetKey, int start, int end);
184    
185            /**
186            * Returns an ordered range of all the system events where groupId = &#63; and systemEventSetKey = &#63;.
187            *
188            * <p>
189            * 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.
190            * </p>
191            *
192            * @param groupId the group ID
193            * @param systemEventSetKey the system event set key
194            * @param start the lower bound of the range of system events
195            * @param end the upper bound of the range of system events (not inclusive)
196            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
197            * @return the ordered range of matching system events
198            */
199            public java.util.List<com.liferay.portal.model.SystemEvent> findByG_S(
200                    long groupId, long systemEventSetKey, int start, int end,
201                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.SystemEvent> orderByComparator);
202    
203            /**
204            * Returns the first system event in the ordered set where groupId = &#63; and systemEventSetKey = &#63;.
205            *
206            * @param groupId the group ID
207            * @param systemEventSetKey the system event set key
208            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
209            * @return the first matching system event
210            * @throws com.liferay.portal.NoSuchSystemEventException if a matching system event could not be found
211            */
212            public com.liferay.portal.model.SystemEvent findByG_S_First(long groupId,
213                    long systemEventSetKey,
214                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.SystemEvent> orderByComparator)
215                    throws com.liferay.portal.NoSuchSystemEventException;
216    
217            /**
218            * Returns the first system event in the ordered set where groupId = &#63; and systemEventSetKey = &#63;.
219            *
220            * @param groupId the group ID
221            * @param systemEventSetKey the system event set key
222            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
223            * @return the first matching system event, or <code>null</code> if a matching system event could not be found
224            */
225            public com.liferay.portal.model.SystemEvent fetchByG_S_First(long groupId,
226                    long systemEventSetKey,
227                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.SystemEvent> orderByComparator);
228    
229            /**
230            * Returns the last system event in the ordered set where groupId = &#63; and systemEventSetKey = &#63;.
231            *
232            * @param groupId the group ID
233            * @param systemEventSetKey the system event set key
234            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
235            * @return the last matching system event
236            * @throws com.liferay.portal.NoSuchSystemEventException if a matching system event could not be found
237            */
238            public com.liferay.portal.model.SystemEvent findByG_S_Last(long groupId,
239                    long systemEventSetKey,
240                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.SystemEvent> orderByComparator)
241                    throws com.liferay.portal.NoSuchSystemEventException;
242    
243            /**
244            * Returns the last system event in the ordered set where groupId = &#63; and systemEventSetKey = &#63;.
245            *
246            * @param groupId the group ID
247            * @param systemEventSetKey the system event set key
248            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
249            * @return the last matching system event, or <code>null</code> if a matching system event could not be found
250            */
251            public com.liferay.portal.model.SystemEvent fetchByG_S_Last(long groupId,
252                    long systemEventSetKey,
253                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.SystemEvent> orderByComparator);
254    
255            /**
256            * Returns the system events before and after the current system event in the ordered set where groupId = &#63; and systemEventSetKey = &#63;.
257            *
258            * @param systemEventId the primary key of the current system event
259            * @param groupId the group ID
260            * @param systemEventSetKey the system event set key
261            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
262            * @return the previous, current, and next system event
263            * @throws com.liferay.portal.NoSuchSystemEventException if a system event with the primary key could not be found
264            */
265            public com.liferay.portal.model.SystemEvent[] findByG_S_PrevAndNext(
266                    long systemEventId, long groupId, long systemEventSetKey,
267                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.SystemEvent> orderByComparator)
268                    throws com.liferay.portal.NoSuchSystemEventException;
269    
270            /**
271            * Removes all the system events where groupId = &#63; and systemEventSetKey = &#63; from the database.
272            *
273            * @param groupId the group ID
274            * @param systemEventSetKey the system event set key
275            */
276            public void removeByG_S(long groupId, long systemEventSetKey);
277    
278            /**
279            * Returns the number of system events where groupId = &#63; and systemEventSetKey = &#63;.
280            *
281            * @param groupId the group ID
282            * @param systemEventSetKey the system event set key
283            * @return the number of matching system events
284            */
285            public int countByG_S(long groupId, long systemEventSetKey);
286    
287            /**
288            * Returns all the system events where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
289            *
290            * @param groupId the group ID
291            * @param classNameId the class name ID
292            * @param classPK the class p k
293            * @return the matching system events
294            */
295            public java.util.List<com.liferay.portal.model.SystemEvent> findByG_C_C(
296                    long groupId, long classNameId, long classPK);
297    
298            /**
299            * Returns a range of all the system events where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
300            *
301            * <p>
302            * 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.
303            * </p>
304            *
305            * @param groupId the group ID
306            * @param classNameId the class name ID
307            * @param classPK the class p k
308            * @param start the lower bound of the range of system events
309            * @param end the upper bound of the range of system events (not inclusive)
310            * @return the range of matching system events
311            */
312            public java.util.List<com.liferay.portal.model.SystemEvent> findByG_C_C(
313                    long groupId, long classNameId, long classPK, int start, int end);
314    
315            /**
316            * Returns an ordered range of all the system events where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
317            *
318            * <p>
319            * 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.
320            * </p>
321            *
322            * @param groupId the group ID
323            * @param classNameId the class name ID
324            * @param classPK the class p k
325            * @param start the lower bound of the range of system events
326            * @param end the upper bound of the range of system events (not inclusive)
327            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
328            * @return the ordered range of matching system events
329            */
330            public java.util.List<com.liferay.portal.model.SystemEvent> findByG_C_C(
331                    long groupId, long classNameId, long classPK, int start, int end,
332                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.SystemEvent> orderByComparator);
333    
334            /**
335            * Returns the first system event in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
336            *
337            * @param groupId the group ID
338            * @param classNameId the class name ID
339            * @param classPK the class p k
340            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
341            * @return the first matching system event
342            * @throws com.liferay.portal.NoSuchSystemEventException if a matching system event could not be found
343            */
344            public com.liferay.portal.model.SystemEvent findByG_C_C_First(
345                    long groupId, long classNameId, long classPK,
346                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.SystemEvent> orderByComparator)
347                    throws com.liferay.portal.NoSuchSystemEventException;
348    
349            /**
350            * Returns the first system event in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
351            *
352            * @param groupId the group ID
353            * @param classNameId the class name ID
354            * @param classPK the class p k
355            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
356            * @return the first matching system event, or <code>null</code> if a matching system event could not be found
357            */
358            public com.liferay.portal.model.SystemEvent fetchByG_C_C_First(
359                    long groupId, long classNameId, long classPK,
360                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.SystemEvent> orderByComparator);
361    
362            /**
363            * Returns the last system event in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
364            *
365            * @param groupId the group ID
366            * @param classNameId the class name ID
367            * @param classPK the class p k
368            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
369            * @return the last matching system event
370            * @throws com.liferay.portal.NoSuchSystemEventException if a matching system event could not be found
371            */
372            public com.liferay.portal.model.SystemEvent findByG_C_C_Last(long groupId,
373                    long classNameId, long classPK,
374                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.SystemEvent> orderByComparator)
375                    throws com.liferay.portal.NoSuchSystemEventException;
376    
377            /**
378            * Returns the last system event in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
379            *
380            * @param groupId the group ID
381            * @param classNameId the class name ID
382            * @param classPK the class p k
383            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
384            * @return the last matching system event, or <code>null</code> if a matching system event could not be found
385            */
386            public com.liferay.portal.model.SystemEvent fetchByG_C_C_Last(
387                    long groupId, long classNameId, long classPK,
388                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.SystemEvent> orderByComparator);
389    
390            /**
391            * Returns the system events before and after the current system event in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
392            *
393            * @param systemEventId the primary key of the current system event
394            * @param groupId the group ID
395            * @param classNameId the class name ID
396            * @param classPK the class p k
397            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
398            * @return the previous, current, and next system event
399            * @throws com.liferay.portal.NoSuchSystemEventException if a system event with the primary key could not be found
400            */
401            public com.liferay.portal.model.SystemEvent[] findByG_C_C_PrevAndNext(
402                    long systemEventId, long groupId, long classNameId, long classPK,
403                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.SystemEvent> orderByComparator)
404                    throws com.liferay.portal.NoSuchSystemEventException;
405    
406            /**
407            * Removes all the system events where groupId = &#63; and classNameId = &#63; and classPK = &#63; from the database.
408            *
409            * @param groupId the group ID
410            * @param classNameId the class name ID
411            * @param classPK the class p k
412            */
413            public void removeByG_C_C(long groupId, long classNameId, long classPK);
414    
415            /**
416            * Returns the number of system events where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
417            *
418            * @param groupId the group ID
419            * @param classNameId the class name ID
420            * @param classPK the class p k
421            * @return the number of matching system events
422            */
423            public int countByG_C_C(long groupId, long classNameId, long classPK);
424    
425            /**
426            * Returns all the system events where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
427            *
428            * @param groupId the group ID
429            * @param classNameId the class name ID
430            * @param classPK the class p k
431            * @param type the type
432            * @return the matching system events
433            */
434            public java.util.List<com.liferay.portal.model.SystemEvent> findByG_C_C_T(
435                    long groupId, long classNameId, long classPK, int type);
436    
437            /**
438            * Returns a range of all the system events where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
439            *
440            * <p>
441            * 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.
442            * </p>
443            *
444            * @param groupId the group ID
445            * @param classNameId the class name ID
446            * @param classPK the class p k
447            * @param type the type
448            * @param start the lower bound of the range of system events
449            * @param end the upper bound of the range of system events (not inclusive)
450            * @return the range of matching system events
451            */
452            public java.util.List<com.liferay.portal.model.SystemEvent> findByG_C_C_T(
453                    long groupId, long classNameId, long classPK, int type, int start,
454                    int end);
455    
456            /**
457            * Returns an ordered range of all the system events where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
458            *
459            * <p>
460            * 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.
461            * </p>
462            *
463            * @param groupId the group ID
464            * @param classNameId the class name ID
465            * @param classPK the class p k
466            * @param type the type
467            * @param start the lower bound of the range of system events
468            * @param end the upper bound of the range of system events (not inclusive)
469            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
470            * @return the ordered range of matching system events
471            */
472            public java.util.List<com.liferay.portal.model.SystemEvent> findByG_C_C_T(
473                    long groupId, long classNameId, long classPK, int type, int start,
474                    int end,
475                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.SystemEvent> orderByComparator);
476    
477            /**
478            * Returns the first system event in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
479            *
480            * @param groupId the group ID
481            * @param classNameId the class name ID
482            * @param classPK the class p k
483            * @param type the type
484            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
485            * @return the first matching system event
486            * @throws com.liferay.portal.NoSuchSystemEventException if a matching system event could not be found
487            */
488            public com.liferay.portal.model.SystemEvent findByG_C_C_T_First(
489                    long groupId, long classNameId, long classPK, int type,
490                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.SystemEvent> orderByComparator)
491                    throws com.liferay.portal.NoSuchSystemEventException;
492    
493            /**
494            * Returns the first system event in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
495            *
496            * @param groupId the group ID
497            * @param classNameId the class name ID
498            * @param classPK the class p k
499            * @param type the type
500            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
501            * @return the first matching system event, or <code>null</code> if a matching system event could not be found
502            */
503            public com.liferay.portal.model.SystemEvent fetchByG_C_C_T_First(
504                    long groupId, long classNameId, long classPK, int type,
505                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.SystemEvent> orderByComparator);
506    
507            /**
508            * Returns the last system event in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
509            *
510            * @param groupId the group ID
511            * @param classNameId the class name ID
512            * @param classPK the class p k
513            * @param type the type
514            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
515            * @return the last matching system event
516            * @throws com.liferay.portal.NoSuchSystemEventException if a matching system event could not be found
517            */
518            public com.liferay.portal.model.SystemEvent findByG_C_C_T_Last(
519                    long groupId, long classNameId, long classPK, int type,
520                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.SystemEvent> orderByComparator)
521                    throws com.liferay.portal.NoSuchSystemEventException;
522    
523            /**
524            * Returns the last system event in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
525            *
526            * @param groupId the group ID
527            * @param classNameId the class name ID
528            * @param classPK the class p k
529            * @param type the type
530            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
531            * @return the last matching system event, or <code>null</code> if a matching system event could not be found
532            */
533            public com.liferay.portal.model.SystemEvent fetchByG_C_C_T_Last(
534                    long groupId, long classNameId, long classPK, int type,
535                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.SystemEvent> orderByComparator);
536    
537            /**
538            * 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;.
539            *
540            * @param systemEventId the primary key of the current system event
541            * @param groupId the group ID
542            * @param classNameId the class name ID
543            * @param classPK the class p k
544            * @param type the type
545            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
546            * @return the previous, current, and next system event
547            * @throws com.liferay.portal.NoSuchSystemEventException if a system event with the primary key could not be found
548            */
549            public com.liferay.portal.model.SystemEvent[] findByG_C_C_T_PrevAndNext(
550                    long systemEventId, long groupId, long classNameId, long classPK,
551                    int type,
552                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.SystemEvent> orderByComparator)
553                    throws com.liferay.portal.NoSuchSystemEventException;
554    
555            /**
556            * Removes all the system events where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; from the database.
557            *
558            * @param groupId the group ID
559            * @param classNameId the class name ID
560            * @param classPK the class p k
561            * @param type the type
562            */
563            public void removeByG_C_C_T(long groupId, long classNameId, long classPK,
564                    int type);
565    
566            /**
567            * Returns the number of system events where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
568            *
569            * @param groupId the group ID
570            * @param classNameId the class name ID
571            * @param classPK the class p k
572            * @param type the type
573            * @return the number of matching system events
574            */
575            public int countByG_C_C_T(long groupId, long classNameId, long classPK,
576                    int type);
577    
578            /**
579            * Caches the system event in the entity cache if it is enabled.
580            *
581            * @param systemEvent the system event
582            */
583            public void cacheResult(com.liferay.portal.model.SystemEvent systemEvent);
584    
585            /**
586            * Caches the system events in the entity cache if it is enabled.
587            *
588            * @param systemEvents the system events
589            */
590            public void cacheResult(
591                    java.util.List<com.liferay.portal.model.SystemEvent> systemEvents);
592    
593            /**
594            * Creates a new system event with the primary key. Does not add the system event to the database.
595            *
596            * @param systemEventId the primary key for the new system event
597            * @return the new system event
598            */
599            public com.liferay.portal.model.SystemEvent create(long systemEventId);
600    
601            /**
602            * Removes the system event with the primary key from the database. Also notifies the appropriate model listeners.
603            *
604            * @param systemEventId the primary key of the system event
605            * @return the system event that was removed
606            * @throws com.liferay.portal.NoSuchSystemEventException if a system event with the primary key could not be found
607            */
608            public com.liferay.portal.model.SystemEvent remove(long systemEventId)
609                    throws com.liferay.portal.NoSuchSystemEventException;
610    
611            public com.liferay.portal.model.SystemEvent updateImpl(
612                    com.liferay.portal.model.SystemEvent systemEvent);
613    
614            /**
615            * Returns the system event with the primary key or throws a {@link com.liferay.portal.NoSuchSystemEventException} if it could not be found.
616            *
617            * @param systemEventId the primary key of the system event
618            * @return the system event
619            * @throws com.liferay.portal.NoSuchSystemEventException if a system event with the primary key could not be found
620            */
621            public com.liferay.portal.model.SystemEvent findByPrimaryKey(
622                    long systemEventId)
623                    throws com.liferay.portal.NoSuchSystemEventException;
624    
625            /**
626            * Returns the system event with the primary key or returns <code>null</code> if it could not be found.
627            *
628            * @param systemEventId the primary key of the system event
629            * @return the system event, or <code>null</code> if a system event with the primary key could not be found
630            */
631            public com.liferay.portal.model.SystemEvent fetchByPrimaryKey(
632                    long systemEventId);
633    
634            @Override
635            public java.util.Map<java.io.Serializable, com.liferay.portal.model.SystemEvent> fetchByPrimaryKeys(
636                    java.util.Set<java.io.Serializable> primaryKeys);
637    
638            /**
639            * Returns all the system events.
640            *
641            * @return the system events
642            */
643            public java.util.List<com.liferay.portal.model.SystemEvent> findAll();
644    
645            /**
646            * Returns a range of all the system events.
647            *
648            * <p>
649            * 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.
650            * </p>
651            *
652            * @param start the lower bound of the range of system events
653            * @param end the upper bound of the range of system events (not inclusive)
654            * @return the range of system events
655            */
656            public java.util.List<com.liferay.portal.model.SystemEvent> findAll(
657                    int start, int end);
658    
659            /**
660            * Returns an ordered range of all the system events.
661            *
662            * <p>
663            * 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.
664            * </p>
665            *
666            * @param start the lower bound of the range of system events
667            * @param end the upper bound of the range of system events (not inclusive)
668            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
669            * @return the ordered range of system events
670            */
671            public java.util.List<com.liferay.portal.model.SystemEvent> findAll(
672                    int start, int end,
673                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.SystemEvent> orderByComparator);
674    
675            /**
676            * Removes all the system events from the database.
677            */
678            public void removeAll();
679    
680            /**
681            * Returns the number of system events.
682            *
683            * @return the number of system events
684            */
685            public int countAll();
686    }