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